~ubuntu-branches/ubuntu/raring/vala-0.20/raring-proposed

« back to all changes in this revision

Viewing changes to vapi/atk.vapi

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-04-05 13:45:05 UTC
  • Revision ID: package-import@ubuntu.com-20130405134505-yyk3rec9904i7p8o
Tags: upstream-0.20.1
ImportĀ upstreamĀ versionĀ 0.20.1

Show diffs side-by-side

added added

removed removed

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