1 /* atk.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Atk", lower_case_cprefix = "atk_")]
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 public static unowned Atk.Object for_object (GLib.Object obj);
18 public unowned GLib.Object get_object ();
20 [CCode (cheader_filename = "atk/atk.h")]
21 public class Hyperlink : GLib.Object, Atk.Action {
22 public virtual int get_end_index ();
23 public virtual int get_n_anchors ();
24 public virtual unowned Atk.Object get_object (int i);
25 public virtual int get_start_index ();
26 public virtual unowned string get_uri (int i);
27 public bool is_inline ();
28 public virtual bool is_selected_link ();
29 public virtual bool is_valid ();
31 public virtual uint link_state ();
32 public int end_index { get; }
34 public int number_of_anchors { get; }
36 public bool selected_link { get; }
37 public int start_index { get; }
38 public virtual signal void link_activated ();
41 [CCode (cheader_filename = "atk/atk.h")]
42 public class KeyEventStruct {
43 public uint16 keycode;
47 [CCode (cname = "string")]
48 public weak string str;
49 public uint32 timestamp;
52 [CCode (cheader_filename = "atk/atk.h")]
53 public class Misc : GLib.Object {
54 public static unowned Atk.Misc get_instance ();
55 public virtual void threads_enter ();
56 public virtual void threads_leave ();
58 [CCode (cheader_filename = "atk/atk.h")]
59 public class NoOpObject : Atk.Object, Atk.Text, Atk.Action, Atk.Hypertext, Atk.Selection, Atk.Table, Atk.Image, Atk.Value, Atk.Component, Atk.EditableText, Atk.Document {
60 [CCode (type = "AtkObject*", has_construct_function = false)]
61 public NoOpObject (GLib.Object obj);
63 [CCode (cheader_filename = "atk/atk.h")]
64 public class NoOpObjectFactory : Atk.ObjectFactory {
65 [CCode (type = "AtkObjectFactory*", has_construct_function = false)]
66 public NoOpObjectFactory ();
68 [CCode (cheader_filename = "atk/atk.h")]
69 public class Object : GLib.Object {
70 public weak string description;
71 public Atk.Layer layer;
72 public weak string name;
73 public weak Atk.RelationSet relation_set;
75 public bool add_relationship (Atk.RelationType relationship, Atk.Object target);
76 public virtual uint connect_property_change_handler (Atk.PropertyChangeHandler handler);
77 public virtual unowned Atk.AttributeSet get_attributes ();
78 public virtual unowned string get_description ();
79 public virtual int get_index_in_parent ();
80 public virtual Atk.Layer get_layer ();
81 public virtual int get_mdi_zorder ();
82 public int get_n_accessible_children ();
84 public virtual int get_n_children ();
85 public virtual unowned string get_name ();
86 public virtual unowned Atk.Object get_parent ();
87 public virtual Atk.Role get_role ();
88 public virtual void initialize (void* data);
89 public void notify_state_change (Atk.State state, bool value);
90 public unowned Atk.Object ref_accessible_child (int i);
92 public virtual unowned Atk.Object ref_child (int i);
93 public virtual unowned Atk.RelationSet ref_relation_set ();
94 public virtual unowned Atk.StateSet ref_state_set ();
95 public virtual void remove_property_change_handler (uint handler_id);
96 public bool remove_relationship (Atk.RelationType relationship, Atk.Object target);
97 public virtual void set_description (string description);
98 public virtual void set_name (string name);
99 public virtual void set_parent (Atk.Object parent);
100 public virtual void set_role (Atk.Role role);
102 public int accessible_component_layer { get; }
104 public int accessible_component_mdi_zorder { get; }
106 public string accessible_description { owned get; set; }
108 public int accessible_hypertext_nlinks { get; }
110 public string accessible_name { owned get; set; }
112 public Atk.Object accessible_parent { owned get; set; }
114 public int accessible_role { get; set; }
116 public string accessible_table_caption { owned get; set; }
118 public Atk.Object accessible_table_caption_object { owned get; set; }
120 public string accessible_table_column_description { owned get; set; }
122 public Atk.Object accessible_table_column_header { owned get; set; }
124 public string accessible_table_row_description { owned get; set; }
126 public Atk.Object accessible_table_row_header { owned get; set; }
128 public Atk.Object accessible_table_summary { owned get; set; }
130 public double accessible_value { get; set; }
131 public virtual signal void active_descendant_changed (void* child);
132 public virtual signal void children_changed (uint change_index, void* changed_child);
133 public virtual signal void focus_event (bool focus_in);
134 public virtual signal void property_change (void* values);
135 public virtual signal void state_change (string name, bool state_set);
136 public virtual signal void visible_data_changed ();
138 [CCode (cheader_filename = "atk/atk.h")]
139 public class ObjectFactory : GLib.Object {
140 public virtual unowned Atk.Object create_accessible (GLib.Object obj);
141 public virtual GLib.Type get_accessible_type ();
142 public virtual void invalidate ();
145 [CCode (cheader_filename = "atk/atk.h")]
146 public class PropertyValues {
147 public GLib.Value new_value;
148 public GLib.Value old_value;
149 public weak string property_name;
151 [CCode (cheader_filename = "atk/atk.h")]
152 public class Registry : GLib.Object {
153 public weak GLib.HashTable factory_singleton_cache;
154 public weak GLib.HashTable factory_type_registry;
155 public unowned Atk.ObjectFactory get_factory (GLib.Type type);
156 public GLib.Type get_factory_type (GLib.Type type);
157 public void set_factory_type (GLib.Type type, GLib.Type factory_type);
159 [CCode (cheader_filename = "atk/atk.h")]
160 public class Relation : GLib.Object {
161 public Atk.RelationType relationship;
162 public void add_target (Atk.Object target);
163 public Atk.RelationType get_relation_type ();
164 public unowned GLib.PtrArray get_target ();
165 [CCode (has_construct_function = false)]
166 public Relation (Atk.Object[] targets, Atk.RelationType relationship);
167 public static Atk.RelationType type_for_name (string name);
168 public static unowned string type_get_name (Atk.RelationType type);
169 public static Atk.RelationType type_register (string name);
171 public Atk.RelationType relation_type { get; set; }
173 public GLib.ValueArray target { owned get; set; }
175 [CCode (cheader_filename = "atk/atk.h")]
176 public class RelationSet : GLib.Object {
177 public weak GLib.PtrArray relations;
178 public void add (Atk.Relation relation);
179 public void add_relation_by_type (Atk.RelationType relationship, Atk.Object target);
180 public bool contains (Atk.RelationType relationship);
181 public int get_n_relations ();
182 public unowned Atk.Relation get_relation (int i);
183 public unowned Atk.Relation get_relation_by_type (Atk.RelationType relationship);
184 [CCode (has_construct_function = false)]
185 public RelationSet ();
186 public void remove (Atk.Relation relation);
189 [CCode (cheader_filename = "atk/atk.h")]
191 public static Atk.StateType type_for_name (string name);
192 public static unowned string type_get_name (Atk.StateType type);
193 public static Atk.StateType type_register (string name);
195 [CCode (cheader_filename = "atk/atk.h")]
196 public class StateSet : GLib.Object {
197 public bool add_state (Atk.StateType type);
198 public void add_states (Atk.StateType[] types);
199 public unowned Atk.StateSet and_sets (Atk.StateSet compare_set);
200 public void clear_states ();
201 public bool contains_state (Atk.StateType type);
202 public bool contains_states (Atk.StateType[] types);
203 public bool is_empty ();
204 [CCode (has_construct_function = false)]
206 public unowned Atk.StateSet or_sets (Atk.StateSet compare_set);
207 public bool remove_state (Atk.StateType type);
208 public unowned Atk.StateSet xor_sets (Atk.StateSet compare_set);
211 [CCode (cheader_filename = "atk/atk.h")]
212 public class TextRange {
213 public weak Atk.TextRectangle bounds;
214 public weak string content;
215 public int end_offset;
216 public int start_offset;
219 [CCode (cheader_filename = "atk/atk.h")]
220 public class TextRectangle {
226 [CCode (cheader_filename = "atk/atk.h")]
227 public class Util : GLib.Object {
229 public virtual uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
231 public virtual uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
233 public virtual unowned Atk.Object get_root ();
235 public virtual unowned string get_toolkit_name ();
237 public virtual unowned string get_toolkit_version ();
239 public virtual void remove_global_event_listener (uint listener_id);
241 public virtual void remove_key_event_listener (uint listener_id);
243 [CCode (cheader_filename = "atk/atk.h")]
244 public interface Action {
245 public abstract bool do_action (int i);
246 public abstract unowned string get_description (int i);
247 public abstract unowned string get_keybinding (int i);
248 public abstract unowned string get_localized_name (int i);
249 public abstract int get_n_actions ();
250 public abstract unowned string get_name (int i);
251 public abstract bool set_description (int i, string desc);
253 [CCode (cheader_filename = "atk/atk.h")]
254 public interface Component {
255 public abstract uint add_focus_handler (Atk.FocusHandler handler);
256 public abstract bool contains (int x, int y, Atk.CoordType coord_type);
257 public abstract double get_alpha ();
258 public abstract void get_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
259 public abstract Atk.Layer get_layer ();
260 public abstract int get_mdi_zorder ();
261 public abstract void get_position (int x, int y, Atk.CoordType coord_type);
262 public abstract void get_size (int width, int height);
263 public abstract bool grab_focus ();
264 public abstract unowned Atk.Object ref_accessible_at_point (int x, int y, Atk.CoordType coord_type);
265 public abstract void remove_focus_handler (uint handler_id);
266 public abstract bool set_extents (int x, int y, int width, int height, Atk.CoordType coord_type);
267 public abstract bool set_position (int x, int y, Atk.CoordType coord_type);
268 public abstract bool set_size (int width, int height);
269 public virtual signal void bounds_changed (Atk.Rectangle bounds);
271 [CCode (cheader_filename = "atk/atk.h")]
272 public interface Document {
273 public unowned string get_attribute_value (string attribute_name);
274 public unowned Atk.AttributeSet get_attributes ();
275 public abstract void* get_document ();
277 public abstract unowned string get_document_attribute_value (string attribute_name);
279 public abstract unowned Atk.AttributeSet get_document_attributes ();
281 public abstract unowned string get_document_locale ();
282 public abstract unowned string get_document_type ();
283 public unowned string get_locale ();
284 public bool set_attribute_value (string attribute_name, string attribute_value);
286 public abstract bool set_document_attribute (string attribute_name, string attribute_value);
287 public virtual signal void load_complete ();
288 public virtual signal void load_stopped ();
289 public virtual signal void reload ();
291 [CCode (cheader_filename = "atk/atk.h")]
292 public interface EditableText {
293 public abstract void copy_text (int start_pos, int end_pos);
294 public abstract void cut_text (int start_pos, int end_pos);
295 public abstract void delete_text (int start_pos, int end_pos);
296 public abstract void insert_text (string str, int length, int position);
297 public abstract void paste_text (int position);
298 public abstract bool set_run_attributes (Atk.AttributeSet attrib_set, int start_offset, int end_offset);
299 public abstract void set_text_contents (string str);
301 [CCode (cheader_filename = "atk/atk.h")]
302 public interface HyperlinkImpl {
303 public abstract unowned Atk.Hyperlink get_hyperlink ();
305 [CCode (cheader_filename = "atk/atk.h")]
306 public interface Hypertext {
307 public abstract unowned Atk.Hyperlink get_link (int link_index);
308 public abstract int get_link_index (int char_index);
309 public abstract int get_n_links ();
310 public virtual signal void link_selected (int link_index);
312 [CCode (cheader_filename = "atk/atk.h")]
313 public interface Image {
314 public abstract unowned string get_image_description ();
315 public abstract unowned string get_image_locale ();
316 public abstract void get_image_position (int x, int y, Atk.CoordType coord_type);
317 public abstract void get_image_size (int width, int height);
318 public abstract bool set_image_description (string description);
320 [CCode (cheader_filename = "atk/atk.h")]
321 public interface Implementor {
322 public abstract unowned Atk.Object ref_accessible ();
324 [CCode (cheader_filename = "atk/atk.h")]
325 public interface Selection {
326 public abstract bool add_selection (int i);
327 public abstract bool clear_selection ();
328 public abstract int get_selection_count ();
329 public abstract bool is_child_selected (int i);
330 public abstract unowned Atk.Object ref_selection (int i);
331 public abstract bool remove_selection (int i);
332 public abstract bool select_all_selection ();
333 public virtual signal void selection_changed ();
335 [CCode (cheader_filename = "atk/atk.h")]
336 public interface StreamableContent {
337 public abstract unowned string get_mime_type (int i);
338 public abstract int get_n_mime_types ();
339 public abstract unowned GLib.IOChannel get_stream (string mime_type);
340 public abstract unowned string get_uri (string mime_type);
342 [CCode (cheader_filename = "atk/atk.h")]
343 public interface Table {
344 public abstract bool add_column_selection (int column);
345 public abstract bool add_row_selection (int row);
346 public abstract unowned Atk.Object get_caption ();
347 public abstract int get_column_at_index (int index_);
348 public abstract unowned string get_column_description (int column);
349 public abstract int get_column_extent_at (int row, int column);
350 public abstract unowned Atk.Object get_column_header (int column);
351 public abstract int get_index_at (int row, int column);
352 public abstract int get_n_columns ();
353 public abstract int get_n_rows ();
354 public abstract int get_row_at_index (int index_);
355 public abstract unowned string get_row_description (int row);
356 public abstract int get_row_extent_at (int row, int column);
357 public abstract unowned Atk.Object get_row_header (int row);
358 public abstract int get_selected_columns (int selected);
359 public abstract int get_selected_rows (int selected);
360 public abstract unowned Atk.Object get_summary ();
361 public abstract bool is_column_selected (int column);
362 public abstract bool is_row_selected (int row);
363 public abstract bool is_selected (int row, int column);
364 public abstract unowned Atk.Object ref_at (int row, int column);
365 public abstract bool remove_column_selection (int column);
366 public abstract bool remove_row_selection (int row);
367 public abstract void set_caption (Atk.Object caption);
368 public abstract void set_column_description (int column, string description);
369 public abstract void set_column_header (int column, Atk.Object header);
370 public abstract void set_row_description (int row, string description);
371 public abstract void set_row_header (int row, Atk.Object header);
372 public abstract void set_summary (Atk.Object accessible);
373 public virtual signal void column_deleted (int column, int num_deleted);
374 public virtual signal void column_inserted (int column, int num_inserted);
375 public virtual signal void column_reordered ();
376 public virtual signal void model_changed ();
377 public virtual signal void row_deleted (int row, int num_deleted);
378 public virtual signal void row_inserted (int row, int num_inserted);
379 public virtual signal void row_reordered ();
381 [CCode (cheader_filename = "atk/atk.h")]
382 public interface Text {
383 public abstract bool add_selection (int start_offset, int end_offset);
384 public static Atk.TextAttribute attribute_for_name (string name);
385 public static unowned string attribute_get_name (Atk.TextAttribute attr);
386 public static unowned string attribute_get_value (Atk.TextAttribute attr, int index_);
387 public static Atk.TextAttribute attribute_register (string name);
388 public static void free_ranges (out unowned Atk.TextRange ranges);
389 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);
390 public abstract int get_caret_offset ();
391 public abstract unichar get_character_at_offset (int offset);
392 public abstract int get_character_count ();
393 public abstract void get_character_extents (int offset, int x, int y, int width, int height, Atk.CoordType coords);
394 public abstract unowned Atk.AttributeSet get_default_attributes ();
395 public abstract int get_n_selections ();
396 public abstract int get_offset_at_point (int x, int y, Atk.CoordType coords);
397 public abstract void get_range_extents (int start_offset, int end_offset, Atk.CoordType coord_type, Atk.TextRectangle rect);
398 public abstract unowned Atk.AttributeSet get_run_attributes (int offset, int start_offset, int end_offset);
399 public abstract unowned string get_selection (int selection_num, int start_offset, int end_offset);
400 public abstract unowned string get_text (int start_offset, int end_offset);
401 public abstract unowned string get_text_after_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
402 public abstract unowned string get_text_at_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
403 public abstract unowned string get_text_before_offset (int offset, Atk.TextBoundary boundary_type, int start_offset, int end_offset);
404 public abstract bool remove_selection (int selection_num);
405 public abstract bool set_caret_offset (int offset);
406 public abstract bool set_selection (int selection_num, int start_offset, int end_offset);
407 public virtual signal void text_attributes_changed ();
408 public virtual signal void text_caret_moved (int location);
409 public virtual signal void text_changed (int position, int length);
410 public virtual signal void text_selection_changed ();
412 [CCode (cheader_filename = "atk/atk.h")]
413 public interface Value {
414 public abstract void get_current_value (GLib.Value value);
415 public abstract void get_maximum_value (GLib.Value value);
416 public abstract void get_minimum_increment (GLib.Value value);
417 public abstract void get_minimum_value (GLib.Value value);
418 public abstract bool set_current_value (GLib.Value value);
420 [CCode (type_id = "ATK_TYPE_RECTANGLE", cheader_filename = "atk/atk.h")]
421 public struct Rectangle {
427 [CCode (cprefix = "ATK_XY_", cheader_filename = "atk/atk.h")]
428 public enum CoordType {
432 [CCode (cprefix = "ATK_HYPERLINK_IS_", cheader_filename = "atk/atk.h")]
434 public enum HyperlinkStateFlags {
437 [CCode (cprefix = "ATK_KEY_EVENT_", cheader_filename = "atk/atk.h")]
438 public enum KeyEventType {
443 [CCode (cprefix = "ATK_LAYER_", cheader_filename = "atk/atk.h")]
454 [CCode (cprefix = "ATK_RELATION_", cheader_filename = "atk/atk.h")]
455 public enum RelationType {
474 [CCode (cprefix = "ATK_ROLE_", cheader_filename = "atk/atk.h")]
566 [CCode (cprefix = "ATK_STATE_", cheader_filename = "atk/atk.h")]
567 public enum StateType {
602 SUPPORTS_AUTOCOMPLETION,
609 [CCode (cprefix = "ATK_TEXT_ATTR_", cheader_filename = "atk/atk.h")]
610 public enum TextAttribute {
641 [CCode (cprefix = "ATK_TEXT_BOUNDARY_", cheader_filename = "atk/atk.h")]
642 public enum TextBoundary {
651 [CCode (cprefix = "ATK_TEXT_CLIP_", cheader_filename = "atk/atk.h")]
652 public enum TextClipType {
658 [CCode (cheader_filename = "atk/atk.h")]
659 public static delegate void EventListener (Atk.Object obj);
660 [CCode (cheader_filename = "atk/atk.h")]
661 public static delegate void EventListenerInit ();
662 [CCode (cheader_filename = "atk/atk.h")]
663 public static delegate void FocusHandler (Atk.Object p1, bool p2);
664 [CCode (cheader_filename = "atk/atk.h")]
665 public delegate bool Function ();
666 [CCode (cheader_filename = "atk/atk.h")]
667 public static delegate int KeySnoopFunc (Atk.KeyEventStruct event, void* func_data);
668 [CCode (cheader_filename = "atk/atk.h")]
669 public static delegate void PropertyChangeHandler (Atk.Object p1, Atk.PropertyValues p2);
670 [CCode (cheader_filename = "atk/atk.h")]
671 public static uint add_focus_tracker (Atk.EventListener focus_tracker);
672 [CCode (cheader_filename = "atk/atk.h")]
673 public static uint add_global_event_listener (GLib.SignalEmissionHook listener, string event_type);
674 [CCode (cheader_filename = "atk/atk.h")]
675 public static uint add_key_event_listener (Atk.KeySnoopFunc listener, void* data);
676 [CCode (cheader_filename = "atk/atk.h")]
677 public static void focus_tracker_init (Atk.EventListenerInit init);
678 [CCode (cheader_filename = "atk/atk.h")]
679 public static void focus_tracker_notify (Atk.Object object);
680 [CCode (cheader_filename = "atk/atk.h")]
681 public static unowned Atk.Registry get_default_registry ();
682 [CCode (cheader_filename = "atk/atk.h")]
683 public static unowned Atk.Object get_focus_object ();
684 [CCode (cheader_filename = "atk/atk.h")]
685 public static unowned Atk.Object get_root ();
686 [CCode (cheader_filename = "atk/atk.h")]
687 public static unowned string get_toolkit_name ();
688 [CCode (cheader_filename = "atk/atk.h")]
689 public static unowned string get_toolkit_version ();
690 [CCode (cheader_filename = "atk/atk.h")]
691 public static unowned string get_version ();
692 [CCode (cheader_filename = "atk/atk.h")]
693 public static void remove_focus_tracker (uint tracker_id);
694 [CCode (cheader_filename = "atk/atk.h")]
695 public static void remove_global_event_listener (uint listener_id);
696 [CCode (cheader_filename = "atk/atk.h")]
697 public static void remove_key_event_listener (uint listener_id);
698 [CCode (cheader_filename = "atk/atk.h")]
699 public static Atk.Role role_for_name (string name);
700 [CCode (cheader_filename = "atk/atk.h")]
701 public static unowned string role_get_localized_name (Atk.Role role);
702 [CCode (cheader_filename = "atk/atk.h")]
703 public static unowned string role_get_name (Atk.Role role);
704 [CCode (cheader_filename = "atk/atk.h")]
705 public static Atk.Role role_register (string name);