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 Atk.Role 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 (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 ();
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);
205 public Atk.RelationType relation_type { get; set; }
207 public GLib.ValueArray target { owned get; set; }
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);
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*")]
231 [Version (since = "1.30")]
232 public virtual void embed (string plug_id);
233 [Version (since = "1.30")]
234 public bool is_occupied ();
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)]
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);
251 [CCode (cheader_filename = "atk/atk.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atk_text_range_get_type ()")]
253 public class TextRange {
254 public Atk.TextRectangle bounds;
255 public string content;
256 public int end_offset;
257 public int start_offset;
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)]
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);
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);
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);
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 ();
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);
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 ();
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);
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);
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 ();
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 ();
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);
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 ();
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 ();
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 ();
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);
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 ();
559 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
560 public struct Attribute {
564 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
565 public struct KeyEventStruct {
570 [CCode (cname = "string")]
571 public weak string str;
572 public uint16 keycode;
573 public uint32 timestamp;
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;
581 [CCode (cheader_filename = "atk/atk.h", type_id = "atk_rectangle_get_type ()")]
582 public struct Rectangle {
588 [CCode (cheader_filename = "atk/atk.h")]
590 public struct State : uint64 {
592 [CCode (cheader_filename = "atk/atk.h", has_type_id = false)]
593 public struct TextRectangle {
599 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_XY_", type_id = "atk_coord_type_get_type ()")]
600 public enum CoordType {
605 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_HYPERLINK_IS_", type_id = "atk_hyperlink_state_flags_get_type ()")]
607 public enum HyperlinkStateFlags {
610 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_KEY_EVENT_", type_id = "atk_key_event_type_get_type ()")]
611 public enum KeyEventType {
616 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_LAYER_", type_id = "atk_layer_get_type ()")]
627 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_RELATION_", type_id = "atk_relation_type_get_type ()")]
628 public enum RelationType {
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);
658 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_ROLE_", type_id = "atk_role_get_type ()")]
661 [CCode (cname = "ATK_ROLE_ACCEL_LABEL")]
751 DOCUMENT_SPREADSHEET,
752 DOCUMENT_PRESENTATION,
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);
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 {
806 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_STATE_", type_id = "atk_state_type_get_type ()")]
807 public enum StateType {
842 SUPPORTS_AUTOCOMPLETION,
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);
859 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_ATTR_", type_id = "atk_text_attribute_get_type ()")]
860 public enum TextAttribute {
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);
899 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_BOUNDARY_", type_id = "atk_text_boundary_get_type ()")]
900 public enum TextBoundary {
909 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_CLIP_", type_id = "atk_text_clip_type_get_type ()")]
910 public enum TextClipType {
916 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_TEXT_GRANULARITY_", type_id = "atk_text_granularity_get_type ()")]
917 public enum TextGranularity {
924 [CCode (cheader_filename = "atk/atk.h", cprefix = "ATK_VALUE_", type_id = "atk_value_type_get_type ()")]
925 public enum ValueType {
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 ();
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 ();