vx11 / types.c.v
2495 lines · 2074 sloc · 44.02 KB · 6de7c1113616d30335010eea79fd03d19722b474
Raw
1// Generated from the installed X11 headers.
2module vx11
3
4pub type AfterFunction = fn (&Display) i32
5
6pub type XID = CULong
7
8pub type Mask = CULong
9
10pub type Atom = CULong
11
12pub type VisualID = CULong
13
14pub type Time = CULong
15
16pub type Window = XID
17
18pub type Drawable = XID
19
20pub type Font = XID
21
22pub type Pixmap = XID
23
24pub type Cursor = XID
25
26pub type Colormap = XID
27
28pub type GContext = XID
29
30pub type KeySym = XID
31
32pub type KeyCode = u8
33
34pub type XPointer = &char
35
36@[typedef]
37pub struct C.XExtData {
38pub mut:
39 number i32
40 next &XExtData
41 free_private fn (&XExtData) i32
42 private_data XPointer
43}
44
45pub type XExtData = C.XExtData
46
47@[typedef]
48pub struct C.XExtCodes {
49pub mut:
50 extension i32
51 major_opcode i32
52 first_event i32
53 first_error i32
54}
55
56pub type XExtCodes = C.XExtCodes
57
58@[typedef]
59pub struct C.XPixmapFormatValues {
60pub mut:
61 depth i32
62 bits_per_pixel i32
63 scanline_pad i32
64}
65
66pub type XPixmapFormatValues = C.XPixmapFormatValues
67
68@[typedef]
69pub struct C.XGCValues {
70pub mut:
71 function i32
72 plane_mask CULong
73 foreground CULong
74 background CULong
75 line_width i32
76 line_style i32
77 cap_style i32
78 join_style i32
79 fill_style i32
80 fill_rule i32
81 arc_mode i32
82 tile Pixmap
83 stipple Pixmap
84 ts_x_origin i32
85 ts_y_origin i32
86 font Font
87 subwindow_mode i32
88 graphics_exposures i32
89 clip_x_origin i32
90 clip_y_origin i32
91 clip_mask Pixmap
92 dash_offset i32
93 dashes char
94}
95
96pub type XGCValues = C.XGCValues
97
98pub type GC = voidptr
99
100@[typedef]
101pub struct C.Visual {
102pub mut:
103 ext_data &XExtData
104 visualid VisualID
105 class i32
106 red_mask CULong
107 green_mask CULong
108 blue_mask CULong
109 bits_per_rgb i32
110 map_entries i32
111}
112
113pub type Visual = C.Visual
114
115@[typedef]
116pub struct C.Depth {
117pub mut:
118 depth i32
119 nvisuals i32
120 visuals &Visual
121}
122
123pub type Depth = C.Depth
124
125@[typedef]
126pub struct C.Screen {
127pub mut:
128 ext_data &XExtData
129 display &Display
130 root Window
131 width i32
132 height i32
133 mwidth i32
134 mheight i32
135 ndepths i32
136 depths &Depth
137 root_depth i32
138 root_visual &Visual
139 default_gc GC
140 cmap Colormap
141 white_pixel CULong
142 black_pixel CULong
143 max_maps i32
144 min_maps i32
145 backing_store i32
146 save_unders i32
147 root_input_mask CLong
148}
149
150pub type Screen = C.Screen
151
152@[typedef]
153pub struct C.ScreenFormat {
154pub mut:
155 ext_data &XExtData
156 depth i32
157 bits_per_pixel i32
158 scanline_pad i32
159}
160
161pub type ScreenFormat = C.ScreenFormat
162
163@[typedef]
164pub struct C.XSetWindowAttributes {
165pub mut:
166 background_pixmap Pixmap
167 background_pixel CULong
168 border_pixmap Pixmap
169 border_pixel CULong
170 bit_gravity i32
171 win_gravity i32
172 backing_store i32
173 backing_planes CULong
174 backing_pixel CULong
175 save_under i32
176 event_mask CLong
177 do_not_propagate_mask CLong
178 override_redirect i32
179 colormap Colormap
180 cursor Cursor
181}
182
183pub type XSetWindowAttributes = C.XSetWindowAttributes
184
185@[typedef]
186pub struct C.XWindowAttributes {
187pub mut:
188 x i32
189 y i32
190 width i32
191 height i32
192 border_width i32
193 depth i32
194 visual &Visual
195 root Window
196 class i32
197 bit_gravity i32
198 win_gravity i32
199 backing_store i32
200 backing_planes CULong
201 backing_pixel CULong
202 save_under i32
203 colormap Colormap
204 map_installed i32
205 map_state i32
206 all_event_masks CLong
207 your_event_mask CLong
208 do_not_propagate_mask CLong
209 override_redirect i32
210 screen &Screen
211}
212
213pub type XWindowAttributes = C.XWindowAttributes
214
215@[typedef]
216pub struct C.XHostAddress {
217pub mut:
218 family i32
219 length i32
220 address &char
221}
222
223pub type XHostAddress = C.XHostAddress
224
225@[typedef]
226pub struct C.XServerInterpretedAddress {
227pub mut:
228 typelength i32
229 valuelength i32
230 @type &char
231 value &char
232}
233
234pub type XServerInterpretedAddress = C.XServerInterpretedAddress
235
236@[typedef]
237pub struct C.XImage_f {
238pub mut:
239 create_image fn (&Display, &Visual, u32, i32, i32, &char, u32, u32, i32, i32) &XImage
240 destroy_image fn (&XImage) i32
241 get_pixel fn (&XImage, i32, i32) CULong
242 put_pixel fn (&XImage, i32, i32, CULong) i32
243 sub_image fn (&XImage, i32, i32, u32, u32) &XImage
244 add_pixel fn (&XImage, CLong) i32
245}
246
247pub type XImage_f = C.XImage_f
248
249@[typedef]
250pub struct C.XImage {
251pub mut:
252 width i32
253 height i32
254 xoffset i32
255 format i32
256 data &char
257 byte_order i32
258 bitmap_unit i32
259 bitmap_bit_order i32
260 bitmap_pad i32
261 depth i32
262 bytes_per_line i32
263 bits_per_pixel i32
264 red_mask CULong
265 green_mask CULong
266 blue_mask CULong
267 obdata XPointer
268 f XImage_f
269}
270
271pub type XImage = C.XImage
272
273@[typedef]
274pub struct C.XWindowChanges {
275pub mut:
276 x i32
277 y i32
278 width i32
279 height i32
280 border_width i32
281 sibling Window
282 stack_mode i32
283}
284
285pub type XWindowChanges = C.XWindowChanges
286
287@[typedef]
288pub struct C.XColor {
289pub mut:
290 pixel CULong
291 red u16
292 green u16
293 blue u16
294 flags char
295 pad char
296}
297
298pub type XColor = C.XColor
299
300@[typedef]
301pub struct C.XSegment {
302pub mut:
303 x1 i16
304 y1 i16
305 x2 i16
306 y2 i16
307}
308
309pub type XSegment = C.XSegment
310
311@[typedef]
312pub struct C.XPoint {
313pub mut:
314 x i16
315 y i16
316}
317
318pub type XPoint = C.XPoint
319
320@[typedef]
321pub struct C.XRectangle {
322pub mut:
323 x i16
324 y i16
325 width u16
326 height u16
327}
328
329pub type XRectangle = C.XRectangle
330
331@[typedef]
332pub struct C.XArc {
333pub mut:
334 x i16
335 y i16
336 width u16
337 height u16
338 angle1 i16
339 angle2 i16
340}
341
342pub type XArc = C.XArc
343
344@[typedef]
345pub struct C.XKeyboardControl {
346pub mut:
347 key_click_percent i32
348 bell_percent i32
349 bell_pitch i32
350 bell_duration i32
351 led i32
352 led_mode i32
353 key i32
354 auto_repeat_mode i32
355}
356
357pub type XKeyboardControl = C.XKeyboardControl
358
359@[typedef]
360pub struct C.XKeyboardState {
361pub mut:
362 key_click_percent i32
363 bell_percent i32
364 bell_pitch u32
365 bell_duration u32
366 led_mask CULong
367 global_auto_repeat i32
368 auto_repeats [32]char
369}
370
371pub type XKeyboardState = C.XKeyboardState
372
373@[typedef]
374pub struct C.XTimeCoord {
375pub mut:
376 time Time
377 x i16
378 y i16
379}
380
381pub type XTimeCoord = C.XTimeCoord
382
383@[typedef]
384pub struct C.XModifierKeymap {
385pub mut:
386 max_keypermod i32
387 modifiermap &KeyCode
388}
389
390pub type XModifierKeymap = C.XModifierKeymap
391
392@[typedef]
393pub struct C.Display {
394}
395
396pub type Display = C.Display
397
398@[typedef]
399pub struct C.XKeyEvent {
400pub mut:
401 @type i32
402 serial CULong
403 send_event i32
404 display &Display
405 window Window
406 root Window
407 subwindow Window
408 time Time
409 x i32
410 y i32
411 x_root i32
412 y_root i32
413 state u32
414 keycode u32
415 same_screen i32
416}
417
418pub type XKeyEvent = C.XKeyEvent
419
420pub type XKeyPressedEvent = XKeyEvent
421
422pub type XKeyReleasedEvent = XKeyEvent
423
424@[typedef]
425pub struct C.XButtonEvent {
426pub mut:
427 @type i32
428 serial CULong
429 send_event i32
430 display &Display
431 window Window
432 root Window
433 subwindow Window
434 time Time
435 x i32
436 y i32
437 x_root i32
438 y_root i32
439 state u32
440 button u32
441 same_screen i32
442}
443
444pub type XButtonEvent = C.XButtonEvent
445
446pub type XButtonPressedEvent = XButtonEvent
447
448pub type XButtonReleasedEvent = XButtonEvent
449
450@[typedef]
451pub struct C.XMotionEvent {
452pub mut:
453 @type i32
454 serial CULong
455 send_event i32
456 display &Display
457 window Window
458 root Window
459 subwindow Window
460 time Time
461 x i32
462 y i32
463 x_root i32
464 y_root i32
465 state u32
466 is_hint char
467 same_screen i32
468}
469
470pub type XMotionEvent = C.XMotionEvent
471
472pub type XPointerMovedEvent = XMotionEvent
473
474@[typedef]
475pub struct C.XCrossingEvent {
476pub mut:
477 @type i32
478 serial CULong
479 send_event i32
480 display &Display
481 window Window
482 root Window
483 subwindow Window
484 time Time
485 x i32
486 y i32
487 x_root i32
488 y_root i32
489 mode i32
490 detail i32
491 same_screen i32
492 focus i32
493 state u32
494}
495
496pub type XCrossingEvent = C.XCrossingEvent
497
498pub type XEnterWindowEvent = XCrossingEvent
499
500pub type XLeaveWindowEvent = XCrossingEvent
501
502@[typedef]
503pub struct C.XFocusChangeEvent {
504pub mut:
505 @type i32
506 serial CULong
507 send_event i32
508 display &Display
509 window Window
510 mode i32
511 detail i32
512}
513
514pub type XFocusChangeEvent = C.XFocusChangeEvent
515
516pub type XFocusInEvent = XFocusChangeEvent
517
518pub type XFocusOutEvent = XFocusChangeEvent
519
520@[typedef]
521pub struct C.XKeymapEvent {
522pub mut:
523 @type i32
524 serial CULong
525 send_event i32
526 display &Display
527 window Window
528 key_vector [32]char
529}
530
531pub type XKeymapEvent = C.XKeymapEvent
532
533@[typedef]
534pub struct C.XExposeEvent {
535pub mut:
536 @type i32
537 serial CULong
538 send_event i32
539 display &Display
540 window Window
541 x i32
542 y i32
543 width i32
544 height i32
545 count i32
546}
547
548pub type XExposeEvent = C.XExposeEvent
549
550@[typedef]
551pub struct C.XGraphicsExposeEvent {
552pub mut:
553 @type i32
554 serial CULong
555 send_event i32
556 display &Display
557 drawable Drawable
558 x i32
559 y i32
560 width i32
561 height i32
562 count i32
563 major_code i32
564 minor_code i32
565}
566
567pub type XGraphicsExposeEvent = C.XGraphicsExposeEvent
568
569@[typedef]
570pub struct C.XNoExposeEvent {
571pub mut:
572 @type i32
573 serial CULong
574 send_event i32
575 display &Display
576 drawable Drawable
577 major_code i32
578 minor_code i32
579}
580
581pub type XNoExposeEvent = C.XNoExposeEvent
582
583@[typedef]
584pub struct C.XVisibilityEvent {
585pub mut:
586 @type i32
587 serial CULong
588 send_event i32
589 display &Display
590 window Window
591 state i32
592}
593
594pub type XVisibilityEvent = C.XVisibilityEvent
595
596@[typedef]
597pub struct C.XCreateWindowEvent {
598pub mut:
599 @type i32
600 serial CULong
601 send_event i32
602 display &Display
603 parent Window
604 window Window
605 x i32
606 y i32
607 width i32
608 height i32
609 border_width i32
610 override_redirect i32
611}
612
613pub type XCreateWindowEvent = C.XCreateWindowEvent
614
615@[typedef]
616pub struct C.XDestroyWindowEvent {
617pub mut:
618 @type i32
619 serial CULong
620 send_event i32
621 display &Display
622 event Window
623 window Window
624}
625
626pub type XDestroyWindowEvent = C.XDestroyWindowEvent
627
628@[typedef]
629pub struct C.XUnmapEvent {
630pub mut:
631 @type i32
632 serial CULong
633 send_event i32
634 display &Display
635 event Window
636 window Window
637 from_configure i32
638}
639
640pub type XUnmapEvent = C.XUnmapEvent
641
642@[typedef]
643pub struct C.XMapEvent {
644pub mut:
645 @type i32
646 serial CULong
647 send_event i32
648 display &Display
649 event Window
650 window Window
651 override_redirect i32
652}
653
654pub type XMapEvent = C.XMapEvent
655
656@[typedef]
657pub struct C.XMapRequestEvent {
658pub mut:
659 @type i32
660 serial CULong
661 send_event i32
662 display &Display
663 parent Window
664 window Window
665}
666
667pub type XMapRequestEvent = C.XMapRequestEvent
668
669@[typedef]
670pub struct C.XReparentEvent {
671pub mut:
672 @type i32
673 serial CULong
674 send_event i32
675 display &Display
676 event Window
677 window Window
678 parent Window
679 x i32
680 y i32
681 override_redirect i32
682}
683
684pub type XReparentEvent = C.XReparentEvent
685
686@[typedef]
687pub struct C.XConfigureEvent {
688pub mut:
689 @type i32
690 serial CULong
691 send_event i32
692 display &Display
693 event Window
694 window Window
695 x i32
696 y i32
697 width i32
698 height i32
699 border_width i32
700 above Window
701 override_redirect i32
702}
703
704pub type XConfigureEvent = C.XConfigureEvent
705
706@[typedef]
707pub struct C.XGravityEvent {
708pub mut:
709 @type i32
710 serial CULong
711 send_event i32
712 display &Display
713 event Window
714 window Window
715 x i32
716 y i32
717}
718
719pub type XGravityEvent = C.XGravityEvent
720
721@[typedef]
722pub struct C.XResizeRequestEvent {
723pub mut:
724 @type i32
725 serial CULong
726 send_event i32
727 display &Display
728 window Window
729 width i32
730 height i32
731}
732
733pub type XResizeRequestEvent = C.XResizeRequestEvent
734
735@[typedef]
736pub struct C.XConfigureRequestEvent {
737pub mut:
738 @type i32
739 serial CULong
740 send_event i32
741 display &Display
742 parent Window
743 window Window
744 x i32
745 y i32
746 width i32
747 height i32
748 border_width i32
749 above Window
750 detail i32
751 value_mask CULong
752}
753
754pub type XConfigureRequestEvent = C.XConfigureRequestEvent
755
756@[typedef]
757pub struct C.XCirculateEvent {
758pub mut:
759 @type i32
760 serial CULong
761 send_event i32
762 display &Display
763 event Window
764 window Window
765 place i32
766}
767
768pub type XCirculateEvent = C.XCirculateEvent
769
770@[typedef]
771pub struct C.XCirculateRequestEvent {
772pub mut:
773 @type i32
774 serial CULong
775 send_event i32
776 display &Display
777 parent Window
778 window Window
779 place i32
780}
781
782pub type XCirculateRequestEvent = C.XCirculateRequestEvent
783
784@[typedef]
785pub struct C.XPropertyEvent {
786pub mut:
787 @type i32
788 serial CULong
789 send_event i32
790 display &Display
791 window Window
792 atom Atom
793 time Time
794 state i32
795}
796
797pub type XPropertyEvent = C.XPropertyEvent
798
799@[typedef]
800pub struct C.XSelectionClearEvent {
801pub mut:
802 @type i32
803 serial CULong
804 send_event i32
805 display &Display
806 window Window
807 selection Atom
808 time Time
809}
810
811pub type XSelectionClearEvent = C.XSelectionClearEvent
812
813@[typedef]
814pub struct C.XSelectionRequestEvent {
815pub mut:
816 @type i32
817 serial CULong
818 send_event i32
819 display &Display
820 owner Window
821 requestor Window
822 selection Atom
823 target Atom
824 property Atom
825 time Time
826}
827
828pub type XSelectionRequestEvent = C.XSelectionRequestEvent
829
830@[typedef]
831pub struct C.XSelectionEvent {
832pub mut:
833 @type i32
834 serial CULong
835 send_event i32
836 display &Display
837 requestor Window
838 selection Atom
839 target Atom
840 property Atom
841 time Time
842}
843
844pub type XSelectionEvent = C.XSelectionEvent
845
846@[typedef]
847pub struct C.XColormapEvent {
848pub mut:
849 @type i32
850 serial CULong
851 send_event i32
852 display &Display
853 window Window
854 colormap Colormap
855 new i32
856 state i32
857}
858
859pub type XColormapEvent = C.XColormapEvent
860
861@[typedef]
862pub union C.XClientMessageEvent_data {
863pub mut:
864 b [20]char
865 s [10]i16
866 l [5]CLong
867}
868
869pub type XClientMessageEvent_data = C.XClientMessageEvent_data
870
871@[typedef]
872pub struct C.XClientMessageEvent {
873pub mut:
874 @type i32
875 serial CULong
876 send_event i32
877 display &Display
878 window Window
879 message_type Atom
880 format i32
881 data XClientMessageEvent_data
882}
883
884pub type XClientMessageEvent = C.XClientMessageEvent
885
886@[typedef]
887pub struct C.XMappingEvent {
888pub mut:
889 @type i32
890 serial CULong
891 send_event i32
892 display &Display
893 window Window
894 request i32
895 first_keycode i32
896 count i32
897}
898
899pub type XMappingEvent = C.XMappingEvent
900
901@[typedef]
902pub struct C.XErrorEvent {
903pub mut:
904 @type i32
905 display &Display
906 resourceid XID
907 serial CULong
908 error_code u8
909 request_code u8
910 minor_code u8
911}
912
913pub type XErrorEvent = C.XErrorEvent
914
915@[typedef]
916pub struct C.XAnyEvent {
917pub mut:
918 @type i32
919 serial CULong
920 send_event i32
921 display &Display
922 window Window
923}
924
925pub type XAnyEvent = C.XAnyEvent
926
927@[typedef]
928pub struct C.XGenericEvent {
929pub mut:
930 @type i32
931 serial CULong
932 send_event i32
933 display &Display
934 extension i32
935 evtype i32
936}
937
938pub type XGenericEvent = C.XGenericEvent
939
940@[typedef]
941pub struct C.XGenericEventCookie {
942pub mut:
943 @type i32
944 serial CULong
945 send_event i32
946 display &Display
947 extension i32
948 evtype i32
949 cookie u32
950 data voidptr
951}
952
953pub type XGenericEventCookie = C.XGenericEventCookie
954
955@[typedef]
956pub union C.XEvent {
957pub mut:
958 @type i32
959 xany XAnyEvent
960 xkey XKeyEvent
961 xbutton XButtonEvent
962 xmotion XMotionEvent
963 xcrossing XCrossingEvent
964 xfocus XFocusChangeEvent
965 xexpose XExposeEvent
966 xgraphicsexpose XGraphicsExposeEvent
967 xnoexpose XNoExposeEvent
968 xvisibility XVisibilityEvent
969 xcreatewindow XCreateWindowEvent
970 xdestroywindow XDestroyWindowEvent
971 xunmap XUnmapEvent
972 xmap XMapEvent
973 xmaprequest XMapRequestEvent
974 xreparent XReparentEvent
975 xconfigure XConfigureEvent
976 xgravity XGravityEvent
977 xresizerequest XResizeRequestEvent
978 xconfigurerequest XConfigureRequestEvent
979 xcirculate XCirculateEvent
980 xcirculaterequest XCirculateRequestEvent
981 xproperty XPropertyEvent
982 xselectionclear XSelectionClearEvent
983 xselectionrequest XSelectionRequestEvent
984 xselection XSelectionEvent
985 xcolormap XColormapEvent
986 xclient XClientMessageEvent
987 xmapping XMappingEvent
988 xerror XErrorEvent
989 xkeymap XKeymapEvent
990 xgeneric XGenericEvent
991 xcookie XGenericEventCookie
992 pad [24]CLong
993}
994
995pub type XEvent = C.XEvent
996
997@[typedef]
998pub struct C.XCharStruct {
999pub mut:
1000 lbearing i16
1001 rbearing i16
1002 width i16
1003 ascent i16
1004 descent i16
1005 attributes u16
1006}
1007
1008pub type XCharStruct = C.XCharStruct
1009
1010@[typedef]
1011pub struct C.XFontProp {
1012pub mut:
1013 name Atom
1014 card32 CULong
1015}
1016
1017pub type XFontProp = C.XFontProp
1018
1019@[typedef]
1020pub struct C.XFontStruct {
1021pub mut:
1022 ext_data &XExtData
1023 fid Font
1024 direction u32
1025 min_char_or_byte2 u32
1026 max_char_or_byte2 u32
1027 min_byte1 u32
1028 max_byte1 u32
1029 all_chars_exist i32
1030 default_char u32
1031 n_properties i32
1032 properties &XFontProp
1033 min_bounds XCharStruct
1034 max_bounds XCharStruct
1035 per_char &XCharStruct
1036 ascent i32
1037 descent i32
1038}
1039
1040pub type XFontStruct = C.XFontStruct
1041
1042@[typedef]
1043pub struct C.XTextItem {
1044pub mut:
1045 chars &char
1046 nchars i32
1047 delta i32
1048 font Font
1049}
1050
1051pub type XTextItem = C.XTextItem
1052
1053@[typedef]
1054pub struct C.XChar2b {
1055pub mut:
1056 byte1 u8
1057 byte2 u8
1058}
1059
1060pub type XChar2b = C.XChar2b
1061
1062@[typedef]
1063pub struct C.XTextItem16 {
1064pub mut:
1065 chars &XChar2b
1066 nchars i32
1067 delta i32
1068 font Font
1069}
1070
1071pub type XTextItem16 = C.XTextItem16
1072
1073@[typedef]
1074pub union C.XEDataObject {
1075pub mut:
1076 display &Display
1077 gc GC
1078 visual &Visual
1079 screen &Screen
1080 pixmap_format &ScreenFormat
1081 font &XFontStruct
1082}
1083
1084pub type XEDataObject = C.XEDataObject
1085
1086@[typedef]
1087pub struct C.XFontSetExtents {
1088pub mut:
1089 max_ink_extent XRectangle
1090 max_logical_extent XRectangle
1091}
1092
1093pub type XFontSetExtents = C.XFontSetExtents
1094
1095pub type XOM = voidptr
1096
1097pub type XOC = voidptr
1098
1099pub type XFontSet = voidptr
1100
1101@[typedef]
1102pub struct C.XmbTextItem {
1103pub mut:
1104 chars &char
1105 nchars i32
1106 delta i32
1107 font_set XFontSet
1108}
1109
1110pub type XmbTextItem = C.XmbTextItem
1111
1112@[typedef]
1113pub struct C.XwcTextItem {
1114pub mut:
1115 chars &i32
1116 nchars i32
1117 delta i32
1118 font_set XFontSet
1119}
1120
1121pub type XwcTextItem = C.XwcTextItem
1122
1123@[typedef]
1124pub struct C.XOMCharSetList {
1125pub mut:
1126 charset_count i32
1127 charset_list &&char
1128}
1129
1130pub type XOMCharSetList = C.XOMCharSetList
1131
1132pub type XOrientation = i32
1133
1134@[typedef]
1135pub struct C.XOMOrientation {
1136pub mut:
1137 num_orientation i32
1138 orientation &XOrientation
1139}
1140
1141pub type XOMOrientation = C.XOMOrientation
1142
1143@[typedef]
1144pub struct C.XOMFontInfo {
1145pub mut:
1146 num_font i32
1147 font_struct_list &&XFontStruct
1148 font_name_list &&char
1149}
1150
1151pub type XOMFontInfo = C.XOMFontInfo
1152
1153pub type XIM = voidptr
1154
1155pub type XIC = voidptr
1156
1157pub type XIMProc = fn (XIM, XPointer, XPointer)
1158
1159pub type XICProc = fn (XIC, XPointer, XPointer) i32
1160
1161pub type XIDProc = fn (&Display, XPointer, XPointer)
1162
1163pub type XIMStyle = CULong
1164
1165@[typedef]
1166pub struct C.XIMStyles {
1167pub mut:
1168 count_styles u16
1169 supported_styles &XIMStyle
1170}
1171
1172pub type XIMStyles = C.XIMStyles
1173
1174pub type XVaNestedList = voidptr
1175
1176@[typedef]
1177pub struct C.XIMCallback {
1178pub mut:
1179 client_data XPointer
1180 callback XIMProc
1181}
1182
1183pub type XIMCallback = C.XIMCallback
1184
1185@[typedef]
1186pub struct C.XICCallback {
1187pub mut:
1188 client_data XPointer
1189 callback XICProc
1190}
1191
1192pub type XICCallback = C.XICCallback
1193
1194pub type XIMFeedback = CULong
1195
1196@[typedef]
1197pub union C.XIMText_string {
1198pub mut:
1199 multi_byte &char
1200 wide_char &i32
1201}
1202
1203pub type XIMText_string = C.XIMText_string
1204
1205@[typedef]
1206pub struct C.XIMText {
1207pub mut:
1208 length u16
1209 feedback &XIMFeedback
1210 encoding_is_wchar i32
1211 string XIMText_string
1212}
1213
1214pub type XIMText = C.XIMText
1215
1216pub type XIMPreeditState = CULong
1217
1218@[typedef]
1219pub struct C.XIMPreeditStateNotifyCallbackStruct {
1220pub mut:
1221 state XIMPreeditState
1222}
1223
1224pub type XIMPreeditStateNotifyCallbackStruct = C.XIMPreeditStateNotifyCallbackStruct
1225
1226pub type XIMResetState = CULong
1227
1228pub type XIMStringConversionFeedback = CULong
1229
1230@[typedef]
1231pub union C.XIMStringConversionText_string {
1232pub mut:
1233 mbs &char
1234 wcs &i32
1235}
1236
1237pub type XIMStringConversionText_string = C.XIMStringConversionText_string
1238
1239@[typedef]
1240pub struct C.XIMStringConversionText {
1241pub mut:
1242 length u16
1243 feedback &XIMStringConversionFeedback
1244 encoding_is_wchar i32
1245 string XIMStringConversionText_string
1246}
1247
1248pub type XIMStringConversionText = C.XIMStringConversionText
1249
1250pub type XIMStringConversionPosition = u16
1251
1252pub type XIMStringConversionType = u16
1253
1254pub type XIMStringConversionOperation = u16
1255
1256pub type XIMCaretDirection = i32
1257
1258@[typedef]
1259pub struct C.XIMStringConversionCallbackStruct {
1260pub mut:
1261 position XIMStringConversionPosition
1262 direction XIMCaretDirection
1263 operation XIMStringConversionOperation
1264 factor u16
1265 text &XIMStringConversionText
1266}
1267
1268pub type XIMStringConversionCallbackStruct = C.XIMStringConversionCallbackStruct
1269
1270@[typedef]
1271pub struct C.XIMPreeditDrawCallbackStruct {
1272pub mut:
1273 caret i32
1274 chg_first i32
1275 chg_length i32
1276 text &XIMText
1277}
1278
1279pub type XIMPreeditDrawCallbackStruct = C.XIMPreeditDrawCallbackStruct
1280
1281pub type XIMCaretStyle = i32
1282
1283@[typedef]
1284pub struct C.XIMPreeditCaretCallbackStruct {
1285pub mut:
1286 position i32
1287 direction XIMCaretDirection
1288 style XIMCaretStyle
1289}
1290
1291pub type XIMPreeditCaretCallbackStruct = C.XIMPreeditCaretCallbackStruct
1292
1293pub type XIMStatusDataType = i32
1294
1295@[typedef]
1296pub union C.XIMStatusDrawCallbackStruct_data {
1297pub mut:
1298 text &XIMText
1299 bitmap Pixmap
1300}
1301
1302pub type XIMStatusDrawCallbackStruct_data = C.XIMStatusDrawCallbackStruct_data
1303
1304@[typedef]
1305pub struct C.XIMStatusDrawCallbackStruct {
1306pub mut:
1307 @type XIMStatusDataType
1308 data XIMStatusDrawCallbackStruct_data
1309}
1310
1311pub type XIMStatusDrawCallbackStruct = C.XIMStatusDrawCallbackStruct
1312
1313@[typedef]
1314pub struct C.XIMHotKeyTrigger {
1315pub mut:
1316 keysym KeySym
1317 modifier i32
1318 modifier_mask i32
1319}
1320
1321pub type XIMHotKeyTrigger = C.XIMHotKeyTrigger
1322
1323@[typedef]
1324pub struct C.XIMHotKeyTriggers {
1325pub mut:
1326 num_hot_key i32
1327 key &XIMHotKeyTrigger
1328}
1329
1330pub type XIMHotKeyTriggers = C.XIMHotKeyTriggers
1331
1332pub type XIMHotKeyState = CULong
1333
1334@[typedef]
1335pub struct C.XIMValuesList {
1336pub mut:
1337 count_values u16
1338 supported_values &&char
1339}
1340
1341pub type XIMValuesList = C.XIMValuesList
1342
1343pub type XErrorHandler = fn (&Display, &XErrorEvent) i32
1344
1345pub type XIOErrorHandler = fn (&Display) i32
1346
1347pub type XIOErrorExitHandler = fn (&Display, voidptr)
1348
1349pub type XConnectionWatchProc = fn (&Display, XPointer, i32, i32, &XPointer)
1350
1351pub type XrmQuark = i32
1352
1353pub type XrmQuarkList = &i32
1354
1355pub type XrmString = &char
1356
1357pub type XrmBinding = i32
1358
1359pub type XrmBindingList = &i32
1360
1361pub type XrmName = XrmQuark
1362
1363pub type XrmNameList = XrmQuarkList
1364
1365pub type XrmClass = XrmQuark
1366
1367pub type XrmClassList = XrmQuarkList
1368
1369pub type XrmRepresentation = XrmQuark
1370
1371@[typedef]
1372pub struct C.XrmValue {
1373pub mut:
1374 size u32
1375 addr XPointer
1376}
1377
1378pub type XrmValue = C.XrmValue
1379
1380pub type XrmValuePtr = &XrmValue
1381
1382pub type XrmHashBucket = voidptr
1383
1384pub type XrmHashTable = &XrmHashBucket
1385
1386pub type XrmSearchList = &XrmHashTable
1387
1388pub type XrmDatabase = voidptr
1389
1390pub type XrmOptionKind = i32
1391
1392@[typedef]
1393pub struct C.XrmOptionDescRec {
1394pub mut:
1395 option &char
1396 specifier &char
1397 argKind XrmOptionKind
1398 value XPointer
1399}
1400
1401pub type XrmOptionDescRec = C.XrmOptionDescRec
1402
1403pub type XrmOptionDescList = &XrmOptionDescRec
1404
1405@[typedef]
1406pub struct C.XSizeHints_min_aspect {
1407pub mut:
1408 x i32
1409 y i32
1410}
1411
1412pub type XSizeHints_min_aspect = C.XSizeHints_min_aspect
1413
1414@[typedef]
1415pub struct C.XSizeHints {
1416pub mut:
1417 flags CLong
1418 x i32
1419 y i32
1420 width i32
1421 height i32
1422 min_width i32
1423 min_height i32
1424 max_width i32
1425 max_height i32
1426 width_inc i32
1427 height_inc i32
1428 min_aspect XSizeHints_min_aspect
1429 max_aspect XSizeHints_min_aspect
1430 base_width i32
1431 base_height i32
1432 win_gravity i32
1433}
1434
1435pub type XSizeHints = C.XSizeHints
1436
1437@[typedef]
1438pub struct C.XWMHints {
1439pub mut:
1440 flags CLong
1441 input i32
1442 initial_state i32
1443 icon_pixmap Pixmap
1444 icon_window Window
1445 icon_x i32
1446 icon_y i32
1447 icon_mask Pixmap
1448 window_group XID
1449}
1450
1451pub type XWMHints = C.XWMHints
1452
1453@[typedef]
1454pub struct C.XTextProperty {
1455pub mut:
1456 value &u8
1457 encoding Atom
1458 format i32
1459 nitems CULong
1460}
1461
1462pub type XTextProperty = C.XTextProperty
1463
1464pub type XICCEncodingStyle = i32
1465
1466@[typedef]
1467pub struct C.XIconSize {
1468pub mut:
1469 min_width i32
1470 min_height i32
1471 max_width i32
1472 max_height i32
1473 width_inc i32
1474 height_inc i32
1475}
1476
1477pub type XIconSize = C.XIconSize
1478
1479@[typedef]
1480pub struct C.XClassHint {
1481pub mut:
1482 res_name &char
1483 res_class &char
1484}
1485
1486pub type XClassHint = C.XClassHint
1487
1488@[typedef]
1489pub struct C.XComposeStatus {
1490pub mut:
1491 compose_ptr XPointer
1492 chars_matched i32
1493}
1494
1495pub type XComposeStatus = C.XComposeStatus
1496
1497pub type Region = voidptr
1498
1499@[typedef]
1500pub struct C.XVisualInfo {
1501pub mut:
1502 visual &Visual
1503 visualid VisualID
1504 screen i32
1505 depth i32
1506 class i32
1507 red_mask CULong
1508 green_mask CULong
1509 blue_mask CULong
1510 colormap_size i32
1511 bits_per_rgb i32
1512}
1513
1514pub type XVisualInfo = C.XVisualInfo
1515
1516@[typedef]
1517pub struct C.XStandardColormap {
1518pub mut:
1519 colormap Colormap
1520 red_max CULong
1521 red_mult CULong
1522 green_max CULong
1523 green_mult CULong
1524 blue_max CULong
1525 blue_mult CULong
1526 base_pixel CULong
1527 visualid VisualID
1528 killid XID
1529}
1530
1531pub type XStandardColormap = C.XStandardColormap
1532
1533pub type XContext = i32
1534
1535@[typedef]
1536pub struct C.XkbStateRec {
1537pub mut:
1538 group u8
1539 locked_group u8
1540 base_group u16
1541 latched_group u16
1542 mods u8
1543 base_mods u8
1544 latched_mods u8
1545 locked_mods u8
1546 compat_state u8
1547 grab_mods u8
1548 compat_grab_mods u8
1549 lookup_mods u8
1550 compat_lookup_mods u8
1551 ptr_buttons u16
1552}
1553
1554pub type XkbStateRec = C.XkbStateRec
1555
1556pub type XkbStatePtr = &XkbStateRec
1557
1558@[typedef]
1559pub struct C.XkbModsRec {
1560pub mut:
1561 mask u8
1562 real_mods u8
1563 vmods u16
1564}
1565
1566pub type XkbModsRec = C.XkbModsRec
1567
1568pub type XkbModsPtr = &XkbModsRec
1569
1570@[typedef]
1571pub struct C.XkbKTMapEntryRec {
1572pub mut:
1573 active i32
1574 level u8
1575 mods XkbModsRec
1576}
1577
1578pub type XkbKTMapEntryRec = C.XkbKTMapEntryRec
1579
1580pub type XkbKTMapEntryPtr = &XkbKTMapEntryRec
1581
1582@[typedef]
1583pub struct C.XkbKeyTypeRec {
1584pub mut:
1585 mods XkbModsRec
1586 num_levels u8
1587 map_count u8
1588 map XkbKTMapEntryPtr
1589 preserve XkbModsPtr
1590 name Atom
1591 level_names &Atom
1592}
1593
1594pub type XkbKeyTypeRec = C.XkbKeyTypeRec
1595
1596pub type XkbKeyTypePtr = &XkbKeyTypeRec
1597
1598@[typedef]
1599pub struct C.XkbBehavior {
1600pub mut:
1601 @type u8
1602 data u8
1603}
1604
1605pub type XkbBehavior = C.XkbBehavior
1606
1607@[typedef]
1608pub struct C.XkbAnyAction {
1609pub mut:
1610 @type u8
1611 data [7]u8
1612}
1613
1614pub type XkbAnyAction = C.XkbAnyAction
1615
1616@[typedef]
1617pub struct C.XkbModAction {
1618pub mut:
1619 @type u8
1620 flags u8
1621 mask u8
1622 real_mods u8
1623 vmods1 u8
1624 vmods2 u8
1625}
1626
1627pub type XkbModAction = C.XkbModAction
1628
1629@[typedef]
1630pub struct C.XkbGroupAction {
1631pub mut:
1632 @type u8
1633 flags u8
1634 group_XXX char
1635}
1636
1637pub type XkbGroupAction = C.XkbGroupAction
1638
1639@[typedef]
1640pub struct C.XkbISOAction {
1641pub mut:
1642 @type u8
1643 flags u8
1644 mask u8
1645 real_mods u8
1646 group_XXX char
1647 affect u8
1648 vmods1 u8
1649 vmods2 u8
1650}
1651
1652pub type XkbISOAction = C.XkbISOAction
1653
1654@[typedef]
1655pub struct C.XkbPtrAction {
1656pub mut:
1657 @type u8
1658 flags u8
1659 high_XXX u8
1660 low_XXX u8
1661 high_YYY u8
1662 low_YYY u8
1663}
1664
1665pub type XkbPtrAction = C.XkbPtrAction
1666
1667@[typedef]
1668pub struct C.XkbPtrBtnAction {
1669pub mut:
1670 @type u8
1671 flags u8
1672 count u8
1673 button u8
1674}
1675
1676pub type XkbPtrBtnAction = C.XkbPtrBtnAction
1677
1678@[typedef]
1679pub struct C.XkbPtrDfltAction {
1680pub mut:
1681 @type u8
1682 flags u8
1683 affect u8
1684 valueXXX char
1685}
1686
1687pub type XkbPtrDfltAction = C.XkbPtrDfltAction
1688
1689@[typedef]
1690pub struct C.XkbSwitchScreenAction {
1691pub mut:
1692 @type u8
1693 flags u8
1694 screenXXX char
1695}
1696
1697pub type XkbSwitchScreenAction = C.XkbSwitchScreenAction
1698
1699@[typedef]
1700pub struct C.XkbCtrlsAction {
1701pub mut:
1702 @type u8
1703 flags u8
1704 ctrls3 u8
1705 ctrls2 u8
1706 ctrls1 u8
1707 ctrls0 u8
1708}
1709
1710pub type XkbCtrlsAction = C.XkbCtrlsAction
1711
1712@[typedef]
1713pub struct C.XkbMessageAction {
1714pub mut:
1715 @type u8
1716 flags u8
1717 message [6]u8
1718}
1719
1720pub type XkbMessageAction = C.XkbMessageAction
1721
1722@[typedef]
1723pub struct C.XkbRedirectKeyAction {
1724pub mut:
1725 @type u8
1726 new_key u8
1727 mods_mask u8
1728 mods u8
1729 vmods_mask0 u8
1730 vmods_mask1 u8
1731 vmods0 u8
1732 vmods1 u8
1733}
1734
1735pub type XkbRedirectKeyAction = C.XkbRedirectKeyAction
1736
1737@[typedef]
1738pub struct C.XkbDeviceBtnAction {
1739pub mut:
1740 @type u8
1741 flags u8
1742 count u8
1743 button u8
1744 device u8
1745}
1746
1747pub type XkbDeviceBtnAction = C.XkbDeviceBtnAction
1748
1749@[typedef]
1750pub struct C.XkbDeviceValuatorAction {
1751pub mut:
1752 @type u8
1753 device u8
1754 v1_what u8
1755 v1_ndx u8
1756 v1_value u8
1757 v2_what u8
1758 v2_ndx u8
1759 v2_value u8
1760}
1761
1762pub type XkbDeviceValuatorAction = C.XkbDeviceValuatorAction
1763
1764@[typedef]
1765pub union C.XkbAction {
1766pub mut:
1767 any XkbAnyAction
1768 mods XkbModAction
1769 group XkbGroupAction
1770 iso XkbISOAction
1771 ptr XkbPtrAction
1772 btn XkbPtrBtnAction
1773 dflt XkbPtrDfltAction
1774 screen XkbSwitchScreenAction
1775 ctrls XkbCtrlsAction
1776 msg XkbMessageAction
1777 redirect XkbRedirectKeyAction
1778 devbtn XkbDeviceBtnAction
1779 devval XkbDeviceValuatorAction
1780 @type u8
1781}
1782
1783pub type XkbAction = C.XkbAction
1784
1785@[typedef]
1786pub struct C.XkbControlsRec {
1787pub mut:
1788 mk_dflt_btn u8
1789 num_groups u8
1790 groups_wrap u8
1791 internal XkbModsRec
1792 ignore_lock XkbModsRec
1793 enabled_ctrls u32
1794 repeat_delay u16
1795 repeat_interval u16
1796 slow_keys_delay u16
1797 debounce_delay u16
1798 mk_delay u16
1799 mk_interval u16
1800 mk_time_to_max u16
1801 mk_max_speed u16
1802 mk_curve i16
1803 ax_options u16
1804 ax_timeout u16
1805 axt_opts_mask u16
1806 axt_opts_values u16
1807 axt_ctrls_mask u32
1808 axt_ctrls_values u32
1809 per_key_repeat [32]u8
1810}
1811
1812pub type XkbControlsRec = C.XkbControlsRec
1813
1814pub type XkbControlsPtr = &XkbControlsRec
1815
1816@[typedef]
1817pub struct C.XkbServerMapRec {
1818pub mut:
1819 num_acts u16
1820 size_acts u16
1821 acts &XkbAction
1822 behaviors &XkbBehavior
1823 key_acts &u16
1824 explicit &u8
1825 vmods [16]u8
1826 vmodmap &u16
1827}
1828
1829pub type XkbServerMapRec = C.XkbServerMapRec
1830
1831pub type XkbServerMapPtr = &XkbServerMapRec
1832
1833@[typedef]
1834pub struct C.XkbSymMapRec {
1835pub mut:
1836 kt_index [4]u8
1837 group_info u8
1838 width u8
1839 offset u16
1840}
1841
1842pub type XkbSymMapRec = C.XkbSymMapRec
1843
1844pub type XkbSymMapPtr = &XkbSymMapRec
1845
1846@[typedef]
1847pub struct C.XkbClientMapRec {
1848pub mut:
1849 size_types u8
1850 num_types u8
1851 types XkbKeyTypePtr
1852 size_syms u16
1853 num_syms u16
1854 syms &KeySym
1855 key_sym_map XkbSymMapPtr
1856 modmap &u8
1857}
1858
1859pub type XkbClientMapRec = C.XkbClientMapRec
1860
1861pub type XkbClientMapPtr = &XkbClientMapRec
1862
1863@[typedef]
1864pub struct C.XkbSymInterpretRec {
1865pub mut:
1866 sym KeySym
1867 flags u8
1868 @match u8
1869 mods u8
1870 virtual_mod u8
1871 act XkbAnyAction
1872}
1873
1874pub type XkbSymInterpretRec = C.XkbSymInterpretRec
1875
1876pub type XkbSymInterpretPtr = &XkbSymInterpretRec
1877
1878@[typedef]
1879pub struct C.XkbCompatMapRec {
1880pub mut:
1881 sym_interpret XkbSymInterpretPtr
1882 groups [4]XkbModsRec
1883 num_si u16
1884 size_si u16
1885}
1886
1887pub type XkbCompatMapRec = C.XkbCompatMapRec
1888
1889pub type XkbCompatMapPtr = &XkbCompatMapRec
1890
1891@[typedef]
1892pub struct C.XkbIndicatorMapRec {
1893pub mut:
1894 flags u8
1895 which_groups u8
1896 groups u8
1897 which_mods u8
1898 mods XkbModsRec
1899 ctrls u32
1900}
1901
1902pub type XkbIndicatorMapRec = C.XkbIndicatorMapRec
1903
1904pub type XkbIndicatorMapPtr = &XkbIndicatorMapRec
1905
1906@[typedef]
1907pub struct C.XkbIndicatorRec {
1908pub mut:
1909 phys_indicators CULong
1910 maps [32]XkbIndicatorMapRec
1911}
1912
1913pub type XkbIndicatorRec = C.XkbIndicatorRec
1914
1915pub type XkbIndicatorPtr = &XkbIndicatorRec
1916
1917@[typedef]
1918pub struct C.XkbKeyNameRec {
1919pub mut:
1920 name [4]char
1921}
1922
1923pub type XkbKeyNameRec = C.XkbKeyNameRec
1924
1925pub type XkbKeyNamePtr = &XkbKeyNameRec
1926
1927@[typedef]
1928pub struct C.XkbKeyAliasRec {
1929pub mut:
1930 real [4]char
1931 alias [4]char
1932}
1933
1934pub type XkbKeyAliasRec = C.XkbKeyAliasRec
1935
1936pub type XkbKeyAliasPtr = &XkbKeyAliasRec
1937
1938@[typedef]
1939pub struct C.XkbNamesRec {
1940pub mut:
1941 keycodes Atom
1942 geometry Atom
1943 symbols Atom
1944 types Atom
1945 compat Atom
1946 vmods [16]Atom
1947 indicators [32]Atom
1948 groups [4]Atom
1949 keys XkbKeyNamePtr
1950 key_aliases XkbKeyAliasPtr
1951 radio_groups &Atom
1952 phys_symbols Atom
1953 num_keys u8
1954 num_key_aliases u8
1955 num_rg u16
1956}
1957
1958pub type XkbNamesRec = C.XkbNamesRec
1959
1960pub type XkbNamesPtr = &XkbNamesRec
1961
1962pub type XkbGeometryPtr = voidptr
1963
1964@[typedef]
1965pub struct C.XkbDescRec {
1966pub mut:
1967 dpy &Display
1968 flags u16
1969 device_spec u16
1970 min_key_code KeyCode
1971 max_key_code KeyCode
1972 ctrls XkbControlsPtr
1973 server XkbServerMapPtr
1974 map XkbClientMapPtr
1975 indicators XkbIndicatorPtr
1976 names XkbNamesPtr
1977 compat XkbCompatMapPtr
1978 geom XkbGeometryPtr
1979}
1980
1981pub type XkbDescRec = C.XkbDescRec
1982
1983pub type XkbDescPtr = &XkbDescRec
1984
1985@[typedef]
1986pub struct C.XkbMapChangesRec {
1987pub mut:
1988 changed u16
1989 min_key_code KeyCode
1990 max_key_code KeyCode
1991 first_type u8
1992 num_types u8
1993 first_key_sym KeyCode
1994 num_key_syms u8
1995 first_key_act KeyCode
1996 num_key_acts u8
1997 first_key_behavior KeyCode
1998 num_key_behaviors u8
1999 first_key_explicit KeyCode
2000 num_key_explicit u8
2001 first_modmap_key KeyCode
2002 num_modmap_keys u8
2003 first_vmodmap_key KeyCode
2004 num_vmodmap_keys u8
2005 pad u8
2006 vmods u16
2007}
2008
2009pub type XkbMapChangesRec = C.XkbMapChangesRec
2010
2011pub type XkbMapChangesPtr = &XkbMapChangesRec
2012
2013@[typedef]
2014pub struct C.XkbControlsChangesRec {
2015pub mut:
2016 changed_ctrls u32
2017 enabled_ctrls_changes u32
2018 num_groups_changed i32
2019}
2020
2021pub type XkbControlsChangesRec = C.XkbControlsChangesRec
2022
2023pub type XkbControlsChangesPtr = &XkbControlsChangesRec
2024
2025@[typedef]
2026pub struct C.XkbIndicatorChangesRec {
2027pub mut:
2028 state_changes u32
2029 map_changes u32
2030}
2031
2032pub type XkbIndicatorChangesRec = C.XkbIndicatorChangesRec
2033
2034pub type XkbIndicatorChangesPtr = &XkbIndicatorChangesRec
2035
2036@[typedef]
2037pub struct C.XkbNameChangesRec {
2038pub mut:
2039 changed u32
2040 first_type u8
2041 num_types u8
2042 first_lvl u8
2043 num_lvls u8
2044 num_aliases u8
2045 num_rg u8
2046 first_key u8
2047 num_keys u8
2048 changed_vmods u16
2049 changed_indicators CULong
2050 changed_groups u8
2051}
2052
2053pub type XkbNameChangesRec = C.XkbNameChangesRec
2054
2055pub type XkbNameChangesPtr = &XkbNameChangesRec
2056
2057@[typedef]
2058pub struct C.XkbCompatChangesRec {
2059pub mut:
2060 changed_groups u8
2061 first_si u16
2062 num_si u16
2063}
2064
2065pub type XkbCompatChangesRec = C.XkbCompatChangesRec
2066
2067pub type XkbCompatChangesPtr = &XkbCompatChangesRec
2068
2069@[typedef]
2070pub struct C.XkbChangesRec {
2071pub mut:
2072 device_spec u16
2073 state_changes u16
2074 map XkbMapChangesRec
2075 ctrls XkbControlsChangesRec
2076 indicators XkbIndicatorChangesRec
2077 names XkbNameChangesRec
2078 compat XkbCompatChangesRec
2079}
2080
2081pub type XkbChangesRec = C.XkbChangesRec
2082
2083pub type XkbChangesPtr = &XkbChangesRec
2084
2085@[typedef]
2086pub struct C.XkbComponentNamesRec {
2087pub mut:
2088 keymap &char
2089 keycodes &char
2090 types &char
2091 compat &char
2092 symbols &char
2093 geometry &char
2094}
2095
2096pub type XkbComponentNamesRec = C.XkbComponentNamesRec
2097
2098pub type XkbComponentNamesPtr = &XkbComponentNamesRec
2099
2100@[typedef]
2101pub struct C.XkbComponentNameRec {
2102pub mut:
2103 flags u16
2104 name &char
2105}
2106
2107pub type XkbComponentNameRec = C.XkbComponentNameRec
2108
2109pub type XkbComponentNamePtr = &XkbComponentNameRec
2110
2111@[typedef]
2112pub struct C.XkbComponentListRec {
2113pub mut:
2114 num_keymaps i32
2115 num_keycodes i32
2116 num_types i32
2117 num_compat i32
2118 num_symbols i32
2119 num_geometry i32
2120 keymaps XkbComponentNamePtr
2121 keycodes XkbComponentNamePtr
2122 types XkbComponentNamePtr
2123 compat XkbComponentNamePtr
2124 symbols XkbComponentNamePtr
2125 geometry XkbComponentNamePtr
2126}
2127
2128pub type XkbComponentListRec = C.XkbComponentListRec
2129
2130pub type XkbComponentListPtr = &XkbComponentListRec
2131
2132@[typedef]
2133pub struct C.XkbDeviceLedInfoRec {
2134pub mut:
2135 led_class u16
2136 led_id u16
2137 phys_indicators u32
2138 maps_present u32
2139 names_present u32
2140 state u32
2141 names [32]Atom
2142 maps [32]XkbIndicatorMapRec
2143}
2144
2145pub type XkbDeviceLedInfoRec = C.XkbDeviceLedInfoRec
2146
2147pub type XkbDeviceLedInfoPtr = &XkbDeviceLedInfoRec
2148
2149@[typedef]
2150pub struct C.XkbDeviceInfoRec {
2151pub mut:
2152 name &char
2153 @type Atom
2154 device_spec u16
2155 has_own_state i32
2156 supported u16
2157 unsupported u16
2158 num_btns u16
2159 btn_acts &XkbAction
2160 sz_leds u16
2161 num_leds u16
2162 dflt_kbd_fb u16
2163 dflt_led_fb u16
2164 leds XkbDeviceLedInfoPtr
2165}
2166
2167pub type XkbDeviceInfoRec = C.XkbDeviceInfoRec
2168
2169pub type XkbDeviceInfoPtr = &XkbDeviceInfoRec
2170
2171@[typedef]
2172pub struct C.XkbDeviceLedChangesRec {
2173pub mut:
2174 led_class u16
2175 led_id u16
2176 defined u32
2177 next &XkbDeviceLedChangesRec
2178}
2179
2180pub type XkbDeviceLedChangesRec = C.XkbDeviceLedChangesRec
2181
2182pub type XkbDeviceLedChangesPtr = &XkbDeviceLedChangesRec
2183
2184@[typedef]
2185pub struct C.XkbDeviceChangesRec {
2186pub mut:
2187 changed u32
2188 first_btn u16
2189 num_btns u16
2190 leds XkbDeviceLedChangesRec
2191}
2192
2193pub type XkbDeviceChangesRec = C.XkbDeviceChangesRec
2194
2195pub type XkbDeviceChangesPtr = &XkbDeviceChangesRec
2196
2197@[typedef]
2198pub struct C.XkbAnyEvent {
2199pub mut:
2200 @type i32
2201 serial CULong
2202 send_event i32
2203 display &Display
2204 time Time
2205 xkb_type i32
2206 device u32
2207}
2208
2209pub type XkbAnyEvent = C.XkbAnyEvent
2210
2211@[typedef]
2212pub struct C.XkbNewKeyboardNotifyEvent {
2213pub mut:
2214 @type i32
2215 serial CULong
2216 send_event i32
2217 display &Display
2218 time Time
2219 xkb_type i32
2220 device i32
2221 old_device i32
2222 min_key_code i32
2223 max_key_code i32
2224 old_min_key_code i32
2225 old_max_key_code i32
2226 changed u32
2227 req_major char
2228 req_minor char
2229}
2230
2231pub type XkbNewKeyboardNotifyEvent = C.XkbNewKeyboardNotifyEvent
2232
2233@[typedef]
2234pub struct C.XkbMapNotifyEvent {
2235pub mut:
2236 @type i32
2237 serial CULong
2238 send_event i32
2239 display &Display
2240 time Time
2241 xkb_type i32
2242 device i32
2243 changed u32
2244 flags u32
2245 first_type i32
2246 num_types i32
2247 min_key_code KeyCode
2248 max_key_code KeyCode
2249 first_key_sym KeyCode
2250 first_key_act KeyCode
2251 first_key_behavior KeyCode
2252 first_key_explicit KeyCode
2253 first_modmap_key KeyCode
2254 first_vmodmap_key KeyCode
2255 num_key_syms i32
2256 num_key_acts i32
2257 num_key_behaviors i32
2258 num_key_explicit i32
2259 num_modmap_keys i32
2260 num_vmodmap_keys i32
2261 vmods u32
2262}
2263
2264pub type XkbMapNotifyEvent = C.XkbMapNotifyEvent
2265
2266@[typedef]
2267pub struct C.XkbStateNotifyEvent {
2268pub mut:
2269 @type i32
2270 serial CULong
2271 send_event i32
2272 display &Display
2273 time Time
2274 xkb_type i32
2275 device i32
2276 changed u32
2277 group i32
2278 base_group i32
2279 latched_group i32
2280 locked_group i32
2281 mods u32
2282 base_mods u32
2283 latched_mods u32
2284 locked_mods u32
2285 compat_state i32
2286 grab_mods u8
2287 compat_grab_mods u8
2288 lookup_mods u8
2289 compat_lookup_mods u8
2290 ptr_buttons i32
2291 keycode KeyCode
2292 event_type char
2293 req_major char
2294 req_minor char
2295}
2296
2297pub type XkbStateNotifyEvent = C.XkbStateNotifyEvent
2298
2299@[typedef]
2300pub struct C.XkbControlsNotifyEvent {
2301pub mut:
2302 @type i32
2303 serial CULong
2304 send_event i32
2305 display &Display
2306 time Time
2307 xkb_type i32
2308 device i32
2309 changed_ctrls u32
2310 enabled_ctrls u32
2311 enabled_ctrl_changes u32
2312 num_groups i32
2313 keycode KeyCode
2314 event_type char
2315 req_major char
2316 req_minor char
2317}
2318
2319pub type XkbControlsNotifyEvent = C.XkbControlsNotifyEvent
2320
2321@[typedef]
2322pub struct C.XkbIndicatorNotifyEvent {
2323pub mut:
2324 @type i32
2325 serial CULong
2326 send_event i32
2327 display &Display
2328 time Time
2329 xkb_type i32
2330 device i32
2331 changed u32
2332 state u32
2333}
2334
2335pub type XkbIndicatorNotifyEvent = C.XkbIndicatorNotifyEvent
2336
2337@[typedef]
2338pub struct C.XkbNamesNotifyEvent {
2339pub mut:
2340 @type i32
2341 serial CULong
2342 send_event i32
2343 display &Display
2344 time Time
2345 xkb_type i32
2346 device i32
2347 changed u32
2348 first_type i32
2349 num_types i32
2350 first_lvl i32
2351 num_lvls i32
2352 num_aliases i32
2353 num_radio_groups i32
2354 changed_vmods u32
2355 changed_groups u32
2356 changed_indicators u32
2357 first_key i32
2358 num_keys i32
2359}
2360
2361pub type XkbNamesNotifyEvent = C.XkbNamesNotifyEvent
2362
2363@[typedef]
2364pub struct C.XkbCompatMapNotifyEvent {
2365pub mut:
2366 @type i32
2367 serial CULong
2368 send_event i32
2369 display &Display
2370 time Time
2371 xkb_type i32
2372 device i32
2373 changed_groups u32
2374 first_si i32
2375 num_si i32
2376 num_total_si i32
2377}
2378
2379pub type XkbCompatMapNotifyEvent = C.XkbCompatMapNotifyEvent
2380
2381@[typedef]
2382pub struct C.XkbBellNotifyEvent {
2383pub mut:
2384 @type i32
2385 serial CULong
2386 send_event i32
2387 display &Display
2388 time Time
2389 xkb_type i32
2390 device i32
2391 percent i32
2392 pitch i32
2393 duration i32
2394 bell_class i32
2395 bell_id i32
2396 name Atom
2397 window Window
2398 event_only i32
2399}
2400
2401pub type XkbBellNotifyEvent = C.XkbBellNotifyEvent
2402
2403@[typedef]
2404pub struct C.XkbActionMessageEvent {
2405pub mut:
2406 @type i32
2407 serial CULong
2408 send_event i32
2409 display &Display
2410 time Time
2411 xkb_type i32
2412 device i32
2413 keycode KeyCode
2414 press i32
2415 key_event_follows i32
2416 group i32
2417 mods u32
2418 message [7]char
2419}
2420
2421pub type XkbActionMessageEvent = C.XkbActionMessageEvent
2422
2423@[typedef]
2424pub struct C.XkbAccessXNotifyEvent {
2425pub mut:
2426 @type i32
2427 serial CULong
2428 send_event i32
2429 display &Display
2430 time Time
2431 xkb_type i32
2432 device i32
2433 detail i32
2434 keycode i32
2435 sk_delay i32
2436 debounce_delay i32
2437}
2438
2439pub type XkbAccessXNotifyEvent = C.XkbAccessXNotifyEvent
2440
2441@[typedef]
2442pub struct C.XkbExtensionDeviceNotifyEvent {
2443pub mut:
2444 @type i32
2445 serial CULong
2446 send_event i32
2447 display &Display
2448 time Time
2449 xkb_type i32
2450 device i32
2451 reason u32
2452 supported u32
2453 unsupported u32
2454 first_btn i32
2455 num_btns i32
2456 leds_defined u32
2457 led_state u32
2458 led_class i32
2459 led_id i32
2460}
2461
2462pub type XkbExtensionDeviceNotifyEvent = C.XkbExtensionDeviceNotifyEvent
2463
2464@[typedef]
2465pub union C.XkbEvent {
2466pub mut:
2467 @type i32
2468 any XkbAnyEvent
2469 new_kbd XkbNewKeyboardNotifyEvent
2470 map XkbMapNotifyEvent
2471 state XkbStateNotifyEvent
2472 ctrls XkbControlsNotifyEvent
2473 indicators XkbIndicatorNotifyEvent
2474 names XkbNamesNotifyEvent
2475 compat XkbCompatMapNotifyEvent
2476 bell XkbBellNotifyEvent
2477 message XkbActionMessageEvent
2478 accessx XkbAccessXNotifyEvent
2479 device XkbExtensionDeviceNotifyEvent
2480 core XEvent
2481}
2482
2483pub type XkbEvent = C.XkbEvent
2484
2485@[typedef]
2486pub struct C.XkbKbdDpyStateRec {
2487}
2488
2489pub type XkbKbdDpyStateRec = C.XkbKbdDpyStateRec
2490
2491pub type XkbKbdDpyStatePtr = &XkbKbdDpyStateRec
2492
2493pub type XkbInternAtomFunc = fn (&Display, &char, i32) Atom
2494
2495pub type XkbGetAtomNameFunc = fn (&Display, Atom) &char
2496