Release 0.41.92
[vala-gnome.git] / vapi / atk.vapi
blobfcb44e5c59e647f6ea5eccec1a690dddf035a31b
1 /* atk.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Atk", gir_namespace = "Atk", gir_version = "1.0", lower_case_cprefix = "atk_")]
4 namespace Atk {
5         [CCode (cheader_filename = "atk/atk.h")]
6         [Compact]
7         public class AttributeSet : GLib.SList<Atk.Attribute?> {
8         }
9         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_gobject_accessible_get_type ()")]
10         public class GObjectAccessible : Atk.Object {
11                 [CCode (has_construct_function = false)]
12                 protected GObjectAccessible ();
13                 public static unowned Atk.Object for_object (GLib.Object obj);
14                 public unowned GLib.Object get_object ();
15         }
16         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_hyperlink_get_type ()")]
17         public class Hyperlink : GLib.Object, Atk.Action {
18                 [CCode (has_construct_function = false)]
19                 protected Hyperlink ();
20                 public virtual int get_end_index ();
21                 public virtual int get_n_anchors ();
22                 public virtual unowned Atk.Object get_object (int i);
23                 public virtual int get_start_index ();
24                 public virtual string get_uri (int i);
25                 public bool is_inline ();
26                 [Version (deprecated = true, deprecated_since = "1.8", since = "1.4")]
27                 public virtual bool is_selected_link ();
28                 public virtual bool is_valid ();
29                 [NoWrapper]
30                 public virtual uint link_state ();
31                 public int end_index { get; }
32                 [NoAccessorMethod]
33                 public int number_of_anchors { get; }
34                 [NoAccessorMethod]
35                 [Version (deprecated = true, deprecated_since = "1.8")]
36                 public bool selected_link { get; }
37                 public int start_index { get; }
38                 public virtual signal void link_activated ();
39         }
40         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_misc_get_type ()")]
41         public class Misc : GLib.Object {
42                 [CCode (has_construct_function = false)]
43                 protected Misc ();
44                 [Version (deprecated = true, since = "1.13")]
45                 public static unowned Atk.Misc get_instance ();
46                 [Version (deprecated = true, since = "1.13")]
47                 public virtual void threads_enter ();
48                 [Version (deprecated = true, since = "1.13")]
49                 public virtual void threads_leave ();
50         }
51         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_no_op_object_get_type ()")]
52         public class NoOpObject : Atk.Object, Atk.Action, Atk.Component, Atk.Document, Atk.EditableText, Atk.Hypertext, Atk.Image, Atk.Selection, Atk.Table, Atk.TableCell, Atk.Text, Atk.Value, Atk.Window {
53                 [CCode (has_construct_function = false, type = "AtkObject*")]
54                 public NoOpObject (GLib.Object obj);
55         }
56         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_no_op_object_factory_get_type ()")]
57         public class NoOpObjectFactory : Atk.ObjectFactory {
58                 [CCode (has_construct_function = false, type = "AtkObjectFactory*")]
59                 public NoOpObjectFactory ();
60         }
61         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_object_get_type ()")]
62         public class Object : GLib.Object {
63                 public weak string description;
64                 public Atk.Layer layer;
65                 public weak string name;
66                 public weak Atk.RelationSet relation_set;
67                 public Atk.Role role;
68                 [CCode (has_construct_function = false)]
69                 protected Object ();
70                 public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
71                 [Version (deprecated = true)]
72                 public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
73                 [Version (since = "1.12")]
74                 public virtual Atk.AttributeSet get_attributes ();
75                 public virtual unowned string get_description ();
76                 public virtual int get_index_in_parent ();
77                 [Version (deprecated = true)]
78                 public virtual Atk.Layer get_layer ();
79                 [Version (deprecated = true)]
80                 public virtual int get_mdi_zorder ();
81                 public int get_n_accessible_children ();
82                 [NoWrapper]
83                 public virtual int get_n_children ();
84                 public virtual unowned string get_name ();
85                 [Version (since = "2.8")]
86                 public virtual unowned string get_object_locale ();
87                 public virtual unowned Atk.Object get_parent ();
88                 public virtual Atk.Role get_role ();
89                 public virtual void initialize (void* data);
90                 public void notify_state_change (Atk.State state, bool value);
91                 public unowned Atk.Object peek_parent ();
92                 public Atk.Object ref_accessible_child (int i);
93                 public virtual Atk.RelationSet ref_relation_set ();
94                 public virtual Atk.StateSet ref_state_set ();
95                 [Version (deprecated = true)]
96                 public virtual void remove_property_change_handler (uint handler_id);
97                 public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
98                 public virtual void set_description (string description);
99                 public virtual void set_name (string name);
100                 public virtual void set_parent (Atk.Object parent);
101                 public virtual void set_role (Atk.Role role);
102                 [NoAccessorMethod]
103                 public int accessible_component_layer { get; }
104                 [NoAccessorMethod]
105                 public int accessible_component_mdi_zorder { get; }
106                 [NoAccessorMethod]
107                 public string accessible_description { owned get; set; }
108                 [NoAccessorMethod]
109                 public int accessible_hypertext_nlinks { get; }
110                 [NoAccessorMethod]
111                 public string accessible_name { owned get; set; }
112                 [NoAccessorMethod]
113                 public Atk.Object accessible_parent { owned get; set; }
114                 [NoAccessorMethod]
115                 public Atk.Role accessible_role { get; set; }
116                 [NoAccessorMethod]
117                 [Version (deprecated = true)]
118                 public string accessible_table_caption { owned get; set; }
119                 [NoAccessorMethod]
120                 public Atk.Object accessible_table_caption_object { owned get; set; }
121                 [NoAccessorMethod]
122                 [Version (deprecated = true)]
123                 public string accessible_table_column_description { owned get; set; }
124                 [NoAccessorMethod]
125                 [Version (deprecated = true)]
126                 public Atk.Object accessible_table_column_header { owned get; set; }
127                 [NoAccessorMethod]
128                 [Version (deprecated = true)]
129                 public string accessible_table_row_description { owned get; set; }
130                 [NoAccessorMethod]
131                 [Version (deprecated = true)]
132                 public Atk.Object accessible_table_row_header { owned get; set; }
133                 [NoAccessorMethod]
134                 public Atk.Object accessible_table_summary { owned get; set; }
135                 [NoAccessorMethod]
136                 [Version (deprecated = true)]
137                 public double accessible_value { get; set; }
138                 public virtual signal void active_descendant_changed (Atk.Object child);
139                 public virtual signal void children_changed (uint change_index, Atk.Object changed_child);
140                 [Version (deprecated = true, deprecated_since = "2.9.4")]
141                 public virtual signal void focus_event (bool focus_in);
142                 public virtual signal void property_change (Atk.PropertyValues values);
143                 public virtual signal void state_change (string name, bool state_set);
144                 public virtual signal void visible_data_changed ();
145         }
146         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_object_factory_get_type ()")]
147         public class ObjectFactory : GLib.Object {
148                 [CCode (has_construct_function = false)]
149                 protected ObjectFactory ();
150                 public Atk.Object create_accessible (GLib.Object obj);
151                 public GLib.Type get_accessible_type ();
152                 public virtual void invalidate ();
153         }
154         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_plug_get_type ()")]
155         public class Plug : Atk.Object, Atk.Component {
156                 [CCode (has_construct_function = false, type = "AtkObject*")]
157                 public Plug ();
158                 [Version (since = "1.30")]
159                 public string get_id ();
160                 [NoWrapper]
161                 public virtual string get_object_id ();
162         }
163         [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_range_get_type ()")]
164         [Compact]
165         public class Range {
166                 [CCode (has_construct_function = false)]
167                 [Version (since = "2.12")]
168                 public Range (double lower_limit, double upper_limit, string description);
169                 [Version (since = "2.12")]
170                 public Atk.Range copy ();
171                 [Version (since = "2.12")]
172                 public void free ();
173                 [Version (since = "2.12")]
174                 public unowned string get_description ();
175                 [Version (since = "2.12")]
176                 public double get_lower_limit ();
177                 [Version (since = "2.12")]
178                 public double get_upper_limit ();
179         }
180         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_registry_get_type ()")]
181         public class Registry : GLib.Object {
182                 [Version (deprecated = true)]
183                 public weak GLib.HashTable<GLib.Type,Atk.ObjectFactory> factory_singleton_cache;
184                 [Version (deprecated = true)]
185                 public weak GLib.HashTable<GLib.Type,GLib.Type> factory_type_registry;
186                 [CCode (has_construct_function = false)]
187                 protected Registry ();
188                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_default_registry")]
189                 public static Atk.Registry get_default ();
190                 public unowned Atk.ObjectFactory get_factory (GLib.Type type);
191                 public GLib.Type get_factory_type (GLib.Type type);
192                 public void set_factory_type (GLib.Type type, GLib.Type factory_type);
193         }
194         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_relation_get_type ()")]
195         public class Relation : GLib.Object {
196                 public Atk.RelationType relationship;
197                 [CCode (has_construct_function = false)]
198                 public Relation ([CCode (array_length_cname = "n_targets", array_length_pos = 1.5)] Atk.Object[] targets, Atk.RelationType relationship);
199                 [Version (since = "1.9")]
200                 public void add_target (Atk.Object target);
201                 public Atk.RelationType get_relation_type ();
202                 public unowned GLib.GenericArray<Atk.Object> get_target ();
203                 public bool remove_target (Atk.Object target);
204                 [NoAccessorMethod]
205                 public Atk.RelationType relation_type { get; set; }
206                 [NoAccessorMethod]
207                 public GLib.ValueArray target { owned get; set; }
208         }
209         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_relation_set_get_type ()")]
210         public class RelationSet : GLib.Object {
211                 [Version (deprecated = true)]
212                 public weak GLib.GenericArray<Atk.Relation> relations;
213                 [CCode (has_construct_function = false)]
214                 public RelationSet ();
215                 public void add (Atk.Relation relation);
216                 [Version (since = "1.9")]
217                 public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
218                 public bool contains (Atk.RelationType relationship);
219                 public bool contains_target (Atk.RelationType relationship, Atk.Object target);
220                 public int get_n_relations ();
221                 public unowned Atk.Relation get_relation (int i);
222                 public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
223                 public void remove (Atk.Relation relation);
224         }
225         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_socket_get_type ()")]
226         public class Socket : Atk.Object, Atk.Component {
227                 [Version (deprecated = true)]
228                 public weak string embedded_plug_id;
229                 [CCode (has_construct_function = false, type = "AtkObject*")]
230                 public Socket ();
231                 [Version (since = "1.30")]
232                 public virtual void embed (string plug_id);
233                 [Version (since = "1.30")]
234                 public bool is_occupied ();
235         }
236         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_state_set_get_type ()")]
237         public class StateSet : GLib.Object {
238                 [CCode (has_construct_function = false)]
239                 public StateSet ();
240                 public bool add_state (Atk.StateType type);
241                 public void add_states ([CCode (array_length_cname = "n_types", array_length_pos = 1.1)] Atk.StateType[] types);
242                 public Atk.StateSet and_sets (Atk.StateSet compare_set);
243                 public void clear_states ();
244                 public bool contains_state (Atk.StateType type);
245                 public bool contains_states ([CCode (array_length_cname = "n_types", array_length_pos = 1.1)] Atk.StateType[] types);
246                 public bool is_empty ();
247                 public Atk.StateSet? or_sets (Atk.StateSet compare_set);
248                 public bool remove_state (Atk.StateType type);
249                 public Atk.StateSet xor_sets (Atk.StateSet compare_set);
250         }
251         [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_text_range_get_type ()")]
252         [Compact]
253         public class TextRange {
254                 public Atk.TextRectangle bounds;
255                 public string content;
256                 public int end_offset;
257                 public int start_offset;
258         }
259         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_util_get_type ()")]
260         public class Util : GLib.Object {
261                 [CCode (has_construct_function = false)]
262                 protected Util ();
263                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_add_focus_tracker")]
264                 [Version (deprecated = true, deprecated_since = "2.9.4")]
265                 public static uint add_focus_tracker (Atk.EventListener focus_tracker);
266                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_add_global_event_listener")]
267                 public static uint add_global_event_listener ([CCode (type = "GSignalEmissionHook")] Atk.SignalEmissionHook listener, string event_type);
268                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_add_key_event_listener")]
269                 public static uint add_key_event_listener (Atk.KeySnoopFunc listener);
270                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_focus_tracker_init")]
271                 [Version (deprecated = true, deprecated_since = "2.9.4")]
272                 public static void focus_tracker_init (Atk.EventListenerInit init);
273                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_focus_tracker_notify")]
274                 [Version (deprecated = true, deprecated_since = "2.9.4")]
275                 public static void focus_tracker_notify (Atk.Object object);
276                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_focus_object")]
277                 [Version (since = "1.6")]
278                 public static unowned Atk.Object get_focus_object ();
279                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_root")]
280                 public static unowned Atk.Object get_root ();
281                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_toolkit_name")]
282                 public static unowned string get_toolkit_name ();
283                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_toolkit_version")]
284                 public static unowned string get_toolkit_version ();
285                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_version")]
286                 [Version (since = "1.20")]
287                 public static unowned string get_version ();
288                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_remove_focus_tracker")]
289                 [Version (deprecated = true, deprecated_since = "2.9.4")]
290                 public static void remove_focus_tracker (uint tracker_id);
291                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_remove_global_event_listener")]
292                 public static void remove_global_event_listener (uint listener_id);
293                 [CCode (cheader_filename = "atk/atk.h", cname = "atk_remove_key_event_listener")]
294                 public static void remove_key_event_listener (uint listener_id);
295         }
296         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_action_get_type ()")]
297         public interface Action : GLib.Object {
298                 public abstract bool do_action (int i);
299                 public abstract unowned string? get_description (int i);
300                 public abstract unowned string? get_keybinding (int i);
301                 public abstract unowned string? get_localized_name (int i);
302                 public abstract int get_n_actions ();
303                 public abstract unowned string? get_name (int i);
304                 public abstract bool set_description (int i, string desc);
305         }
306         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_component_get_type ()")]
307         public interface Component : GLib.Object {
308                 [Version (deprecated = true, deprecated_since = "2.9.4")]
309                 public abstract uint add_focus_handler (Atk.FocusHandler handler);
310                 public abstract bool contains (int x, int y, Atk.CoordType coord_type);
311                 [Version (since = "1.12")]
312                 public abstract double get_alpha ();
313                 public abstract void get_extents (out int x, out int y, out int width, out int height, Atk.CoordType coord_type);
314                 public abstract Atk.Layer get_layer ();
315                 public abstract int get_mdi_zorder ();
316                 [Version (deprecated = true)]
317                 public abstract void get_position (out int x, out int y, Atk.CoordType coord_type);
318                 [Version (deprecated = true)]
319                 public abstract void get_size (out int width, out int height);
320                 public abstract bool grab_focus ();
321                 public abstract Atk.Object? ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
322                 [Version (deprecated = true, deprecated_since = "2.9.4")]
323                 public abstract void remove_focus_handler (uint handler_id);
324                 [Version (since = "2.30")]
325                 public abstract bool scroll_to (Atk.ScrollType type);
326                 [Version (since = "2.30")]
327                 public abstract bool scroll_to_point (Atk.CoordType coords, int x, int y);
328                 public abstract bool set_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
329                 public abstract bool set_position (int x, int y, Atk.CoordType coord_type);
330                 public abstract bool set_size (int width, int height);
331                 public virtual signal void bounds_changed (Atk.Rectangle bounds);
332         }
333         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_document_get_type ()")]
334         public interface Document : GLib.Object {
335                 [CCode (vfunc_name = "get_document_attribute_value")]
336                 [Version (since = "1.12")]
337                 public virtual unowned string? get_attribute_value (string attribute_name);
338                 [CCode (vfunc_name = "get_document_attributes")]
339                 [Version (since = "1.12")]
340                 public virtual unowned Atk.AttributeSet get_attributes ();
341                 [Version (since = "2.12")]
342                 public virtual int get_current_page_number ();
343                 [Version (deprecated = true)]
344                 public virtual void* get_document ();
345                 [Version (deprecated = true)]
346                 public virtual unowned string get_document_type ();
347                 [CCode (vfunc_name = "get_document_locale")]
348                 [Version (deprecated = true, deprecated_since = "2.7.90")]
349                 public virtual unowned string get_locale ();
350                 [Version (since = "2.12")]
351                 public virtual int get_page_count ();
352                 [CCode (vfunc_name = "set_document_attribute")]
353                 [Version (since = "1.12")]
354                 public virtual bool set_attribute_value (string attribute_name, string attribute_value);
355                 public signal void load_complete ();
356                 public signal void load_stopped ();
357                 [Version (since = "2.12")]
358                 public signal void page_changed (int page_number);
359                 public signal void reload ();
360         }
361         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_editable_text_get_type ()")]
362         public interface EditableText : GLib.Object {
363                 public abstract void copy_text (int start_pos, int end_pos);
364                 public abstract void cut_text (int start_pos, int end_pos);
365                 public abstract void delete_text (int start_pos, int end_pos);
366                 public abstract void insert_text (string string, int length, int position);
367                 public abstract void paste_text (int position);
368                 public abstract bool set_run_attributes (Atk.AttributeSet attrib_set, int start_offset, int end_offset);
369                 public abstract void set_text_contents (string string);
370         }
371         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_hyperlink_impl_get_type ()")]
372         public interface HyperlinkImpl : GLib.Object {
373                 [Version (since = "1.12")]
374                 public abstract Atk.Hyperlink get_hyperlink ();
375         }
376         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_hypertext_get_type ()")]
377         public interface Hypertext : GLib.Object {
378                 public abstract unowned Atk.Hyperlink get_link (int link_index);
379                 public abstract int get_link_index (int char_index);
380                 public abstract int get_n_links ();
381                 public virtual signal void link_selected (int link_index);
382         }
383         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_image_get_type ()")]
384         public interface Image : GLib.Object {
385                 public abstract unowned string get_image_description ();
386                 [Version (since = "1.12")]
387                 public abstract unowned string? get_image_locale ();
388                 public abstract void get_image_position (out int x, out int y, Atk.CoordType coord_type);
389                 public abstract void get_image_size (out int width, out int height);
390                 public abstract bool set_image_description (string description);
391         }
392         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_implementor_get_type ()")]
393         public interface Implementor : GLib.Object {
394                 public abstract Atk.Object ref_accessible ();
395         }
396         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_selection_get_type ()")]
397         public interface Selection : GLib.Object {
398                 public abstract bool add_selection (int i);
399                 public abstract bool clear_selection ();
400                 public abstract int get_selection_count ();
401                 public abstract bool is_child_selected (int i);
402                 public abstract Atk.Object? ref_selection (int i);
403                 public abstract bool remove_selection (int i);
404                 public abstract bool select_all_selection ();
405                 public virtual signal void selection_changed ();
406         }
407         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_streamable_content_get_type ()")]
408         public interface StreamableContent : GLib.Object {
409                 public abstract unowned string get_mime_type (int i);
410                 public abstract int get_n_mime_types ();
411                 public abstract GLib.IOChannel get_stream (string mime_type);
412                 [Version (since = "1.12")]
413                 public abstract unowned string? get_uri (string mime_type);
414         }
415         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_table_get_type ()")]
416         public interface Table : GLib.Object {
417                 public abstract bool add_column_selection (int column);
418                 public abstract bool add_row_selection (int row);
419                 public abstract unowned Atk.Object? get_caption ();
420                 [Version (deprecated = true)]
421                 public abstract int get_column_at_index (int index_);
422                 public abstract unowned string get_column_description (int column);
423                 public abstract int get_column_extent_at (int row, int column);
424                 public abstract unowned Atk.Object? get_column_header (int column);
425                 [Version (deprecated = true)]
426                 public abstract int get_index_at (int row, int column);
427                 public abstract int get_n_columns ();
428                 public abstract int get_n_rows ();
429                 [Version (deprecated = true)]
430                 public abstract int get_row_at_index (int index_);
431                 public abstract unowned string? get_row_description (int row);
432                 public abstract int get_row_extent_at (int row, int column);
433                 public abstract unowned Atk.Object? get_row_header (int row);
434                 public abstract int get_selected_columns (int selected);
435                 public abstract int get_selected_rows (int selected);
436                 public abstract Atk.Object get_summary ();
437                 public abstract bool is_column_selected (int column);
438                 public abstract bool is_row_selected (int row);
439                 public abstract bool is_selected (int row, int column);
440                 public abstract Atk.Object ref_at (int row, int column);
441                 public abstract bool remove_column_selection (int column);
442                 public abstract bool remove_row_selection (int row);
443                 public abstract void set_caption (Atk.Object caption);
444                 public abstract void set_column_description (int column, string description);
445                 public abstract void set_column_header (int column, Atk.Object header);
446                 public abstract void set_row_description (int row, string description);
447                 public abstract void set_row_header (int row, Atk.Object header);
448                 public abstract void set_summary (Atk.Object accessible);
449                 public virtual signal void column_deleted (int column, int num_deleted);
450                 public virtual signal void column_inserted (int column, int num_inserted);
451                 public virtual signal void column_reordered ();
452                 public virtual signal void model_changed ();
453                 public virtual signal void row_deleted (int row, int num_deleted);
454                 public virtual signal void row_inserted (int row, int num_inserted);
455                 public virtual signal void row_reordered ();
456         }
457         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_table_cell_get_type ()")]
458         public interface TableCell : Atk.Object {
459                 [Version (since = "2.12")]
460                 public abstract GLib.GenericArray<Atk.Object> get_column_header_cells ();
461                 [Version (since = "2.12")]
462                 public abstract int get_column_span ();
463                 [Version (since = "2.12")]
464                 public abstract bool get_position (out int row, out int column);
465                 [Version (since = "2.12")]
466                 public abstract bool get_row_column_span (out int row, out int column, out int row_span, out int column_span);
467                 [Version (since = "2.12")]
468                 public abstract GLib.GenericArray<Atk.Object> get_row_header_cells ();
469                 [Version (since = "2.12")]
470                 public abstract int get_row_span ();
471                 [Version (since = "2.12")]
472                 public abstract Atk.Object get_table ();
473         }
474         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_text_get_type ()")]
475         public interface Text : GLib.Object {
476                 public abstract bool add_selection (int start_offset, int end_offset);
477                 [Version (since = "1.3")]
478                 public static void free_ranges ([CCode (array_length = false)] Atk.TextRange[] ranges);
479                 [CCode (array_length = false, array_null_terminated = true, cname = "atk_text_get_bounded_ranges")]
480                 [Version (since = "1.3")]
481                 public virtual Atk.TextRange[] get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
482                 public abstract int get_caret_offset ();
483                 public abstract unichar get_character_at_offset (int offset);
484                 public abstract int get_character_count ();
485                 public abstract void get_character_extents (int offset, out int x, out int y, out int width, out int height, Atk.CoordType coords);
486                 public abstract Atk.AttributeSet get_default_attributes ();
487                 public abstract int get_n_selections ();
488                 public abstract int get_offset_at_point (int x, int y, Atk.CoordType coords);
489                 [Version (since = "1.3")]
490                 public abstract Atk.TextRectangle get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type);
491                 public abstract Atk.AttributeSet get_run_attributes (int offset, out int start_offset, out int end_offset);
492                 public abstract string get_selection (int selection_num, out int start_offset, out int end_offset);
493                 [Version (since = "2.10")]
494                 public abstract string? get_string_at_offset (int offset, Atk.TextGranularity granularity, out int start_offset, out int end_offset);
495                 public abstract string get_text (int start_offset, int end_offset);
496                 [Version (deprecated = true, deprecated_since = "2.9.3")]
497                 public abstract string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
498                 [Version (deprecated = true)]
499                 public abstract string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
500                 [Version (deprecated = true, deprecated_since = "2.9.3")]
501                 public abstract string get_text_before_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
502                 public abstract bool remove_selection (int selection_num);
503                 public abstract bool set_caret_offset (int offset);
504                 public abstract bool set_selection (int selection_num, int start_offset, int end_offset);
505                 public virtual signal void text_attributes_changed ();
506                 public virtual signal void text_caret_moved (int location);
507                 [Version (deprecated = true, deprecated_since = "2.9.4")]
508                 public virtual signal void text_changed (int position, int length);
509                 public signal void text_insert (int arg1, int arg2, string arg3);
510                 public signal void text_remove (int arg1, int arg2, string arg3);
511                 public virtual signal void text_selection_changed ();
512         }
513         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_value_get_type ()")]
514         public interface Value : GLib.Object {
515                 [Version (deprecated = true)]
516                 public abstract GLib.Value get_current_value ();
517                 [Version (since = "2.12")]
518                 public abstract double get_increment ();
519                 [Version (deprecated = true)]
520                 public abstract GLib.Value get_maximum_value ();
521                 [Version (deprecated = true, since = "1.12")]
522                 public abstract GLib.Value get_minimum_increment ();
523                 [Version (deprecated = true)]
524                 public abstract GLib.Value get_minimum_value ();
525                 [Version (since = "2.12")]
526                 public abstract Atk.Range? get_range ();
527                 [Version (since = "2.12")]
528                 public abstract GLib.SList<Atk.Range> get_sub_ranges ();
529                 [Version (since = "2.12")]
530                 public abstract void get_value_and_text (out double value, out string text);
531                 [Version (deprecated = true)]
532                 public abstract bool set_current_value (GLib.Value value);
533                 [Version (since = "2.12")]
534                 public abstract void set_value (double new_value);
535                 [Version (since = "2.12")]
536                 public signal void value_changed (double value, string text);
537         }
538         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_window_get_type ()")]
539         public interface Window : Atk.Object {
540                 [Version (since = "2.2")]
541                 public signal void activate ();
542                 [Version (since = "2.2")]
543                 public signal void create ();
544                 [Version (since = "2.2")]
545                 public signal void deactivate ();
546                 [Version (since = "2.2")]
547                 public signal void destroy ();
548                 [Version (since = "2.2")]
549                 public signal void maximize ();
550                 [Version (since = "2.2")]
551                 public signal void minimize ();
552                 [Version (since = "2.2")]
553                 public signal void move ();
554                 [Version (since = "2.2")]
555                 public signal void resize ();
556                 [Version (since = "2.2")]
557                 public signal void restore ();
558         }
559         [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
560         public struct Attribute {
561                 public string name;
562                 public string value;
563         }
564         [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
565         public struct KeyEventStruct {
566                 public int type;
567                 public uint state;
568                 public uint keyval;
569                 public int length;
570                 [CCode (cname = "string")]
571                 public weak string str;
572                 public uint16 keycode;
573                 public uint32 timestamp;
574         }
575         [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
576         public struct PropertyValues {
577                 public weak string property_name;
578                 public GLib.Value old_value;
579                 public GLib.Value new_value;
580         }
581         [CCode (cheader_filename = "atk/atk.h", type_id = "atk_rectangle_get_type ()")]
582         public struct Rectangle {
583                 public int x;
584                 public int y;
585                 public int width;
586                 public int height;
587         }
588         [CCode (cheader_filename = "atk/atk.h")]
589         [SimpleType]
590         public struct State : uint64 {
591         }
592         [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
593         public struct TextRectangle {
594                 public int x;
595                 public int y;
596                 public int width;
597                 public int height;
598         }
599         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_XY_", type_id = "atk_coord_type_get_type ()")]
600         public enum CoordType {
601                 SCREEN,
602                 WINDOW,
603                 PARENT
604         }
605         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_HYPERLINK_IS_", type_id = "atk_hyperlink_state_flags_get_type ()")]
606         [Flags]
607         public enum HyperlinkStateFlags {
608                 INLINE
609         }
610         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_KEY_EVENT_", type_id = "atk_key_event_type_get_type ()")]
611         public enum KeyEventType {
612                 PRESS,
613                 RELEASE,
614                 LAST_DEFINED
615         }
616         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_LAYER_", type_id = "atk_layer_get_type ()")]
617         public enum Layer {
618                 INVALID,
619                 BACKGROUND,
620                 CANVAS,
621                 WIDGET,
622                 MDI,
623                 POPUP,
624                 OVERLAY,
625                 WINDOW
626         }
627         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_RELATION_", type_id = "atk_relation_type_get_type ()")]
628         public enum RelationType {
629                 NULL,
630                 CONTROLLED_BY,
631                 CONTROLLER_FOR,
632                 LABEL_FOR,
633                 LABELLED_BY,
634                 MEMBER_OF,
635                 NODE_CHILD_OF,
636                 FLOWS_TO,
637                 FLOWS_FROM,
638                 SUBWINDOW_OF,
639                 EMBEDS,
640                 EMBEDDED_BY,
641                 POPUP_FOR,
642                 PARENT_WINDOW_OF,
643                 DESCRIBED_BY,
644                 DESCRIPTION_FOR,
645                 NODE_PARENT_OF,
646                 DETAILS,
647                 DETAILS_FOR,
648                 ERROR_MESSAGE,
649                 ERROR_FOR,
650                 LAST_DEFINED;
651                 [CCode (cheader_filename = "atk/atk.h")]
652                 public static Atk.RelationType for_name (string name);
653                 [CCode (cheader_filename = "atk/atk.h")]
654                 public unowned string get_name ();
655                 [CCode (cheader_filename = "atk/atk.h")]
656                 public static Atk.RelationType register (string name);
657         }
658         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_ROLE_", type_id = "atk_role_get_type ()")]
659         public enum Role {
660                 INVALID,
661                 [CCode (cname = "ATK_ROLE_ACCEL_LABEL")]
662                 ACCELERATOR_LABEL,
663                 ALERT,
664                 ANIMATION,
665                 ARROW,
666                 CALENDAR,
667                 CANVAS,
668                 CHECK_BOX,
669                 CHECK_MENU_ITEM,
670                 COLOR_CHOOSER,
671                 COLUMN_HEADER,
672                 COMBO_BOX,
673                 DATE_EDITOR,
674                 DESKTOP_ICON,
675                 DESKTOP_FRAME,
676                 DIAL,
677                 DIALOG,
678                 DIRECTORY_PANE,
679                 DRAWING_AREA,
680                 FILE_CHOOSER,
681                 FILLER,
682                 FONT_CHOOSER,
683                 FRAME,
684                 GLASS_PANE,
685                 HTML_CONTAINER,
686                 ICON,
687                 IMAGE,
688                 INTERNAL_FRAME,
689                 LABEL,
690                 LAYERED_PANE,
691                 LIST,
692                 LIST_ITEM,
693                 MENU,
694                 MENU_BAR,
695                 MENU_ITEM,
696                 OPTION_PANE,
697                 PAGE_TAB,
698                 PAGE_TAB_LIST,
699                 PANEL,
700                 PASSWORD_TEXT,
701                 POPUP_MENU,
702                 PROGRESS_BAR,
703                 PUSH_BUTTON,
704                 RADIO_BUTTON,
705                 RADIO_MENU_ITEM,
706                 ROOT_PANE,
707                 ROW_HEADER,
708                 SCROLL_BAR,
709                 SCROLL_PANE,
710                 SEPARATOR,
711                 SLIDER,
712                 SPLIT_PANE,
713                 SPIN_BUTTON,
714                 STATUSBAR,
715                 TABLE,
716                 TABLE_CELL,
717                 TABLE_COLUMN_HEADER,
718                 TABLE_ROW_HEADER,
719                 TEAR_OFF_MENU_ITEM,
720                 TERMINAL,
721                 TEXT,
722                 TOGGLE_BUTTON,
723                 TOOL_BAR,
724                 TOOL_TIP,
725                 TREE,
726                 TREE_TABLE,
727                 UNKNOWN,
728                 VIEWPORT,
729                 WINDOW,
730                 HEADER,
731                 FOOTER,
732                 PARAGRAPH,
733                 RULER,
734                 APPLICATION,
735                 AUTOCOMPLETE,
736                 EDITBAR,
737                 EMBEDDED,
738                 ENTRY,
739                 CHART,
740                 CAPTION,
741                 DOCUMENT_FRAME,
742                 HEADING,
743                 PAGE,
744                 SECTION,
745                 REDUNDANT_OBJECT,
746                 FORM,
747                 LINK,
748                 INPUT_METHOD_WINDOW,
749                 TABLE_ROW,
750                 TREE_ITEM,
751                 DOCUMENT_SPREADSHEET,
752                 DOCUMENT_PRESENTATION,
753                 DOCUMENT_TEXT,
754                 DOCUMENT_WEB,
755                 DOCUMENT_EMAIL,
756                 COMMENT,
757                 LIST_BOX,
758                 GROUPING,
759                 IMAGE_MAP,
760                 NOTIFICATION,
761                 INFO_BAR,
762                 LEVEL_BAR,
763                 TITLE_BAR,
764                 BLOCK_QUOTE,
765                 AUDIO,
766                 VIDEO,
767                 DEFINITION,
768                 ARTICLE,
769                 LANDMARK,
770                 LOG,
771                 MARQUEE,
772                 MATH,
773                 RATING,
774                 TIMER,
775                 DESCRIPTION_LIST,
776                 DESCRIPTION_TERM,
777                 DESCRIPTION_VALUE,
778                 STATIC,
779                 MATH_FRACTION,
780                 MATH_ROOT,
781                 SUBSCRIPT,
782                 SUPERSCRIPT,
783                 FOOTNOTE,
784                 LAST_DEFINED;
785                 [CCode (cheader_filename = "atk/atk.h")]
786                 public static Atk.Role for_name (string name);
787                 [CCode (cheader_filename = "atk/atk.h")]
788                 public unowned string get_localized_name ();
789                 [CCode (cheader_filename = "atk/atk.h")]
790                 public unowned string get_name ();
791                 [CCode (cheader_filename = "atk/atk.h")]
792                 [Version (deprecated = true)]
793                 public static Atk.Role register (string name);
794         }
795         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_SCROLL_", type_id = "atk_scroll_type_get_type ()")]
796         [Version (since = "2.30")]
797         public enum ScrollType {
798                 TOP_LEFT,
799                 BOTTOM_RIGHT,
800                 TOP_EDGE,
801                 BOTTOM_EDGE,
802                 LEFT_EDGE,
803                 RIGHT_EDGE,
804                 ANYWHERE
805         }
806         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_STATE_", type_id = "atk_state_type_get_type ()")]
807         public enum StateType {
808                 INVALID,
809                 ACTIVE,
810                 ARMED,
811                 BUSY,
812                 CHECKED,
813                 DEFUNCT,
814                 EDITABLE,
815                 ENABLED,
816                 EXPANDABLE,
817                 EXPANDED,
818                 FOCUSABLE,
819                 FOCUSED,
820                 HORIZONTAL,
821                 ICONIFIED,
822                 MODAL,
823                 MULTI_LINE,
824                 MULTISELECTABLE,
825                 OPAQUE,
826                 PRESSED,
827                 RESIZABLE,
828                 SELECTABLE,
829                 SELECTED,
830                 SENSITIVE,
831                 SHOWING,
832                 SINGLE_LINE,
833                 STALE,
834                 TRANSIENT,
835                 VERTICAL,
836                 VISIBLE,
837                 MANAGES_DESCENDANTS,
838                 INDETERMINATE,
839                 TRUNCATED,
840                 REQUIRED,
841                 INVALID_ENTRY,
842                 SUPPORTS_AUTOCOMPLETION,
843                 SELECTABLE_TEXT,
844                 DEFAULT,
845                 ANIMATED,
846                 VISITED,
847                 CHECKABLE,
848                 HAS_POPUP,
849                 HAS_TOOLTIP,
850                 READ_ONLY,
851                 LAST_DEFINED;
852                 [CCode (cheader_filename = "atk/atk.h")]
853                 public static Atk.StateType for_name (string name);
854                 [CCode (cheader_filename = "atk/atk.h")]
855                 public unowned string get_name ();
856                 [CCode (cheader_filename = "atk/atk.h")]
857                 public static Atk.StateType register (string name);
858         }
859         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_ATTR_", type_id = "atk_text_attribute_get_type ()")]
860         public enum TextAttribute {
861                 INVALID,
862                 LEFT_MARGIN,
863                 RIGHT_MARGIN,
864                 INDENT,
865                 INVISIBLE,
866                 EDITABLE,
867                 PIXELS_ABOVE_LINES,
868                 PIXELS_BELOW_LINES,
869                 PIXELS_INSIDE_WRAP,
870                 BG_FULL_HEIGHT,
871                 RISE,
872                 UNDERLINE,
873                 STRIKETHROUGH,
874                 SIZE,
875                 SCALE,
876                 WEIGHT,
877                 LANGUAGE,
878                 FAMILY_NAME,
879                 BG_COLOR,
880                 FG_COLOR,
881                 BG_STIPPLE,
882                 FG_STIPPLE,
883                 WRAP_MODE,
884                 DIRECTION,
885                 JUSTIFICATION,
886                 STRETCH,
887                 VARIANT,
888                 STYLE,
889                 LAST_DEFINED;
890                 [CCode (cheader_filename = "atk/atk.h")]
891                 public static Atk.TextAttribute for_name (string name);
892                 [CCode (cheader_filename = "atk/atk.h")]
893                 public unowned string get_name ();
894                 [CCode (cheader_filename = "atk/atk.h")]
895                 public unowned string? get_value (int index_);
896                 [CCode (cheader_filename = "atk/atk.h")]
897                 public static Atk.TextAttribute register (string name);
898         }
899         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_BOUNDARY_", type_id = "atk_text_boundary_get_type ()")]
900         public enum TextBoundary {
901                 CHAR,
902                 WORD_START,
903                 WORD_END,
904                 SENTENCE_START,
905                 SENTENCE_END,
906                 LINE_START,
907                 LINE_END
908         }
909         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_CLIP_", type_id = "atk_text_clip_type_get_type ()")]
910         public enum TextClipType {
911                 NONE,
912                 MIN,
913                 MAX,
914                 BOTH
915         }
916         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_GRANULARITY_", type_id = "atk_text_granularity_get_type ()")]
917         public enum TextGranularity {
918                 CHAR,
919                 WORD,
920                 SENTENCE,
921                 LINE,
922                 PARAGRAPH
923         }
924         [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_VALUE_", type_id = "atk_value_type_get_type ()")]
925         public enum ValueType {
926                 VERY_WEAK,
927                 WEAK,
928                 ACCEPTABLE,
929                 STRONG,
930                 VERY_STRONG,
931                 VERY_LOW,
932                 LOW,
933                 MEDIUM,
934                 HIGH,
935                 VERY_HIGH,
936                 VERY_BAD,
937                 BAD,
938                 GOOD,
939                 VERY_GOOD,
940                 BEST,
941                 LAST_DEFINED;
942                 [CCode (cheader_filename = "atk/atk.h")]
943                 public unowned string get_localized_name ();
944                 [CCode (cheader_filename = "atk/atk.h")]
945                 public unowned string get_name ();
946         }
947         [CCode (cheader_filename = "atk/atk.h", has_target = false)]
948         public delegate void EventListener (Atk.Object obj);
949         [CCode (cheader_filename = "atk/atk.h", has_target = false)]
950         public delegate void EventListenerInit ();
951         [CCode (cheader_filename = "atk/atk.h", has_target = false)]
952         [Version (deprecated = true, deprecated_since = "2.9.4")]
953         public delegate void FocusHandler (Atk.Object object, bool focus_in);
954         [CCode (cheader_filename = "atk/atk.h", instance_pos = 0.9)]
955         public delegate bool Function ();
956         [CCode (cheader_filename = "atk/atk.h", instance_pos = 1.9)]
957         public delegate int KeySnoopFunc (Atk.KeyEventStruct event);
958         [CCode (cheader_filename = "atk/atk.h", has_target = false)]
959         [Version (deprecated = true)]
960         public delegate void PropertyChangeHandler (Atk.Object obj, Atk.PropertyValues vals);
961         [CCode (cheader_filename = "atk/atk.h", cname = "GSignalEmissionHook", has_target = false)]
962         public delegate bool SignalEmissionHook (GLib.SignalInvocationHint ihint, [CCode (array_length_pos = 1.9)] Atk.Value[] param_values, void* data);
963         [CCode (cheader_filename = "atk/atk.h", cname = "ATK_BINARY_AGE")]
964         [Version (since = "2.7.4")]
965         public const int BINARY_AGE;
966         [CCode (cheader_filename = "atk/atk.h", cname = "ATK_INTERFACE_AGE")]
967         [Version (since = "2.7.4")]
968         public const int INTERFACE_AGE;
969         [CCode (cheader_filename = "atk/atk.h", cname = "ATK_MAJOR_VERSION")]
970         [Version (since = "2.7.4")]
971         public const int MAJOR_VERSION;
972         [CCode (cheader_filename = "atk/atk.h", cname = "ATK_MICRO_VERSION")]
973         [Version (since = "2.7.4")]
974         public const int MICRO_VERSION;
975         [CCode (cheader_filename = "atk/atk.h", cname = "ATK_MINOR_VERSION")]
976         [Version (since = "2.7.4")]
977         public const int MINOR_VERSION;
978         [CCode (cheader_filename = "atk/atk.h", cname = "ATK_VERSION_MIN_REQUIRED")]
979         [Version (since = "2.14")]
980         public const int VERSION_MIN_REQUIRED;
981         [CCode (cheader_filename = "atk/atk.h")]
982         [Version (since = "2.8")]
983         public static uint get_binary_age ();
984         [CCode (cheader_filename = "atk/atk.h")]
985         [Version (since = "2.8")]
986         public static uint get_interface_age ();
987         [CCode (cheader_filename = "atk/atk.h")]
988         [Version (since = "2.8")]
989         public static uint get_major_version ();
990         [CCode (cheader_filename = "atk/atk.h")]
991         [Version (since = "2.8")]
992         public static uint get_micro_version ();
993         [CCode (cheader_filename = "atk/atk.h")]
994         [Version (since = "2.8")]
995         public static uint get_minor_version ();