-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathxproto.h
15532 lines (13571 loc) · 442 KB
/
xproto.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 xproto.xml by c_client.py.
* Edit at your peril.
*/
/**
* @defgroup XCB__API XCB API
* @brief XCB Protocol Implementation.
* @{
**/
#ifndef __XPROTO_H
#define __XPROTO_H
#include "xcb.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief xcb_char2b_t
**/
typedef struct xcb_char2b_t {
uint8_t byte1; /**< */
uint8_t byte2; /**< */
} xcb_char2b_t;
/**
* @brief xcb_char2b_iterator_t
**/
typedef struct xcb_char2b_iterator_t {
xcb_char2b_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_char2b_iterator_t;
typedef uint32_t xcb_window_t;
/**
* @brief xcb_window_iterator_t
**/
typedef struct xcb_window_iterator_t {
xcb_window_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_window_iterator_t;
typedef uint32_t xcb_pixmap_t;
/**
* @brief xcb_pixmap_iterator_t
**/
typedef struct xcb_pixmap_iterator_t {
xcb_pixmap_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_pixmap_iterator_t;
typedef uint32_t xcb_cursor_t;
/**
* @brief xcb_cursor_iterator_t
**/
typedef struct xcb_cursor_iterator_t {
xcb_cursor_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_cursor_iterator_t;
typedef uint32_t xcb_font_t;
/**
* @brief xcb_font_iterator_t
**/
typedef struct xcb_font_iterator_t {
xcb_font_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_font_iterator_t;
typedef uint32_t xcb_gcontext_t;
/**
* @brief xcb_gcontext_iterator_t
**/
typedef struct xcb_gcontext_iterator_t {
xcb_gcontext_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_gcontext_iterator_t;
typedef uint32_t xcb_colormap_t;
/**
* @brief xcb_colormap_iterator_t
**/
typedef struct xcb_colormap_iterator_t {
xcb_colormap_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_colormap_iterator_t;
typedef uint32_t xcb_atom_t;
/**
* @brief xcb_atom_iterator_t
**/
typedef struct xcb_atom_iterator_t {
xcb_atom_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_atom_iterator_t;
typedef uint32_t xcb_drawable_t;
/**
* @brief xcb_drawable_iterator_t
**/
typedef struct xcb_drawable_iterator_t {
xcb_drawable_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_drawable_iterator_t;
typedef uint32_t xcb_fontable_t;
/**
* @brief xcb_fontable_iterator_t
**/
typedef struct xcb_fontable_iterator_t {
xcb_fontable_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_fontable_iterator_t;
typedef uint32_t xcb_visualid_t;
/**
* @brief xcb_visualid_iterator_t
**/
typedef struct xcb_visualid_iterator_t {
xcb_visualid_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_visualid_iterator_t;
typedef uint32_t xcb_timestamp_t;
/**
* @brief xcb_timestamp_iterator_t
**/
typedef struct xcb_timestamp_iterator_t {
xcb_timestamp_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_timestamp_iterator_t;
typedef uint32_t xcb_keysym_t;
/**
* @brief xcb_keysym_iterator_t
**/
typedef struct xcb_keysym_iterator_t {
xcb_keysym_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_keysym_iterator_t;
typedef uint8_t xcb_keycode_t;
/**
* @brief xcb_keycode_iterator_t
**/
typedef struct xcb_keycode_iterator_t {
xcb_keycode_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_keycode_iterator_t;
typedef uint8_t xcb_button_t;
/**
* @brief xcb_button_iterator_t
**/
typedef struct xcb_button_iterator_t {
xcb_button_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_button_iterator_t;
/**
* @brief xcb_point_t
**/
typedef struct xcb_point_t {
int16_t x; /**< */
int16_t y; /**< */
} xcb_point_t;
/**
* @brief xcb_point_iterator_t
**/
typedef struct xcb_point_iterator_t {
xcb_point_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_point_iterator_t;
/**
* @brief xcb_rectangle_t
**/
typedef struct xcb_rectangle_t {
int16_t x; /**< */
int16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
} xcb_rectangle_t;
/**
* @brief xcb_rectangle_iterator_t
**/
typedef struct xcb_rectangle_iterator_t {
xcb_rectangle_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_rectangle_iterator_t;
/**
* @brief xcb_arc_t
**/
typedef struct xcb_arc_t {
int16_t x; /**< */
int16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
int16_t angle1; /**< */
int16_t angle2; /**< */
} xcb_arc_t;
/**
* @brief xcb_arc_iterator_t
**/
typedef struct xcb_arc_iterator_t {
xcb_arc_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_arc_iterator_t;
/**
* @brief xcb_format_t
**/
typedef struct xcb_format_t {
uint8_t depth; /**< */
uint8_t bits_per_pixel; /**< */
uint8_t scanline_pad; /**< */
uint8_t pad0[5]; /**< */
} xcb_format_t;
/**
* @brief xcb_format_iterator_t
**/
typedef struct xcb_format_iterator_t {
xcb_format_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_format_iterator_t;
typedef enum xcb_visual_class_t {
XCB_VISUAL_CLASS_STATIC_GRAY = 0,
XCB_VISUAL_CLASS_GRAY_SCALE = 1,
XCB_VISUAL_CLASS_STATIC_COLOR = 2,
XCB_VISUAL_CLASS_PSEUDO_COLOR = 3,
XCB_VISUAL_CLASS_TRUE_COLOR = 4,
XCB_VISUAL_CLASS_DIRECT_COLOR = 5
} xcb_visual_class_t;
/**
* @brief xcb_visualtype_t
**/
typedef struct xcb_visualtype_t {
xcb_visualid_t visual_id; /**< */
uint8_t _class; /**< */
uint8_t bits_per_rgb_value; /**< */
uint16_t colormap_entries; /**< */
uint32_t red_mask; /**< */
uint32_t green_mask; /**< */
uint32_t blue_mask; /**< */
uint8_t pad0[4]; /**< */
} xcb_visualtype_t;
/**
* @brief xcb_visualtype_iterator_t
**/
typedef struct xcb_visualtype_iterator_t {
xcb_visualtype_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_visualtype_iterator_t;
/**
* @brief xcb_depth_t
**/
typedef struct xcb_depth_t {
uint8_t depth; /**< */
uint8_t pad0; /**< */
uint16_t visuals_len; /**< */
uint8_t pad1[4]; /**< */
} xcb_depth_t;
/**
* @brief xcb_depth_iterator_t
**/
typedef struct xcb_depth_iterator_t {
xcb_depth_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_depth_iterator_t;
typedef enum xcb_event_mask_t {
XCB_EVENT_MASK_NO_EVENT = 0,
XCB_EVENT_MASK_KEY_PRESS = 1,
XCB_EVENT_MASK_KEY_RELEASE = 2,
XCB_EVENT_MASK_BUTTON_PRESS = 4,
XCB_EVENT_MASK_BUTTON_RELEASE = 8,
XCB_EVENT_MASK_ENTER_WINDOW = 16,
XCB_EVENT_MASK_LEAVE_WINDOW = 32,
XCB_EVENT_MASK_POINTER_MOTION = 64,
XCB_EVENT_MASK_POINTER_MOTION_HINT = 128,
XCB_EVENT_MASK_BUTTON_1_MOTION = 256,
XCB_EVENT_MASK_BUTTON_2_MOTION = 512,
XCB_EVENT_MASK_BUTTON_3_MOTION = 1024,
XCB_EVENT_MASK_BUTTON_4_MOTION = 2048,
XCB_EVENT_MASK_BUTTON_5_MOTION = 4096,
XCB_EVENT_MASK_BUTTON_MOTION = 8192,
XCB_EVENT_MASK_KEYMAP_STATE = 16384,
XCB_EVENT_MASK_EXPOSURE = 32768,
XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536,
XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072,
XCB_EVENT_MASK_RESIZE_REDIRECT = 262144,
XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288,
XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576,
XCB_EVENT_MASK_FOCUS_CHANGE = 2097152,
XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304,
XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608,
XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
} xcb_event_mask_t;
typedef enum xcb_backing_store_t {
XCB_BACKING_STORE_NOT_USEFUL = 0,
XCB_BACKING_STORE_WHEN_MAPPED = 1,
XCB_BACKING_STORE_ALWAYS = 2
} xcb_backing_store_t;
/**
* @brief xcb_screen_t
**/
typedef struct xcb_screen_t {
xcb_window_t root; /**< */
xcb_colormap_t default_colormap; /**< */
uint32_t white_pixel; /**< */
uint32_t black_pixel; /**< */
uint32_t current_input_masks; /**< */
uint16_t width_in_pixels; /**< */
uint16_t height_in_pixels; /**< */
uint16_t width_in_millimeters; /**< */
uint16_t height_in_millimeters; /**< */
uint16_t min_installed_maps; /**< */
uint16_t max_installed_maps; /**< */
xcb_visualid_t root_visual; /**< */
uint8_t backing_stores; /**< */
uint8_t save_unders; /**< */
uint8_t root_depth; /**< */
uint8_t allowed_depths_len; /**< */
} xcb_screen_t;
/**
* @brief xcb_screen_iterator_t
**/
typedef struct xcb_screen_iterator_t {
xcb_screen_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_screen_iterator_t;
/**
* @brief xcb_setup_request_t
**/
typedef struct xcb_setup_request_t {
uint8_t byte_order; /**< */
uint8_t pad0; /**< */
uint16_t protocol_major_version; /**< */
uint16_t protocol_minor_version; /**< */
uint16_t authorization_protocol_name_len; /**< */
uint16_t authorization_protocol_data_len; /**< */
uint8_t pad1[2]; /**< */
} xcb_setup_request_t;
/**
* @brief xcb_setup_request_iterator_t
**/
typedef struct xcb_setup_request_iterator_t {
xcb_setup_request_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_setup_request_iterator_t;
/**
* @brief xcb_setup_failed_t
**/
typedef struct xcb_setup_failed_t {
uint8_t status; /**< */
uint8_t reason_len; /**< */
uint16_t protocol_major_version; /**< */
uint16_t protocol_minor_version; /**< */
uint16_t length; /**< */
} xcb_setup_failed_t;
/**
* @brief xcb_setup_failed_iterator_t
**/
typedef struct xcb_setup_failed_iterator_t {
xcb_setup_failed_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_setup_failed_iterator_t;
/**
* @brief xcb_setup_authenticate_t
**/
typedef struct xcb_setup_authenticate_t {
uint8_t status; /**< */
uint8_t pad0[5]; /**< */
uint16_t length; /**< */
} xcb_setup_authenticate_t;
/**
* @brief xcb_setup_authenticate_iterator_t
**/
typedef struct xcb_setup_authenticate_iterator_t {
xcb_setup_authenticate_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_setup_authenticate_iterator_t;
typedef enum xcb_image_order_t {
XCB_IMAGE_ORDER_LSB_FIRST = 0,
XCB_IMAGE_ORDER_MSB_FIRST = 1
} xcb_image_order_t;
/**
* @brief xcb_setup_t
**/
typedef struct xcb_setup_t {
uint8_t status; /**< */
uint8_t pad0; /**< */
uint16_t protocol_major_version; /**< */
uint16_t protocol_minor_version; /**< */
uint16_t length; /**< */
uint32_t release_number; /**< */
uint32_t resource_id_base; /**< */
uint32_t resource_id_mask; /**< */
uint32_t motion_buffer_size; /**< */
uint16_t vendor_len; /**< */
uint16_t maximum_request_length; /**< */
uint8_t roots_len; /**< */
uint8_t pixmap_formats_len; /**< */
uint8_t image_byte_order; /**< */
uint8_t bitmap_format_bit_order; /**< */
uint8_t bitmap_format_scanline_unit; /**< */
uint8_t bitmap_format_scanline_pad; /**< */
xcb_keycode_t min_keycode; /**< */
xcb_keycode_t max_keycode; /**< */
uint8_t pad1[4]; /**< */
} xcb_setup_t;
/**
* @brief xcb_setup_iterator_t
**/
typedef struct xcb_setup_iterator_t {
xcb_setup_t *data; /**< */
int rem; /**< */
int index; /**< */
} xcb_setup_iterator_t;
typedef enum xcb_mod_mask_t {
XCB_MOD_MASK_SHIFT = 1,
XCB_MOD_MASK_LOCK = 2,
XCB_MOD_MASK_CONTROL = 4,
XCB_MOD_MASK_1 = 8,
XCB_MOD_MASK_2 = 16,
XCB_MOD_MASK_3 = 32,
XCB_MOD_MASK_4 = 64,
XCB_MOD_MASK_5 = 128,
XCB_MOD_MASK_ANY = 32768
} xcb_mod_mask_t;
typedef enum xcb_key_but_mask_t {
XCB_KEY_BUT_MASK_SHIFT = 1,
XCB_KEY_BUT_MASK_LOCK = 2,
XCB_KEY_BUT_MASK_CONTROL = 4,
XCB_KEY_BUT_MASK_MOD_1 = 8,
XCB_KEY_BUT_MASK_MOD_2 = 16,
XCB_KEY_BUT_MASK_MOD_3 = 32,
XCB_KEY_BUT_MASK_MOD_4 = 64,
XCB_KEY_BUT_MASK_MOD_5 = 128,
XCB_KEY_BUT_MASK_BUTTON_1 = 256,
XCB_KEY_BUT_MASK_BUTTON_2 = 512,
XCB_KEY_BUT_MASK_BUTTON_3 = 1024,
XCB_KEY_BUT_MASK_BUTTON_4 = 2048,
XCB_KEY_BUT_MASK_BUTTON_5 = 4096
} xcb_key_but_mask_t;
typedef enum xcb_window_enum_t {
XCB_WINDOW_NONE = 0
} xcb_window_enum_t;
/** Opcode for xcb_key_press. */
#define XCB_KEY_PRESS 2
/**
* @brief xcb_key_press_event_t
**/
typedef struct xcb_key_press_event_t {
uint8_t response_type; /**< */
xcb_keycode_t detail; /**< */
uint16_t sequence; /**< */
xcb_timestamp_t time; /**< */
xcb_window_t root; /**< */
xcb_window_t event; /**< */
xcb_window_t child; /**< */
int16_t root_x; /**< */
int16_t root_y; /**< */
int16_t event_x; /**< */
int16_t event_y; /**< */
uint16_t state; /**< */
uint8_t same_screen; /**< */
uint8_t pad0; /**< */
} xcb_key_press_event_t;
/** Opcode for xcb_key_release. */
#define XCB_KEY_RELEASE 3
typedef xcb_key_press_event_t xcb_key_release_event_t;
typedef enum xcb_button_mask_t {
XCB_BUTTON_MASK_1 = 256,
XCB_BUTTON_MASK_2 = 512,
XCB_BUTTON_MASK_3 = 1024,
XCB_BUTTON_MASK_4 = 2048,
XCB_BUTTON_MASK_5 = 4096,
XCB_BUTTON_MASK_ANY = 32768
} xcb_button_mask_t;
/** Opcode for xcb_button_press. */
#define XCB_BUTTON_PRESS 4
/**
* @brief xcb_button_press_event_t
**/
typedef struct xcb_button_press_event_t {
uint8_t response_type; /**< */
xcb_button_t detail; /**< */
uint16_t sequence; /**< */
xcb_timestamp_t time; /**< */
xcb_window_t root; /**< */
xcb_window_t event; /**< */
xcb_window_t child; /**< */
int16_t root_x; /**< */
int16_t root_y; /**< */
int16_t event_x; /**< */
int16_t event_y; /**< */
uint16_t state; /**< */
uint8_t same_screen; /**< */
uint8_t pad0; /**< */
} xcb_button_press_event_t;
/** Opcode for xcb_button_release. */
#define XCB_BUTTON_RELEASE 5
typedef xcb_button_press_event_t xcb_button_release_event_t;
typedef enum xcb_motion_t {
XCB_MOTION_NORMAL = 0,
XCB_MOTION_HINT = 1
} xcb_motion_t;
/** Opcode for xcb_motion_notify. */
#define XCB_MOTION_NOTIFY 6
/**
* @brief xcb_motion_notify_event_t
**/
typedef struct xcb_motion_notify_event_t {
uint8_t response_type; /**< */
uint8_t detail; /**< */
uint16_t sequence; /**< */
xcb_timestamp_t time; /**< */
xcb_window_t root; /**< */
xcb_window_t event; /**< */
xcb_window_t child; /**< */
int16_t root_x; /**< */
int16_t root_y; /**< */
int16_t event_x; /**< */
int16_t event_y; /**< */
uint16_t state; /**< */
uint8_t same_screen; /**< */
uint8_t pad0; /**< */
} xcb_motion_notify_event_t;
typedef enum xcb_notify_detail_t {
XCB_NOTIFY_DETAIL_ANCESTOR = 0,
XCB_NOTIFY_DETAIL_VIRTUAL = 1,
XCB_NOTIFY_DETAIL_INFERIOR = 2,
XCB_NOTIFY_DETAIL_NONLINEAR = 3,
XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4,
XCB_NOTIFY_DETAIL_POINTER = 5,
XCB_NOTIFY_DETAIL_POINTER_ROOT = 6,
XCB_NOTIFY_DETAIL_NONE = 7
} xcb_notify_detail_t;
typedef enum xcb_notify_mode_t {
XCB_NOTIFY_MODE_NORMAL = 0,
XCB_NOTIFY_MODE_GRAB = 1,
XCB_NOTIFY_MODE_UNGRAB = 2,
XCB_NOTIFY_MODE_WHILE_GRABBED = 3
} xcb_notify_mode_t;
/** Opcode for xcb_enter_notify. */
#define XCB_ENTER_NOTIFY 7
/**
* @brief xcb_enter_notify_event_t
**/
typedef struct xcb_enter_notify_event_t {
uint8_t response_type; /**< */
uint8_t detail; /**< */
uint16_t sequence; /**< */
xcb_timestamp_t time; /**< */
xcb_window_t root; /**< */
xcb_window_t event; /**< */
xcb_window_t child; /**< */
int16_t root_x; /**< */
int16_t root_y; /**< */
int16_t event_x; /**< */
int16_t event_y; /**< */
uint16_t state; /**< */
uint8_t mode; /**< */
uint8_t same_screen_focus; /**< */
} xcb_enter_notify_event_t;
/** Opcode for xcb_leave_notify. */
#define XCB_LEAVE_NOTIFY 8
typedef xcb_enter_notify_event_t xcb_leave_notify_event_t;
/** Opcode for xcb_focus_in. */
#define XCB_FOCUS_IN 9
/**
* @brief xcb_focus_in_event_t
**/
typedef struct xcb_focus_in_event_t {
uint8_t response_type; /**< */
uint8_t detail; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
uint8_t mode; /**< */
uint8_t pad0[3]; /**< */
} xcb_focus_in_event_t;
/** Opcode for xcb_focus_out. */
#define XCB_FOCUS_OUT 10
typedef xcb_focus_in_event_t xcb_focus_out_event_t;
/** Opcode for xcb_keymap_notify. */
#define XCB_KEYMAP_NOTIFY 11
/**
* @brief xcb_keymap_notify_event_t
**/
typedef struct xcb_keymap_notify_event_t {
uint8_t response_type; /**< */
uint8_t keys[31]; /**< */
} xcb_keymap_notify_event_t;
/** Opcode for xcb_expose. */
#define XCB_EXPOSE 12
/**
* @brief xcb_expose_event_t
**/
typedef struct xcb_expose_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t window; /**< */
uint16_t x; /**< */
uint16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
uint16_t count; /**< */
uint8_t pad1[2]; /**< */
} xcb_expose_event_t;
/** Opcode for xcb_graphics_exposure. */
#define XCB_GRAPHICS_EXPOSURE 13
/**
* @brief xcb_graphics_exposure_event_t
**/
typedef struct xcb_graphics_exposure_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_drawable_t drawable; /**< */
uint16_t x; /**< */
uint16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
uint16_t minor_opcode; /**< */
uint16_t count; /**< */
uint8_t major_opcode; /**< */
uint8_t pad1[3]; /**< */
} xcb_graphics_exposure_event_t;
/** Opcode for xcb_no_exposure. */
#define XCB_NO_EXPOSURE 14
/**
* @brief xcb_no_exposure_event_t
**/
typedef struct xcb_no_exposure_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_drawable_t drawable; /**< */
uint16_t minor_opcode; /**< */
uint8_t major_opcode; /**< */
uint8_t pad1; /**< */
} xcb_no_exposure_event_t;
typedef enum xcb_visibility_t {
XCB_VISIBILITY_UNOBSCURED = 0,
XCB_VISIBILITY_PARTIALLY_OBSCURED = 1,
XCB_VISIBILITY_FULLY_OBSCURED = 2
} xcb_visibility_t;
/** Opcode for xcb_visibility_notify. */
#define XCB_VISIBILITY_NOTIFY 15
/**
* @brief xcb_visibility_notify_event_t
**/
typedef struct xcb_visibility_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t window; /**< */
uint8_t state; /**< */
uint8_t pad1[3]; /**< */
} xcb_visibility_notify_event_t;
/** Opcode for xcb_create_notify. */
#define XCB_CREATE_NOTIFY 16
/**
* @brief xcb_create_notify_event_t
**/
typedef struct xcb_create_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t parent; /**< */
xcb_window_t window; /**< */
int16_t x; /**< */
int16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
uint16_t border_width; /**< */
uint8_t override_redirect; /**< */
uint8_t pad1; /**< */
} xcb_create_notify_event_t;
/** Opcode for xcb_destroy_notify. */
#define XCB_DESTROY_NOTIFY 17
/**
* @brief xcb_destroy_notify_event_t
**/
typedef struct xcb_destroy_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
} xcb_destroy_notify_event_t;
/** Opcode for xcb_unmap_notify. */
#define XCB_UNMAP_NOTIFY 18
/**
* @brief xcb_unmap_notify_event_t
**/
typedef struct xcb_unmap_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
uint8_t from_configure; /**< */
uint8_t pad1[3]; /**< */
} xcb_unmap_notify_event_t;
/** Opcode for xcb_map_notify. */
#define XCB_MAP_NOTIFY 19
/**
* @brief xcb_map_notify_event_t
**/
typedef struct xcb_map_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
uint8_t override_redirect; /**< */
uint8_t pad1[3]; /**< */
} xcb_map_notify_event_t;
/** Opcode for xcb_map_request. */
#define XCB_MAP_REQUEST 20
/**
* @brief xcb_map_request_event_t
**/
typedef struct xcb_map_request_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t parent; /**< */
xcb_window_t window; /**< */
} xcb_map_request_event_t;
/** Opcode for xcb_reparent_notify. */
#define XCB_REPARENT_NOTIFY 21
/**
* @brief xcb_reparent_notify_event_t
**/
typedef struct xcb_reparent_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
xcb_window_t parent; /**< */
int16_t x; /**< */
int16_t y; /**< */
uint8_t override_redirect; /**< */
uint8_t pad1[3]; /**< */
} xcb_reparent_notify_event_t;
/** Opcode for xcb_configure_notify. */
#define XCB_CONFIGURE_NOTIFY 22
/**
* @brief xcb_configure_notify_event_t
**/
typedef struct xcb_configure_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
xcb_window_t above_sibling; /**< */
int16_t x; /**< */
int16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
uint16_t border_width; /**< */
uint8_t override_redirect; /**< */
uint8_t pad1; /**< */
} xcb_configure_notify_event_t;
/** Opcode for xcb_configure_request. */
#define XCB_CONFIGURE_REQUEST 23
/**
* @brief xcb_configure_request_event_t
**/
typedef struct xcb_configure_request_event_t {
uint8_t response_type; /**< */
uint8_t stack_mode; /**< */
uint16_t sequence; /**< */
xcb_window_t parent; /**< */
xcb_window_t window; /**< */
xcb_window_t sibling; /**< */
int16_t x; /**< */
int16_t y; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
uint16_t border_width; /**< */
uint16_t value_mask; /**< */
} xcb_configure_request_event_t;
/** Opcode for xcb_gravity_notify. */
#define XCB_GRAVITY_NOTIFY 24
/**
* @brief xcb_gravity_notify_event_t
**/
typedef struct xcb_gravity_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
int16_t x; /**< */
int16_t y; /**< */
} xcb_gravity_notify_event_t;
/** Opcode for xcb_resize_request. */
#define XCB_RESIZE_REQUEST 25
/**
* @brief xcb_resize_request_event_t
**/
typedef struct xcb_resize_request_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t window; /**< */
uint16_t width; /**< */
uint16_t height; /**< */
} xcb_resize_request_event_t;
typedef enum xcb_place_t {
XCB_PLACE_ON_TOP = 0,
XCB_PLACE_ON_BOTTOM = 1
} xcb_place_t;
/** Opcode for xcb_circulate_notify. */
#define XCB_CIRCULATE_NOTIFY 26
/**
* @brief xcb_circulate_notify_event_t
**/
typedef struct xcb_circulate_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t event; /**< */
xcb_window_t window; /**< */
uint8_t pad1[4]; /**< */
uint8_t place; /**< */
uint8_t pad2[3]; /**< */
} xcb_circulate_notify_event_t;
/** Opcode for xcb_circulate_request. */
#define XCB_CIRCULATE_REQUEST 27
typedef xcb_circulate_notify_event_t xcb_circulate_request_event_t;
typedef enum xcb_property_t {
XCB_PROPERTY_NEW_VALUE = 0,
XCB_PROPERTY_DELETE = 1
} xcb_property_t;
/** Opcode for xcb_property_notify. */
#define XCB_PROPERTY_NOTIFY 28
/**
* @brief xcb_property_notify_event_t
**/
typedef struct xcb_property_notify_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_window_t window; /**< */
xcb_atom_t atom; /**< */
xcb_timestamp_t time; /**< */
uint8_t state; /**< */
uint8_t pad1[3]; /**< */
} xcb_property_notify_event_t;
/** Opcode for xcb_selection_clear. */
#define XCB_SELECTION_CLEAR 29
/**
* @brief xcb_selection_clear_event_t
**/
typedef struct xcb_selection_clear_event_t {
uint8_t response_type; /**< */
uint8_t pad0; /**< */
uint16_t sequence; /**< */
xcb_timestamp_t time; /**< */
xcb_window_t owner; /**< */
xcb_atom_t selection; /**< */
} xcb_selection_clear_event_t;