PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/gtk2/src/atk/atkstateset.inc

https://github.com/slibre/freepascal
Pascal | 80 lines | 50 code | 18 blank | 12 comment | 0 complexity | 3393a4753206f1306a2cf4a6d9b7c2a0 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1// included by atk.pp
 2
 3{$IFDEF read_forward_definitions}
 4   PAtkStateSet = ^TAtkStateSet;
 5{$ENDIF read_forward_definitions}
 6
 7//------------------------------------------------------------------------------
 8
 9{$IFDEF read_interface_types}
10   TAtkStateSet = record
11        parent : TGObject;
12     end;
13
14   PAtkStateSetClass = ^TAtkStateSetClass;
15   TAtkStateSetClass = record
16        parent : TGObjectClass;
17     end;
18
19{$ENDIF read_interface_types}
20
21//------------------------------------------------------------------------------
22
23{$IFDEF read_interface_rest}
24function ATK_TYPE_STATE_SET : GType;
25function ATK_STATE_SET(obj: pointer) : PAtkStateSet;
26function ATK_STATE_SET_CLASS(klass: pointer) : PAtkStateSetClass;
27function ATK_IS_STATE_SET(obj: pointer) : boolean;
28function ATK_IS_STATE_SET_CLASS(klass: pointer) : boolean;
29function ATK_STATE_SET_GET_CLASS(obj: pointer) : PAtkStateSetClass;
30
31
32function atk_state_set_get_type:GType; cdecl; external atklib;
33function atk_state_set_new:PAtkStateSet; cdecl; external atklib;
34function atk_state_set_is_empty(StateSet:PAtkStateSet):gboolean; cdecl; external atklib;
35function atk_state_set_add_state(StateSet:PAtkStateSet; _type:TAtkStateType):gboolean; cdecl; external atklib;
36procedure atk_state_set_add_states(StateSet:PAtkStateSet; types:PAtkStateType; n_types:gint); cdecl; external atklib;
37procedure atk_state_set_clear_states(StateSet:PAtkStateSet); cdecl; external atklib;
38function atk_state_set_contains_state(StateSet:PAtkStateSet; _type:TAtkStateType):gboolean; cdecl; external atklib;
39function atk_state_set_contains_states(StateSet:PAtkStateSet; types:PAtkStateType; n_types:gint):gboolean; cdecl; external atklib;
40function atk_state_set_remove_state(StateSet:PAtkStateSet; _type:TAtkStateType):gboolean; cdecl; external atklib;
41function atk_state_set_and_sets(StateSet:PAtkStateSet; compare_set:PAtkStateSet):PAtkStateSet; cdecl; external atklib;
42function atk_state_set_or_sets(StateSet:PAtkStateSet; compare_set:PAtkStateSet):PAtkStateSet; cdecl; external atklib;
43function atk_state_set_xor_sets(StateSet:PAtkStateSet; compare_set:PAtkStateSet):PAtkStateSet; cdecl; external atklib;
44{$ENDIF read_interface_rest}
45
46//------------------------------------------------------------------------------
47
48{$IFDEF read_implementation}
49function ATK_TYPE_STATE_SET : GType;
50begin
51   ATK_TYPE_STATE_SET:=atk_state_set_get_type;
52end;
53
54function ATK_STATE_SET(obj: pointer) : PAtkStateSet;
55begin
56   ATK_STATE_SET:=PAtkStateSet(G_TYPE_CHECK_INSTANCE_CAST(obj,ATK_TYPE_STATE_SET));
57end;
58
59function ATK_STATE_SET_CLASS(klass: pointer) : PAtkStateSetClass;
60begin
61   ATK_STATE_SET_CLASS:=PAtkStateSetClass(G_TYPE_CHECK_CLASS_CAST(klass,ATK_TYPE_STATE_SET));
62end;
63
64function ATK_IS_STATE_SET(obj: pointer) : boolean;
65begin
66   ATK_IS_STATE_SET:=G_TYPE_CHECK_INSTANCE_TYPE(obj,ATK_TYPE_STATE_SET);
67end;
68
69function ATK_IS_STATE_SET_CLASS(klass: pointer) : boolean;
70begin
71   ATK_IS_STATE_SET_CLASS:=G_TYPE_CHECK_CLASS_TYPE(klass,ATK_TYPE_STATE_SET);
72end;
73
74function ATK_STATE_SET_GET_CLASS(obj: pointer) : PAtkStateSetClass;
75begin
76   ATK_STATE_SET_GET_CLASS:=PAtkStateSetClass(G_TYPE_INSTANCE_GET_CLASS(obj,ATK_TYPE_STATE_SET));
77end;
78
79{$ENDIF read_implementation}
80