Improve output for owned property getters
[vala-lang.git] / vapi / atk.vapi
blob222d958beb2a707656a34e38a0dd1a90966d7651
1 /* atk.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Atk", lower_case_cprefix = "atk_")]
4 namespace Atk {
5         [Compact]
6         [CCode (cheader_filename = "atk/atk.h")]
7         public class Attribute {
8                 public weak string name;
9                 public weak string value;
10         }
11         [Compact]
12         [CCode (cheader_filename = "atk/atk.h")]
13         public class AttributeSet {
14         }
15         [CCode (cheader_filename = "atk/atk.h")]
16         public class GObjectAccessible : Atk.Object {
17                 public static unowned Atk.Object for_object (GLib.Object obj);
18                 public unowned GLib.Object get_object ();
19         }
20         [CCode (cheader_filename = "atk/atk.h")]
21         public class Hyperlink : GLib.Object, Atk.Action {
22                 public virtual int get_end_index ();
23                 public virtual int get_n_anchors ();
24                 public virtual unowned Atk.Object get_object (int i);
25                 public virtual int get_start_index ();
26                 public virtual unowned string get_uri (int i);
27                 public bool is_inline ();
28                 public virtual bool is_selected_link ();
29                 public virtual bool is_valid ();
30                 [NoWrapper]
31                 public virtual uint link_state ();
32                 public int end_index { get; }
33                 [NoAccessorMethod]
34                 public int number_of_anchors { get; }
35                 [NoAccessorMethod]
36                 public bool selected_link { get; }
37                 public int start_index { get; }
38                 public virtual signal void link_activated ();
39         }
40         [Compact]
41         [CCode (cheader_filename = "atk/atk.h")]
42         public class KeyEventStruct {
43                 public uint16 keycode;
44                 public uint keyval;
45                 public int length;
46                 public uint state;
47                 [CCode (cname = "string")]
48                 public weak string str;
49                 public uint32 timestamp;
50                 public int type;
51         }
52         [CCode (cheader_filename = "atk/atk.h")]
53         public class Misc : GLib.Object {
54                 public static unowned Atk.Misc get_instance ();
55                 public virtual void threads_enter ();
56                 public virtual void threads_leave ();
57         }
58         [CCode (cheader_filename = "atk/atk.h")]
59         public class NoOpObject : Atk.Object, Atk.Text, Atk.Action, Atk.Hypertext, Atk.Selection, Atk.Table, Atk.Image, Atk.Value, Atk.Component, Atk.EditableText, Atk.Document {
60                 [CCode (type = "AtkObject*", has_construct_function = false)]
61                 public NoOpObject (GLib.Object obj);
62         }
63         [CCode (cheader_filename = "atk/atk.h")]
64         public class NoOpObjectFactory : Atk.ObjectFactory {
65                 [CCode (type = "AtkObjectFactory*", has_construct_function = false)]
66                 public NoOpObjectFactory ();
67         }
68         [CCode (cheader_filename = "atk/atk.h")]
69         public class Object : GLib.Object {
70                 public weak string description;
71                 public Atk.Layer layer;
72                 public weak string name;
73                 public weak Atk.RelationSet relation_set;
74                 public Atk.Role role;
75                 public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
76                 public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
77                 public virtual unowned Atk.AttributeSet get_attributes ();
78                 public virtual unowned string get_description ();
79                 public virtual int get_index_in_parent ();
80                 public virtual Atk.Layer get_layer ();
81                 public virtual int get_mdi_zorder ();
82                 public int get_n_accessible_children ();
83                 [NoWrapper]
84                 public virtual int get_n_children ();
85                 public virtual unowned string get_name ();
86                 public virtual unowned Atk.Object get_parent ();
87                 public virtual Atk.Role get_role ();
88                 public virtual void initialize (void* data);
89                 public void notify_state_change (Atk.State state, bool value);
90                 public unowned Atk.Object ref_accessible_child (int i);
91                 [NoWrapper]
92                 public virtual unowned Atk.Object ref_child (int i);
93                 public virtual unowned Atk.RelationSet ref_relation_set ();
94                 public virtual unowned Atk.StateSet ref_state_set ();
95                 public virtual void remove_property_change_handler (uint handler_id);
96                 public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
97                 public virtual void set_description (string description);
98                 public virtual void set_name (string name);
99                 public virtual void set_parent (Atk.Object parent);
100                 public virtual void set_role (Atk.Role role);
101                 [NoAccessorMethod]
102                 public int accessible_component_layer { get; }
103                 [NoAccessorMethod]
104                 public int accessible_component_mdi_zorder { get; }
105                 [NoAccessorMethod]
106                 public string accessible_description { owned get; set; }
107                 [NoAccessorMethod]
108                 public int accessible_hypertext_nlinks { get; }
109                 [NoAccessorMethod]
110                 public string accessible_name { owned get; set; }
111                 [NoAccessorMethod]
112                 public Atk.Object accessible_parent { owned get; set; }
113                 [NoAccessorMethod]
114                 public int accessible_role { get; set; }
115                 [NoAccessorMethod]
116                 public string accessible_table_caption { owned get; set; }
117                 [NoAccessorMethod]
118                 public Atk.Object accessible_table_caption_object { owned get; set; }
119                 [NoAccessorMethod]
120                 public string accessible_table_column_description { owned get; set; }
121                 [NoAccessorMethod]
122                 public Atk.Object accessible_table_column_header { owned get; set; }
123                 [NoAccessorMethod]
124                 public string accessible_table_row_description { owned get; set; }
125                 [NoAccessorMethod]
126                 public Atk.Object accessible_table_row_header { owned get; set; }
127                 [NoAccessorMethod]
128                 public Atk.Object accessible_table_summary { owned get; set; }
129                 [NoAccessorMethod]
130                 public double accessible_value { get; set; }
131                 public virtual signal void active_descendant_changed (void* child);
132                 public virtual signal void children_changed (uint change_index, void* changed_child);
133                 public virtual signal void focus_event (bool focus_in);
134                 public virtual signal void property_change (void* values);
135                 public virtual signal void state_change (string name, bool state_set);
136                 public virtual signal void visible_data_changed ();
137         }
138         [CCode (cheader_filename = "atk/atk.h")]
139         public class ObjectFactory : GLib.Object {
140                 public virtual unowned Atk.Object create_accessible (GLib.Object obj);
141                 public virtual GLib.Type get_accessible_type ();
142                 public virtual void invalidate ();
143         }
144         [Compact]
145         [CCode (cheader_filename = "atk/atk.h")]
146         public class PropertyValues {
147                 public GLib.Value new_value;
148                 public GLib.Value old_value;
149                 public weak string property_name;
150         }
151         [CCode (cheader_filename = "atk/atk.h")]
152         public class Registry : GLib.Object {
153                 public weak GLib.HashTable factory_singleton_cache;
154                 public weak GLib.HashTable factory_type_registry;
155                 public unowned Atk.ObjectFactory get_factory (GLib.Type type);
156                 public GLib.Type get_factory_type (GLib.Type type);
157                 public void set_factory_type (GLib.Type type, GLib.Type factory_type);
158         }
159         [CCode (cheader_filename = "atk/atk.h")]
160         public class Relation : GLib.Object {
161                 public Atk.RelationType relationship;
162                 public void add_target (Atk.Object target);
163                 public Atk.RelationType get_relation_type ();
164                 public unowned GLib.PtrArray get_target ();
165                 [CCode (has_construct_function = false)]
166                 public Relation (Atk.Object[] targets, Atk.RelationType relationship);
167                 public static Atk.RelationType type_for_name (string name);
168                 public static unowned string type_get_name (Atk.RelationType type);
169                 public static Atk.RelationType type_register (string name);
170                 [NoAccessorMethod]
171                 public Atk.RelationType relation_type { get; set; }
172                 [NoAccessorMethod]
173                 public GLib.ValueArray target { get; set; }
174         }
175         [CCode (cheader_filename = "atk/atk.h")]
176         public class RelationSet : GLib.Object {
177                 public weak GLib.PtrArray relations;
178                 public void add (Atk.Relation relation);
179                 public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
180                 public bool contains (Atk.RelationType relationship);
181                 public int get_n_relations ();
182                 public unowned Atk.Relation get_relation (int i);
183                 public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
184                 [CCode (has_construct_function = false)]
185                 public RelationSet ();
186                 public void remove (Atk.Relation relation);
187         }
188         [Compact]
189         [CCode (cheader_filename = "atk/atk.h")]
190         public class State {
191                 public static Atk.StateType type_for_name (string name);
192                 public static unowned string type_get_name (Atk.StateType type);
193                 public static Atk.StateType type_register (string name);
194         }
195         [CCode (cheader_filename = "atk/atk.h")]
196         public class StateSet : GLib.Object {
197                 public bool add_state (Atk.StateType type);
198                 public void add_states (Atk.StateType[] types);
199                 public unowned Atk.StateSet and_sets (Atk.StateSet compare_set);
200                 public void clear_states ();
201                 public bool contains_state (Atk.StateType type);
202                 public bool contains_states (Atk.StateType[] types);
203                 public bool is_empty ();
204                 [CCode (has_construct_function = false)]
205                 public StateSet ();
206                 public unowned Atk.StateSet or_sets (Atk.StateSet compare_set);
207                 public bool remove_state (Atk.StateType type);
208                 public unowned Atk.StateSet xor_sets (Atk.StateSet compare_set);
209         }
210         [Compact]
211         [CCode (cheader_filename = "atk/atk.h")]
212         public class TextRange {
213                 public weak Atk.TextRectangle bounds;
214                 public weak string content;
215                 public int end_offset;
216                 public int start_offset;
217         }
218         [Compact]
219         [CCode (cheader_filename = "atk/atk.h")]
220         public class TextRectangle {
221                 public int height;
222                 public int width;
223                 public int x;
224                 public int y;
225         }
226         [CCode (cheader_filename = "atk/atk.h")]
227         public class Util : GLib.Object {
228                 [NoWrapper]
229                 public virtual uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
230                 [NoWrapper]
231                 public virtual uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
232                 [NoWrapper]
233                 public virtual unowned Atk.Object get_root ();
234                 [NoWrapper]
235                 public virtual unowned string get_toolkit_name ();
236                 [NoWrapper]
237                 public virtual unowned string get_toolkit_version ();
238                 [NoWrapper]
239                 public virtual void remove_global_event_listener (uint listener_id);
240                 [NoWrapper]
241                 public virtual void remove_key_event_listener (uint listener_id);
242         }
243         [CCode (cheader_filename = "atk/atk.h")]
244         public interface Action {
245                 public abstract bool do_action (int i);
246                 public abstract unowned string get_description (int i);
247                 public abstract unowned string get_keybinding (int i);
248                 public abstract unowned string get_localized_name (int i);
249                 public abstract int get_n_actions ();
250                 public abstract unowned string get_name (int i);
251                 public abstract bool set_description (int i, string desc);
252         }
253         [CCode (cheader_filename = "atk/atk.h")]
254         public interface Component {
255                 public abstract uint add_focus_handler (Atk.FocusHandler handler);
256                 public abstract bool contains (int x, int y, Atk.CoordType coord_type);
257                 public abstract double get_alpha ();
258                 public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
259                 public abstract Atk.Layer get_layer ();
260                 public abstract int get_mdi_zorder ();
261                 public abstract void get_position (int x, int y, Atk.CoordType coord_type);
262                 public abstract void get_size (int width, int height);
263                 public abstract bool grab_focus ();
264                 public abstract unowned Atk.Object ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
265                 public abstract void remove_focus_handler (uint handler_id);
266                 public abstract bool set_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
267                 public abstract bool set_position (int x, int y, Atk.CoordType coord_type);
268                 public abstract bool set_size (int width, int height);
269                 public virtual signal void bounds_changed (Atk.Rectangle bounds);
270         }
271         [CCode (cheader_filename = "atk/atk.h")]
272         public interface Document {
273                 public unowned string get_attribute_value (string attribute_name);
274                 public unowned Atk.AttributeSet get_attributes ();
275                 public abstract void* get_document ();
276                 [NoWrapper]
277                 public abstract unowned string get_document_attribute_value (string attribute_name);
278                 [NoWrapper]
279                 public abstract unowned Atk.AttributeSet get_document_attributes ();
280                 [NoWrapper]
281                 public abstract unowned string get_document_locale ();
282                 public abstract unowned string get_document_type ();
283                 public unowned string get_locale ();
284                 public bool set_attribute_value (string attribute_name, string attribute_value);
285                 [NoWrapper]
286                 public abstract bool set_document_attribute (string attribute_name, string attribute_value);
287                 public virtual signal void load_complete ();
288                 public virtual signal void load_stopped ();
289                 public virtual signal void reload ();
290         }
291         [CCode (cheader_filename = "atk/atk.h")]
292         public interface EditableText {
293                 public abstract void copy_text (int start_pos, int end_pos);
294                 public abstract void cut_text (int start_pos, int end_pos);
295                 public abstract void delete_text (int start_pos, int end_pos);
296                 public abstract void insert_text (string str, int length, int position);
297                 public abstract void paste_text (int position);
298                 public abstract bool set_run_attributes (Atk.AttributeSet attrib_set, int start_offset, int end_offset);
299                 public abstract void set_text_contents (string str);
300         }
301         [CCode (cheader_filename = "atk/atk.h")]
302         public interface HyperlinkImpl {
303                 public abstract unowned Atk.Hyperlink get_hyperlink ();
304         }
305         [CCode (cheader_filename = "atk/atk.h")]
306         public interface Hypertext {
307                 public abstract unowned Atk.Hyperlink get_link (int link_index);
308                 public abstract int get_link_index (int char_index);
309                 public abstract int get_n_links ();
310                 public virtual signal void link_selected (int link_index);
311         }
312         [CCode (cheader_filename = "atk/atk.h")]
313         public interface Image {
314                 public abstract unowned string get_image_description ();
315                 public abstract unowned string get_image_locale ();
316                 public abstract void get_image_position (int x, int y, Atk.CoordType coord_type);
317                 public abstract void get_image_size (int width, int height);
318                 public abstract bool set_image_description (string description);
319         }
320         [CCode (cheader_filename = "atk/atk.h")]
321         public interface Implementor {
322                 public abstract unowned Atk.Object ref_accessible ();
323         }
324         [CCode (cheader_filename = "atk/atk.h")]
325         public interface Selection {
326                 public abstract bool add_selection (int i);
327                 public abstract bool clear_selection ();
328                 public abstract int get_selection_count ();
329                 public abstract bool is_child_selected (int i);
330                 public abstract unowned Atk.Object ref_selection (int i);
331                 public abstract bool remove_selection (int i);
332                 public abstract bool select_all_selection ();
333                 public virtual signal void selection_changed ();
334         }
335         [CCode (cheader_filename = "atk/atk.h")]
336         public interface StreamableContent {
337                 public abstract unowned string get_mime_type (int i);
338                 public abstract int get_n_mime_types ();
339                 public abstract unowned GLib.IOChannel get_stream (string mime_type);
340                 public abstract unowned string get_uri (string mime_type);
341         }
342         [CCode (cheader_filename = "atk/atk.h")]
343         public interface Table {
344                 public abstract bool add_column_selection (int column);
345                 public abstract bool add_row_selection (int row);
346                 public abstract unowned Atk.Object get_caption ();
347                 public abstract int get_column_at_index (int index_);
348                 public abstract unowned string get_column_description (int column);
349                 public abstract int get_column_extent_at (int row, int column);
350                 public abstract unowned Atk.Object get_column_header (int column);
351                 public abstract int get_index_at (int row, int column);
352                 public abstract int get_n_columns ();
353                 public abstract int get_n_rows ();
354                 public abstract int get_row_at_index (int index_);
355                 public abstract unowned string get_row_description (int row);
356                 public abstract int get_row_extent_at (int row, int column);
357                 public abstract unowned Atk.Object get_row_header (int row);
358                 public abstract int get_selected_columns (int selected);
359                 public abstract int get_selected_rows (int selected);
360                 public abstract unowned Atk.Object get_summary ();
361                 public abstract bool is_column_selected (int column);
362                 public abstract bool is_row_selected (int row);
363                 public abstract bool is_selected (int row, int column);
364                 public abstract unowned Atk.Object ref_at (int row, int column);
365                 public abstract bool remove_column_selection (int column);
366                 public abstract bool remove_row_selection (int row);
367                 public abstract void set_caption (Atk.Object caption);
368                 public abstract void set_column_description (int column, string description);
369                 public abstract void set_column_header (int column, Atk.Object header);
370                 public abstract void set_row_description (int row, string description);
371                 public abstract void set_row_header (int row, Atk.Object header);
372                 public abstract void set_summary (Atk.Object accessible);
373                 public virtual signal void column_deleted (int column, int num_deleted);
374                 public virtual signal void column_inserted (int column, int num_inserted);
375                 public virtual signal void column_reordered ();
376                 public virtual signal void model_changed ();
377                 public virtual signal void row_deleted (int row, int num_deleted);
378                 public virtual signal void row_inserted (int row, int num_inserted);
379                 public virtual signal void row_reordered ();
380         }
381         [CCode (cheader_filename = "atk/atk.h")]
382         public interface Text {
383                 public abstract bool add_selection (int start_offset, int end_offset);
384                 public static Atk.TextAttribute attribute_for_name (string name);
385                 public static unowned string attribute_get_name (Atk.TextAttribute attr);
386                 public static unowned string attribute_get_value (Atk.TextAttribute attr, int index_);
387                 public static Atk.TextAttribute attribute_register (string name);
388                 public static void free_ranges (out unowned Atk.TextRange ranges);
389                 public abstract unowned Atk.TextRange get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
390                 public abstract int get_caret_offset ();
391                 public abstract unichar get_character_at_offset (int offset);
392                 public abstract int get_character_count ();
393                 public abstract void get_character_extents (int offset, int x, int y, int width, int height, Atk.CoordType coords);
394                 public abstract unowned Atk.AttributeSet get_default_attributes ();
395                 public abstract int get_n_selections ();
396                 public abstract int get_offset_at_point (int x, int y, Atk.CoordType coords);
397                 public abstract void get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type, Atk.TextRectangle rect);
398                 public abstract unowned Atk.AttributeSet get_run_attributes (int offset, int start_offset, int end_offset);
399                 public abstract unowned string get_selection (int selection_num, int start_offset, int end_offset);
400                 public abstract unowned string get_text (int start_offset, int end_offset);
401                 public abstract unowned string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
402                 public abstract unowned string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
403                 public abstract unowned string get_text_before_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
404                 public abstract bool remove_selection (int selection_num);
405                 public abstract bool set_caret_offset (int offset);
406                 public abstract bool set_selection (int selection_num, int start_offset, int end_offset);
407                 public virtual signal void text_attributes_changed ();
408                 public virtual signal void text_caret_moved (int location);
409                 public virtual signal void text_changed (int position, int length);
410                 public virtual signal void text_selection_changed ();
411         }
412         [CCode (cheader_filename = "atk/atk.h")]
413         public interface Value {
414                 public abstract void get_current_value (GLib.Value value);
415                 public abstract void get_maximum_value (GLib.Value value);
416                 public abstract void get_minimum_increment (GLib.Value value);
417                 public abstract void get_minimum_value (GLib.Value value);
418                 public abstract bool set_current_value (GLib.Value value);
419         }
420         [CCode (type_id = "ATK_TYPE_RECTANGLE", cheader_filename = "atk/atk.h")]
421         public struct Rectangle {
422                 public int x;
423                 public int y;
424                 public int width;
425                 public int height;
426         }
427         [CCode (cprefix = "ATK_XY_", cheader_filename = "atk/atk.h")]
428         public enum CoordType {
429                 SCREEN,
430                 WINDOW
431         }
432         [CCode (cprefix = "ATK_HYPERLINK_IS_", cheader_filename = "atk/atk.h")]
433         [Flags]
434         public enum HyperlinkStateFlags {
435                 INLINE
436         }
437         [CCode (cprefix = "ATK_KEY_EVENT_", cheader_filename = "atk/atk.h")]
438         public enum KeyEventType {
439                 PRESS,
440                 RELEASE,
441                 LAST_DEFINED
442         }
443         [CCode (cprefix = "ATK_LAYER_", cheader_filename = "atk/atk.h")]
444         public enum Layer {
445                 INVALID,
446                 BACKGROUND,
447                 CANVAS,
448                 WIDGET,
449                 MDI,
450                 POPUP,
451                 OVERLAY,
452                 WINDOW
453         }
454         [CCode (cprefix = "ATK_RELATION_", cheader_filename = "atk/atk.h")]
455         public enum RelationType {
456                 NULL,
457                 CONTROLLED_BY,
458                 CONTROLLER_FOR,
459                 LABEL_FOR,
460                 LABELLED_BY,
461                 MEMBER_OF,
462                 NODE_CHILD_OF,
463                 FLOWS_TO,
464                 FLOWS_FROM,
465                 SUBWINDOW_OF,
466                 EMBEDS,
467                 EMBEDDED_BY,
468                 POPUP_FOR,
469                 PARENT_WINDOW_OF,
470                 DESCRIBED_BY,
471                 DESCRIPTION_FOR,
472                 LAST_DEFINED
473         }
474         [CCode (cprefix = "ATK_ROLE_", cheader_filename = "atk/atk.h")]
475         public enum Role {
476                 INVALID,
477                 ACCEL_LABEL,
478                 ALERT,
479                 ANIMATION,
480                 ARROW,
481                 CALENDAR,
482                 CANVAS,
483                 CHECK_BOX,
484                 CHECK_MENU_ITEM,
485                 COLOR_CHOOSER,
486                 COLUMN_HEADER,
487                 COMBO_BOX,
488                 DATE_EDITOR,
489                 DESKTOP_ICON,
490                 DESKTOP_FRAME,
491                 DIAL,
492                 DIALOG,
493                 DIRECTORY_PANE,
494                 DRAWING_AREA,
495                 FILE_CHOOSER,
496                 FILLER,
497                 FONT_CHOOSER,
498                 FRAME,
499                 GLASS_PANE,
500                 HTML_CONTAINER,
501                 ICON,
502                 IMAGE,
503                 INTERNAL_FRAME,
504                 LABEL,
505                 LAYERED_PANE,
506                 LIST,
507                 LIST_ITEM,
508                 MENU,
509                 MENU_BAR,
510                 MENU_ITEM,
511                 OPTION_PANE,
512                 PAGE_TAB,
513                 PAGE_TAB_LIST,
514                 PANEL,
515                 PASSWORD_TEXT,
516                 POPUP_MENU,
517                 PROGRESS_BAR,
518                 PUSH_BUTTON,
519                 RADIO_BUTTON,
520                 RADIO_MENU_ITEM,
521                 ROOT_PANE,
522                 ROW_HEADER,
523                 SCROLL_BAR,
524                 SCROLL_PANE,
525                 SEPARATOR,
526                 SLIDER,
527                 SPLIT_PANE,
528                 SPIN_BUTTON,
529                 STATUSBAR,
530                 TABLE,
531                 TABLE_CELL,
532                 TABLE_COLUMN_HEADER,
533                 TABLE_ROW_HEADER,
534                 TEAR_OFF_MENU_ITEM,
535                 TERMINAL,
536                 TEXT,
537                 TOGGLE_BUTTON,
538                 TOOL_BAR,
539                 TOOL_TIP,
540                 TREE,
541                 TREE_TABLE,
542                 UNKNOWN,
543                 VIEWPORT,
544                 WINDOW,
545                 HEADER,
546                 FOOTER,
547                 PARAGRAPH,
548                 RULER,
549                 APPLICATION,
550                 AUTOCOMPLETE,
551                 EDITBAR,
552                 EMBEDDED,
553                 ENTRY,
554                 CHART,
555                 CAPTION,
556                 DOCUMENT_FRAME,
557                 HEADING,
558                 PAGE,
559                 SECTION,
560                 REDUNDANT_OBJECT,
561                 FORM,
562                 LINK,
563                 INPUT_METHOD_WINDOW,
564                 LAST_DEFINED
565         }
566         [CCode (cprefix = "ATK_STATE_", cheader_filename = "atk/atk.h")]
567         public enum StateType {
568                 INVALID,
569                 ACTIVE,
570                 ARMED,
571                 BUSY,
572                 CHECKED,
573                 DEFUNCT,
574                 EDITABLE,
575                 ENABLED,
576                 EXPANDABLE,
577                 EXPANDED,
578                 FOCUSABLE,
579                 FOCUSED,
580                 HORIZONTAL,
581                 ICONIFIED,
582                 MODAL,
583                 MULTI_LINE,
584                 MULTISELECTABLE,
585                 OPAQUE,
586                 PRESSED,
587                 RESIZABLE,
588                 SELECTABLE,
589                 SELECTED,
590                 SENSITIVE,
591                 SHOWING,
592                 SINGLE_LINE,
593                 STALE,
594                 TRANSIENT,
595                 VERTICAL,
596                 VISIBLE,
597                 MANAGES_DESCENDANTS,
598                 INDETERMINATE,
599                 TRUNCATED,
600                 REQUIRED,
601                 INVALID_ENTRY,
602                 SUPPORTS_AUTOCOMPLETION,
603                 SELECTABLE_TEXT,
604                 DEFAULT,
605                 ANIMATED,
606                 VISITED,
607                 LAST_DEFINED
608         }
609         [CCode (cprefix = "ATK_TEXT_ATTR_", cheader_filename = "atk/atk.h")]
610         public enum TextAttribute {
611                 INVALID,
612                 LEFT_MARGIN,
613                 RIGHT_MARGIN,
614                 INDENT,
615                 INVISIBLE,
616                 EDITABLE,
617                 PIXELS_ABOVE_LINES,
618                 PIXELS_BELOW_LINES,
619                 PIXELS_INSIDE_WRAP,
620                 BG_FULL_HEIGHT,
621                 RISE,
622                 UNDERLINE,
623                 STRIKETHROUGH,
624                 SIZE,
625                 SCALE,
626                 WEIGHT,
627                 LANGUAGE,
628                 FAMILY_NAME,
629                 BG_COLOR,
630                 FG_COLOR,
631                 BG_STIPPLE,
632                 FG_STIPPLE,
633                 WRAP_MODE,
634                 DIRECTION,
635                 JUSTIFICATION,
636                 STRETCH,
637                 VARIANT,
638                 STYLE,
639                 LAST_DEFINED
640         }
641         [CCode (cprefix = "ATK_TEXT_BOUNDARY_", cheader_filename = "atk/atk.h")]
642         public enum TextBoundary {
643                 CHAR,
644                 WORD_START,
645                 WORD_END,
646                 SENTENCE_START,
647                 SENTENCE_END,
648                 LINE_START,
649                 LINE_END
650         }
651         [CCode (cprefix = "ATK_TEXT_CLIP_", cheader_filename = "atk/atk.h")]
652         public enum TextClipType {
653                 NONE,
654                 MIN,
655                 MAX,
656                 BOTH
657         }
658         [CCode (cheader_filename = "atk/atk.h")]
659         public static delegate void EventListener (Atk.Object obj);
660         [CCode (cheader_filename = "atk/atk.h")]
661         public static delegate void EventListenerInit ();
662         [CCode (cheader_filename = "atk/atk.h")]
663         public static delegate void FocusHandler (Atk.Object p1, bool p2);
664         [CCode (cheader_filename = "atk/atk.h")]
665         public delegate bool Function ();
666         [CCode (cheader_filename = "atk/atk.h")]
667         public static delegate int KeySnoopFunc (Atk.KeyEventStruct event, void* func_data);
668         [CCode (cheader_filename = "atk/atk.h")]
669         public static delegate void PropertyChangeHandler (Atk.Object p1, Atk.PropertyValues p2);
670         [CCode (cheader_filename = "atk/atk.h")]
671         public static uint add_focus_tracker (Atk.EventListener focus_tracker);
672         [CCode (cheader_filename = "atk/atk.h")]
673         public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
674         [CCode (cheader_filename = "atk/atk.h")]
675         public static uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
676         [CCode (cheader_filename = "atk/atk.h")]
677         public static void focus_tracker_init (Atk.EventListenerInit init);
678         [CCode (cheader_filename = "atk/atk.h")]
679         public static void focus_tracker_notify (Atk.Object object);
680         [CCode (cheader_filename = "atk/atk.h")]
681         public static unowned Atk.Registry get_default_registry ();
682         [CCode (cheader_filename = "atk/atk.h")]
683         public static unowned Atk.Object get_focus_object ();
684         [CCode (cheader_filename = "atk/atk.h")]
685         public static unowned Atk.Object get_root ();
686         [CCode (cheader_filename = "atk/atk.h")]
687         public static unowned string get_toolkit_name ();
688         [CCode (cheader_filename = "atk/atk.h")]
689         public static unowned string get_toolkit_version ();
690         [CCode (cheader_filename = "atk/atk.h")]
691         public static unowned string get_version ();
692         [CCode (cheader_filename = "atk/atk.h")]
693         public static void remove_focus_tracker (uint tracker_id);
694         [CCode (cheader_filename = "atk/atk.h")]
695         public static void remove_global_event_listener (uint listener_id);
696         [CCode (cheader_filename = "atk/atk.h")]
697         public static void remove_key_event_listener (uint listener_id);
698         [CCode (cheader_filename = "atk/atk.h")]
699         public static Atk.Role role_for_name (string name);
700         [CCode (cheader_filename = "atk/atk.h")]
701         public static unowned string role_get_localized_name (Atk.Role role);
702         [CCode (cheader_filename = "atk/atk.h")]
703         public static unowned string role_get_name (Atk.Role role);
704         [CCode (cheader_filename = "atk/atk.h")]
705         public static Atk.Role role_register (string name);