annotate semiconginev2/thirdparty/x11/xinput2.nim @ 1254:b0f4c8ccd49a

did: stuff to test gltf importer
author sam <sam@basx.dev>
date Sat, 27 Jul 2024 20:47:54 +0700
parents 56781cc0fc7c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1191
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
1 # *****************************************
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2 # Generated from <X11/extensions/XInput2.h>
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 # *****************************************
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4 import x, xlib, xi2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 # <X11/extensions/xfixes.h>
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 type PointerBarrier* = XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 PXIAddMasterInfo* = ptr XIAddMasterInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 XIAddMasterInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 name*: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 send_core*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 enable*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 PXIRemoveMasterInfo* = ptr XIRemoveMasterInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18 XIRemoveMasterInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 return_mode*: cint ## AttachToMaster, Floating
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 return_pointer*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 return_keyboard*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 PXIAttachSlaveInfo* = ptr XIAttachSlaveInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 XIAttachSlaveInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 new_master*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 PXIDetachSlaveInfo* = ptr XIDetachSlaveInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 XIDetachSlaveInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 PXIAnyHierarchyChangeInfo* = ptr XIAnyHierarchyChangeInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37 XIAnyHierarchyChangeInfo* {.final, union.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 `type`*: cint ## must be first element
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 add*: XIAddMasterInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40 remove*: XIRemoveMasterInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41 attach*: XIAttachSlaveInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42 detach*: XIDetachSlaveInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
43
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
44 PXIModifierState* = ptr XIModifierState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 XIModifierState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46 base*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47 latched*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48 locked*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49 effective*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 PXIGroupState* = ptr XIGroupState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52 XIGroupState* = XIModifierState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 PXIButtonState* = ptr XIButtonState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55 XIButtonState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 mask_len*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 mask*: ptr cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
58
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
59 PXIValuatorState* = ptr XIValuatorState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 XIValuatorState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61 mask_len*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 mask*: ptr cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 values*: ptr cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
64
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
65 PXIEventMask* = ptr XIEventMask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 XIEventMask* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 mask_len*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 mask*: ptr cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
70
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
71 PXIAnyClassInfo* = ptr XIAnyClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 XIAnyClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76 PXIButtonClassInfo* = ptr XIButtonClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 XIButtonClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 num_buttons*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 labels*: PAtom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82 state*: XIButtonState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 PXIKeyClassInfo* = ptr XIKeyClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85 XIKeyClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88 num_keycodes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 keycodes*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91 PXIValuatorClassInfo* = ptr XIValuatorClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 XIValuatorClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 number*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 label*: Atom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97 min*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 max*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 value*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100 resolution*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 mode*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
103
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
104 ## new in XI 2.1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107 PXIScrollClassInfo* = ptr XIScrollClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 XIScrollClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 number*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112 scroll_type*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 increment*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
115
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
116 PXITouchClassInfo* = ptr XITouchClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 XITouchClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 mode*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121 num_touches*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123 PXIDeviceInfo* = ptr XIDeviceInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124 XIDeviceInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 name*: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 use*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 attachment*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 enabled*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130 num_classes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 classes*: ptr ptr XIAnyClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 PXIGrabModifiers* = ptr XIGrabModifiers
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 XIGrabModifiers* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 modifiers*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 status*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 BarrierEventID* = cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 # ------------------------------------------------------------
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 PXIBarrierReleasePointerInfo* = ptr XIBarrierReleasePointerInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 XIBarrierReleasePointerInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 barrier*: PointerBarrier
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 eventid*: BarrierEventID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 ## Generic XI2 event. All XI2 events have the same header.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 PXIEvent* = ptr XIEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152 XIEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158 evtype*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 PXIHierarchyInfo* = ptr XIHierarchyInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 XIHierarchyInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164 attachment*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165 use*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 enabled*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 ## Notifies the client that the device hierarchy has been changed. The client
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 ## is expected to re-query the server for the device hierarchy.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 PXIHierarchyEvent* = ptr XIHierarchyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176 XIHierarchyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 evtype*: cint ## XI_HierarchyChanged
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 num_info*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186 info*: ptr XIHierarchyInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189 ## Notifies the client that the classes have been changed. This happens when
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 ## the slave device that sends through the master changes.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 PXIDeviceChangedEvent* = ptr XIDeviceChangedEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 XIDeviceChangedEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 evtype*: cint ## XI_DeviceChanged
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 deviceid*: cint ## id of the device that changed
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 sourceid*: cint ## Source for the new classes.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 reason*: cint ## Reason for the change
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 num_classes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 classes*: ptr ptr XIAnyClassInfo ## same as in XIDeviceInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 PXIDeviceEvent* = ptr XIDeviceEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 XIDeviceEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 evtype*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 detail*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 root*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 event*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 child*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 root_x*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 root_y*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226 event_x*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 event_y*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229 buttons*: XIButtonState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 valuators*: XIValuatorState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 mods*: XIModifierState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232 group*: XIGroupState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 PXIRawEvent* = ptr XIRawEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
235 XIRawEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
236 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
237 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
238 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
239 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
240 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
241 evtype*: cint ## XI_RawKeyPress, XI_RawKeyRelease, etc.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
242 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
243 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
244 sourceid*: cint ## Bug: Always 0. https://bugs.freedesktop.org//show_bug.cgi?id=34240
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
245 detail*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
246 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
247 valuators*: XIValuatorState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
248 raw_values*: ptr cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
249
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
250 PXIEnterEvent* = ptr XIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
251 XIEnterEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
252 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
253 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
254 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
255 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
256 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
257 evtype*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
258 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
259 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
260 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
261 detail*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
262 root*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
263 event*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
264 child*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
265 root_x*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
266 root_y*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
267 event_x*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
268 event_y*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
269 mode*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
270 focus*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
271 same_screen*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
272 buttons*: XIButtonState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
273 mods*: XIModifierState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
274 group*: XIGroupState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
275
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
276 PXILeaveEvent* = PXIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
277 PXIFocusInEvent* = PXIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
278 PXIFocusOutEvent* = PXIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
279 # ----------------------------------
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
280 XILeaveEvent* = XIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
281 XIFocusInEvent* = XIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
282 XIFocusOutEvent* = XIEnterEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
283
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
284 PXIPropertyEvent* = ptr XIPropertyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
285 XIPropertyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
286 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
287 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
288 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
289 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
290 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
291 evtype*: cint ## XI_PropertyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
292 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
293 deviceid*: cint ## id of the device that changed
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
294 property*: Atom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
295 what*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
296
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
297 PXITouchOwnershipEvent* = ptr XITouchOwnershipEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
298 XITouchOwnershipEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
299 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
300 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
301 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
302 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
303 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
304 evtype*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
305 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
306 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
307 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
308 touchid*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
309 root*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
310 event*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
311 child*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
312 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
313
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
314 PXIBarrierEvent* = ptr XIBarrierEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
315 XIBarrierEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
316 `type`*: cint ## GenericEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
317 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
318 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
319 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
320 extension*: cint ## XI extension offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
321 evtype*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
322 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
323 deviceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
324 sourceid*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
325 event*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
326 root*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
327 root_x*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
328 root_y*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
329 dx*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
330 dy*: cdouble
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
331 dtime*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
332 flags*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
333 barrier*: PointerBarrier
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
334 eventid*: BarrierEventID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
335
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
336 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
337 ## XI2 Procs, uses same shared object as XI
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
338 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
339
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
340 {.push cdecl, importc, dynlib: libXi.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
341
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
342 proc XIQueryPointer*(display: PDisplay; deviceid: cint; win: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
343 root: PWindow; child: PWindow; root_x: ptr cdouble;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
344 root_y: ptr cdouble; win_x: ptr cdouble; win_y: ptr cdouble;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
345 buttons: PXIButtonState; mods: PXIModifierState;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
346 group: PXIGroupState): XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
347 proc XIWarpPointer*(display: PDisplay; deviceid: cint; src_win: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
348 dst_win: Window; src_x: cdouble; src_y: cdouble; src_width: cuint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
349 src_height: cuint; dst_x: cdouble; dst_y: cdouble): XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
350 proc XIDefineCursor*(display: PDisplay; deviceid: cint; win: Window; cursor: Cursor): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
351 proc XIUndefineCursor*(display: PDisplay; deviceid: cint; win: Window): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
352 proc XIChangeHierarchy*(display: PDisplay; changes: PXIAnyHierarchyChangeInfo;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
353 num_changes: cint): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
354 proc XISetClientPointer*(dpy: PDisplay; win: Window; deviceid: cint): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
355 proc XIGetClientPointer*(dpy: PDisplay; win: Window; deviceid: ptr cint): XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
356 proc XISelectEvents*(dpy: PDisplay; win: Window; masks: PXIEventMask;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
357 num_masks: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
358 proc XIGetSelectedEvents*(dpy: PDisplay; win: Window; num_masks_return: ptr cint): PXIEventMask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
359 proc XIQueryVersion*(dpy: PDisplay; major_version_inout: ptr cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
360 minor_version_inout: ptr cint): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
361 proc XIQueryDevice*(dpy: PDisplay; deviceid: cint; ndevices_return: ptr cint): PXIDeviceInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
362 proc XISetFocus*(dpy: PDisplay; deviceid: cint; focus: Window; time: Time): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
363 proc XIGetFocus*(dpy: PDisplay; deviceid: cint; focus_return: PWindow): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
364 proc XIGrabDevice*(dpy: PDisplay; deviceid: cint; grab_window: Window; time: Time;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
365 cursor: Cursor; grab_mode: cint; paired_device_mode: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
366 owner_events: XBool; mask: PXIEventMask): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
367 proc XIUngrabDevice*(dpy: PDisplay; deviceid: cint; time: Time): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
368 proc XIAllowEvents*(display: PDisplay; deviceid: cint; event_mode: cint; time: Time): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
369 proc XIAllowTouchEvents*(display: PDisplay; deviceid: cint; touchid: cuint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
370 grab_window: Window; event_mode: cint): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
371 proc XIGrabButton*(display: PDisplay; deviceid: cint; button: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
372 grab_window: Window; cursor: Cursor; grab_mode: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
373 paired_device_mode: cint; owner_events: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
374 mask: PXIEventMask; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
375 modifiers_inout: PXIGrabModifiers): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
376 proc XIGrabKeycode*(display: PDisplay; deviceid: cint; keycode: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
377 grab_window: Window; grab_mode: cint; paired_device_mode: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
378 owner_events: cint; mask: PXIEventMask; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
379 modifiers_inout: PXIGrabModifiers): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
380 proc XIGrabEnter*(display: PDisplay; deviceid: cint; grab_window: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
381 cursor: Cursor; grab_mode: cint; paired_device_mode: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
382 owner_events: cint; mask: PXIEventMask; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
383 modifiers_inout: PXIGrabModifiers): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
384 proc XIGrabFocusIn*(display: PDisplay; deviceid: cint; grab_window: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
385 grab_mode: cint; paired_device_mode: cint; owner_events: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
386 mask: PXIEventMask; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
387 modifiers_inout: PXIGrabModifiers): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
388 proc XIGrabTouchBegin*(display: PDisplay; deviceid: cint; grab_window: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
389 owner_events: cint; mask: PXIEventMask; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
390 modifiers_inout: PXIGrabModifiers): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
391 proc XIUngrabButton*(display: PDisplay; deviceid: cint; button: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
392 grab_window: Window; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
393 modifiers: PXIGrabModifiers): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
394 proc XIUngrabKeycode*(display: PDisplay; deviceid: cint; keycode: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
395 grab_window: Window; num_modifiers: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
396 modifiers: PXIGrabModifiers): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
397 proc XIUngrabEnter*(display: PDisplay; deviceid: cint; grab_window: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
398 num_modifiers: cint; modifiers: PXIGrabModifiers): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
399 proc XIUngrabFocusIn*(display: PDisplay; deviceid: cint; grab_window: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
400 num_modifiers: cint; modifiers: PXIGrabModifiers): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
401 proc XIUngrabTouchBegin*(display: PDisplay; deviceid: cint; grab_window: Window;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
402 num_modifiers: cint; modifiers: PXIGrabModifiers): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
403 proc XIListProperties*(display: PDisplay; deviceid: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
404 num_props_return: ptr cint): PAtom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
405 proc XIChangeProperty*(display: PDisplay; deviceid: cint; property: Atom;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
406 `type`: Atom; format: cint; mode: cint; data: ptr cuchar;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
407 num_items: cint)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
408 proc XIDeleteProperty*(display: PDisplay; deviceid: cint; property: Atom)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
409 proc XIGetProperty*(display: PDisplay; deviceid: cint; property: Atom; offset: clong;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
410 length: clong; delete_property: XBool; `type`: Atom;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
411 type_return: PAtom; format_return: ptr cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
412 num_items_return: ptr culong; bytes_after_return: ptr culong;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
413 data: ptr ptr cuchar): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
414 proc XIBarrierReleasePointers*(display: PDisplay;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
415 barriers: PXIBarrierReleasePointerInfo;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
416 num_barriers: cint)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
417 proc XIBarrierReleasePointer*(display: PDisplay; deviceid: cint;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
418 barrier: PointerBarrier; eventid: BarrierEventID)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
419 proc XIFreeDeviceInfo*(info: PXIDeviceInfo)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
420
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
421 {.pop.}