1 /* atk.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Atk", gir_namespace = "Atk", gir_version = "1.0", lower_case_cprefix = "atk_")]
5 [CCode (cheader_filename = "atk/atk.h")]
7 public class AttributeSet : GLib.SList<Atk.Attribute?> {
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 ();
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 ();
30 public virtual uint link_state ();
31 public int end_index { get; }
33 public int number_of_anchors { get; }
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 ();
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)]
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 ();
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);
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 ();
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;
68 [CCode (has_construct_function = false)]
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 ();
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);
103 public int accessible_component_layer { get; }
105 public int accessible_component_mdi_zorder { get; }
107 public string accessible_description { owned get; set; }
109 public int accessible_hypertext_nlinks { get; }
111 public string accessible_name { owned get; set; }
113 public Atk.Object accessible_parent { owned get; set; }
115 public int accessible_role { get; set; }
117 [Version (deprecated = true)]
118 public string accessible_table_caption { owned get; set; }
120 public Atk.Object accessible_table_caption_object { owned get; set; }
122 [Version (deprecated = true)]
123 public string accessible_table_column_description { owned get; set; }
125 [Version (deprecated = true)]
126 public Atk.Object accessible_table_column_header { owned get; set; }
128 [Version (deprecated = true)]
129 public string accessible_table_row_description { owned get; set; }
131 [Version (deprecated = true)]
132 public Atk.Object accessible_table_row_header { owned get; set; }
134 public Atk.Object accessible_table_summary { owned get; set; }
136 [Version (deprecated = true)]
137 public double accessible_value { get; set; }
138 public virtual signal void active_descendant_changed (void* child);
139 public virtual signal void children_changed (uint change_index, void* 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 (void* values);
143 public virtual signal void state_change (string name, bool state_set);
144 public virtual signal void visible_data_changed ();
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 ();
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*")]
158 [Version (since = "1.30")]
159 public string get_id ();
161 public virtual string get_object_id ();
163 [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_range_get_type ()")]
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")]
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 ();
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);
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 [Version (deprecated_since = "vala-0.16", replacement = "RelationType.for_name")]
205 public static Atk.RelationType type_for_name (string name);
206 [Version (deprecated_since = "vala-0.16", replacement = "RelationType.get_name")]
207 public static unowned string type_get_name (Atk.RelationType type);
208 [Version (deprecated_since = "vala-0.16", replacement = "RelationType.register")]
209 public static Atk.RelationType type_register (string name);
211 public Atk.RelationType relation_type { get; set; }
213 public GLib.ValueArray target { owned get; set; }
215 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_relation_set_get_type ()")]
216 public class RelationSet : GLib.Object {
217 [Version (deprecated = true)]
218 public weak GLib.GenericArray<Atk.Relation> relations;
219 [CCode (has_construct_function = false)]
220 public RelationSet ();
221 public void add (Atk.Relation relation);
222 [Version (since = "1.9")]
223 public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
224 public bool contains (Atk.RelationType relationship);
225 public bool contains_target (Atk.RelationType relationship, Atk.Object target);
226 public int get_n_relations ();
227 public unowned Atk.Relation get_relation (int i);
228 public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
229 public void remove (Atk.Relation relation);
231 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_socket_get_type ()")]
232 public class Socket : Atk.Object, Atk.Component {
233 [Version (deprecated = true)]
234 public weak string embedded_plug_id;
235 [CCode (has_construct_function = false, type = "AtkObject*")]
237 [Version (since = "1.30")]
238 public virtual void embed (string plug_id);
239 [Version (since = "1.30")]
240 public bool is_occupied ();
242 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_state_set_get_type ()")]
243 public class StateSet : GLib.Object {
244 [CCode (has_construct_function = false)]
246 public bool add_state (Atk.StateType type);
247 public void add_states ([CCode (array_length_cname = "n_types", array_length_pos = 1.1)] Atk.StateType[] types);
248 public Atk.StateSet and_sets (Atk.StateSet compare_set);
249 public void clear_states ();
250 public bool contains_state (Atk.StateType type);
251 public bool contains_states ([CCode (array_length_cname = "n_types", array_length_pos = 1.1)] Atk.StateType[] types);
252 public bool is_empty ();
253 public Atk.StateSet? or_sets (Atk.StateSet compare_set);
254 public bool remove_state (Atk.StateType type);
255 public Atk.StateSet xor_sets (Atk.StateSet compare_set);
257 [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_text_range_get_type ()")]
259 public class TextRange {
260 public Atk.TextRectangle bounds;
261 public string content;
262 public int end_offset;
263 public int start_offset;
265 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_util_get_type ()")]
266 public class Util : GLib.Object {
267 [CCode (has_construct_function = false)]
269 [CCode (cheader_filename = "atk/atk.h", cname = "atk_add_focus_tracker")]
270 [Version (deprecated = true, deprecated_since = "2.9.4")]
271 public static uint add_focus_tracker (Atk.EventListener focus_tracker);
272 [CCode (cheader_filename = "atk/atk.h", cname = "atk_add_global_event_listener")]
273 public static uint add_global_event_listener ([CCode (type = "GSignalEmissionHook")] Atk.SignalEmissionHook listener, string event_type);
274 [CCode (cheader_filename = "atk/atk.h", cname = "atk_add_key_event_listener")]
275 public static uint add_key_event_listener (Atk.KeySnoopFunc listener);
276 [CCode (cheader_filename = "atk/atk.h", cname = "atk_focus_tracker_init")]
277 [Version (deprecated = true, deprecated_since = "2.9.4")]
278 public static void focus_tracker_init (Atk.EventListenerInit init);
279 [CCode (cheader_filename = "atk/atk.h", cname = "atk_focus_tracker_notify")]
280 [Version (deprecated = true, deprecated_since = "2.9.4")]
281 public static void focus_tracker_notify (Atk.Object object);
282 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_focus_object")]
283 [Version (since = "1.6")]
284 public static unowned Atk.Object get_focus_object ();
285 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_root")]
286 public static unowned Atk.Object get_root ();
287 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_toolkit_name")]
288 public static unowned string get_toolkit_name ();
289 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_toolkit_version")]
290 public static unowned string get_toolkit_version ();
291 [CCode (cheader_filename = "atk/atk.h", cname = "atk_get_version")]
292 [Version (since = "1.20")]
293 public static unowned string get_version ();
294 [CCode (cheader_filename = "atk/atk.h", cname = "atk_remove_focus_tracker")]
295 [Version (deprecated = true, deprecated_since = "2.9.4")]
296 public static void remove_focus_tracker (uint tracker_id);
297 [CCode (cheader_filename = "atk/atk.h", cname = "atk_remove_global_event_listener")]
298 public static void remove_global_event_listener (uint listener_id);
299 [CCode (cheader_filename = "atk/atk.h", cname = "atk_remove_key_event_listener")]
300 public static void remove_key_event_listener (uint listener_id);
302 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_action_get_type ()")]
303 public interface Action : GLib.Object {
304 public abstract bool do_action (int i);
305 public abstract unowned string? get_description (int i);
306 public abstract unowned string? get_keybinding (int i);
307 public abstract unowned string? get_localized_name (int i);
308 public abstract int get_n_actions ();
309 public abstract unowned string? get_name (int i);
310 public abstract bool set_description (int i, string desc);
312 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_component_get_type ()")]
313 public interface Component : GLib.Object {
314 [Version (deprecated = true, deprecated_since = "2.9.4")]
315 public abstract uint add_focus_handler (Atk.FocusHandler handler);
316 public abstract bool contains (int x, int y, Atk.CoordType coord_type);
317 [Version (since = "1.12")]
318 public abstract double get_alpha ();
319 public abstract void get_extents (out int x, out int y, out int width, out int height, Atk.CoordType coord_type);
320 public abstract Atk.Layer get_layer ();
321 public abstract int get_mdi_zorder ();
322 [Version (deprecated = true)]
323 public abstract void get_position (out int x, out int y, Atk.CoordType coord_type);
324 [Version (deprecated = true)]
325 public abstract void get_size (out int width, out int height);
326 public abstract bool grab_focus ();
327 public abstract Atk.Object? ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
328 [Version (deprecated = true, deprecated_since = "2.9.4")]
329 public abstract void remove_focus_handler (uint handler_id);
330 public abstract bool set_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
331 public abstract bool set_position (int x, int y, Atk.CoordType coord_type);
332 public abstract bool set_size (int width, int height);
333 public virtual signal void bounds_changed (Atk.Rectangle bounds);
335 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_document_get_type ()")]
336 public interface Document : GLib.Object {
337 [CCode (vfunc_name = "get_document_attribute_value")]
338 [Version (since = "1.12")]
339 public virtual unowned string? get_attribute_value (string attribute_name);
340 [CCode (vfunc_name = "get_document_attributes")]
341 [Version (since = "1.12")]
342 public virtual unowned Atk.AttributeSet get_attributes ();
343 [Version (since = "2.12")]
344 public virtual int get_current_page_number ();
345 [Version (deprecated = true)]
346 public virtual void* get_document ();
347 [Version (deprecated_since = "vala-0.22", replacement = "Document.get_locale")]
348 public virtual unowned string get_document_locale ();
349 [Version (deprecated = true)]
350 public virtual unowned string get_document_type ();
351 [CCode (vfunc_name = "get_document_locale")]
352 [Version (deprecated = true, deprecated_since = "2.7.90")]
353 public virtual unowned string get_locale ();
354 [Version (since = "2.12")]
355 public virtual int get_page_count ();
356 [CCode (vfunc_name = "set_document_attribute")]
357 [Version (since = "1.12")]
358 public virtual bool set_attribute_value (string attribute_name, string attribute_value);
359 public signal void load_complete ();
360 public signal void load_stopped ();
361 [Version (since = "2.12")]
362 public signal void page_changed (int page_number);
363 public signal void reload ();
365 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_editable_text_get_type ()")]
366 public interface EditableText : GLib.Object {
367 public abstract void copy_text (int start_pos, int end_pos);
368 public abstract void cut_text (int start_pos, int end_pos);
369 public abstract void delete_text (int start_pos, int end_pos);
370 public abstract void insert_text (string string, int length, int position);
371 public abstract void paste_text (int position);
372 public abstract bool set_run_attributes (Atk.AttributeSet attrib_set, int start_offset, int end_offset);
373 public abstract void set_text_contents (string string);
375 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_hyperlink_impl_get_type ()")]
376 public interface HyperlinkImpl : GLib.Object {
377 [Version (since = "1.12")]
378 public abstract Atk.Hyperlink get_hyperlink ();
380 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_hypertext_get_type ()")]
381 public interface Hypertext : GLib.Object {
382 public abstract unowned Atk.Hyperlink get_link (int link_index);
383 public abstract int get_link_index (int char_index);
384 public abstract int get_n_links ();
385 public virtual signal void link_selected (int link_index);
387 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_image_get_type ()")]
388 public interface Image : GLib.Object {
389 public abstract unowned string get_image_description ();
390 [Version (since = "1.12")]
391 public abstract unowned string? get_image_locale ();
392 public abstract void get_image_position (out int x, out int y, Atk.CoordType coord_type);
393 public abstract void get_image_size (out int width, out int height);
394 public abstract bool set_image_description (string description);
396 [CCode (cheader_filename = "atk/atk.h")]
397 public interface Implementor : GLib.Object {
398 public abstract unowned Atk.Object ref_accessible ();
400 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_selection_get_type ()")]
401 public interface Selection : GLib.Object {
402 public abstract bool add_selection (int i);
403 public abstract bool clear_selection ();
404 public abstract int get_selection_count ();
405 public abstract bool is_child_selected (int i);
406 public abstract Atk.Object? ref_selection (int i);
407 public abstract bool remove_selection (int i);
408 public abstract bool select_all_selection ();
409 public virtual signal void selection_changed ();
411 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_streamable_content_get_type ()")]
412 public interface StreamableContent : GLib.Object {
413 public abstract unowned string get_mime_type (int i);
414 public abstract int get_n_mime_types ();
415 public abstract GLib.IOChannel get_stream (string mime_type);
416 [Version (since = "1.12")]
417 public abstract unowned string? get_uri (string mime_type);
419 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_table_get_type ()")]
420 public interface Table : GLib.Object {
421 public abstract bool add_column_selection (int column);
422 public abstract bool add_row_selection (int row);
423 public abstract unowned Atk.Object? get_caption ();
424 [Version (deprecated = true)]
425 public abstract int get_column_at_index (int index_);
426 public abstract unowned string get_column_description (int column);
427 public abstract int get_column_extent_at (int row, int column);
428 public abstract unowned Atk.Object? get_column_header (int column);
429 [Version (deprecated = true)]
430 public abstract int get_index_at (int row, int column);
431 public abstract int get_n_columns ();
432 public abstract int get_n_rows ();
433 [Version (deprecated = true)]
434 public abstract int get_row_at_index (int index_);
435 public abstract unowned string? get_row_description (int row);
436 public abstract int get_row_extent_at (int row, int column);
437 public abstract unowned Atk.Object? get_row_header (int row);
438 public abstract int get_selected_columns (int selected);
439 public abstract int get_selected_rows (int selected);
440 public abstract Atk.Object get_summary ();
441 public abstract bool is_column_selected (int column);
442 public abstract bool is_row_selected (int row);
443 public abstract bool is_selected (int row, int column);
444 public abstract Atk.Object ref_at (int row, int column);
445 public abstract bool remove_column_selection (int column);
446 public abstract bool remove_row_selection (int row);
447 public abstract void set_caption (Atk.Object caption);
448 public abstract void set_column_description (int column, string description);
449 public abstract void set_column_header (int column, Atk.Object header);
450 public abstract void set_row_description (int row, string description);
451 public abstract void set_row_header (int row, Atk.Object header);
452 public abstract void set_summary (Atk.Object accessible);
453 public virtual signal void column_deleted (int column, int num_deleted);
454 public virtual signal void column_inserted (int column, int num_inserted);
455 public virtual signal void column_reordered ();
456 public virtual signal void model_changed ();
457 public virtual signal void row_deleted (int row, int num_deleted);
458 public virtual signal void row_inserted (int row, int num_inserted);
459 public virtual signal void row_reordered ();
461 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_table_cell_get_type ()")]
462 public interface TableCell : Atk.Object {
463 [Version (since = "2.12")]
464 public abstract GLib.GenericArray<Atk.Object> get_column_header_cells ();
465 [Version (since = "2.12")]
466 public abstract int get_column_span ();
467 [Version (since = "2.12")]
468 public abstract bool get_position (out int row, out int column);
469 [Version (since = "2.12")]
470 public abstract bool get_row_column_span (out int row, out int column, out int row_span, out int column_span);
471 [Version (since = "2.12")]
472 public abstract GLib.GenericArray<Atk.Object> get_row_header_cells ();
473 [Version (since = "2.12")]
474 public abstract int get_row_span ();
475 [Version (since = "2.12")]
476 public abstract Atk.Object get_table ();
478 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_text_get_type ()")]
479 public interface Text : GLib.Object {
480 public abstract bool add_selection (int start_offset, int end_offset);
481 [Version (deprecated_since = "vala-0.16", replacement = "TextAttribute.for_name")]
482 public static Atk.TextAttribute attribute_for_name (string name);
483 [Version (deprecated_since = "vala-0.16", replacement = "TextAttribute.get_name")]
484 public static unowned string attribute_get_name (Atk.TextAttribute attr);
485 [Version (deprecated_since = "vala-0.16", replacement = "TextAttribute.get_value")]
486 public static unowned string attribute_get_value (Atk.TextAttribute attr, int index_);
487 [Version (deprecated_since = "vala-0.16", replacement = "TextAttribute.register")]
488 public static Atk.TextAttribute attribute_register (string name);
489 [Version (since = "1.3")]
490 public static void free_ranges ([CCode (array_length = false)] Atk.TextRange[] ranges);
491 [CCode (array_length = false, array_null_terminated = true, cname = "atk_text_get_bounded_ranges")]
492 [Version (since = "1.3")]
493 public virtual Atk.TextRange[] get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
494 public abstract int get_caret_offset ();
495 public abstract unichar get_character_at_offset (int offset);
496 public abstract int get_character_count ();
497 public abstract void get_character_extents (int offset, out int x, out int y, out int width, out int height, Atk.CoordType coords);
498 public abstract Atk.AttributeSet get_default_attributes ();
499 public abstract int get_n_selections ();
500 public abstract int get_offset_at_point (int x, int y, Atk.CoordType coords);
501 [Version (since = "1.3")]
502 public abstract Atk.TextRectangle get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type);
503 public abstract Atk.AttributeSet get_run_attributes (int offset, out int start_offset, out int end_offset);
504 public abstract string get_selection (int selection_num, out int start_offset, out int end_offset);
505 [Version (since = "2.10")]
506 public abstract string? get_string_at_offset (int offset, Atk.TextGranularity granularity, out int start_offset, out int end_offset);
507 public abstract string get_text (int start_offset, int end_offset);
508 [Version (deprecated = true, deprecated_since = "2.9.3")]
509 public abstract string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
510 [Version (deprecated = true)]
511 public abstract string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
512 [Version (deprecated = true, deprecated_since = "2.9.3")]
513 public abstract string get_text_before_offset (int offset, Atk.TextBoundary boundary_type, out int start_offset, out int end_offset);
514 public abstract bool remove_selection (int selection_num);
515 public abstract bool set_caret_offset (int offset);
516 public abstract bool set_selection (int selection_num, int start_offset, int end_offset);
517 public virtual signal void text_attributes_changed ();
518 public virtual signal void text_caret_moved (int location);
519 [Version (deprecated = true, deprecated_since = "2.9.4")]
520 public virtual signal void text_changed (int position, int length);
521 public signal void text_insert (int arg1, int arg2, string arg3);
522 public signal void text_remove (int arg1, int arg2, string arg3);
523 public virtual signal void text_selection_changed ();
525 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_value_get_type ()")]
526 public interface Value : GLib.Object {
527 [Version (deprecated = true)]
528 public abstract GLib.Value get_current_value ();
529 [Version (since = "2.12")]
530 public abstract double get_increment ();
531 [Version (deprecated = true)]
532 public abstract GLib.Value get_maximum_value ();
533 [Version (deprecated = true, since = "1.12")]
534 public abstract GLib.Value get_minimum_increment ();
535 [Version (deprecated = true)]
536 public abstract GLib.Value get_minimum_value ();
537 [Version (since = "2.12")]
538 public abstract Atk.Range? get_range ();
539 [Version (since = "2.12")]
540 public abstract GLib.SList<Atk.Range> get_sub_ranges ();
541 [Version (since = "2.12")]
542 public abstract void get_value_and_text (out double value, out string text);
543 [Version (deprecated = true)]
544 public abstract bool set_current_value (GLib.Value value);
545 [Version (since = "2.12")]
546 public abstract void set_value (double new_value);
547 [Version (since = "2.12")]
548 public signal void value_changed (double value, string text);
550 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_window_get_type ()")]
551 public interface Window : Atk.Object {
552 [Version (since = "2.2")]
553 public signal void activate ();
554 [Version (since = "2.2")]
555 public signal void create ();
556 [Version (since = "2.2")]
557 public signal void deactivate ();
558 [Version (since = "2.2")]
559 public signal void destroy ();
560 [Version (since = "2.2")]
561 public signal void maximize ();
562 [Version (since = "2.2")]
563 public signal void minimize ();
564 [Version (since = "2.2")]
565 public signal void move ();
566 [Version (since = "2.2")]
567 public signal void resize ();
568 [Version (since = "2.2")]
569 public signal void restore ();
571 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
572 public struct Attribute {
576 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
577 public struct KeyEventStruct {
582 [CCode (cname = "string")]
583 public weak string str;
584 public uint16 keycode;
585 public uint32 timestamp;
587 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
588 public struct PropertyValues {
589 public weak string property_name;
590 public GLib.Value old_value;
591 public GLib.Value new_value;
593 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_rectangle_get_type ()")]
594 public struct Rectangle {
600 [CCode (cheader_filename = "atk/atk.h")]
602 public struct State : uint64 {
603 [Version (deprecated_since = "vala-0.16", replacement = "StateType.for_name")]
604 public static Atk.StateType type_for_name (string name);
605 [Version (deprecated_since = "vala-0.16", replacement = "StateType.get_name")]
606 public static unowned string type_get_name (Atk.StateType type);
607 [Version (deprecated_since = "vala-0.16", replacement = "StateType.register")]
608 public static Atk.StateType type_register (string name);
610 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
611 public struct TextRectangle {
617 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_XY_", type_id = "atk_coord_type_get_type ()")]
618 public enum CoordType {
622 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_HYPERLINK_IS_", type_id = "atk_hyperlink_state_flags_get_type ()")]
624 public enum HyperlinkStateFlags {
627 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_KEY_EVENT_", type_id = "atk_key_event_type_get_type ()")]
628 public enum KeyEventType {
633 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_LAYER_", type_id = "atk_layer_get_type ()")]
644 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_RELATION_", type_id = "atk_relation_type_get_type ()")]
645 public enum RelationType {
668 [CCode (cheader_filename = "atk/atk.h")]
669 public static Atk.RelationType for_name (string name);
670 [CCode (cheader_filename = "atk/atk.h")]
671 public static unowned string get_name (Atk.RelationType type);
672 [CCode (cheader_filename = "atk/atk.h")]
673 public static Atk.RelationType register (string name);
675 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_ROLE_", type_id = "atk_role_get_type ()")]
677 [Version (deprecated_since = "vala-0.22", replacement = "Role.ACCELERATOR_LABEL")]
680 [CCode (cname = "ATK_ROLE_ACCEL_LABEL")]
770 DOCUMENT_SPREADSHEET,
771 DOCUMENT_PRESENTATION,
804 [CCode (cheader_filename = "atk/atk.h")]
805 public static Atk.Role for_name (string name);
806 [CCode (cheader_filename = "atk/atk.h")]
807 public static unowned string get_localized_name (Atk.Role role);
808 [CCode (cheader_filename = "atk/atk.h")]
809 public static unowned string get_name (Atk.Role role);
810 [CCode (cheader_filename = "atk/atk.h")]
811 [Version (deprecated = true)]
812 public static Atk.Role register (string name);
814 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_STATE_", type_id = "atk_state_type_get_type ()")]
815 public enum StateType {
850 SUPPORTS_AUTOCOMPLETION,
860 [CCode (cheader_filename = "atk/atk.h")]
861 public static Atk.StateType for_name (string name);
862 [CCode (cheader_filename = "atk/atk.h")]
863 public static unowned string get_name (Atk.StateType type);
864 [CCode (cheader_filename = "atk/atk.h")]
865 public static Atk.StateType register (string name);
867 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_ATTR_", type_id = "atk_text_attribute_get_type ()")]
868 public enum TextAttribute {
898 [CCode (cheader_filename = "atk/atk.h")]
899 public static Atk.TextAttribute for_name (string name);
900 [CCode (cheader_filename = "atk/atk.h")]
901 public static unowned string get_name (Atk.TextAttribute attr);
902 [CCode (cheader_filename = "atk/atk.h")]
903 public static unowned string? get_value (Atk.TextAttribute attr, int index_);
904 [CCode (cheader_filename = "atk/atk.h")]
905 public static Atk.TextAttribute register (string name);
907 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_BOUNDARY_", type_id = "atk_text_boundary_get_type ()")]
908 public enum TextBoundary {
917 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_CLIP_", type_id = "atk_text_clip_type_get_type ()")]
918 public enum TextClipType {
924 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_GRANULARITY_", type_id = "atk_text_granularity_get_type ()")]
925 public enum TextGranularity {
932 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_VALUE_", type_id = "atk_value_type_get_type ()")]
933 public enum ValueType {
950 [CCode (cheader_filename = "atk/atk.h")]
951 public static unowned string get_localized_name (Atk.ValueType value_type);
952 [CCode (cheader_filename = "atk/atk.h")]
953 public static unowned string get_name (Atk.ValueType value_type);
955 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
956 public delegate void EventListener (Atk.Object obj);
957 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
958 public delegate void EventListenerInit ();
959 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
960 [Version (deprecated = true, deprecated_since = "2.9.4")]
961 public delegate void FocusHandler (Atk.Object object, bool focus_in);
962 [CCode (cheader_filename = "atk/atk.h", instance_pos = 0.9)]
963 public delegate bool Function ();
964 [CCode (cheader_filename = "atk/atk.h", instance_pos = 1.9)]
965 public delegate int KeySnoopFunc (Atk.KeyEventStruct event);
966 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
967 [Version (deprecated = true)]
968 public delegate void PropertyChangeHandler (Atk.Object obj, Atk.PropertyValues vals);
969 [CCode (cheader_filename = "atk/atk.h", cname = "GSignalEmissionHook", has_target = false)]
970 public delegate bool SignalEmissionHook (GLib.SignalInvocationHint ihint, [CCode (array_length_pos = 1.9)] Atk.Value[] param_values, void* data);
971 [CCode (cheader_filename = "atk/atk.h", cname = "ATK_BINARY_AGE")]
972 [Version (since = "2.7.4")]
973 public const int BINARY_AGE;
974 [CCode (cheader_filename = "atk/atk.h", cname = "ATK_INTERFACE_AGE")]
975 [Version (since = "2.7.4")]
976 public const int INTERFACE_AGE;
977 [CCode (cheader_filename = "atk/atk.h", cname = "ATK_MAJOR_VERSION")]
978 [Version (since = "2.7.4")]
979 public const int MAJOR_VERSION;
980 [CCode (cheader_filename = "atk/atk.h", cname = "ATK_MICRO_VERSION")]
981 [Version (since = "2.7.4")]
982 public const int MICRO_VERSION;
983 [CCode (cheader_filename = "atk/atk.h", cname = "ATK_MINOR_VERSION")]
984 [Version (since = "2.7.4")]
985 public const int MINOR_VERSION;
986 [CCode (cheader_filename = "atk/atk.h", cname = "ATK_VERSION_MIN_REQUIRED")]
987 [Version (since = "2.14")]
988 public const int VERSION_MIN_REQUIRED;
989 [CCode (cheader_filename = "atk/atk.h")]
990 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.add_focus_tracker")]
991 public static uint add_focus_tracker (Atk.EventListener focus_tracker);
992 [CCode (cheader_filename = "atk/atk.h")]
993 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.add_global_event_listener")]
994 public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
995 [CCode (cheader_filename = "atk/atk.h")]
996 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.focus_tracker_init")]
997 public static void focus_tracker_init (Atk.EventListenerInit init);
998 [CCode (cheader_filename = "atk/atk.h")]
999 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.focus_tracker_notify")]
1000 public static void focus_tracker_notify (Atk.Object object);
1001 [CCode (cheader_filename = "atk/atk.h")]
1002 [Version (since = "2.8")]
1003 public static uint get_binary_age ();
1004 [CCode (cheader_filename = "atk/atk.h")]
1005 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Registry.get_default.")]
1006 public static unowned Atk.Registry get_default_registry ();
1007 [CCode (cheader_filename = "atk/atk.h")]
1008 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.get_focus_object")]
1009 public static unowned Atk.Object get_focus_object ();
1010 [CCode (cheader_filename = "atk/atk.h")]
1011 [Version (since = "2.8")]
1012 public static uint get_interface_age ();
1013 [CCode (cheader_filename = "atk/atk.h")]
1014 [Version (since = "2.8")]
1015 public static uint get_major_version ();
1016 [CCode (cheader_filename = "atk/atk.h")]
1017 [Version (since = "2.8")]
1018 public static uint get_micro_version ();
1019 [CCode (cheader_filename = "atk/atk.h")]
1020 [Version (since = "2.8")]
1021 public static uint get_minor_version ();
1022 [CCode (cheader_filename = "atk/atk.h")]
1023 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.get_root")]
1024 public static unowned Atk.Object get_root ();
1025 [CCode (cheader_filename = "atk/atk.h")]
1026 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.get_toolkit_name")]
1027 public static unowned string get_toolkit_name ();
1028 [CCode (cheader_filename = "atk/atk.h")]
1029 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.get_toolkit_version")]
1030 public static unowned string get_toolkit_version ();
1031 [CCode (cheader_filename = "atk/atk.h")]
1032 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.get_version")]
1033 public static unowned string get_version ();
1034 [CCode (cheader_filename = "atk/atk.h")]
1035 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.remove_focus_tracker")]
1036 public static void remove_focus_tracker (uint tracker_id);
1037 [CCode (cheader_filename = "atk/atk.h")]
1038 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.remove_global_event_listener")]
1039 public static void remove_global_event_listener (uint listener_id);
1040 [CCode (cheader_filename = "atk/atk.h")]
1041 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Util.remove_key_event_listener")]
1042 public static void remove_key_event_listener (uint listener_id);
1043 [CCode (cheader_filename = "atk/atk.h")]
1044 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Role.for_name")]
1045 public static Atk.Role role_for_name (string name);
1046 [CCode (cheader_filename = "atk/atk.h")]
1047 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Role.get_localized_name")]
1048 public static unowned string role_get_localized_name (Atk.Role role);
1049 [CCode (cheader_filename = "atk/atk.h")]
1050 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Role.get_name")]
1051 public static unowned string role_get_name (Atk.Role role);
1052 [CCode (cheader_filename = "atk/atk.h")]
1053 [Version (deprecated_since = "vala-0.16", replacement = "Atk.Role.register")]
1054 public static Atk.Role role_register (string name);