1 /* atk.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Atk", lower_case_cprefix = "atk_", gir_namespace = "Atk", gir_version = "1.0")]
6 [CCode (cheader_filename = "atk/atk.h")]
7 public class Attribute {
8 public weak string name;
9 public weak string value;
12 [CCode (cheader_filename = "atk/atk.h")]
13 public class AttributeSet {
15 [CCode (cheader_filename = "atk/atk.h")]
16 public class GObjectAccessible : Atk.Object {
17 [CCode (has_construct_function = false)]
18 protected GObjectAccessible ();
19 public static unowned Atk.Object for_object (GLib.Object obj);
20 public unowned GLib.Object get_object ();
22 [CCode (cheader_filename = "atk/atk.h")]
23 public class Hyperlink : GLib.Object, Atk.Action {
24 [CCode (has_construct_function = false)]
25 protected Hyperlink ();
26 public virtual int get_end_index ();
27 public virtual int get_n_anchors ();
28 public virtual unowned Atk.Object get_object (int i);
29 public virtual int get_start_index ();
30 public virtual unowned string get_uri (int i);
31 public bool is_inline ();
32 public virtual bool is_selected_link ();
33 public virtual bool is_valid ();
35 public virtual uint link_state ();
36 public int end_index { get; }
38 public int number_of_anchors { get; }
40 public bool selected_link { get; }
41 public int start_index { get; }
42 public virtual signal void link_activated ();
45 [CCode (cheader_filename = "atk/atk.h")]
46 public class KeyEventStruct {
47 public uint16 keycode;
51 [CCode (cname = "string")]
52 public weak string str;
53 public uint32 timestamp;
56 [CCode (cheader_filename = "atk/atk.h")]
57 public class Misc : GLib.Object {
58 [CCode (has_construct_function = false)]
60 public static unowned Atk.Misc get_instance ();
61 public virtual void threads_enter ();
62 public virtual void threads_leave ();
64 [CCode (cheader_filename = "atk/atk.h")]
65 public class NoOpObject : Atk.Object, Atk.Component, Atk.Action, Atk.EditableText, Atk.Image, Atk.Selection, Atk.Table, Atk.Text, Atk.Hypertext, Atk.Value, Atk.Document {
66 [CCode (type = "AtkObject*", has_construct_function = false)]
67 public NoOpObject (GLib.Object obj);
69 [CCode (cheader_filename = "atk/atk.h")]
70 public class NoOpObjectFactory : Atk.ObjectFactory {
71 [CCode (type = "AtkObjectFactory*", has_construct_function = false)]
72 public NoOpObjectFactory ();
74 [CCode (cheader_filename = "atk/atk.h")]
75 public class Object : GLib.Object {
76 public weak string description;
77 public Atk.Layer layer;
78 public weak string name;
79 public weak Atk.RelationSet relation_set;
81 [CCode (has_construct_function = false)]
83 public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
84 public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
85 public virtual unowned Atk.AttributeSet get_attributes ();
86 public virtual unowned string get_description ();
87 public virtual int get_index_in_parent ();
88 public virtual Atk.Layer get_layer ();
89 public virtual int get_mdi_zorder ();
90 public int get_n_accessible_children ();
92 public virtual int get_n_children ();
93 public virtual unowned string get_name ();
94 public virtual unowned Atk.Object get_parent ();
95 public virtual Atk.Role get_role ();
96 public virtual void initialize (void* data);
97 public void notify_state_change (Atk.State state, bool value);
98 public unowned Atk.Object ref_accessible_child (int i);
100 public virtual unowned Atk.Object ref_child (int i);
101 public virtual unowned Atk.RelationSet ref_relation_set ();
102 public virtual unowned Atk.StateSet ref_state_set ();
103 public virtual void remove_property_change_handler (uint handler_id);
104 public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
105 public virtual void set_description (string description);
106 public virtual void set_name (string name);
107 public virtual void set_parent (Atk.Object parent);
108 public virtual void set_role (Atk.Role role);
110 public int accessible_component_layer { get; }
112 public int accessible_component_mdi_zorder { get; }
114 public string accessible_description { owned get; set; }
116 public int accessible_hypertext_nlinks { get; }
118 public string accessible_name { owned get; set; }
120 public Atk.Object accessible_parent { owned get; set; }
122 public int accessible_role { get; set; }
124 public string accessible_table_caption { owned get; set; }
126 public Atk.Object accessible_table_caption_object { owned get; set; }
128 public string accessible_table_column_description { owned get; set; }
130 public Atk.Object accessible_table_column_header { owned get; set; }
132 public string accessible_table_row_description { owned get; set; }
134 public Atk.Object accessible_table_row_header { owned get; set; }
136 public Atk.Object accessible_table_summary { owned get; set; }
138 public double accessible_value { get; set; }
139 public virtual signal void active_descendant_changed (void* child);
140 public virtual signal void children_changed (uint change_index, void* changed_child);
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")]
147 public class ObjectFactory : GLib.Object {
148 [CCode (has_construct_function = false)]
149 protected ObjectFactory ();
150 public virtual unowned Atk.Object create_accessible (GLib.Object obj);
151 public virtual GLib.Type get_accessible_type ();
152 public virtual void invalidate ();
154 [CCode (cheader_filename = "atk/atk.h")]
155 public class Plug : Atk.Object {
156 [CCode (type = "AtkObject*", has_construct_function = false)]
158 public unowned string get_id ();
160 public virtual unowned string get_object_id ();
163 [CCode (cheader_filename = "atk/atk.h")]
164 public class PropertyValues {
165 public GLib.Value new_value;
166 public GLib.Value old_value;
167 public weak string property_name;
169 [CCode (cheader_filename = "atk/atk.h")]
170 public class Registry : GLib.Object {
171 public weak GLib.HashTable factory_singleton_cache;
172 public weak GLib.HashTable factory_type_registry;
173 [CCode (has_construct_function = false)]
174 protected Registry ();
175 public unowned Atk.ObjectFactory get_factory (GLib.Type type);
176 public GLib.Type get_factory_type (GLib.Type type);
177 public void set_factory_type (GLib.Type type, GLib.Type factory_type);
179 [CCode (cheader_filename = "atk/atk.h")]
180 public class Relation : GLib.Object {
181 public Atk.RelationType relationship;
182 [CCode (has_construct_function = false)]
183 public Relation (Atk.Object[] targets, Atk.RelationType relationship);
184 public void add_target (Atk.Object target);
185 public Atk.RelationType get_relation_type ();
186 public unowned GLib.GenericArray get_target ();
187 public bool remove_target (Atk.Object target);
188 public static Atk.RelationType type_for_name (string name);
189 public static unowned string type_get_name (Atk.RelationType type);
190 public static Atk.RelationType type_register (string name);
192 public Atk.RelationType relation_type { get; set; }
194 public GLib.ValueArray target { owned get; set; }
196 [CCode (cheader_filename = "atk/atk.h")]
197 public class RelationSet : GLib.Object {
198 public weak GLib.GenericArray relations;
199 [CCode (has_construct_function = false)]
200 public RelationSet ();
201 public void add (Atk.Relation relation);
202 public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
203 public bool contains (Atk.RelationType relationship);
204 public int get_n_relations ();
205 public unowned Atk.Relation get_relation (int i);
206 public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
207 public void remove (Atk.Relation relation);
209 [CCode (cheader_filename = "atk/atk.h")]
210 public class Socket : Atk.Object {
211 public weak string embedded_plug_id;
212 [CCode (type = "AtkObject*", has_construct_function = false)]
214 public virtual void embed (string plug_id);
215 public bool is_occupied ();
217 [CCode (cheader_filename = "atk/atk.h")]
218 public class StateSet : GLib.Object {
219 [CCode (has_construct_function = false)]
221 public bool add_state (Atk.StateType type);
222 public void add_states (Atk.StateType[] types);
223 public unowned Atk.StateSet and_sets (Atk.StateSet compare_set);
224 public void clear_states ();
225 public bool contains_state (Atk.StateType type);
226 public bool contains_states (Atk.StateType[] types);
227 public bool is_empty ();
228 public unowned Atk.StateSet or_sets (Atk.StateSet compare_set);
229 public bool remove_state (Atk.StateType type);
230 public unowned Atk.StateSet xor_sets (Atk.StateSet compare_set);
233 [CCode (cheader_filename = "atk/atk.h")]
234 public class TextRange {
235 public weak Atk.TextRectangle bounds;
236 public weak string content;
237 public int end_offset;
238 public int start_offset;
241 [CCode (cheader_filename = "atk/atk.h")]
242 public class TextRectangle {
248 [CCode (cheader_filename = "atk/atk.h")]
249 public class Util : GLib.Object {
250 [CCode (has_construct_function = false)]
253 public virtual uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
255 public virtual uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
257 public virtual unowned Atk.Object get_root ();
259 public virtual unowned string get_toolkit_name ();
261 public virtual unowned string get_toolkit_version ();
263 public virtual void remove_global_event_listener (uint listener_id);
265 public virtual void remove_key_event_listener (uint listener_id);
267 [CCode (cheader_filename = "atk/atk.h")]
268 public interface Action {
269 public abstract bool do_action (int i);
270 public abstract unowned string get_description (int i);
271 public abstract unowned string get_keybinding (int i);
272 public abstract unowned string get_localized_name (int i);
273 public abstract int get_n_actions ();
274 public abstract unowned string get_name (int i);
275 public abstract bool set_description (int i, string desc);
277 [CCode (cheader_filename = "atk/atk.h")]
278 public interface Component {
279 public abstract uint add_focus_handler (Atk.FocusHandler handler);
280 public abstract bool contains (int x, int y, Atk.CoordType coord_type);
281 public abstract double get_alpha ();
282 public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
283 public abstract Atk.Layer get_layer ();
284 public abstract int get_mdi_zorder ();
285 public abstract void get_position (int x, int y, Atk.CoordType coord_type);
286 public abstract void get_size (int width, int height);
287 public abstract bool grab_focus ();
288 public abstract unowned Atk.Object ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
289 public abstract void remove_focus_handler (uint handler_id);
290 public abstract bool set_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
291 public abstract bool set_position (int x, int y, Atk.CoordType coord_type);
292 public abstract bool set_size (int width, int height);
293 public signal void bounds_changed (Atk.Rectangle bounds);
295 [CCode (cheader_filename = "atk/atk.h")]
296 public interface Document {
297 public unowned string get_attribute_value (string attribute_name);
298 public unowned Atk.AttributeSet get_attributes ();
299 public abstract void* get_document ();
301 public abstract unowned string get_document_attribute_value (string attribute_name);
303 public abstract unowned Atk.AttributeSet get_document_attributes ();
305 public abstract unowned string get_document_locale ();
306 public abstract unowned string get_document_type ();
307 public unowned string get_locale ();
308 public bool set_attribute_value (string attribute_name, string attribute_value);
310 public abstract bool set_document_attribute (string attribute_name, string attribute_value);
311 public signal void load_complete ();
312 public signal void load_stopped ();
313 public signal void reload ();
315 [CCode (cheader_filename = "atk/atk.h")]
316 public interface EditableText {
317 public abstract void copy_text (int start_pos, int end_pos);
318 public abstract void cut_text (int start_pos, int end_pos);
319 public abstract void delete_text (int start_pos, int end_pos);
320 public abstract void insert_text (string str, int length, int position);
321 public abstract void paste_text (int position);
322 public abstract bool set_run_attributes (Atk.AttributeSet attrib_set, int start_offset, int end_offset);
323 public abstract void set_text_contents (string str);
325 [CCode (cheader_filename = "atk/atk.h")]
326 public interface HyperlinkImpl {
327 public abstract unowned Atk.Hyperlink get_hyperlink ();
329 [CCode (cheader_filename = "atk/atk.h")]
330 public interface Hypertext {
331 public abstract unowned Atk.Hyperlink get_link (int link_index);
332 public abstract int get_link_index (int char_index);
333 public abstract int get_n_links ();
334 public signal void link_selected (int link_index);
336 [CCode (cheader_filename = "atk/atk.h")]
337 public interface Image {
338 public abstract unowned string get_image_description ();
339 public abstract unowned string get_image_locale ();
340 public abstract void get_image_position (int x, int y, Atk.CoordType coord_type);
341 public abstract void get_image_size (int width, int height);
342 public abstract bool set_image_description (string description);
344 [CCode (cheader_filename = "atk/atk.h")]
345 public interface Implementor {
346 public abstract unowned Atk.Object ref_accessible ();
348 [CCode (cheader_filename = "atk/atk.h")]
349 public interface Selection {
350 public abstract bool add_selection (int i);
351 public abstract bool clear_selection ();
352 public abstract int get_selection_count ();
353 public abstract bool is_child_selected (int i);
354 public abstract unowned Atk.Object ref_selection (int i);
355 public abstract bool remove_selection (int i);
356 public abstract bool select_all_selection ();
357 public signal void selection_changed ();
359 [CCode (cheader_filename = "atk/atk.h")]
360 public interface StreamableContent {
361 public abstract unowned string get_mime_type (int i);
362 public abstract int get_n_mime_types ();
363 public abstract unowned GLib.IOChannel get_stream (string mime_type);
364 public abstract unowned string get_uri (string mime_type);
366 [CCode (cheader_filename = "atk/atk.h")]
367 public interface Table {
368 public abstract bool add_column_selection (int column);
369 public abstract bool add_row_selection (int row);
370 public abstract unowned Atk.Object get_caption ();
371 public abstract int get_column_at_index (int index_);
372 public abstract unowned string get_column_description (int column);
373 public abstract int get_column_extent_at (int row, int column);
374 public abstract unowned Atk.Object get_column_header (int column);
375 public abstract int get_index_at (int row, int column);
376 public abstract int get_n_columns ();
377 public abstract int get_n_rows ();
378 public abstract int get_row_at_index (int index_);
379 public abstract unowned string get_row_description (int row);
380 public abstract int get_row_extent_at (int row, int column);
381 public abstract unowned Atk.Object get_row_header (int row);
382 public abstract int get_selected_columns (int selected);
383 public abstract int get_selected_rows (int selected);
384 public abstract unowned Atk.Object get_summary ();
385 public abstract bool is_column_selected (int column);
386 public abstract bool is_row_selected (int row);
387 public abstract bool is_selected (int row, int column);
388 public abstract unowned Atk.Object ref_at (int row, int column);
389 public abstract bool remove_column_selection (int column);
390 public abstract bool remove_row_selection (int row);
391 public abstract void set_caption (Atk.Object caption);
392 public abstract void set_column_description (int column, string description);
393 public abstract void set_column_header (int column, Atk.Object header);
394 public abstract void set_row_description (int row, string description);
395 public abstract void set_row_header (int row, Atk.Object header);
396 public abstract void set_summary (Atk.Object accessible);
397 public signal void column_deleted (int column, int num_deleted);
398 public signal void column_inserted (int column, int num_inserted);
399 public signal void column_reordered ();
400 public signal void model_changed ();
401 public signal void row_deleted (int row, int num_deleted);
402 public signal void row_inserted (int row, int num_inserted);
403 public signal void row_reordered ();
405 [CCode (cheader_filename = "atk/atk.h")]
406 public interface Text {
407 public abstract bool add_selection (int start_offset, int end_offset);
408 public static Atk.TextAttribute attribute_for_name (string name);
409 public static unowned string attribute_get_name (Atk.TextAttribute attr);
410 public static unowned string attribute_get_value (Atk.TextAttribute attr, int index_);
411 public static Atk.TextAttribute attribute_register (string name);
412 public static void free_ranges (out unowned Atk.TextRange ranges);
413 public abstract unowned Atk.TextRange get_bounded_ranges (Atk.TextRectangle rect, Atk.CoordType coord_type, Atk.TextClipType x_clip_type, Atk.TextClipType y_clip_type);
414 public abstract int get_caret_offset ();
415 public abstract unichar get_character_at_offset (int offset);
416 public abstract int get_character_count ();
417 public abstract void get_character_extents (int offset, int x, int y, int width, int height, Atk.CoordType coords);
418 public abstract unowned Atk.AttributeSet get_default_attributes ();
419 public abstract int get_n_selections ();
420 public abstract int get_offset_at_point (int x, int y, Atk.CoordType coords);
421 public abstract void get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type, Atk.TextRectangle rect);
422 public abstract unowned Atk.AttributeSet get_run_attributes (int offset, int start_offset, int end_offset);
423 public abstract unowned string get_selection (int selection_num, int start_offset, int end_offset);
424 public abstract unowned string get_text (int start_offset, int end_offset);
425 public abstract unowned string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
426 public abstract unowned string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
427 public abstract unowned string get_text_before_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
428 public abstract bool remove_selection (int selection_num);
429 public abstract bool set_caret_offset (int offset);
430 public abstract bool set_selection (int selection_num, int start_offset, int end_offset);
431 public signal void text_attributes_changed ();
432 public signal void text_caret_moved (int location);
433 public signal void text_changed (int position, int length);
434 public signal void text_selection_changed ();
436 [CCode (cheader_filename = "atk/atk.h")]
437 public interface Value {
438 public abstract void get_current_value (GLib.Value value);
439 public abstract void get_maximum_value (GLib.Value value);
440 public abstract void get_minimum_increment (GLib.Value value);
441 public abstract void get_minimum_value (GLib.Value value);
442 public abstract bool set_current_value (GLib.Value value);
444 [CCode (type_id = "ATK_TYPE_RECTANGLE", cheader_filename = "atk/atk.h")]
445 public struct Rectangle {
451 [CCode (cheader_filename = "atk/atk.h")]
453 [IntegerType (rank = 11)]
454 public struct State : uint64 {
455 public static Atk.StateType type_for_name (string name);
456 public static unowned string type_get_name (Atk.StateType type);
457 public static Atk.StateType type_register (string name);
459 [CCode (cprefix = "ATK_XY_", cheader_filename = "atk/atk.h")]
460 public enum CoordType {
464 [CCode (cprefix = "ATK_HYPERLINK_IS_", cheader_filename = "atk/atk.h")]
466 public enum HyperlinkStateFlags {
469 [CCode (cprefix = "ATK_KEY_EVENT_", cheader_filename = "atk/atk.h")]
470 public enum KeyEventType {
475 [CCode (cprefix = "ATK_LAYER_", cheader_filename = "atk/atk.h")]
486 [CCode (cprefix = "ATK_RELATION_", cheader_filename = "atk/atk.h")]
487 public enum RelationType {
507 [CCode (cprefix = "ATK_ROLE_", cheader_filename = "atk/atk.h")]
599 [CCode (cprefix = "ATK_STATE_", cheader_filename = "atk/atk.h")]
600 public enum StateType {
635 SUPPORTS_AUTOCOMPLETION,
642 [CCode (cprefix = "ATK_TEXT_ATTR_", cheader_filename = "atk/atk.h")]
643 public enum TextAttribute {
674 [CCode (cprefix = "ATK_TEXT_BOUNDARY_", cheader_filename = "atk/atk.h")]
675 public enum TextBoundary {
684 [CCode (cprefix = "ATK_TEXT_CLIP_", cheader_filename = "atk/atk.h")]
685 public enum TextClipType {
691 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
692 public delegate void EventListener (Atk.Object obj);
693 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
694 public delegate void EventListenerInit ();
695 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
696 public delegate void FocusHandler (Atk.Object p1, bool p2);
697 [CCode (cheader_filename = "atk/atk.h")]
698 public delegate bool Function ();
699 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
700 public delegate int KeySnoopFunc (Atk.KeyEventStruct event, void* func_data);
701 [CCode (cheader_filename = "atk/atk.h", has_target = false)]
702 public delegate void PropertyChangeHandler (Atk.Object p1, Atk.PropertyValues p2);
703 [CCode (cheader_filename = "atk/atk.h")]
704 public static uint add_focus_tracker (Atk.EventListener focus_tracker);
705 [CCode (cheader_filename = "atk/atk.h")]
706 public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
707 [CCode (cheader_filename = "atk/atk.h")]
708 public static uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
709 [CCode (cheader_filename = "atk/atk.h")]
710 public static void focus_tracker_init (Atk.EventListenerInit init);
711 [CCode (cheader_filename = "atk/atk.h")]
712 public static void focus_tracker_notify (Atk.Object object);
713 [CCode (cheader_filename = "atk/atk.h")]
714 public static unowned Atk.Registry get_default_registry ();
715 [CCode (cheader_filename = "atk/atk.h")]
716 public static unowned Atk.Object get_focus_object ();
717 [CCode (cheader_filename = "atk/atk.h")]
718 public static unowned Atk.Object get_root ();
719 [CCode (cheader_filename = "atk/atk.h")]
720 public static unowned string get_toolkit_name ();
721 [CCode (cheader_filename = "atk/atk.h")]
722 public static unowned string get_toolkit_version ();
723 [CCode (cheader_filename = "atk/atk.h")]
724 public static unowned string get_version ();
725 [CCode (cheader_filename = "atk/atk.h")]
726 public static void remove_focus_tracker (uint tracker_id);
727 [CCode (cheader_filename = "atk/atk.h")]
728 public static void remove_global_event_listener (uint listener_id);
729 [CCode (cheader_filename = "atk/atk.h")]
730 public static void remove_key_event_listener (uint listener_id);
731 [CCode (cheader_filename = "atk/atk.h")]
732 public static Atk.Role role_for_name (string name);
733 [CCode (cheader_filename = "atk/atk.h")]
734 public static unowned string role_get_localized_name (Atk.Role role);
735 [CCode (cheader_filename = "atk/atk.h")]
736 public static unowned string role_get_name (Atk.Role role);
737 [CCode (cheader_filename = "atk/atk.h")]
738 public static Atk.Role role_register (string name);