summaryrefslogtreecommitdiff
path: root/vapi/atspi-2.vapi
blob: efb8e919da42f09adb64317bb23207cfa716c91c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
/* atspi-2.0.vapi generated by vapigen, do not modify. */

[CCode (cprefix = "Atspi", gir_namespace = "Atspi", gir_version = "2.0", lower_case_cprefix = "atspi_")]
namespace Atspi {
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_accessible_get_type ()")]
	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 {
		public weak Atspi.Accessible accessible_parent;
		public weak GLib.HashTable<void*,void*> attributes;
		public uint cached_properties;
		public weak GLib.List<void*> children;
		public weak string description;
		public int interfaces;
		public weak string name;
		public Atspi.Role role;
		public weak Atspi.StateSet states;
		[CCode (has_construct_function = false)]
		protected Accessible ();
		public void clear_cache ();
		public Atspi.Action get_action ();
		public Atspi.Accessible get_application () throws GLib.Error;
		public string get_atspi_version () throws GLib.Error;
		public GLib.HashTable<string,string> get_attributes () throws GLib.Error;
		public GLib.Array<string> get_attributes_as_array () throws GLib.Error;
		public Atspi.Accessible get_child_at_index (int child_index) throws GLib.Error;
		public int get_child_count () throws GLib.Error;
		public Atspi.Collection get_collection ();
		public Atspi.Component get_component ();
		public string get_description () throws GLib.Error;
		public Atspi.Document get_document ();
		public Atspi.EditableText get_editable_text ();
		public Atspi.Hyperlink get_hyperlink ();
		public Atspi.Hypertext get_hypertext ();
		public int get_id () throws GLib.Error;
		public Atspi.Image get_image ();
		public int get_index_in_parent () throws GLib.Error;
		public GLib.Array<string> get_interfaces ();
		public string get_localized_role_name () throws GLib.Error;
		public string get_name () throws GLib.Error;
		public Atspi.Accessible get_parent () throws GLib.Error;
		public uint get_process_id () throws GLib.Error;
		public GLib.Array<Atspi.Accessible> get_relation_set () throws GLib.Error;
		public Atspi.Role get_role () throws GLib.Error;
		public string get_role_name () throws GLib.Error;
		public Atspi.Selection get_selection ();
		public Atspi.StateSet get_state_set ();
		public Atspi.Table get_table ();
		public Atspi.Text get_text ();
		public string get_toolkit_name () throws GLib.Error;
		public string get_toolkit_version () throws GLib.Error;
		public Atspi.Value get_value ();
		public void set_cache_mask (int mask);
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_device_listener_get_type ()")]
	public class DeviceListener : GLib.Object {
		public weak GLib.List<void*> callbacks;
		public uint id;
		[CCode (has_construct_function = false)]
		public DeviceListener (owned Atspi.DeviceListenerCB callback);
		public void add_callback ([CCode (delegate_target_pos = 1.2, destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerCB callback);
		[NoWrapper]
		public virtual bool device_event (Atspi.DeviceEvent arg0);
		public void remove_callback (Atspi.DeviceListenerCB callback);
		[CCode (has_construct_function = false)]
		public DeviceListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.DeviceListenerSimpleCB callback);
	}
	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_event_get_type ()")]
	[Compact]
	public class Event {
		public GLib.Value any_data;
		public int detail1;
		public int detail2;
		public weak Atspi.Accessible source;
		public weak string type;
		public static void main ();
		public static void quit ();
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_event_listener_get_type ()")]
	public class EventListener : GLib.Object {
		public weak Atspi.EventListenerCB callback;
		public weak GLib.DestroyNotify cb_destroyed;
		public void* user_data;
		[CCode (has_construct_function = false)]
		public EventListener (owned Atspi.EventListenerCB callback);
		public bool deregister (string event_type) throws GLib.Error;
		public static bool deregister_from_callback ([CCode (delegate_target_pos = 1.5)] Atspi.EventListenerCB callback, string event_type) throws GLib.Error;
		public static bool deregister_no_data (Atspi.EventListenerSimpleCB callback, string event_type) throws GLib.Error;
		public bool register (string event_type) throws GLib.Error;
		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;
		public static bool register_no_data ([CCode (destroy_notify_pos = 1.5)] owned Atspi.EventListenerSimpleCB callback, string event_type) throws GLib.Error;
		[CCode (has_construct_function = false)]
		public EventListener.simple ([CCode (destroy_notify_pos = 1.1)] owned Atspi.EventListenerSimpleCB callback);
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_hyperlink_get_type ()")]
	public class Hyperlink : Atspi.Object {
		[CCode (has_construct_function = false)]
		protected Hyperlink ();
		public int get_end_index () throws GLib.Error;
		public Atspi.Range get_index_range () throws GLib.Error;
		public int get_n_anchors () throws GLib.Error;
		public Atspi.Accessible get_object (int i) throws GLib.Error;
		public int get_start_index () throws GLib.Error;
		public string get_uri (int i) throws GLib.Error;
		public bool is_valid () throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_key_definition_get_type ()")]
	[Compact]
	public class KeyDefinition {
		public int keycode;
		public weak string keystring;
		public int keysym;
		public int unused;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_match_rule_get_type ()")]
	public class MatchRule : GLib.Object {
		public Atspi.CollectionMatchType attributematchtype;
		public weak GLib.HashTable<void*,void*> attributes;
		public Atspi.CollectionMatchType interfacematchtype;
		public weak GLib.Array<void*> interfaces;
		public bool invert;
		public Atspi.CollectionMatchType rolematchtype;
		[CCode (array_length = false, array_null_terminated = true)]
		public weak int[] roles;
		public Atspi.CollectionMatchType statematchtype;
		public weak Atspi.StateSet states;
		[CCode (has_construct_function = false)]
		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);
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_object_get_type ()")]
	public class Object : GLib.Object {
		public Atspi.Application app;
		public weak string path;
		[CCode (has_construct_function = false)]
		protected Object ();
	}
	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_point_get_type ()")]
	[Compact]
	public class Point {
		public int x;
		public int y;
		public Atspi.Point copy ();
	}
	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_range_get_type ()")]
	[Compact]
	public class Range {
		public int end_offset;
		public int start_offset;
		public Atspi.Range copy ();
	}
	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_rect_get_type ()")]
	[Compact]
	public class Rect {
		public int height;
		public int width;
		public int x;
		public int y;
		public Atspi.Rect copy ();
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_relation_get_type ()")]
	public class Relation : GLib.Object {
		public Atspi.RelationType relation_type;
		public weak GLib.Array<void*> targets;
		[CCode (has_construct_function = false)]
		protected Relation ();
		public int get_n_targets ();
		public Atspi.RelationType get_relation_type ();
		public Atspi.Accessible get_target (int i);
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_state_set_get_type ()")]
	public class StateSet : GLib.Object {
		public void* accessible;
		public int64 states;
		[CCode (has_construct_function = false)]
		public StateSet (GLib.Array<Atspi.StateType> states);
		public void add (Atspi.StateType state);
		public Atspi.StateSet compare (Atspi.StateSet set2);
		public bool contains (Atspi.StateType state);
		public bool equals (Atspi.StateSet set2);
		public GLib.Array<Atspi.StateType> get_states ();
		public bool is_empty ();
		public void remove (Atspi.StateType state);
		public void set_by_name (string name, bool enabled);
	}
	[CCode (cheader_filename = "atspi/atspi.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "atspi_text_range_get_type ()")]
	[Compact]
	public class TextRange {
		public weak string content;
		public int end_offset;
		public int start_offset;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_action_get_type ()")]
	public interface Action : GLib.Object {
		public bool do_action (int i) throws GLib.Error;
		public string get_description (int i) throws GLib.Error;
		public string get_key_binding (int i) throws GLib.Error;
		public string get_localized_name (int i) throws GLib.Error;
		public int get_n_actions () throws GLib.Error;
		public string get_name (int i) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_collection_get_type ()")]
	public interface Collection : GLib.Object {
		public GLib.Array<Atspi.Accessible> get_matches (Atspi.MatchRule rule, Atspi.CollectionSortOrder sortby, int count, bool traverse) throws GLib.Error;
		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;
		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;
		public bool is_ancestor_of (Atspi.Accessible test) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_component_get_type ()")]
	public interface Component : GLib.Object {
		public bool contains (int x, int y, Atspi.CoordType ctype) throws GLib.Error;
		public Atspi.Accessible get_accessible_at_point (int x, int y, Atspi.CoordType ctype) throws GLib.Error;
		public double get_alpha () throws GLib.Error;
		public Atspi.Rect get_extents (Atspi.CoordType ctype) throws GLib.Error;
		public Atspi.ComponentLayer get_layer () throws GLib.Error;
		public short get_mdi_z_order () throws GLib.Error;
		public Atspi.Point get_position (Atspi.CoordType ctype) throws GLib.Error;
		public Atspi.Point get_size () throws GLib.Error;
		public bool grab_focus () throws GLib.Error;
		public bool set_extents (int x, int y, int width, int height, Atspi.CoordType ctype) throws GLib.Error;
		public bool set_position (int x, int y, Atspi.CoordType ctype) throws GLib.Error;
		public bool set_size (int width, int height) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_document_get_type ()")]
	public interface Document : GLib.Object {
		public string get_attribute_value (string attribute) throws GLib.Error;
		public GLib.HashTable<string,string> get_attributes () throws GLib.Error;
		public string get_locale () throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_editable_text_get_type ()")]
	public interface EditableText : GLib.Object {
		public bool copy_text (int start_pos, int end_pos) throws GLib.Error;
		public bool cut_text (int start_pos, int end_pos) throws GLib.Error;
		public bool delete_text (int start_pos, int end_pos) throws GLib.Error;
		public bool insert_text (int position, string text, int length) throws GLib.Error;
		public bool paste_text (int position) throws GLib.Error;
		public bool set_text_contents (string new_contents) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_hypertext_get_type ()")]
	public interface Hypertext : GLib.Object {
		public Atspi.Hyperlink get_link (int link_index) throws GLib.Error;
		public int get_link_index (int character_offset) throws GLib.Error;
		public int get_n_links () throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_image_get_type ()")]
	public interface Image : GLib.Object {
		public string get_image_description () throws GLib.Error;
		public Atspi.Rect get_image_extents (Atspi.CoordType ctype) throws GLib.Error;
		public string get_image_locale () throws GLib.Error;
		public Atspi.Point get_image_position (Atspi.CoordType ctype) throws GLib.Error;
		public Atspi.Point get_image_size () throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_selection_get_type ()")]
	public interface Selection : GLib.Object {
		public bool clear_selection () throws GLib.Error;
		public bool deselect_child (int child_index) throws GLib.Error;
		public bool deselect_selected_child (int selected_child_index) throws GLib.Error;
		public int get_n_selected_children () throws GLib.Error;
		public Atspi.Accessible get_selected_child (int selected_child_index) throws GLib.Error;
		public bool is_child_selected (int child_index) throws GLib.Error;
		public bool select_all () throws GLib.Error;
		public bool select_child (int child_index) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_table_get_type ()")]
	public interface Table : GLib.Object {
		public bool add_column_selection (int column) throws GLib.Error;
		public bool add_row_selection (int row) throws GLib.Error;
		public Atspi.Accessible get_accessible_at (int row, int column) throws GLib.Error;
		public Atspi.Accessible get_caption () throws GLib.Error;
		public int get_column_at_index (int index) throws GLib.Error;
		public string get_column_description (int column) throws GLib.Error;
		public int get_column_extent_at (int row, int column) throws GLib.Error;
		public Atspi.Accessible get_column_header (int column) throws GLib.Error;
		public int get_index_at (int row, int column) throws GLib.Error;
		public int get_n_columns () throws GLib.Error;
		public int get_n_rows () throws GLib.Error;
		public int get_n_selected_columns () throws GLib.Error;
		public int get_n_selected_rows () throws GLib.Error;
		public int get_row_at_index (int index) throws GLib.Error;
		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;
		public string get_row_description (int row) throws GLib.Error;
		public int get_row_extent_at (int row, int column) throws GLib.Error;
		public Atspi.Accessible get_row_header (int row) throws GLib.Error;
		public GLib.Array<int> get_selected_columns () throws GLib.Error;
		public GLib.Array<int> get_selected_rows () throws GLib.Error;
		public Atspi.Accessible get_summary () throws GLib.Error;
		public bool is_column_selected (int column) throws GLib.Error;
		public bool is_row_selected (int row) throws GLib.Error;
		public bool is_selected (int row, int column) throws GLib.Error;
		public bool remove_column_selection (int column) throws GLib.Error;
		public bool remove_row_selection (int row) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_text_get_type ()")]
	public interface Text : GLib.Object {
		public bool add_selection (int start_offset, int end_offset) throws GLib.Error;
		public GLib.HashTable<string,string> get_attribute_run (int offset, bool include_defaults, out int start_offset, out int end_offset) throws GLib.Error;
		public string get_attribute_value (int offset, string attribute_name) throws GLib.Error;
		public GLib.HashTable<string,string> get_attributes (int offset, out int start_offset, out int end_offset) throws GLib.Error;
		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;
		public int get_caret_offset () throws GLib.Error;
		public uint get_character_at_offset (int offset) throws GLib.Error;
		public int get_character_count () throws GLib.Error;
		public Atspi.Rect get_character_extents (int offset, Atspi.CoordType type) throws GLib.Error;
		public GLib.HashTable<string,string> get_default_attributes () throws GLib.Error;
		public int get_n_selections () throws GLib.Error;
		public int get_offset_at_point (int x, int y, Atspi.CoordType type) throws GLib.Error;
		public Atspi.Rect get_range_extents (int start_offset, int end_offset, Atspi.CoordType type) throws GLib.Error;
		public Atspi.Range get_selection (int selection_num) throws GLib.Error;
		public string get_text (int start_offset, int end_offset) throws GLib.Error;
		public Atspi.TextRange get_text_after_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error;
		public Atspi.TextRange get_text_at_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error;
		public Atspi.TextRange get_text_before_offset (int offset, Atspi.TextBoundaryType type) throws GLib.Error;
		public bool remove_selection (int selection_num) throws GLib.Error;
		public bool set_caret_offset (int new_offset) throws GLib.Error;
		public bool set_selection (int selection_num, int start_offset, int end_offset) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", type_id = "atspi_value_get_type ()")]
	public interface Value : GLib.Object {
		public double get_current_value () throws GLib.Error;
		public double get_maximum_value () throws GLib.Error;
		public double get_minimum_increment () throws GLib.Error;
		public double get_minimum_value () throws GLib.Error;
		public bool set_current_value (double new_value) throws GLib.Error;
	}
	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
	public struct Application {
		public weak GLib.Object parent;
		public weak GLib.HashTable<void*,void*> hash;
		public weak string bus_name;
		public void* root;
		public Atspi.Cache cache;
		public weak string toolkit_name;
		public weak string toolkit_version;
		public weak string atspi_version;
		public void* time_added;
	}
	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
	public struct ApplicationClass {
		public weak GLib.ObjectClass parent_class;
	}
	[CCode (cheader_filename = "atspi/atspi.h")]
	[SimpleType]
	public struct ControllerEventMask : uint {
	}
	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
	public struct DeviceEvent {
		public Atspi.EventType type;
		public uint id;
		public ushort hw_code;
		public ushort modifiers;
		public uint timestamp;
		public weak string event_string;
		public bool is_text;
	}
	[CCode (cheader_filename = "atspi/atspi.h")]
	[SimpleType]
	public struct DeviceEventMask : uint {
	}
	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
	public struct EventListenerMode {
		public bool synchronous;
		public bool preemptive;
		public bool global;
	}
	[CCode (cheader_filename = "atspi/atspi.h")]
	[SimpleType]
	public struct KeyEventMask : uint {
	}
	[CCode (cheader_filename = "atspi/atspi.h")]
	[SimpleType]
	public struct KeyMaskType : uint {
	}
	[CCode (cheader_filename = "atspi/atspi.h")]
	[SimpleType]
	public struct KeystrokeListener {
	}
	[CCode (cheader_filename = "atspi/atspi.h", has_type_id = false)]
	public struct Reference {
		public weak string name;
		public weak string path;
	}
	[CCode (cheader_filename = "atspi/atspi.h", cname = "_AtspiKeySet", has_type_id = false)]
	public struct _KeySet {
		public uint keysyms;
		public ushort keycodes;
		public weak string keystrings;
		public short len;
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_CACHE_")]
	[Flags]
	public enum Cache {
		NONE,
		PARENT,
		CHILDREN,
		NAME,
		DESCRIPTION,
		STATES,
		ROLE,
		INTERFACES,
		ATTRIBUTES,
		ALL,
		DEFAULT,
		UNDEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_MATCH_")]
	public enum CollectionMatchType {
		INVALID,
		ALL,
		ANY,
		NONE,
		EMPTY,
		LAST_DEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_SORT_ORDER_")]
	public enum CollectionSortOrder {
		INVALID,
		CANONICAL,
		FLOW,
		TAB,
		REVERSE_CANONICAL,
		REVERSE_FLOW,
		REVERSE_TAB,
		LAST_DEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_Collection_TREE_")]
	public enum CollectionTreeTraversalType {
		RESTRICT_CHILDREN,
		RESTRICT_SIBLING,
		INORDER,
		LAST_DEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LAYER_")]
	public enum ComponentLayer {
		INVALID,
		BACKGROUND,
		CANVAS,
		WIDGET,
		MDI,
		POPUP,
		OVERLAY,
		WINDOW,
		LAST_DEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_COORD_TYPE_")]
	public enum CoordType {
		SCREEN,
		WINDOW
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ERROR_")]
	public enum Error {
		APPLICATION_GONE,
		IPC
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_")]
	public enum EventType {
		KEY_PRESSED_EVENT,
		KEY_RELEASED_EVENT,
		BUTTON_PRESSED_EVENT,
		BUTTON_RELEASED_EVENT
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_")]
	public enum KeyEventType {
		PRESSED,
		RELEASED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEYLISTENER_")]
	public enum KeyListenerSyncType {
		NOSYNC,
		SYNCHRONOUS,
		CANCONSUME,
		ALL_WINDOWS
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_KEY_")]
	public enum KeySynthType {
		PRESS,
		RELEASE,
		PRESSRELEASE,
		SYM,
		STRING
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_LOCALE_TYPE_")]
	public enum LocaleType {
		MESSAGES,
		COLLATE,
		CTYPE,
		MONETARY,
		NUMERIC,
		TIME
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_MODIFIER_")]
	public enum ModifierType {
		SHIFT,
		SHIFTLOCK,
		CONTROL,
		ALT,
		META,
		META2,
		META3,
		NUMLOCK
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_RELATION_")]
	public enum RelationType {
		NULL,
		LABEL_FOR,
		LABELLED_BY,
		CONTROLLER_FOR,
		CONTROLLED_BY,
		MEMBER_OF,
		TOOLTIP_FOR,
		NODE_CHILD_OF,
		NODE_PARENT_OF,
		EXTENDED,
		FLOWS_TO,
		FLOWS_FROM,
		SUBWINDOW_OF,
		EMBEDS,
		EMBEDDED_BY,
		POPUP_FOR,
		PARENT_WINDOW_OF,
		DESCRIPTION_FOR,
		DESCRIBED_BY,
		LAST_DEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_ROLE_")]
	public enum Role {
		INVALID,
		ACCELERATOR_LABEL,
		ALERT,
		ANIMATION,
		ARROW,
		CALENDAR,
		CANVAS,
		CHECK_BOX,
		CHECK_MENU_ITEM,
		COLOR_CHOOSER,
		COLUMN_HEADER,
		COMBO_BOX,
		DATE_EDITOR,
		DESKTOP_ICON,
		DESKTOP_FRAME,
		DIAL,
		DIALOG,
		DIRECTORY_PANE,
		DRAWING_AREA,
		FILE_CHOOSER,
		FILLER,
		FOCUS_TRAVERSABLE,
		FONT_CHOOSER,
		FRAME,
		GLASS_PANE,
		HTML_CONTAINER,
		ICON,
		IMAGE,
		INTERNAL_FRAME,
		LABEL,
		LAYERED_PANE,
		LIST,
		LIST_ITEM,
		MENU,
		MENU_BAR,
		MENU_ITEM,
		OPTION_PANE,
		PAGE_TAB,
		PAGE_TAB_LIST,
		PANEL,
		PASSWORD_TEXT,
		POPUP_MENU,
		PROGRESS_BAR,
		PUSH_BUTTON,
		RADIO_BUTTON,
		RADIO_MENU_ITEM,
		ROOT_PANE,
		ROW_HEADER,
		SCROLL_BAR,
		SCROLL_PANE,
		SEPARATOR,
		SLIDER,
		SPIN_BUTTON,
		SPLIT_PANE,
		STATUS_BAR,
		TABLE,
		TABLE_CELL,
		TABLE_COLUMN_HEADER,
		TABLE_ROW_HEADER,
		TEAROFF_MENU_ITEM,
		TERMINAL,
		TEXT,
		TOGGLE_BUTTON,
		TOOL_BAR,
		TOOL_TIP,
		TREE,
		TREE_TABLE,
		UNKNOWN,
		VIEWPORT,
		WINDOW,
		EXTENDED,
		HEADER,
		FOOTER,
		PARAGRAPH,
		RULER,
		APPLICATION,
		AUTOCOMPLETE,
		EDITBAR,
		EMBEDDED,
		ENTRY,
		CHART,
		CAPTION,
		DOCUMENT_FRAME,
		HEADING,
		PAGE,
		SECTION,
		REDUNDANT_OBJECT,
		FORM,
		LINK,
		INPUT_METHOD_WINDOW,
		TABLE_ROW,
		TREE_ITEM,
		DOCUMENT_SPREADSHEET,
		DOCUMENT_PRESENTATION,
		DOCUMENT_TEXT,
		DOCUMENT_WEB,
		DOCUMENT_EMAIL,
		COMMENT,
		LIST_BOX,
		GROUPING,
		IMAGE_MAP,
		NOTIFICATION,
		INFO_BAR,
		LAST_DEFINED;
		public static string get_name (Atspi.Role role);
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_STATE_")]
	public enum StateType {
		INVALID,
		ACTIVE,
		ARMED,
		BUSY,
		CHECKED,
		COLLAPSED,
		DEFUNCT,
		EDITABLE,
		ENABLED,
		EXPANDABLE,
		EXPANDED,
		FOCUSABLE,
		FOCUSED,
		HAS_TOOLTIP,
		HORIZONTAL,
		ICONIFIED,
		MODAL,
		MULTI_LINE,
		MULTISELECTABLE,
		OPAQUE,
		PRESSED,
		RESIZABLE,
		SELECTABLE,
		SELECTED,
		SENSITIVE,
		SHOWING,
		SINGLE_LINE,
		STALE,
		TRANSIENT,
		VERTICAL,
		VISIBLE,
		MANAGES_DESCENDANTS,
		INDETERMINATE,
		REQUIRED,
		TRUNCATED,
		ANIMATED,
		INVALID_ENTRY,
		SUPPORTS_AUTOCOMPLETION,
		SELECTABLE_TEXT,
		IS_DEFAULT,
		VISITED,
		LAST_DEFINED
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_BOUNDARY_")]
	public enum TextBoundaryType {
		CHAR,
		WORD_START,
		WORD_END,
		SENTENCE_START,
		SENTENCE_END,
		LINE_START,
		LINE_END
	}
	[CCode (cheader_filename = "atspi/atspi.h", cprefix = "ATSPI_TEXT_CLIP_")]
	public enum TextClipType {
		NONE,
		MIN,
		MAX,
		BOTH
	}
	[CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)]
	public delegate bool DeviceListenerCB (owned Atspi.DeviceEvent stroke);
	[CCode (cheader_filename = "atspi/atspi.h", has_target = false)]
	public delegate bool DeviceListenerSimpleCB (owned Atspi.DeviceEvent stroke);
	[CCode (cheader_filename = "atspi/atspi.h", instance_pos = 1.9)]
	public delegate void EventListenerCB (owned Atspi.Event event);
	[CCode (cheader_filename = "atspi/atspi.h", has_target = false)]
	public delegate void EventListenerSimpleCB (owned Atspi.Event event);
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COMPONENTLAYER_COUNT")]
	public const int COMPONENTLAYER_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_COORD_TYPE_COUNT")]
	public const int COORD_TYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_ACCESSIBLE")]
	public const string DBUS_INTERFACE_ACCESSIBLE;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_ACTION")]
	public const string DBUS_INTERFACE_ACTION;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_APPLICATION")]
	public const string DBUS_INTERFACE_APPLICATION;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_CACHE")]
	public const string DBUS_INTERFACE_CACHE;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_COLLECTION")]
	public const string DBUS_INTERFACE_COLLECTION;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_COMPONENT")]
	public const string DBUS_INTERFACE_COMPONENT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DEC")]
	public const string DBUS_INTERFACE_DEC;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DEVICE_EVENT_LISTENER")]
	public const string DBUS_INTERFACE_DEVICE_EVENT_LISTENER;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_DOCUMENT")]
	public const string DBUS_INTERFACE_DOCUMENT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EDITABLE_TEXT")]
	public const string DBUS_INTERFACE_EDITABLE_TEXT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_KEYBOARD")]
	public const string DBUS_INTERFACE_EVENT_KEYBOARD;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_MOUSE")]
	public const string DBUS_INTERFACE_EVENT_MOUSE;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_EVENT_OBJECT")]
	public const string DBUS_INTERFACE_EVENT_OBJECT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_HYPERLINK")]
	public const string DBUS_INTERFACE_HYPERLINK;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_HYPERTEXT")]
	public const string DBUS_INTERFACE_HYPERTEXT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_IMAGE")]
	public const string DBUS_INTERFACE_IMAGE;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_REGISTRY")]
	public const string DBUS_INTERFACE_REGISTRY;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_SELECTION")]
	public const string DBUS_INTERFACE_SELECTION;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_SOCKET")]
	public const string DBUS_INTERFACE_SOCKET;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_TABLE")]
	public const string DBUS_INTERFACE_TABLE;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_TEXT")]
	public const string DBUS_INTERFACE_TEXT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_INTERFACE_VALUE")]
	public const string DBUS_INTERFACE_VALUE;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_NAME_REGISTRY")]
	public const string DBUS_NAME_REGISTRY;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_DEC")]
	public const string DBUS_PATH_DEC;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_NULL")]
	public const string DBUS_PATH_NULL;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_REGISTRY")]
	public const string DBUS_PATH_REGISTRY;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_DBUS_PATH_ROOT")]
	public const string DBUS_PATH_ROOT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_EVENTTYPE_COUNT")]
	public const int EVENTTYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_KEYEVENTTYPE_COUNT")]
	public const int KEYEVENTTYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_KEYSYNTHTYPE_COUNT")]
	public const int KEYSYNTHTYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_MATCHTYPES_COUNT")]
	public const int MATCHTYPES_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_MODIFIERTYPE_COUNT")]
	public const int MODIFIERTYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_RELATIONTYPE_COUNT")]
	public const int RELATIONTYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_ROLE_COUNT")]
	public const int ROLE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_SORTORDER_COUNT")]
	public const int SORTORDER_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_STATETYPE_COUNT")]
	public const int STATETYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_TEXT_BOUNDARY_TYPE_COUNT")]
	public const int TEXT_BOUNDARY_TYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h", cname = "ATSPI_TEXT_CLIP_TYPE_COUNT")]
	public const int TEXT_CLIP_TYPE_COUNT;
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static bool deregister_device_event_listener (Atspi.DeviceListener listener, void* filter) throws GLib.Error;
	[CCode (cheader_filename = "atspi/atspi.h")]
	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;
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static int exit ();
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static bool generate_keyboard_event (long keyval, string keystring, Atspi.KeySynthType synth_type) throws GLib.Error;
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static bool generate_mouse_event (long x, long y, string name) throws GLib.Error;
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static Atspi.Accessible get_desktop (int i);
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static int get_desktop_count ();
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static GLib.Array<void*> get_desktop_list ();
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static int init ();
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static bool register_device_event_listener (Atspi.DeviceListener listener, Atspi.DeviceEventMask event_types, void* filter) throws GLib.Error;
	[CCode (cheader_filename = "atspi/atspi.h")]
	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;
	[CCode (cheader_filename = "atspi/atspi.h")]
	public static void set_timeout (int val, int startup_time);
}