1/* atspi-2.0.vapi generated by vapigen, do not modify. */
2
3[CCode (cprefix = "Atspi", gir_namespace = "Atspi", gir_version = "2.0", lower_case_cprefix = "atspi_")]
4namespace Atspi {
5	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_accessible_get_type ()")]
6	public class Accessible : Atspi.Object, Atspi.Action, Atspi.Collection, Atspi.Component, Atspi.Document, Atspi.EditableText, Atspi.Hypertext, Atspi.Image, Atspi.Selection, Atspi.Table, Atspi.Text, Atspi.Value {
7		public weak Atspi.Accessible accessible_parent;
8		public weak GLib.HashTable<void*,void*> attributes;
9		public uint cached_properties;
10		public weak GLib.List<void*> children;
11		public weak string description;
12		public int interfaces;
13		public weak string name;
14		public Atspi.Role role;
15		public weak Atspi.StateSet states;
16		[CCode (has_construct_function = false)]
17		protected Accessible ();
18		public void clear_cache ();
19		public Atspi.Action get_action ();
20		public Atspi.Accessible get_application () throws GLib.Error;
21		public string get_atspi_version () throws GLib.Error;
22		public GLib.HashTable<string,string> get_attributes () throws GLib.Error;
23		public GLib.Array<string> get_attributes_as_array () throws GLib.Error;
24		public Atspi.Accessible get_child_at_index (int child_index) throws GLib.Error;
25		public int get_child_count () throws GLib.Error;
26		public Atspi.Collection get_collection ();
27		public Atspi.Component get_component ();
28		public string get_description () throws GLib.Error;
29		public Atspi.Document get_document ();
30		public Atspi.EditableText get_editable_text ();
31		public Atspi.Hyperlink get_hyperlink ();
32		public Atspi.Hypertext get_hypertext ();
33		public int get_id () throws GLib.Error;
34		public Atspi.Image get_image ();
35		public int get_index_in_parent () throws GLib.Error;
36		public GLib.Array<string> get_interfaces ();
37		public string get_localized_role_name () throws GLib.Error;
38		public string get_name () throws GLib.Error;
39		public Atspi.Accessible get_parent () throws GLib.Error;
40		public uint get_process_id () throws GLib.Error;
41		public GLib.Array<Atspi.Accessible> get_relation_set () throws GLib.Error;
42		public Atspi.Role get_role () throws GLib.Error;
43		public string get_role_name () throws GLib.Error;
44		public Atspi.Selection get_selection ();
45		public Atspi.StateSet get_state_set ();
46		public Atspi.Table get_table ();
47		public Atspi.Text get_text ();
48		public string get_toolkit_name () throws GLib.Error;
49		public string get_toolkit_version () throws GLib.Error;
50		public Atspi.Value get_value ();
51		public void set_cache_mask (int mask);
52	}
53	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_listener_get_type ()")]
54	public class DeviceListener : GLib.Object {
55		public weak GLib.List<void*> callbacks;
56		public uint id;
57		[CCode (has_construct_function = false)]
58		public DeviceListener (owned Atspi.DeviceListenerCB callback);
59		public void add_callback ([CCode (delegate_target_pos = 1.2, destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerCB callback);
60		[NoWrapper]
61		public virtual bool device_event (Atspi.DeviceEvent arg0);
62		public void remove_callback (Atspi.DeviceListenerCB callback);
63		[CCode (has_construct_function = false)]
64		public DeviceListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerSimpleCB callback);
65	}
66	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_event_get_type ()")]
67	[Compact]
68	public class Event {
69		public GLib.Value any_data;
70		public int detail1;
71		public int detail2;
72		public weak Atspi.Accessible source;
73		public weak string type;
74		public static void main ();
75		public static void quit ();
76	}
77	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_event_listener_get_type ()")]
78	public class EventListener : GLib.Object {
79		public weak Atspi.EventListenerCB callback;
80		public weak GLib.DestroyNotify cb_destroyed;
81		public void* user_data;
82		[CCode (has_construct_function = false)]
83		public EventListener (owned Atspi.EventListenerCB callback);
84		public bool deregister (string event_type) throws GLib.Error;
85		public static bool deregister_from_callback ([CCode (delegate_target_pos = 1.5)] Atspi.EventListenerCB callback, string event_type) throws GLib.Error;
86		public static bool deregister_no_data (Atspi.EventListenerSimpleCB callback, string event_type) throws GLib.Error;
87		public bool register (string event_type) throws GLib.Error;
88		public static bool register_from_callback ([CCode (delegate_target_pos = 1.33333, destroy_notify_pos = 1.66667)] owned Atspi.EventListenerCB callback, string event_type) throws GLib.Error;
89		public static bool register_no_data ([CCode (destroy_notify_pos = 1.5)] owned Atspi.EventListenerSimpleCB callback, string event_type) throws GLib.Error;
90		[CCode (has_construct_function = false)]
91		public EventListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.EventListenerSimpleCB callback);
92	}
93	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_hyperlink_get_type ()")]
94	public class Hyperlink : Atspi.Object {
95		[CCode (has_construct_function = false)]
96		protected Hyperlink ();
97		public int get_end_index () throws GLib.Error;
98		public Atspi.Range get_index_range () throws GLib.Error;
99		public int get_n_anchors () throws GLib.Error;
100		public Atspi.Accessible get_object (int i) throws GLib.Error;
101		public int get_start_index () throws GLib.Error;
102		public string get_uri (int i) throws GLib.Error;
103		public bool is_valid () throws GLib.Error;
104	}
105	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_key_definition_get_type ()")]
106	[Compact]
107	public class KeyDefinition {
108		public int keycode;
109		public weak string keystring;
110		public int keysym;
111		public int unused;
112	}
113	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_match_rule_get_type ()")]
114	public class MatchRule : GLib.Object {
115		public Atspi.CollectionMatchType attributematchtype;
116		public weak GLib.HashTable<void*,void*> attributes;
117		public Atspi.CollectionMatchType interfacematchtype;
118		public weak GLib.Array<void*> interfaces;
119		public bool invert;
120		public Atspi.CollectionMatchType rolematchtype;
121		[CCode (array_length = false, array_null_terminated = true)]
122		public weak int[] roles;
123		public Atspi.CollectionMatchType statematchtype;
124		public weak Atspi.StateSet states;
125		[CCode (has_construct_function = false)]
126		public MatchRule (Atspi.StateSet states, Atspi.CollectionMatchType statematchtype, GLib.HashTable<string,string> attributes, Atspi.CollectionMatchType attributematchtype, GLib.Array<Atspi.Role> roles, Atspi.CollectionMatchType rolematchtype, GLib.Array<string> interfaces, Atspi.CollectionMatchType interfacematchtype, bool invert);
127	}
128	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_object_get_type ()")]
129	public class Object : GLib.Object {
130		public Atspi.Application app;
131		public weak string path;
132		[CCode (has_construct_function = false)]
133		protected Object ();
134	}
135	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_point_get_type ()")]
136	[Compact]
137	public class Point {
138		public int x;
139		public int y;
140		public Atspi.Point copy ();
141	}
142	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_range_get_type ()")]
143	[Compact]
144	public class Range {
145		public int end_offset;
146		public int start_offset;
147		public Atspi.Range copy ();
148	}
149	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_rect_get_type ()")]
150	[Compact]
151	public class Rect {
152		public int height;
153		public int width;
154		public int x;
155		public int y;
156		public Atspi.Rect copy ();
157	}
158	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_relation_get_type ()")]
159	public class Relation : GLib.Object {
160		public Atspi.RelationType relation_type;
161		public weak GLib.Array<void*> targets;
162		[CCode (has_construct_function = false)]
163		protected Relation ();
164		public int get_n_targets ();
165		public Atspi.RelationType get_relation_type ();
166		public Atspi.Accessible get_target (int i);
167	}
168	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_state_set_get_type ()")]
169	public class StateSet : GLib.Object {
170		public void* accessible;
171		public int64 states;
172		[CCode (has_construct_function = false)]
173		public StateSet (GLib.Array<Atspi.StateType> states);
174		public void add (Atspi.StateType state);
175		public Atspi.StateSet compare (Atspi.StateSet set2);
176		public bool contains (Atspi.StateType state);
177		public bool equals (Atspi.StateSet set2);
178		public GLib.Array<Atspi.StateType> get_states ();
179		public bool is_empty ();
180		public void remove (Atspi.StateType state);
181		public void set_by_name (string name, bool enabled);
182	}
183	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_text_range_get_type ()")]
184	[Compact]
185	public class TextRange {
186		public weak string content;
187		public int end_offset;
188		public int start_offset;
189	}
190	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_action_get_type ()")]
191	public interface Action : GLib.Object {
192		public bool do_action (int i) throws GLib.Error;
193		public string get_description (int i) throws GLib.Error;
194		public string get_key_binding (int i) throws GLib.Error;
195		public string get_localized_name (int i) throws GLib.Error;
196		public int get_n_actions () throws GLib.Error;
197		public string get_name (int i) throws GLib.Error;
198	}
199	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_collection_get_type ()")]
200	public interface Collection : GLib.Object {
201		public GLib.Array<Atspi.Accessible> get_matches (Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, int count, bool traverse) throws GLib.Error;
202		public GLib.Array<Atspi.Accessible> get_matches_from (Atspi.Accessible current_object, Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, Atspi.CollectionTreeTraversalType tree, int count, bool traverse) throws GLib.Error;
203		public GLib.Array<Atspi.Accessible> get_matches_to (Atspi.Accessible current_object, Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, Atspi.CollectionTreeTraversalType tree, bool limit_scope, int count, bool traverse) throws GLib.Error;
204		public bool is_ancestor_of (Atspi.Accessible test) throws GLib.Error;
205	}
206	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_component_get_type ()")]
207	public interface Component : GLib.Object {
208		public bool contains (int x, int y, Atspi.CoordType ctype) throws GLib.Error;
209		public Atspi.Accessible get_accessible_at_point (int x, int y, Atspi.CoordType ctype) throws GLib.Error;
210		public double get_alpha () throws GLib.Error;
211		public Atspi.Rect get_extents (Atspi.CoordType ctype) throws GLib.Error;
212		public Atspi.ComponentLayer get_layer () throws GLib.Error;
213		public short get_mdi_z_order () throws GLib.Error;
214		public Atspi.Point get_position (Atspi.CoordType ctype) throws GLib.Error;
215		public Atspi.Point get_size () throws GLib.Error;
216		public bool grab_focus () throws GLib.Error;
217		public bool set_extents (int x, int y, int width, int height, Atspi.CoordType ctype) throws GLib.Error;
218		public bool set_position (int x, int y, Atspi.CoordType ctype) throws GLib.Error;
219		public bool set_size (int width, int height) throws GLib.Error;
220	}
221	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_document_get_type ()")]
222	public interface Document : GLib.Object {
223		public string get_attribute_value (string attribute) throws GLib.Error;
224		public GLib.HashTable<string,string> get_attributes () throws GLib.Error;
225		public string get_locale () throws GLib.Error;
226	}
227	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_editable_text_get_type ()")]
228	public interface EditableText : GLib.Object {
229		public bool copy_text (int start_pos, int end_pos) throws GLib.Error;
230		public bool cut_text (int start_pos, int end_pos) throws GLib.Error;
231		public bool delete_text (int start_pos, int end_pos) throws GLib.Error;
232		public bool insert_text (int position, string text, int length) throws GLib.Error;
233		public bool paste_text (int position) throws GLib.Error;
234		public bool set_text_contents (string new_contents) throws GLib.Error;
235	}
236	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_hypertext_get_type ()")]
237	public interface Hypertext : GLib.Object {
238		public Atspi.Hyperlink get_link (int link_index) throws GLib.Error;
239		public int get_link_index (int character_offset) throws GLib.Error;
240		public int get_n_links () throws GLib.Error;
241	}
242	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_image_get_type ()")]
243	public interface Image : GLib.Object {
244		public string get_image_description () throws GLib.Error;
245		public Atspi.Rect get_image_extents (Atspi.CoordType ctype) throws GLib.Error;
246		public string get_image_locale () throws GLib.Error;
247		public Atspi.Point get_image_position (Atspi.CoordType ctype) throws GLib.Error;
248		public Atspi.Point get_image_size () throws GLib.Error;
249	}
250	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_selection_get_type ()")]
251	public interface Selection : GLib.Object {
252		public bool clear_selection () throws GLib.Error;
253		public bool deselect_child (int child_index) throws GLib.Error;
254		public bool deselect_selected_child (int selected_child_index) throws GLib.Error;
255		public int get_n_selected_children () throws GLib.Error;
256		public Atspi.Accessible get_selected_child (int selected_child_index) throws GLib.Error;
257		public bool is_child_selected (int child_index) throws GLib.Error;
258		public bool select_all () throws GLib.Error;
259		public bool select_child (int child_index) throws GLib.Error;
260	}
261	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_table_get_type ()")]
262	public interface Table : GLib.Object {
263		public bool add_column_selection (int column) throws GLib.Error;
264		public bool add_row_selection (int row) throws GLib.Error;
265		public Atspi.Accessible get_accessible_at (int row, int column) throws GLib.Error;
266		public Atspi.Accessible get_caption () throws GLib.Error;
267		public int get_column_at_index (int index) throws GLib.Error;
268		public string get_column_description (int column) throws GLib.Error;
269		public int get_column_extent_at (int row, int column) throws GLib.Error;
270		public Atspi.Accessible get_column_header (int column) throws GLib.Error;
271		public int get_index_at (int row, int column) throws GLib.Error;
272		public int get_n_columns () throws GLib.Error;
273		public int get_n_rows () throws GLib.Error;
274		public int get_n_selected_columns () throws GLib.Error;
275		public int get_n_selected_rows () throws GLib.Error;
276		public int get_row_at_index (int index) throws GLib.Error;
277		public bool get_row_column_extents_at_index (int index, out int row, out int col, out int row_extents, out int col_extents, out bool is_selected) throws GLib.Error;
278		public string get_row_description (int row) throws GLib.Error;
279		public int get_row_extent_at (int row, int column) throws GLib.Error;
280		public Atspi.Accessible get_row_header (int row) throws GLib.Error;
281		public GLib.Array<int> get_selected_columns () throws GLib.Error;
282		public GLib.Array<int> get_selected_rows () throws GLib.Error;
283		public Atspi.Accessible get_summary () throws GLib.Error;
284		public bool is_column_selected (int column) throws GLib.Error;
285		public bool is_row_selected (int row) throws GLib.Error;
286		public bool is_selected (int row, int column) throws GLib.Error;
287		public bool remove_column_selection (int column) throws GLib.Error;
288		public bool remove_row_selection (int row) throws GLib.Error;
289	}
290	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_text_get_type ()")]
291	public interface Text : GLib.Object {
292		public bool add_selection (int start_offset, int end_offset) throws GLib.Error;
293		public GLib.HashTable<string,string> get_attribute_run (int offset, bool include_defaults, out int start_offset, out int end_offset) throws GLib.Error;
294		public string get_attribute_value (int offset, string attribute_name) throws GLib.Error;
295		public GLib.HashTable<string,string> get_attributes (int offset, out int start_offset, out int end_offset) throws GLib.Error;
296		public GLib.Array<Atspi.TextRange> get_bounded_ranges (int x, int y, int width, int height, Atspi.CoordType type, Atspi.TextClipType clipTypeX, Atspi.TextClipType clipTypeY) throws GLib.Error;
297		public int get_caret_offset () throws GLib.Error;
298		public uint get_character_at_offset (int offset) throws GLib.Error;
299		public int get_character_count () throws GLib.Error;
300		public Atspi.Rect get_character_extents (int offset, Atspi.CoordType type) throws GLib.Error;
301		public GLib.HashTable<string,string> get_default_attributes () throws GLib.Error;
302		public int get_n_selections () throws GLib.Error;
303		public int get_offset_at_point (int x, int y, Atspi.CoordType type) throws GLib.Error;
304		public Atspi.Rect get_range_extents (int start_offset, int end_offset, Atspi.CoordType type) throws GLib.Error;
305		public Atspi.Range get_selection (int selection_num) throws GLib.Error;
306		public string get_text (int start_offset, int end_offset) throws GLib.Error;
307		public Atspi.TextRange get_text_after_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error;
308		public Atspi.TextRange get_text_at_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error;
309		public Atspi.TextRange get_text_before_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error;
310		public bool remove_selection (int selection_num) throws GLib.Error;
311		public bool set_caret_offset (int new_offset) throws GLib.Error;
312		public bool set_selection (int selection_num, int start_offset, int end_offset) throws GLib.Error;
313	}
314	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_value_get_type ()")]
315	public interface Value : GLib.Object {
316		public double get_current_value () throws GLib.Error;
317		public double get_maximum_value () throws GLib.Error;
318		public double get_minimum_increment () throws GLib.Error;
319		public double get_minimum_value () throws GLib.Error;
320		public bool set_current_value (double new_value) throws GLib.Error;
321	}
322	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
323	public struct Application {
324		public weak GLib.Object parent;
325		public weak GLib.HashTable<void*,void*> hash;
326		public weak string bus_name;
327		public void* root;
328		public Atspi.Cache cache;
329		public weak string toolkit_name;
330		public weak string toolkit_version;
331		public weak string atspi_version;
332		public void* time_added;
333	}
334	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
335	public struct ApplicationClass {
336		public weak GLib.ObjectClass parent_class;
337	}
338	[CCode (cheader_filename = "atspi/atspi.h")]
339	[SimpleType]
340	public struct ControllerEventMask : uint {
341	}
342	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
343	public struct DeviceEvent {
344		public Atspi.EventType type;
345		public uint id;
346		public ushort hw_code;
347		public ushort modifiers;
348		public uint timestamp;
349		public weak string event_string;
350		public bool is_text;
351	}
352	[CCode (cheader_filename = "atspi/atspi.h")]
353	[SimpleType]
354	public struct DeviceEventMask : uint {
355	}
356	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
357	public struct EventListenerMode {
358		public bool synchronous;
359		public bool preemptive;
360		public bool global;
361	}
362	[CCode (cheader_filename = "atspi/atspi.h")]
363	[SimpleType]
364	public struct KeyEventMask : uint {
365	}
366	[CCode (cheader_filename = "atspi/atspi.h")]
367	[SimpleType]
368	public struct KeyMaskType : uint {
369	}
370	[CCode (cheader_filename = "atspi/atspi.h")]
371	[SimpleType]
372	public struct KeystrokeListener {
373	}
374	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
375	public struct Reference {
376		public weak string name;
377		public weak string path;
378	}
379	[CCode (cheader_filename = "atspi/atspi.h", cname = "_AtspiKeySet", has_type_id = false)]
380	public struct _KeySet {
381		public uint keysyms;
382		public ushort keycodes;
383		public weak string keystrings;
384		public short len;
385	}
386	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_CACHE_")]
387	[Flags]
388	public enum Cache {
389		NONE,
390		PARENT,
391		CHILDREN,
392		NAME,
393		DESCRIPTION,
394		STATES,
395		ROLE,
396		INTERFACES,
397		ATTRIBUTES,
398		ALL,
399		DEFAULT,
400		UNDEFINED
401	}
402	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_MATCH_")]
403	public enum CollectionMatchType {
404		INVALID,
405		ALL,
406		ANY,
407		NONE,
408		EMPTY,
409		LAST_DEFINED
410	}
411	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_SORT_ORDER_")]
412	public enum CollectionSortOrder {
413		INVALID,
414		CANONICAL,
415		FLOW,
416		TAB,
417		REVERSE_CANONICAL,
418		REVERSE_FLOW,
419		REVERSE_TAB,
420		LAST_DEFINED
421	}
422	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_TREE_")]
423	public enum CollectionTreeTraversalType {
424		RESTRICT_CHILDREN,
425		RESTRICT_SIBLING,
426		INORDER,
427		LAST_DEFINED
428	}
429	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LAYER_")]
430	public enum ComponentLayer {
431		INVALID,
432		BACKGROUND,
433		CANVAS,
434		WIDGET,
435		MDI,
436		POPUP,
437		OVERLAY,
438		WINDOW,
439		LAST_DEFINED
440	}
441	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_COORD_TYPE_")]
442	public enum CoordType {
443		SCREEN,
444		WINDOW
445	}
446	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ERROR_")]
447	public enum Error {
448		APPLICATION_GONE,
449		IPC
450	}
451	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_")]
452	public enum EventType {
453		KEY_PRESSED_EVENT,
454		KEY_RELEASED_EVENT,
455		BUTTON_PRESSED_EVENT,
456		BUTTON_RELEASED_EVENT
457	}
458	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_")]
459	public enum KeyEventType {
460		PRESSED,
461		RELEASED
462	}
463	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEYLISTENER_")]
464	public enum KeyListenerSyncType {
465		NOSYNC,
466		SYNCHRONOUS,
467		CANCONSUME,
468		ALL_WINDOWS
469	}
470	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_")]
471	public enum KeySynthType {
472		PRESS,
473		RELEASE,
474		PRESSRELEASE,
475		SYM,
476		STRING
477	}
478	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LOCALE_TYPE_")]
479	public enum LocaleType {
480		MESSAGES,
481		COLLATE,
482		CTYPE,
483		MONETARY,
484		NUMERIC,
485		TIME
486	}
487	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_MODIFIER_")]
488	public enum ModifierType {
489		SHIFT,
490		SHIFTLOCK,
491		CONTROL,
492		ALT,
493		META,
494		META2,
495		META3,
496		NUMLOCK
497	}
498	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_RELATION_")]
499	public enum RelationType {
500		NULL,
501		LABEL_FOR,
502		LABELLED_BY,
503		CONTROLLER_FOR,
504		CONTROLLED_BY,
505		MEMBER_OF,
506		TOOLTIP_FOR,
507		NODE_CHILD_OF,
508		NODE_PARENT_OF,
509		EXTENDED,
510		FLOWS_TO,
511		FLOWS_FROM,
512		SUBWINDOW_OF,
513		EMBEDS,
514		EMBEDDED_BY,
515		POPUP_FOR,
516		PARENT_WINDOW_OF,
517		DESCRIPTION_FOR,
518		DESCRIBED_BY,
519		LAST_DEFINED
520	}
521	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ROLE_")]
522	public enum Role {
523		INVALID,
524		ACCELERATOR_LABEL,
525		ALERT,
526		ANIMATION,
527		ARROW,
528		CALENDAR,
529		CANVAS,
530		CHECK_BOX,
531		CHECK_MENU_ITEM,
532		COLOR_CHOOSER,
533		COLUMN_HEADER,
534		COMBO_BOX,
535		DATE_EDITOR,
536		DESKTOP_ICON,
537		DESKTOP_FRAME,
538		DIAL,
539		DIALOG,
540		DIRECTORY_PANE,
541		DRAWING_AREA,
542		FILE_CHOOSER,
543		FILLER,
544		FOCUS_TRAVERSABLE,
545		FONT_CHOOSER,
546		FRAME,
547		GLASS_PANE,
548		HTML_CONTAINER,
549		ICON,
550		IMAGE,
551		INTERNAL_FRAME,
552		LABEL,
553		LAYERED_PANE,
554		LIST,
555		LIST_ITEM,
556		MENU,
557		MENU_BAR,
558		MENU_ITEM,
559		OPTION_PANE,
560		PAGE_TAB,
561		PAGE_TAB_LIST,
562		PANEL,
563		PASSWORD_TEXT,
564		POPUP_MENU,
565		PROGRESS_BAR,
566		PUSH_BUTTON,
567		RADIO_BUTTON,
568		RADIO_MENU_ITEM,
569		ROOT_PANE,
570		ROW_HEADER,
571		SCROLL_BAR,
572		SCROLL_PANE,
573		SEPARATOR,
574		SLIDER,
575		SPIN_BUTTON,
576		SPLIT_PANE,
577		STATUS_BAR,
578		TABLE,
579		TABLE_CELL,
580		TABLE_COLUMN_HEADER,
581		TABLE_ROW_HEADER,
582		TEAROFF_MENU_ITEM,
583		TERMINAL,
584		TEXT,
585		TOGGLE_BUTTON,
586		TOOL_BAR,
587		TOOL_TIP,
588		TREE,
589		TREE_TABLE,
590		UNKNOWN,
591		VIEWPORT,
592		WINDOW,
593		EXTENDED,
594		HEADER,
595		FOOTER,
596		PARAGRAPH,
597		RULER,
598		APPLICATION,
599		AUTOCOMPLETE,
600		EDITBAR,
601		EMBEDDED,
602		ENTRY,
603		CHART,
604		CAPTION,
605		DOCUMENT_FRAME,
606		HEADING,
607		PAGE,
608		SECTION,
609		REDUNDANT_OBJECT,
610		FORM,
611		LINK,
612		INPUT_METHOD_WINDOW,
613		TABLE_ROW,
614		TREE_ITEM,
615		DOCUMENT_SPREADSHEET,
616		DOCUMENT_PRESENTATION,
617		DOCUMENT_TEXT,
618		DOCUMENT_WEB,
619		DOCUMENT_EMAIL,
620		COMMENT,
621		LIST_BOX,
622		GROUPING,
623		IMAGE_MAP,
624		NOTIFICATION,
625		INFO_BAR,
626		LAST_DEFINED;
627		public static string get_name (Atspi.Role role);
628	}
629	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_STATE_")]
630	public enum StateType {
631		INVALID,
632		ACTIVE,
633		ARMED,
634		BUSY,
635		CHECKED,
636		COLLAPSED,
637		DEFUNCT,
638		EDITABLE,
639		ENABLED,
640		EXPANDABLE,
641		EXPANDED,
642		FOCUSABLE,
643		FOCUSED,
644		HAS_TOOLTIP,
645		HORIZONTAL,
646		ICONIFIED,
647		MODAL,
648		MULTI_LINE,
649		MULTISELECTABLE,
650		OPAQUE,
651		PRESSED,
652		RESIZABLE,
653		SELECTABLE,
654		SELECTED,
655		SENSITIVE,
656		SHOWING,
657		SINGLE_LINE,
658		STALE,
659		TRANSIENT,
660		VERTICAL,
661		VISIBLE,
662		MANAGES_DESCENDANTS,
663		INDETERMINATE,
664		REQUIRED,
665		TRUNCATED,
666		ANIMATED,
667		INVALID_ENTRY,
668		SUPPORTS_AUTOCOMPLETION,
669		SELECTABLE_TEXT,
670		IS_DEFAULT,
671		VISITED,
672		LAST_DEFINED
673	}
674	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_BOUNDARY_")]
675	public enum TextBoundaryType {
676		CHAR,
677		WORD_START,
678		WORD_END,
679		SENTENCE_START,
680		SENTENCE_END,
681		LINE_START,
682		LINE_END
683	}
684	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_CLIP_")]
685	public enum TextClipType {
686		NONE,
687		MIN,
688		MAX,
689		BOTH
690	}
691	[CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)]
692	public delegate bool DeviceListenerCB (owned Atspi.DeviceEvent stroke);
693	[CCode (cheader_filename = "atspi/atspi.h", has_target = false)]
694	public delegate bool DeviceListenerSimpleCB (owned Atspi.DeviceEvent stroke);
695	[CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)]
696	public delegate void EventListenerCB (owned Atspi.Event event);
697	[CCode (cheader_filename = "atspi/atspi.h", has_target = false)]
698	public delegate void EventListenerSimpleCB (owned Atspi.Event event);
699	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COMPONENTLAYER_COUNT")]
700	public const int COMPONENTLAYER_COUNT;
701	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COORD_TYPE_COUNT")]
702	public const int COORD_TYPE_COUNT;
703	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_ACCESSIBLE")]
704	public const string DBUS_INTERFACE_ACCESSIBLE;
705	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_ACTION")]
706	public const string DBUS_INTERFACE_ACTION;
707	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_APPLICATION")]
708	public const string DBUS_INTERFACE_APPLICATION;
709	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_CACHE")]
710	public const string DBUS_INTERFACE_CACHE;
711	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_COLLECTION")]
712	public const string DBUS_INTERFACE_COLLECTION;
713	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_COMPONENT")]
714	public const string DBUS_INTERFACE_COMPONENT;
715	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DEC")]
716	public const string DBUS_INTERFACE_DEC;
717	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DEVICE_EVENT_LISTENER")]
718	public const string DBUS_INTERFACE_DEVICE_EVENT_LISTENER;
719	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DOCUMENT")]
720	public const string DBUS_INTERFACE_DOCUMENT;
721	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EDITABLE_TEXT")]
722	public const string DBUS_INTERFACE_EDITABLE_TEXT;
723	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_KEYBOARD")]
724	public const string DBUS_INTERFACE_EVENT_KEYBOARD;
725	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_MOUSE")]
726	public const string DBUS_INTERFACE_EVENT_MOUSE;
727	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_OBJECT")]
728	public const string DBUS_INTERFACE_EVENT_OBJECT;
729	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_HYPERLINK")]
730	public const string DBUS_INTERFACE_HYPERLINK;
731	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_HYPERTEXT")]
732	public const string DBUS_INTERFACE_HYPERTEXT;
733	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_IMAGE")]
734	public const string DBUS_INTERFACE_IMAGE;
735	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_REGISTRY")]
736	public const string DBUS_INTERFACE_REGISTRY;
737	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_SELECTION")]
738	public const string DBUS_INTERFACE_SELECTION;
739	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_SOCKET")]
740	public const string DBUS_INTERFACE_SOCKET;
741	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_TABLE")]
742	public const string DBUS_INTERFACE_TABLE;
743	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_TEXT")]
744	public const string DBUS_INTERFACE_TEXT;
745	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_VALUE")]
746	public const string DBUS_INTERFACE_VALUE;
747	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_NAME_REGISTRY")]
748	public const string DBUS_NAME_REGISTRY;
749	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_DEC")]
750	public const string DBUS_PATH_DEC;
751	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_NULL")]
752	public const string DBUS_PATH_NULL;
753	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_REGISTRY")]
754	public const string DBUS_PATH_REGISTRY;
755	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_ROOT")]
756	public const string DBUS_PATH_ROOT;
757	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_EVENTTYPE_COUNT")]
758	public const int EVENTTYPE_COUNT;
759	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_KEYEVENTTYPE_COUNT")]
760	public const int KEYEVENTTYPE_COUNT;
761	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_KEYSYNTHTYPE_COUNT")]
762	public const int KEYSYNTHTYPE_COUNT;
763	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_MATCHTYPES_COUNT")]
764	public const int MATCHTYPES_COUNT;
765	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_MODIFIERTYPE_COUNT")]
766	public const int MODIFIERTYPE_COUNT;
767	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_RELATIONTYPE_COUNT")]
768	public const int RELATIONTYPE_COUNT;
769	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_ROLE_COUNT")]
770	public const int ROLE_COUNT;
771	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_SORTORDER_COUNT")]
772	public const int SORTORDER_COUNT;
773	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_STATETYPE_COUNT")]
774	public const int STATETYPE_COUNT;
775	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_TEXT_BOUNDARY_TYPE_COUNT")]
776	public const int TEXT_BOUNDARY_TYPE_COUNT;
777	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_TEXT_CLIP_TYPE_COUNT")]
778	public const int TEXT_CLIP_TYPE_COUNT;
779	[CCode (cheader_filename = "atspi/atspi.h")]
780	public static bool deregister_device_event_listener (Atspi.DeviceListener listener, void* filter) throws GLib.Error;
781	[CCode (cheader_filename = "atspi/atspi.h")]
782	public static bool deregister_keystroke_listener (Atspi.DeviceListener listener, GLib.Array<Atspi.KeyDefinition>? key_set, Atspi.KeyMaskType modmask, Atspi.KeyEventMask event_types) throws GLib.Error;
783	[CCode (cheader_filename = "atspi/atspi.h")]
784	public static int exit ();
785	[CCode (cheader_filename = "atspi/atspi.h")]
786	public static bool generate_keyboard_event (long keyval, string keystring, Atspi.KeySynthType synth_type) throws GLib.Error;
787	[CCode (cheader_filename = "atspi/atspi.h")]
788	public static bool generate_mouse_event (long x, long y, string name) throws GLib.Error;
789	[CCode (cheader_filename = "atspi/atspi.h")]
790	public static Atspi.Accessible get_desktop (int i);
791	[CCode (cheader_filename = "atspi/atspi.h")]
792	public static int get_desktop_count ();
793	[CCode (cheader_filename = "atspi/atspi.h")]
794	public static GLib.Array<void*> get_desktop_list ();
795	[CCode (cheader_filename = "atspi/atspi.h")]
796	public static int init ();
797	[CCode (cheader_filename = "atspi/atspi.h")]
798	public static bool register_device_event_listener (Atspi.DeviceListener listener, Atspi.DeviceEventMask event_types, void* filter) throws GLib.Error;
799	[CCode (cheader_filename = "atspi/atspi.h")]
800	public static bool register_keystroke_listener (Atspi.DeviceListener listener, GLib.Array<Atspi.KeyDefinition>? key_set, Atspi.KeyMaskType modmask, Atspi.KeyEventMask event_types, int sync_type) throws GLib.Error;
801	[CCode (cheader_filename = "atspi/atspi.h")]
802	public static void set_timeout (int val, int startup_time);
803}
804