-
Notifications
You must be signed in to change notification settings - Fork 0
/
xkb.h
7106 lines (6316 loc) · 241 KB
/
xkb.h
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
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This file generated automatically from xkb.xml by c_client.py.
* Edit at your peril.
*/
/**
* @defgroup XCB_xkb_API XCB xkb API
* @brief xkb XCB Protocol Implementation.
* @{
**/
#ifndef __XKB_H
#define __XKB_H
#include <xcb/xcb.h>
#include <xcb/xproto.h>
#ifdef __cplusplus
extern "C" {
#endif
#define XCB_XKB_MAJOR_VERSION 1
#define XCB_XKB_MINOR_VERSION 0
extern xcb_extension_t xcb_xkb_id;
typedef enum xcb_xkb_const_t {
XCB_XKB_CONST_MAX_LEGAL_KEY_CODE = 255,
XCB_XKB_CONST_PER_KEY_BIT_ARRAY_SIZE = 32,
XCB_XKB_CONST_KEY_NAME_LENGTH = 4
} xcb_xkb_const_t;
typedef enum xcb_xkb_event_type_t {
XCB_XKB_EVENT_TYPE_NEW_KEYBOARD_NOTIFY = 1,
XCB_XKB_EVENT_TYPE_MAP_NOTIFY = 2,
XCB_XKB_EVENT_TYPE_STATE_NOTIFY = 4,
XCB_XKB_EVENT_TYPE_CONTROLS_NOTIFY = 8,
XCB_XKB_EVENT_TYPE_INDICATOR_STATE_NOTIFY = 16,
XCB_XKB_EVENT_TYPE_INDICATOR_MAP_NOTIFY = 32,
XCB_XKB_EVENT_TYPE_NAMES_NOTIFY = 64,
XCB_XKB_EVENT_TYPE_COMPAT_MAP_NOTIFY = 128,
XCB_XKB_EVENT_TYPE_BELL_NOTIFY = 256,
XCB_XKB_EVENT_TYPE_ACTION_MESSAGE = 512,
XCB_XKB_EVENT_TYPE_ACCESS_X_NOTIFY = 1024,
XCB_XKB_EVENT_TYPE_EXTENSION_DEVICE_NOTIFY = 2048
} xcb_xkb_event_type_t;
typedef enum xcb_xkb_nkn_detail_t {
XCB_XKB_NKN_DETAIL_KEYCODES = 1,
XCB_XKB_NKN_DETAIL_GEOMETRY = 2,
XCB_XKB_NKN_DETAIL_DEVICE_ID = 4
} xcb_xkb_nkn_detail_t;
typedef enum xcb_xkb_axn_detail_t {
XCB_XKB_AXN_DETAIL_SK_PRESS = 1,
XCB_XKB_AXN_DETAIL_SK_ACCEPT = 2,
XCB_XKB_AXN_DETAIL_SK_REJECT = 4,
XCB_XKB_AXN_DETAIL_SK_RELEASE = 8,
XCB_XKB_AXN_DETAIL_BK_ACCEPT = 16,
XCB_XKB_AXN_DETAIL_BK_REJECT = 32,
XCB_XKB_AXN_DETAIL_AXK_WARNING = 64
} xcb_xkb_axn_detail_t;
typedef enum xcb_xkb_map_part_t {
XCB_XKB_MAP_PART_KEY_TYPES = 1,
XCB_XKB_MAP_PART_KEY_SYMS = 2,
XCB_XKB_MAP_PART_MODIFIER_MAP = 4,
XCB_XKB_MAP_PART_EXPLICIT_COMPONENTS = 8,
XCB_XKB_MAP_PART_KEY_ACTIONS = 16,
XCB_XKB_MAP_PART_KEY_BEHAVIORS = 32,
XCB_XKB_MAP_PART_VIRTUAL_MODS = 64,
XCB_XKB_MAP_PART_VIRTUAL_MOD_MAP = 128
} xcb_xkb_map_part_t;
typedef enum xcb_xkb_set_map_flags_t {
XCB_XKB_SET_MAP_FLAGS_RESIZE_TYPES = 1,
XCB_XKB_SET_MAP_FLAGS_RECOMPUTE_ACTIONS = 2
} xcb_xkb_set_map_flags_t;
typedef enum xcb_xkb_state_part_t {
XCB_XKB_STATE_PART_MODIFIER_STATE = 1,
XCB_XKB_STATE_PART_MODIFIER_BASE = 2,
XCB_XKB_STATE_PART_MODIFIER_LATCH = 4,
XCB_XKB_STATE_PART_MODIFIER_LOCK = 8,
XCB_XKB_STATE_PART_GROUP_STATE = 16,
XCB_XKB_STATE_PART_GROUP_BASE = 32,
XCB_XKB_STATE_PART_GROUP_LATCH = 64,
XCB_XKB_STATE_PART_GROUP_LOCK = 128,
XCB_XKB_STATE_PART_COMPAT_STATE = 256,
XCB_XKB_STATE_PART_GRAB_MODS = 512,
XCB_XKB_STATE_PART_COMPAT_GRAB_MODS = 1024,
XCB_XKB_STATE_PART_LOOKUP_MODS = 2048,
XCB_XKB_STATE_PART_COMPAT_LOOKUP_MODS = 4096,
XCB_XKB_STATE_PART_POINTER_BUTTONS = 8192
} xcb_xkb_state_part_t;
typedef enum xcb_xkb_bool_ctrl_t {
XCB_XKB_BOOL_CTRL_REPEAT_KEYS = 1,
XCB_XKB_BOOL_CTRL_SLOW_KEYS = 2,
XCB_XKB_BOOL_CTRL_BOUNCE_KEYS = 4,
XCB_XKB_BOOL_CTRL_STICKY_KEYS = 8,
XCB_XKB_BOOL_CTRL_MOUSE_KEYS = 16,
XCB_XKB_BOOL_CTRL_MOUSE_KEYS_ACCEL = 32,
XCB_XKB_BOOL_CTRL_ACCESS_X_KEYS = 64,
XCB_XKB_BOOL_CTRL_ACCESS_X_TIMEOUT_MASK = 128,
XCB_XKB_BOOL_CTRL_ACCESS_X_FEEDBACK_MASK = 256,
XCB_XKB_BOOL_CTRL_AUDIBLE_BELL_MASK = 512,
XCB_XKB_BOOL_CTRL_OVERLAY_1_MASK = 1024,
XCB_XKB_BOOL_CTRL_OVERLAY_2_MASK = 2048,
XCB_XKB_BOOL_CTRL_IGNORE_GROUP_LOCK_MASK = 4096
} xcb_xkb_bool_ctrl_t;
typedef enum xcb_xkb_control_t {
XCB_XKB_CONTROL_GROUPS_WRAP = 134217728,
XCB_XKB_CONTROL_INTERNAL_MODS = 268435456,
XCB_XKB_CONTROL_IGNORE_LOCK_MODS = 536870912,
XCB_XKB_CONTROL_PER_KEY_REPEAT = 1073741824,
XCB_XKB_CONTROL_CONTROLS_ENABLED = 2147483648
} xcb_xkb_control_t;
typedef enum xcb_xkb_ax_option_t {
XCB_XKB_AX_OPTION_SK_PRESS_FB = 1,
XCB_XKB_AX_OPTION_SK_ACCEPT_FB = 2,
XCB_XKB_AX_OPTION_FEATURE_FB = 4,
XCB_XKB_AX_OPTION_SLOW_WARN_FB = 8,
XCB_XKB_AX_OPTION_INDICATOR_FB = 16,
XCB_XKB_AX_OPTION_STICKY_KEYS_FB = 32,
XCB_XKB_AX_OPTION_TWO_KEYS = 64,
XCB_XKB_AX_OPTION_LATCH_TO_LOCK = 128,
XCB_XKB_AX_OPTION_SK_RELEASE_FB = 256,
XCB_XKB_AX_OPTION_SK_REJECT_FB = 512,
XCB_XKB_AX_OPTION_BK_REJECT_FB = 1024,
XCB_XKB_AX_OPTION_DUMB_BELL = 2048
} xcb_xkb_ax_option_t;
typedef uint16_t xcb_xkb_device_spec_t;
/**
* @brief xcb_xkb_device_spec_iterator_t
**/
typedef struct xcb_xkb_device_spec_iterator_t {
xcb_xkb_device_spec_t *data;
int rem;
int index;
} xcb_xkb_device_spec_iterator_t;
typedef enum xcb_xkb_led_class_result_t {
XCB_XKB_LED_CLASS_RESULT_KBD_FEEDBACK_CLASS = 0,
XCB_XKB_LED_CLASS_RESULT_LED_FEEDBACK_CLASS = 4
} xcb_xkb_led_class_result_t;
typedef enum xcb_xkb_led_class_t {
XCB_XKB_LED_CLASS_KBD_FEEDBACK_CLASS = 0,
XCB_XKB_LED_CLASS_LED_FEEDBACK_CLASS = 4,
XCB_XKB_LED_CLASS_DFLT_XI_CLASS = 768,
XCB_XKB_LED_CLASS_ALL_XI_CLASSES = 1280
} xcb_xkb_led_class_t;
typedef uint16_t xcb_xkb_led_class_spec_t;
/**
* @brief xcb_xkb_led_class_spec_iterator_t
**/
typedef struct xcb_xkb_led_class_spec_iterator_t {
xcb_xkb_led_class_spec_t *data;
int rem;
int index;
} xcb_xkb_led_class_spec_iterator_t;
typedef enum xcb_xkb_bell_class_result_t {
XCB_XKB_BELL_CLASS_RESULT_KBD_FEEDBACK_CLASS = 0,
XCB_XKB_BELL_CLASS_RESULT_BELL_FEEDBACK_CLASS = 5
} xcb_xkb_bell_class_result_t;
typedef enum xcb_xkb_bell_class_t {
XCB_XKB_BELL_CLASS_KBD_FEEDBACK_CLASS = 0,
XCB_XKB_BELL_CLASS_BELL_FEEDBACK_CLASS = 5,
XCB_XKB_BELL_CLASS_DFLT_XI_CLASS = 768
} xcb_xkb_bell_class_t;
typedef uint16_t xcb_xkb_bell_class_spec_t;
/**
* @brief xcb_xkb_bell_class_spec_iterator_t
**/
typedef struct xcb_xkb_bell_class_spec_iterator_t {
xcb_xkb_bell_class_spec_t *data;
int rem;
int index;
} xcb_xkb_bell_class_spec_iterator_t;
typedef enum xcb_xkb_id_t {
XCB_XKB_ID_USE_CORE_KBD = 256,
XCB_XKB_ID_USE_CORE_PTR = 512,
XCB_XKB_ID_DFLT_XI_CLASS = 768,
XCB_XKB_ID_DFLT_XI_ID = 1024,
XCB_XKB_ID_ALL_XI_CLASS = 1280,
XCB_XKB_ID_ALL_XI_ID = 1536,
XCB_XKB_ID_XI_NONE = 65280
} xcb_xkb_id_t;
typedef uint16_t xcb_xkb_id_spec_t;
/**
* @brief xcb_xkb_id_spec_iterator_t
**/
typedef struct xcb_xkb_id_spec_iterator_t {
xcb_xkb_id_spec_t *data;
int rem;
int index;
} xcb_xkb_id_spec_iterator_t;
typedef enum xcb_xkb_group_t {
XCB_XKB_GROUP_1 = 0,
XCB_XKB_GROUP_2 = 1,
XCB_XKB_GROUP_3 = 2,
XCB_XKB_GROUP_4 = 3
} xcb_xkb_group_t;
typedef enum xcb_xkb_groups_t {
XCB_XKB_GROUPS_ANY = 254,
XCB_XKB_GROUPS_ALL = 255
} xcb_xkb_groups_t;
typedef enum xcb_xkb_set_of_group_t {
XCB_XKB_SET_OF_GROUP_GROUP_1 = 1,
XCB_XKB_SET_OF_GROUP_GROUP_2 = 2,
XCB_XKB_SET_OF_GROUP_GROUP_3 = 4,
XCB_XKB_SET_OF_GROUP_GROUP_4 = 8
} xcb_xkb_set_of_group_t;
typedef enum xcb_xkb_set_of_groups_t {
XCB_XKB_SET_OF_GROUPS_ANY = 128
} xcb_xkb_set_of_groups_t;
typedef enum xcb_xkb_groups_wrap_t {
XCB_XKB_GROUPS_WRAP_WRAP_INTO_RANGE = 0,
XCB_XKB_GROUPS_WRAP_CLAMP_INTO_RANGE = 64,
XCB_XKB_GROUPS_WRAP_REDIRECT_INTO_RANGE = 128
} xcb_xkb_groups_wrap_t;
typedef enum xcb_xkb_v_mods_high_t {
XCB_XKB_V_MODS_HIGH_15 = 128,
XCB_XKB_V_MODS_HIGH_14 = 64,
XCB_XKB_V_MODS_HIGH_13 = 32,
XCB_XKB_V_MODS_HIGH_12 = 16,
XCB_XKB_V_MODS_HIGH_11 = 8,
XCB_XKB_V_MODS_HIGH_10 = 4,
XCB_XKB_V_MODS_HIGH_9 = 2,
XCB_XKB_V_MODS_HIGH_8 = 1
} xcb_xkb_v_mods_high_t;
typedef enum xcb_xkb_v_mods_low_t {
XCB_XKB_V_MODS_LOW_7 = 128,
XCB_XKB_V_MODS_LOW_6 = 64,
XCB_XKB_V_MODS_LOW_5 = 32,
XCB_XKB_V_MODS_LOW_4 = 16,
XCB_XKB_V_MODS_LOW_3 = 8,
XCB_XKB_V_MODS_LOW_2 = 4,
XCB_XKB_V_MODS_LOW_1 = 2,
XCB_XKB_V_MODS_LOW_0 = 1
} xcb_xkb_v_mods_low_t;
typedef enum xcb_xkb_v_mod_t {
XCB_XKB_V_MOD_15 = 32768,
XCB_XKB_V_MOD_14 = 16384,
XCB_XKB_V_MOD_13 = 8192,
XCB_XKB_V_MOD_12 = 4096,
XCB_XKB_V_MOD_11 = 2048,
XCB_XKB_V_MOD_10 = 1024,
XCB_XKB_V_MOD_9 = 512,
XCB_XKB_V_MOD_8 = 256,
XCB_XKB_V_MOD_7 = 128,
XCB_XKB_V_MOD_6 = 64,
XCB_XKB_V_MOD_5 = 32,
XCB_XKB_V_MOD_4 = 16,
XCB_XKB_V_MOD_3 = 8,
XCB_XKB_V_MOD_2 = 4,
XCB_XKB_V_MOD_1 = 2,
XCB_XKB_V_MOD_0 = 1
} xcb_xkb_v_mod_t;
typedef enum xcb_xkb_explicit_t {
XCB_XKB_EXPLICIT_V_MOD_MAP = 128,
XCB_XKB_EXPLICIT_BEHAVIOR = 64,
XCB_XKB_EXPLICIT_AUTO_REPEAT = 32,
XCB_XKB_EXPLICIT_INTERPRET = 16,
XCB_XKB_EXPLICIT_KEY_TYPE_4 = 8,
XCB_XKB_EXPLICIT_KEY_TYPE_3 = 4,
XCB_XKB_EXPLICIT_KEY_TYPE_2 = 2,
XCB_XKB_EXPLICIT_KEY_TYPE_1 = 1
} xcb_xkb_explicit_t;
typedef enum xcb_xkb_sym_interpret_match_t {
XCB_XKB_SYM_INTERPRET_MATCH_NONE_OF = 0,
XCB_XKB_SYM_INTERPRET_MATCH_ANY_OF_OR_NONE = 1,
XCB_XKB_SYM_INTERPRET_MATCH_ANY_OF = 2,
XCB_XKB_SYM_INTERPRET_MATCH_ALL_OF = 3,
XCB_XKB_SYM_INTERPRET_MATCH_EXACTLY = 4
} xcb_xkb_sym_interpret_match_t;
typedef enum xcb_xkb_sym_interp_match_t {
XCB_XKB_SYM_INTERP_MATCH_LEVEL_ONE_ONLY = 128,
XCB_XKB_SYM_INTERP_MATCH_OP_MASK = 127
} xcb_xkb_sym_interp_match_t;
typedef enum xcb_xkb_im_flag_t {
XCB_XKB_IM_FLAG_NO_EXPLICIT = 128,
XCB_XKB_IM_FLAG_NO_AUTOMATIC = 64,
XCB_XKB_IM_FLAG_LED_DRIVES_KB = 32
} xcb_xkb_im_flag_t;
typedef enum xcb_xkb_im_mods_which_t {
XCB_XKB_IM_MODS_WHICH_USE_COMPAT = 16,
XCB_XKB_IM_MODS_WHICH_USE_EFFECTIVE = 8,
XCB_XKB_IM_MODS_WHICH_USE_LOCKED = 4,
XCB_XKB_IM_MODS_WHICH_USE_LATCHED = 2,
XCB_XKB_IM_MODS_WHICH_USE_BASE = 1
} xcb_xkb_im_mods_which_t;
typedef enum xcb_xkb_im_groups_which_t {
XCB_XKB_IM_GROUPS_WHICH_USE_COMPAT = 16,
XCB_XKB_IM_GROUPS_WHICH_USE_EFFECTIVE = 8,
XCB_XKB_IM_GROUPS_WHICH_USE_LOCKED = 4,
XCB_XKB_IM_GROUPS_WHICH_USE_LATCHED = 2,
XCB_XKB_IM_GROUPS_WHICH_USE_BASE = 1
} xcb_xkb_im_groups_which_t;
/**
* @brief xcb_xkb_indicator_map_t
**/
typedef struct xcb_xkb_indicator_map_t {
uint8_t flags;
uint8_t whichGroups;
uint8_t groups;
uint8_t whichMods;
uint8_t mods;
uint8_t realMods;
uint16_t vmods;
uint32_t ctrls;
} xcb_xkb_indicator_map_t;
/**
* @brief xcb_xkb_indicator_map_iterator_t
**/
typedef struct xcb_xkb_indicator_map_iterator_t {
xcb_xkb_indicator_map_t *data;
int rem;
int index;
} xcb_xkb_indicator_map_iterator_t;
typedef enum xcb_xkb_cm_detail_t {
XCB_XKB_CM_DETAIL_SYM_INTERP = 1,
XCB_XKB_CM_DETAIL_GROUP_COMPAT = 2
} xcb_xkb_cm_detail_t;
typedef enum xcb_xkb_name_detail_t {
XCB_XKB_NAME_DETAIL_KEYCODES = 1,
XCB_XKB_NAME_DETAIL_GEOMETRY = 2,
XCB_XKB_NAME_DETAIL_SYMBOLS = 4,
XCB_XKB_NAME_DETAIL_PHYS_SYMBOLS = 8,
XCB_XKB_NAME_DETAIL_TYPES = 16,
XCB_XKB_NAME_DETAIL_COMPAT = 32,
XCB_XKB_NAME_DETAIL_KEY_TYPE_NAMES = 64,
XCB_XKB_NAME_DETAIL_KT_LEVEL_NAMES = 128,
XCB_XKB_NAME_DETAIL_INDICATOR_NAMES = 256,
XCB_XKB_NAME_DETAIL_KEY_NAMES = 512,
XCB_XKB_NAME_DETAIL_KEY_ALIASES = 1024,
XCB_XKB_NAME_DETAIL_VIRTUAL_MOD_NAMES = 2048,
XCB_XKB_NAME_DETAIL_GROUP_NAMES = 4096,
XCB_XKB_NAME_DETAIL_RG_NAMES = 8192
} xcb_xkb_name_detail_t;
typedef enum xcb_xkb_gbn_detail_t {
XCB_XKB_GBN_DETAIL_TYPES = 1,
XCB_XKB_GBN_DETAIL_COMPAT_MAP = 2,
XCB_XKB_GBN_DETAIL_CLIENT_SYMBOLS = 4,
XCB_XKB_GBN_DETAIL_SERVER_SYMBOLS = 8,
XCB_XKB_GBN_DETAIL_INDICATOR_MAPS = 16,
XCB_XKB_GBN_DETAIL_KEY_NAMES = 32,
XCB_XKB_GBN_DETAIL_GEOMETRY = 64,
XCB_XKB_GBN_DETAIL_OTHER_NAMES = 128
} xcb_xkb_gbn_detail_t;
typedef enum xcb_xkb_xi_feature_t {
XCB_XKB_XI_FEATURE_KEYBOARDS = 1,
XCB_XKB_XI_FEATURE_BUTTON_ACTIONS = 2,
XCB_XKB_XI_FEATURE_INDICATOR_NAMES = 4,
XCB_XKB_XI_FEATURE_INDICATOR_MAPS = 8,
XCB_XKB_XI_FEATURE_INDICATOR_STATE = 16
} xcb_xkb_xi_feature_t;
typedef enum xcb_xkb_per_client_flag_t {
XCB_XKB_PER_CLIENT_FLAG_DETECTABLE_AUTO_REPEAT = 1,
XCB_XKB_PER_CLIENT_FLAG_GRABS_USE_XKB_STATE = 2,
XCB_XKB_PER_CLIENT_FLAG_AUTO_RESET_CONTROLS = 4,
XCB_XKB_PER_CLIENT_FLAG_LOOKUP_STATE_WHEN_GRABBED = 8,
XCB_XKB_PER_CLIENT_FLAG_SEND_EVENT_USES_XKB_STATE = 16
} xcb_xkb_per_client_flag_t;
/**
* @brief xcb_xkb_mod_def_t
**/
typedef struct xcb_xkb_mod_def_t {
uint8_t mask;
uint8_t realMods;
uint16_t vmods;
} xcb_xkb_mod_def_t;
/**
* @brief xcb_xkb_mod_def_iterator_t
**/
typedef struct xcb_xkb_mod_def_iterator_t {
xcb_xkb_mod_def_t *data;
int rem;
int index;
} xcb_xkb_mod_def_iterator_t;
/**
* @brief xcb_xkb_key_name_t
**/
typedef struct xcb_xkb_key_name_t {
char name[4];
} xcb_xkb_key_name_t;
/**
* @brief xcb_xkb_key_name_iterator_t
**/
typedef struct xcb_xkb_key_name_iterator_t {
xcb_xkb_key_name_t *data;
int rem;
int index;
} xcb_xkb_key_name_iterator_t;
/**
* @brief xcb_xkb_key_alias_t
**/
typedef struct xcb_xkb_key_alias_t {
char real[4];
char alias[4];
} xcb_xkb_key_alias_t;
/**
* @brief xcb_xkb_key_alias_iterator_t
**/
typedef struct xcb_xkb_key_alias_iterator_t {
xcb_xkb_key_alias_t *data;
int rem;
int index;
} xcb_xkb_key_alias_iterator_t;
/**
* @brief xcb_xkb_counted_string_16_t
**/
typedef struct xcb_xkb_counted_string_16_t {
uint16_t length;
} xcb_xkb_counted_string_16_t;
/**
* @brief xcb_xkb_counted_string_16_iterator_t
**/
typedef struct xcb_xkb_counted_string_16_iterator_t {
xcb_xkb_counted_string_16_t *data;
int rem;
int index;
} xcb_xkb_counted_string_16_iterator_t;
/**
* @brief xcb_xkb_kt_map_entry_t
**/
typedef struct xcb_xkb_kt_map_entry_t {
uint8_t active;
uint8_t mods_mask;
uint8_t level;
uint8_t mods_mods;
uint16_t mods_vmods;
uint8_t pad0[2];
} xcb_xkb_kt_map_entry_t;
/**
* @brief xcb_xkb_kt_map_entry_iterator_t
**/
typedef struct xcb_xkb_kt_map_entry_iterator_t {
xcb_xkb_kt_map_entry_t *data;
int rem;
int index;
} xcb_xkb_kt_map_entry_iterator_t;
/**
* @brief xcb_xkb_key_type_t
**/
typedef struct xcb_xkb_key_type_t {
uint8_t mods_mask;
uint8_t mods_mods;
uint16_t mods_vmods;
uint8_t numLevels;
uint8_t nMapEntries;
uint8_t hasPreserve;
uint8_t pad0;
} xcb_xkb_key_type_t;
/**
* @brief xcb_xkb_key_type_iterator_t
**/
typedef struct xcb_xkb_key_type_iterator_t {
xcb_xkb_key_type_t *data;
int rem;
int index;
} xcb_xkb_key_type_iterator_t;
/**
* @brief xcb_xkb_key_sym_map_t
**/
typedef struct xcb_xkb_key_sym_map_t {
uint8_t kt_index[4];
uint8_t groupInfo;
uint8_t width;
uint16_t nSyms;
} xcb_xkb_key_sym_map_t;
/**
* @brief xcb_xkb_key_sym_map_iterator_t
**/
typedef struct xcb_xkb_key_sym_map_iterator_t {
xcb_xkb_key_sym_map_t *data;
int rem;
int index;
} xcb_xkb_key_sym_map_iterator_t;
/**
* @brief xcb_xkb_common_behavior_t
**/
typedef struct xcb_xkb_common_behavior_t {
uint8_t type;
uint8_t data;
} xcb_xkb_common_behavior_t;
/**
* @brief xcb_xkb_common_behavior_iterator_t
**/
typedef struct xcb_xkb_common_behavior_iterator_t {
xcb_xkb_common_behavior_t *data;
int rem;
int index;
} xcb_xkb_common_behavior_iterator_t;
/**
* @brief xcb_xkb_default_behavior_t
**/
typedef struct xcb_xkb_default_behavior_t {
uint8_t type;
uint8_t pad0;
} xcb_xkb_default_behavior_t;
/**
* @brief xcb_xkb_default_behavior_iterator_t
**/
typedef struct xcb_xkb_default_behavior_iterator_t {
xcb_xkb_default_behavior_t *data;
int rem;
int index;
} xcb_xkb_default_behavior_iterator_t;
/**
* @brief xcb_xkb_lock_behavior_t
**/
typedef struct xcb_xkb_lock_behavior_t {
uint8_t type;
uint8_t pad0;
} xcb_xkb_lock_behavior_t;
/**
* @brief xcb_xkb_lock_behavior_iterator_t
**/
typedef struct xcb_xkb_lock_behavior_iterator_t {
xcb_xkb_lock_behavior_t *data;
int rem;
int index;
} xcb_xkb_lock_behavior_iterator_t;
/**
* @brief xcb_xkb_radio_group_behavior_t
**/
typedef struct xcb_xkb_radio_group_behavior_t {
uint8_t type;
uint8_t group;
} xcb_xkb_radio_group_behavior_t;
/**
* @brief xcb_xkb_radio_group_behavior_iterator_t
**/
typedef struct xcb_xkb_radio_group_behavior_iterator_t {
xcb_xkb_radio_group_behavior_t *data;
int rem;
int index;
} xcb_xkb_radio_group_behavior_iterator_t;
/**
* @brief xcb_xkb_overlay_behavior_t
**/
typedef struct xcb_xkb_overlay_behavior_t {
uint8_t type;
xcb_keycode_t key;
} xcb_xkb_overlay_behavior_t;
/**
* @brief xcb_xkb_overlay_behavior_iterator_t
**/
typedef struct xcb_xkb_overlay_behavior_iterator_t {
xcb_xkb_overlay_behavior_t *data;
int rem;
int index;
} xcb_xkb_overlay_behavior_iterator_t;
/**
* @brief xcb_xkb_permament_lock_behavior_t
**/
typedef struct xcb_xkb_permament_lock_behavior_t {
uint8_t type;
uint8_t pad0;
} xcb_xkb_permament_lock_behavior_t;
/**
* @brief xcb_xkb_permament_lock_behavior_iterator_t
**/
typedef struct xcb_xkb_permament_lock_behavior_iterator_t {
xcb_xkb_permament_lock_behavior_t *data;
int rem;
int index;
} xcb_xkb_permament_lock_behavior_iterator_t;
/**
* @brief xcb_xkb_permament_radio_group_behavior_t
**/
typedef struct xcb_xkb_permament_radio_group_behavior_t {
uint8_t type;
uint8_t group;
} xcb_xkb_permament_radio_group_behavior_t;
/**
* @brief xcb_xkb_permament_radio_group_behavior_iterator_t
**/
typedef struct xcb_xkb_permament_radio_group_behavior_iterator_t {
xcb_xkb_permament_radio_group_behavior_t *data;
int rem;
int index;
} xcb_xkb_permament_radio_group_behavior_iterator_t;
/**
* @brief xcb_xkb_permament_overlay_behavior_t
**/
typedef struct xcb_xkb_permament_overlay_behavior_t {
uint8_t type;
xcb_keycode_t key;
} xcb_xkb_permament_overlay_behavior_t;
/**
* @brief xcb_xkb_permament_overlay_behavior_iterator_t
**/
typedef struct xcb_xkb_permament_overlay_behavior_iterator_t {
xcb_xkb_permament_overlay_behavior_t *data;
int rem;
int index;
} xcb_xkb_permament_overlay_behavior_iterator_t;
/**
* @brief xcb_xkb_behavior_t
**/
typedef union xcb_xkb_behavior_t {
xcb_xkb_common_behavior_t common;
xcb_xkb_default_behavior_t _default;
xcb_xkb_lock_behavior_t lock;
xcb_xkb_radio_group_behavior_t radioGroup;
xcb_xkb_overlay_behavior_t overlay1;
xcb_xkb_overlay_behavior_t overlay2;
xcb_xkb_permament_lock_behavior_t permamentLock;
xcb_xkb_permament_radio_group_behavior_t permamentRadioGroup;
xcb_xkb_permament_overlay_behavior_t permamentOverlay1;
xcb_xkb_permament_overlay_behavior_t permamentOverlay2;
uint8_t type;
} xcb_xkb_behavior_t;
/**
* @brief xcb_xkb_behavior_iterator_t
**/
typedef struct xcb_xkb_behavior_iterator_t {
xcb_xkb_behavior_t *data;
int rem;
int index;
} xcb_xkb_behavior_iterator_t;
typedef enum xcb_xkb_behavior_type_t {
XCB_XKB_BEHAVIOR_TYPE_DEFAULT = 0,
XCB_XKB_BEHAVIOR_TYPE_LOCK = 1,
XCB_XKB_BEHAVIOR_TYPE_RADIO_GROUP = 2,
XCB_XKB_BEHAVIOR_TYPE_OVERLAY_1 = 3,
XCB_XKB_BEHAVIOR_TYPE_OVERLAY_2 = 4,
XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_LOCK = 129,
XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_RADIO_GROUP = 130,
XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_OVERLAY_1 = 131,
XCB_XKB_BEHAVIOR_TYPE_PERMAMENT_OVERLAY_2 = 132
} xcb_xkb_behavior_type_t;
/**
* @brief xcb_xkb_set_behavior_t
**/
typedef struct xcb_xkb_set_behavior_t {
xcb_keycode_t keycode;
xcb_xkb_behavior_t behavior;
uint8_t pad0;
} xcb_xkb_set_behavior_t;
/**
* @brief xcb_xkb_set_behavior_iterator_t
**/
typedef struct xcb_xkb_set_behavior_iterator_t {
xcb_xkb_set_behavior_t *data;
int rem;
int index;
} xcb_xkb_set_behavior_iterator_t;
/**
* @brief xcb_xkb_set_explicit_t
**/
typedef struct xcb_xkb_set_explicit_t {
xcb_keycode_t keycode;
uint8_t explicit;
} xcb_xkb_set_explicit_t;
/**
* @brief xcb_xkb_set_explicit_iterator_t
**/
typedef struct xcb_xkb_set_explicit_iterator_t {
xcb_xkb_set_explicit_t *data;
int rem;
int index;
} xcb_xkb_set_explicit_iterator_t;
/**
* @brief xcb_xkb_key_mod_map_t
**/
typedef struct xcb_xkb_key_mod_map_t {
xcb_keycode_t keycode;
uint8_t mods;
} xcb_xkb_key_mod_map_t;
/**
* @brief xcb_xkb_key_mod_map_iterator_t
**/
typedef struct xcb_xkb_key_mod_map_iterator_t {
xcb_xkb_key_mod_map_t *data;
int rem;
int index;
} xcb_xkb_key_mod_map_iterator_t;
/**
* @brief xcb_xkb_key_v_mod_map_t
**/
typedef struct xcb_xkb_key_v_mod_map_t {
xcb_keycode_t keycode;
uint8_t pad0;
uint16_t vmods;
} xcb_xkb_key_v_mod_map_t;
/**
* @brief xcb_xkb_key_v_mod_map_iterator_t
**/
typedef struct xcb_xkb_key_v_mod_map_iterator_t {
xcb_xkb_key_v_mod_map_t *data;
int rem;
int index;
} xcb_xkb_key_v_mod_map_iterator_t;
/**
* @brief xcb_xkb_kt_set_map_entry_t
**/
typedef struct xcb_xkb_kt_set_map_entry_t {
uint8_t level;
uint8_t realMods;
uint16_t virtualMods;
} xcb_xkb_kt_set_map_entry_t;
/**
* @brief xcb_xkb_kt_set_map_entry_iterator_t
**/
typedef struct xcb_xkb_kt_set_map_entry_iterator_t {
xcb_xkb_kt_set_map_entry_t *data;
int rem;
int index;
} xcb_xkb_kt_set_map_entry_iterator_t;
/**
* @brief xcb_xkb_set_key_type_t
**/
typedef struct xcb_xkb_set_key_type_t {
uint8_t mask;
uint8_t realMods;
uint16_t virtualMods;
uint8_t numLevels;
uint8_t nMapEntries;
uint8_t preserve;
uint8_t pad0;
} xcb_xkb_set_key_type_t;
/**
* @brief xcb_xkb_set_key_type_iterator_t
**/
typedef struct xcb_xkb_set_key_type_iterator_t {
xcb_xkb_set_key_type_t *data;
int rem;
int index;
} xcb_xkb_set_key_type_iterator_t;
typedef char xcb_xkb_string8_t;
/**
* @brief xcb_xkb_string8_iterator_t
**/
typedef struct xcb_xkb_string8_iterator_t {
xcb_xkb_string8_t *data;
int rem;
int index;
} xcb_xkb_string8_iterator_t;
/**
* @brief xcb_xkb_outline_t
**/
typedef struct xcb_xkb_outline_t {
uint8_t nPoints;
uint8_t cornerRadius;
uint8_t pad0[2];
} xcb_xkb_outline_t;
/**
* @brief xcb_xkb_outline_iterator_t
**/
typedef struct xcb_xkb_outline_iterator_t {
xcb_xkb_outline_t *data;
int rem;
int index;
} xcb_xkb_outline_iterator_t;
/**
* @brief xcb_xkb_shape_t
**/
typedef struct xcb_xkb_shape_t {
xcb_atom_t name;
uint8_t nOutlines;
uint8_t primaryNdx;
uint8_t approxNdx;
uint8_t pad0;
} xcb_xkb_shape_t;
/**
* @brief xcb_xkb_shape_iterator_t
**/
typedef struct xcb_xkb_shape_iterator_t {
xcb_xkb_shape_t *data;
int rem;
int index;
} xcb_xkb_shape_iterator_t;
/**
* @brief xcb_xkb_key_t
**/
typedef struct xcb_xkb_key_t {
xcb_xkb_string8_t name[4];
int16_t gap;
uint8_t shapeNdx;
uint8_t colorNdx;
} xcb_xkb_key_t;
/**
* @brief xcb_xkb_key_iterator_t
**/
typedef struct xcb_xkb_key_iterator_t {
xcb_xkb_key_t *data;
int rem;
int index;
} xcb_xkb_key_iterator_t;
/**
* @brief xcb_xkb_overlay_key_t
**/
typedef struct xcb_xkb_overlay_key_t {
xcb_xkb_string8_t over[4];
xcb_xkb_string8_t under[4];
} xcb_xkb_overlay_key_t;
/**
* @brief xcb_xkb_overlay_key_iterator_t
**/
typedef struct xcb_xkb_overlay_key_iterator_t {
xcb_xkb_overlay_key_t *data;
int rem;
int index;
} xcb_xkb_overlay_key_iterator_t;
/**
* @brief xcb_xkb_overlay_row_t
**/
typedef struct xcb_xkb_overlay_row_t {
uint8_t rowUnder;
uint8_t nKeys;
uint8_t pad0[2];
} xcb_xkb_overlay_row_t;
/**
* @brief xcb_xkb_overlay_row_iterator_t
**/
typedef struct xcb_xkb_overlay_row_iterator_t {
xcb_xkb_overlay_row_t *data;
int rem;
int index;
} xcb_xkb_overlay_row_iterator_t;
/**
* @brief xcb_xkb_overlay_t
**/
typedef struct xcb_xkb_overlay_t {
xcb_atom_t name;
uint8_t nRows;
uint8_t pad0[3];
} xcb_xkb_overlay_t;
/**
* @brief xcb_xkb_overlay_iterator_t
**/
typedef struct xcb_xkb_overlay_iterator_t {
xcb_xkb_overlay_t *data;
int rem;
int index;
} xcb_xkb_overlay_iterator_t;
/**
* @brief xcb_xkb_row_t
**/
typedef struct xcb_xkb_row_t {
int16_t top;
int16_t left;
uint8_t nKeys;
uint8_t vertical;
uint8_t pad0[2];
} xcb_xkb_row_t;
/**
* @brief xcb_xkb_row_iterator_t
**/
typedef struct xcb_xkb_row_iterator_t {
xcb_xkb_row_t *data;
int rem;
int index;
} xcb_xkb_row_iterator_t;
typedef enum xcb_xkb_doodad_type_t {
XCB_XKB_DOODAD_TYPE_OUTLINE = 1,
XCB_XKB_DOODAD_TYPE_SOLID = 2,
XCB_XKB_DOODAD_TYPE_TEXT = 3,
XCB_XKB_DOODAD_TYPE_INDICATOR = 4,
XCB_XKB_DOODAD_TYPE_LOGO = 5
} xcb_xkb_doodad_type_t;
/**
* @brief xcb_xkb_listing_t
**/
typedef struct xcb_xkb_listing_t {
uint16_t flags;
uint16_t length;
} xcb_xkb_listing_t;
/**
* @brief xcb_xkb_listing_iterator_t
**/
typedef struct xcb_xkb_listing_iterator_t {
xcb_xkb_listing_t *data;
int rem;
int index;
} xcb_xkb_listing_iterator_t;
/**
* @brief xcb_xkb_device_led_info_t
**/
typedef struct xcb_xkb_device_led_info_t {
xcb_xkb_led_class_spec_t ledClass;
xcb_xkb_id_spec_t ledID;
uint32_t namesPresent;
uint32_t mapsPresent;
uint32_t physIndicators;
uint32_t state;
} xcb_xkb_device_led_info_t;
/**
* @brief xcb_xkb_device_led_info_iterator_t
**/
typedef struct xcb_xkb_device_led_info_iterator_t {
xcb_xkb_device_led_info_t *data;
int rem;
int index;
} xcb_xkb_device_led_info_iterator_t;