annotate semiconginev2/thirdparty/x11/xinput.nim @ 1264:cb4d626ca671

Added tag main for changeset e0f0a0be7880
author sam <sam@basx.dev>
date Sun, 28 Jul 2024 21:58:53 +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 import x, xlib, xi
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
3 const xNeedWidePrototypes {.booldefine.} = defined(posix)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
4
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
5 const
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
6 deviceKeyPress* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
7 deviceKeyRelease* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
8 deviceButtonPress* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
9 deviceButtonRelease* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
10 deviceMotionNotify* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
11 deviceFocusIn* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
12 deviceFocusOut* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
13 proximityIn* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
14 proximityOut* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
15 deviceStateNotify* = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
16 deviceMappingNotify* = 1
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
17 changeDeviceNotify* = 2
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
18
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
19 propertyNotify* = 6
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
20
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
21 template FindTypeAndClass*(d, `type`, class, classid, offset: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
22 var i: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
23 var ip: PXInputClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
24 `type` = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
25 class = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
26 i = 0
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
27 ip = (cast[PXDevice](d)).classes
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
28 while i < (cast[PXDevice](d)).num_classes:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
29 if ip.input_class == classid:
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
30 `type` = ip.event_type_base + offset
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
31 class = (cast[PXDevice](d)).device_id shl 8 or `type`
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
32 inc(i)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
33 inc(ip)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
34
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
35 template DeviceKeyPress*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
36 FindTypeAndClass(d, `type`, class, KeyClass, deviceKeyPress)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
37
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
38 template DeviceKeyRelease*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
39 FindTypeAndClass(d, `type`, class, KeyClass, deviceKeyRelease)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
40
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
41 template DeviceButtonPress*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
42 FindTypeAndClass(d, `type`, class, ButtonClass, deviceButtonPress)
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 template DeviceButtonRelease*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
45 FindTypeAndClass(d, `type`, class, ButtonClass, deviceButtonRelease)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
46
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
47 template DeviceMotionNotify*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
48 FindTypeAndClass(d, `type`, class, ValuatorClass, deviceMotionNotify)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
49
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
50 template DeviceFocusIn*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
51 FindTypeAndClass(d, `type`, class, FocusClass, deviceFocusIn)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
52
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
53 template DeviceFocusOut*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
54 FindTypeAndClass(d, `type`, class, FocusClass, deviceFocusOut)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
55
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
56 template ProximityIn*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
57 FindTypeAndClass(d, `type`, class, ProximityClass, proximityIn)
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 template ProximityOut*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
60 FindTypeAndClass(d, `type`, class, ProximityClass, proximityOut)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
61
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
62 template DeviceStateNotify*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
63 FindTypeAndClass(d, `type`, class, OtherClass, deviceStateNotify)
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 template DeviceMappingNotify*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
66 FindTypeAndClass(d, `type`, class, OtherClass, deviceMappingNotify)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
67
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
68 template ChangeDeviceNotify*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
69 FindTypeAndClass(d, `type`, class, OtherClass, changeDeviceNotify)
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 template DevicePropertyNotify*(d, `type`, class: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
72 FindTypeAndClass(d, `type`, class, OtherClass, propertyNotify)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
73
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
74 template DevicePointerMotionHint*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
75 class = (cast[PXDevice](d)).device_id shl 8 or devicePointerMotionHint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
76
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
77 template DeviceButton1Motion*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
78 class = (cast[PXDevice](d)).device_id shl 8 or deviceButton1Motion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
79
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
80 template DeviceButton2Motion*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
81 class = (cast[PXDevice](d)).device_id shl 8 or deviceButton2Motion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
82
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
83 template DeviceButton3Motion*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
84 class = (cast[PXDevice](d)).device_id shl 8 or deviceButton3Motion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
85
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
86 template DeviceButton4Motion*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
87 class = (cast[PXDevice](d)).device_id shl 8 or deviceButton4Motion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
88
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
89 template DeviceButton5Motion*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
90 class = (cast[PXDevice](d)).device_id shl 8 or deviceButton5Motion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
91
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
92 template DeviceButtonMotion*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
93 class = (cast[PXDevice](d)).device_id shl 8 or deviceButtonMotion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
94
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
95 template DeviceOwnerGrabButton*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
96 class = (cast[PXDevice](d)).device_id shl 8 or deviceOwnerGrabButton
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
97
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
98 template DeviceButtonPressGrab*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
99 class = (cast[PXDevice](d)).device_id shl 8 or deviceButtonGrab
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
100
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
101 template NoExtensionEvent*(d, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
102 class = (cast[PXDevice](d)).device_id shl 8 or noExtensionEvent
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 template DevicePresence*(dpy, `type`, class: untyped) =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
105 `type` = XiGetDevicePresenceNotifyEvent(dpy)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
106 class = (0x00010000 or devicePresence)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
107
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
108 ## Errors
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
109
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
110 template BadDevice*(dpy, error: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
111 xibaddevice(dpy, addr(error))
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
112
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
113 template BadClass*(dpy, error: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
114 xibadclass(dpy, addr(error))
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 template BadEvent*(dpy, error: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
117 xibadevent(dpy, addr(error))
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
118
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
119 template BadMode*(dpy, error: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
120 xibadmode(dpy, addr(error))
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
121
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
122 template DeviceBusy*(dpy, error: untyped): untyped =
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
123 xidevicebusy(dpy, addr(error))
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
124
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
125 type
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
126 PXDeviceKeyEvent* = ptr XDeviceKeyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
127 XDeviceKeyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
128 ## DeviceKey events. These events are sent by input devices that
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
129 ## support input class Keys.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
130 ## The location of the X pointer is reported in the coordinate
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
131 ## fields of the x,y and x_root,y_root fields.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
132 `type`*: cint ## of event
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
133 serial*: culong ## # of last request processed
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
134 send_event*: XBool ## true if from SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
135 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
136 window*: Window ## "event" window reported relative to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
137 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
138 root*: Window ## root window event occured on
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
139 subwindow*: Window ## child window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
140 time*: Time ## milliseconds
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
141 x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
142 y*: cint ## x, y coordinates in event window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
143 x_root*: cint ## coordinates relative to root
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
144 y_root*: cint ## coordinates relative to root
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
145 state*: cuint ## key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
146 keycode*: cuint ## detail
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
147 same_screen*: XBool ## same screen flag
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
148 device_state*: cuint ## device key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
149 axes_count*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
150 first_axis*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
151 axis_data*: array[6, cint]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
152
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
153 PXDeviceKeyPressedEvent* = PXDeviceKeyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
154 XDeviceKeyPressedEvent* = XDeviceKeyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
155
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
156 PXDeviceKeyReleasedEvent* = PXDeviceKeyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
157 XDeviceKeyReleasedEvent* = XDeviceKeyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
158
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
159 PXDeviceButtonEvent* = ptr XDeviceButtonEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
160 XDeviceButtonEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
161 ## DeviceButton events. These events are sent by extension devices
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
162 ## that support input class Buttons.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
163 `type`*: cint ## of event
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
164 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
165 send_event*: XBool ## true if from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
166 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
167 window*: Window ## "event" window reported relative to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
168 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
169 root*: Window ## root window that the event occured on
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
170 subwindow*: Window ## child window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
171 time*: Time ## milliseconds
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
172 x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
173 y*: cint ## x, y coordinates in event window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
174 x_root*: cint ## coordinates relative to root
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
175 y_root*: cint ## coordinates relative to root
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
176 state*: cuint ## key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
177 button*: cuint ## detail
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
178 same_screen*: XBool ## same screen flag
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
179 device_state*: cuint ## device key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
180 axes_count*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
181 first_axis*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
182 axis_data*: array[6, cint]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
183
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
184 PXDeviceButtonPressedEvent* = PXDeviceButtonEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
185 XDeviceButtonPressedEvent* = XDeviceButtonEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
186
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
187 PXDeviceButtonReleasedEvent* = PXDeviceButtonEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
188 XDeviceButtonReleasedEvent* = XDeviceButtonEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
189
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
190 PXDeviceMotionEvent* = ptr XDeviceMotionEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
191 XDeviceMotionEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
192 ## DeviceMotionNotify event. These events are sent by extension devices
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
193 ## that support input class Valuators.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
194 `type`*: cint ## of event
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
195 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
196 send_event*: XBool ## true if from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
197 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
198 window*: Window ## "event" window reported relative to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
199 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
200 root*: Window ## root window that the event occured on
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
201 subwindow*: Window ## child window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
202 time*: Time ## milliseconds
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
203 x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
204 y*: cint ## x, y coordinates in event window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
205 x_root*: cint ## coordinates relative to root
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
206 y_root*: cint ## coordinates relative to root
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
207 state*: cuint ## key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
208 is_hint*: char ## detail
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
209 same_screen*: XBool ## same screen flag
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
210 device_state*: cuint ## device key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
211 axes_count*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
212 first_axis*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
213 axis_data*: array[6, cint]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
214
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
215 PXDeviceFocusChangeEvent* = ptr XDeviceFocusChangeEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
216 XDeviceFocusChangeEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
217 ## DeviceFocusChange events. These events are sent when the focus
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
218 ## of an extension device that can be focused is changed.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
219 `type`*: cint ## of event
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
220 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
221 send_event*: XBool ## true if from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
222 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
223 window*: Window ## "event" window reported relative to
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
224 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
225 mode*: cint ## NotifyNormal, NotifyGrab, NotifyUngrab
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
226 detail*: cint ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
227 ## NotifyAncestor, NotifyVirtual, NotifyInferior,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
228 ## NotifyNonLinear,NotifyNonLinearVirtual, NotifyPointer,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
229 ## NotifyPointerRoot, NotifyDetailNone
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
230 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
231 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
232
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
233 PXDeviceFocusInEvent* = PXDeviceFocusChangeEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
234 XDeviceFocusInEvent* = XDeviceFocusChangeEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
235
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
236 PXDeviceFocusOutEvent* = PXDeviceFocusChangeEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
237 XDeviceFocusOutEvent* = XDeviceFocusChangeEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
238
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
239 PXProximityNotifyEvent* = ptr XProximityNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
240 XProximityNotifyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
241 ## ProximityNotify events. These events are sent by those absolute
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
242 ## positioning devices that are capable of generating proximity information.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
243 `type`*: cint ## ProximityIn or ProximityOut
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
244 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
245 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
246 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
247 window*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
248 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
249 root*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
250 subwindow*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
251 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
252 x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
253 y*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
254 x_root*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
255 y_root*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
256 state*: cuint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
257 same_screen*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
258 device_state*: cuint ## device key or button mask
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
259 axes_count*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
260 first_axis*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
261 axis_data*: array[6, cint]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
262
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
263 PXProximityInEvent* = PXProximityNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
264 XProximityInEvent* = XProximityNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
265
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
266 PXProximityOutEvent* = PXProximityNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
267 XProximityOutEvent* = XProximityNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
268
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
269 PXInputClass* = ptr XInputClass
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
270 XInputClass* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
271 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
272 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
273
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
274 PXDeviceStateNotifyEvent* = ptr XDeviceStateNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
275 XDeviceStateNotifyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
276 ## DeviceStateNotify events are generated on EnterWindow and FocusIn
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
277 ## for those clients who have selected DeviceState.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
278 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
279 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
280 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
281 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
282 window*: Window
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
283 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
284 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
285 num_classes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
286 data*: array[64, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
287
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
288 PXValuatorStatus* = ptr XValuatorStatus
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
289 XValuatorStatus* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
290 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
291 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
292 num_valuators*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
293 mode*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
294 valuators*: array[6, cint]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
295
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
296 PXKeyStatus* = ptr XKeyStatus
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
297 XKeyStatus* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
298 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
299 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
300 num_keys*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
301 keys*: array[32, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
302
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
303 PXButtonStatus* = ptr XButtonStatus
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
304 XButtonStatus* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
305 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
306 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
307 num_buttons*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
308 buttons*: array[32, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
309
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
310 PXDeviceMappingEvent* = ptr XDeviceMappingEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
311 XDeviceMappingEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
312 ## DeviceMappingNotify event. This event is sent when the key mapping,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
313 ## modifier mapping, or button mapping of an extension device is changed.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
314 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
315 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
316 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
317 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
318 window*: Window ## unused
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
319 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
320 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
321 request*: cint ## one of MappingModifier, MappingKeyboard,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
322 ## MappingPointer
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
323 first_keycode*: cint ## first keycode
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
324 count*: cint ## defines range of change w. first_keycode
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
325
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
326 PXChangeDeviceNotifyEvent* = ptr XChangeDeviceNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
327 XChangeDeviceNotifyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
328 ## ChangeDeviceNotify event. This event is sent when an
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
329 ## XChangeKeyboard or XChangePointer request is made.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
330 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
331 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
332 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
333 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
334 window*: Window ## unused
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
335 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
336 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
337 request*: cint ## NewPointer or NewKeyboard
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 PXDevicePresenceNotifyEvent* = ptr XDevicePresenceNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
340 XDevicePresenceNotifyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
341 ## DevicePresenceNotify event. This event is sent when the list of
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
342 ## input devices changes, in which case devchange will be false, and
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
343 ## no information about the change will be contained in the event;
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
344 ## the client should use XListInputDevices() to learn what has changed.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
345 ##
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
346 ## If devchange is true, an attribute that the server believes is
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
347 ## important has changed on a device, and the client should use
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
348 ## XGetDeviceControl to examine the device. If control is non-zero,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
349 ## then that control has changed meaningfully.
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
350 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
351 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
352 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
353 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
354 window*: Window ## unused
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
355 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
356 devchange*: XBool
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
357 deviceid*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
358 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
359
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
360 PXDevicePropertyNotifyEvent* = ptr XDevicePropertyNotifyEvent
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
361 XDevicePropertyNotifyEvent* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
362 `type`*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
363 serial*: culong ## # of last request processed by server
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
364 send_event*: XBool ## true if this came from a SendEvent request
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
365 display*: PDisplay ## Display the event was read from
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
366 window*: Window ## unused
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
367 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
368 deviceid*: XID ## id of the device that changed
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
369 atom*: Atom ## the property that changed
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
370 state*: cint ## PropertyNewValue or PropertyDeleted
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
371
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
372 PXFeedbackState* = ptr XFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
373 XFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
374 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
375 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
376 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
377
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
378 PXKbdFeedbackState* = ptr XKbdFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
379 XKbdFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
380 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
381 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
382 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
383 click*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
384 percent*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
385 pitch*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
386 duration*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
387 led_mask*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
388 global_auto_repeat*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
389 auto_repeats*: array[32, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
390
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
391 PXPtrFeedbackState* = ptr XPtrFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
392 XPtrFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
393 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
394 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
395 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
396 accelNum*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
397 accelDenom*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
398 threshold*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
399
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
400 PXIntegerFeedbackState* = ptr XIntegerFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
401 XIntegerFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
402 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
403 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
404 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
405 resolution*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
406 minVal*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
407 maxVal*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
408
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
409 PXStringFeedbackState* = ptr XStringFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
410 XStringFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
411 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
412 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
413 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
414 max_symbols*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
415 num_syms_supported*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
416 syms_supported*: PKeySym
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
417
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
418 PXBellFeedbackState* = ptr XBellFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
419 XBellFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
420 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
421 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
422 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
423 percent*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
424 pitch*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
425 duration*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
426
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
427 PXLedFeedbackState* = ptr XLedFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
428 XLedFeedbackState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
429 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
430 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
431 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
432 led_values*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
433 led_mask*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
434
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
435 PXFeedbackControl* = ptr XFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
436 XFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
437 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
438 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
439 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
440
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
441 PXPtrFeedbackControl* = ptr XPtrFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
442 XPtrFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
443 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
444 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
445 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
446 accelNum*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
447 accelDenom*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
448 threshold*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
449
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
450 PXKbdFeedbackControl* = ptr XKbdFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
451 XKbdFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
452 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
453 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
454 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
455 click*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
456 percent*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
457 pitch*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
458 duration*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
459 led_mask*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
460 led_value*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
461 key*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
462 auto_repeat_mode*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
463
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
464 PXStringFeedbackControl* = ptr XStringFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
465 XStringFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
466 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
467 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
468 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
469 num_keysyms*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
470 syms_to_display*: PKeySym
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
471
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
472 PXIntegerFeedbackControl* = ptr XIntegerFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
473 XIntegerFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
474 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
475 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
476 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
477 int_to_display*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
478
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
479 PXBellFeedbackControl* = ptr XBellFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
480 XBellFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
481 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
482 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
483 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
484 percent*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
485 pitch*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
486 duration*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
487
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
488 PXLedFeedbackControl* = ptr XLedFeedbackControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
489 XLedFeedbackControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
490 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
491 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
492 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
493 led_mask*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
494 led_values*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
495
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
496 PXDeviceControl* = ptr XDeviceControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
497 XDeviceControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
498 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
499 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
500
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
501 PXDeviceResolutionControl* = ptr XDeviceResolutionControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
502 XDeviceResolutionControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
503 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
504 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
505 first_valuator*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
506 num_valuators*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
507 resolutions*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
508
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
509 PXDeviceResolutionState* = ptr XDeviceResolutionState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
510 XDeviceResolutionState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
511 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
512 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
513 num_valuators*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
514 resolutions*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
515 min_resolutions*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
516 max_resolutions*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
517
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
518 PXDeviceAbsCalibControl* = ptr XDeviceAbsCalibControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
519 XDeviceAbsCalibControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
520 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
521 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
522 min_x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
523 max_x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
524 min_y*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
525 max_y*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
526 flip_x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
527 flip_y*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
528 rotation*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
529 button_threshold*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
530
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
531 PXDeviceAbsCalibState* = PXDeviceAbsCalibControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
532 XDeviceAbsCalibState* = XDeviceAbsCalibControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
533
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
534 PXDeviceAbsAreaControl* = ptr XDeviceAbsAreaControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
535 XDeviceAbsAreaControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
536 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
537 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
538 offset_x*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
539 offset_y*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
540 width*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
541 height*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
542 screen*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
543 following*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
544
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
545 PXDeviceAbsAreaState* = PXDeviceAbsAreaControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
546 XDeviceAbsAreaState* = XDeviceAbsAreaControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
547
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
548 PXDeviceCoreControl* = ptr XDeviceCoreControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
549 XDeviceCoreControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
550 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
551 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
552 status*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
553
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
554 PXDeviceCoreState* = ptr XDeviceCoreState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
555 XDeviceCoreState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
556 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
557 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
558 status*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
559 iscore*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
560
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
561 PXDeviceEnableControl* = ptr XDeviceEnableControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
562 XDeviceEnableControl* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
563 control*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
564 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
565 enable*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
566
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
567 PXDeviceEnableState* = PXDeviceEnableControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
568 XDeviceEnableState* = XDeviceEnableControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
569
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
570 PXAnyClassInfo* = ptr XAnyClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
571 XAnyClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
572 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
573 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
574
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
575 PXDeviceInfo* = ptr XDeviceInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
576 XDeviceInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
577 id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
578 `type`*: Atom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
579 name*: cstring
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
580 num_classes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
581 use*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
582 inputclassinfo*: PXAnyClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
583
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
584 PXKeyInfo* = ptr XKeyInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
585 XKeyInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
586 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
587 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
588 min_keycode*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
589 max_keycode*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
590 num_keys*: cushort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
591
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
592 PXButtonInfo* = ptr XButtonInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
593 XButtonInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
594 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
595 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
596 num_buttons*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
597
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
598 PXAxisInfo* = ptr XAxisInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
599 XAxisInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
600 resolution*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
601 min_value*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
602 max_value*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
603
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
604 PXValuatorInfo* = ptr XValuatorInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
605 XValuatorInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
606 class*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
607 length*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
608 num_axes*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
609 mode*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
610 motion_buffer*: culong
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
611 axes*: PXAxisInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
612
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
613 PXInputClassInfo* = ptr XInputClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
614 XInputClassInfo* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
615 input_class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
616 event_type_base*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
617
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
618 PXDevice* = ptr XDevice
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
619 XDevice* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
620 device_id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
621 num_classes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
622 classes*: PXInputClassInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
623
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
624 PXEventList* = ptr XEventList
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
625 XEventList* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
626 event_type*: XEventClass
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
627 device*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
628
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
629 PXDeviceTimeCoord* = ptr XDeviceTimeCoord
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
630 XDeviceTimeCoord* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
631 time*: Time
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
632 data*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
633
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
634 PXDeviceState* = ptr XDeviceState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
635 XDeviceState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
636 device_id*: XID
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
637 num_classes*: cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
638 data*: PXInputClass
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
639
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
640 PXValuatorState* = ptr XValuatorState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
641 XValuatorState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
642 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
643 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
644 num_valuators*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
645 mode*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
646 valuators*: ptr cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
647
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
648 PXKeyState* = ptr XKeyState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
649 XKeyState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
650 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
651 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
652 num_keys*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
653 keys*: array[32, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
654
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
655 PXButtonState* = ptr XButtonState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
656 XButtonState* {.final.} = object
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
657 class*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
658 length*: cuchar
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
659 num_buttons*: cshort
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
660 buttons*: array[32, char]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
661
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
662
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
663 {.push cdecl, importc, dynlib: libXi.}
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
664
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
665 proc XChangeKeyboardDevice*(a1: PDisplay, a2: PXDevice): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
666 proc XChangePointerDevice*(a1: PDisplay, a2: PXDevice, a3, a4: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
667 proc XGrabDevice*(a1: PDisplay, a2: PXDevice, a3: Window, a4: XBool, a5: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
668 a6: ptr UncheckedArray[XEventClass], a7, a8: cint, a9: Time): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
669 proc XUngrabDevice*(a1: PDisplay, a2: PXDevice, a3: Time): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
670 proc XGrabDeviceKey*(a1: PDisplay, a2: PXDevice, a3, a4: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
671 a5: PXDevice, a6: Window, a7: XBool, a8: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
672 a9: ptr UncheckedArray[XEventClass], a10, a11: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
673 proc XUngrabDeviceKey*(a1: PDisplay, a2: PXDevice, a3: cuint, a4: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
674 a5: PXDevice, a6: Window): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
675 proc XGrabDeviceButton*(a1: PDisplay, a2: PXDevice, a3: cuint, a4: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
676 a5: PXDevice, a6: Window, a7: XBool, a8: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
677 a9: ptr UncheckedArray[XEventClass], a10: cint, a11: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
678 proc XUngrabDeviceButton*(a1: PDisplay, a2: PXDevice, a3: cuint, a4: cuint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
679 a5: PXDevice, a6: Window): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
680 proc XAllowDeviceEvents*(a1: PDisplay, a2: PXDevice, a3: cint, a4: Time): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
681 proc XGetDeviceFocus*(a1: PDisplay, a2: PXDevice, a3: PWindow, a4: ptr cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
682 a5: ptr Time): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
683 proc XSetDeviceFocus*(a1: PDisplay, a2: PXDevice, a3: Window, a4: cint, a5: Time): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
684 proc XGetFeedbackControl*(a1: PDisplay, a2: PXDevice, a3: ptr cint): PXFeedbackState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
685 proc XFreeFeedbackList*(a1: PXFeedbackState)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
686 proc XChangeFeedbackControl*(a1: PDisplay, a2: PXDevice, a3: culong,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
687 a4: PXFeedbackControl): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
688 proc XDeviceBell*(a1: PDisplay, a2: PXDevice, a3, a4: XID, a5: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
689 proc XGetDeviceKeyMapping*(a1: PDisplay, a2: PXDevice,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
690 a3: (when xNeedWidePrototypes: cuint else: KeyCode),
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
691 a4: cint, a5: ptr cint): PKeySym
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
692 proc XChangeDeviceKeyMapping*(a1: PDisplay, a2: PXDevice, a3: cint, a4: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
693 a5: PKeySym, a6: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
694 proc XGetDeviceModifierMapping*(a1: PDisplay, a2: PXDevice): PXModifierKeymap
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
695 proc XSetDeviceModifierMapping*(a1: PDisplay, a2: PXDevice,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
696 a3: PXModifierKeymap): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
697 proc XSetDeviceButtonMapping*(a1: PDisplay, a2: PXDevice, a3: cstring, a4: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
698 proc XGetDeviceButtonMapping*(a1: PDisplay, a2: PXDevice, a3: cstring, a4: cuint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
699 proc XQueryDeviceState*(a1: PDisplay, a2: PXDevice): PXDeviceState
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
700 proc XFreeDeviceState*(a1: PXDeviceState)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
701 proc XGetExtensionVersion*(a1: PDisplay, a2: cstring): PXExtensionVersion
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
702 proc XListInputDevices*(a1: PDisplay, a2: ptr cint): PXDeviceInfo
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
703 proc XFreeDeviceList*(a1: PXDeviceInfo)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
704 proc XOpenDevice*(a1: PDisplay, a2: XID): PXDevice
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
705 proc XCloseDevice*(a1: PDisplay, a2: PXDevice): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
706 proc XSetDeviceMode*(a1: PDisplay, a2: PXDevice, a3: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
707 proc XSetDeviceValuators*(a1: PDisplay, a2: PXDevice, a3: ptr cint, a4: cint, a5: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
708 proc XGetDeviceControl*(a1: PDisplay, a2: PXDevice, a3: cint): PXDeviceControl
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
709 proc XChangeDeviceControl*(a1: PDisplay, a2: PXDevice, a3: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
710 a4: PXDeviceControl): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
711 proc XSelectExtensionEvent*(a1: PDisplay, a2: Window, a3: ptr UncheckedArray[XEventClass], a4: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
712 proc XGetSelectedExtensionEvents*(a1: PDisplay, a2: Window, a3: ptr cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
713 a4: ptr ptr UncheckedArray[XEventClass], a5: ptr cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
714 a6: ptr ptr UncheckedArray[XEventClass]): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
715 proc XChangeDeviceDontPropagateList*(a1: PDisplay, a2: Window, a3: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
716 a4: ptr UncheckedArray[XEventClass], a5: cint): cint
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
717 proc XGetDeviceDontPropagateList*(a1: PDisplay, a2: Window, a3: ptr cint): ptr UncheckedArray[XEventClass]
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
718 proc XSendExtensionEvent*(a1: PDisplay, a2: PXDevice, a3: Window, a4: XBool, a5: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
719 a6: ptr UncheckedArray[XEventClass], a7: PXEvent): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
720 proc XGetDeviceMotionEvents*(a1: PDisplay, a2: PXDevice, a3, a4: Time,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
721 a5, a6, a7: ptr cint): PXDeviceTimeCoord
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
722 proc XFreeDeviceMotionEvents*(a1: PXDeviceTimeCoord)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
723 proc XFreeDeviceControl*(a1: PXDeviceControl)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
724 proc XListDeviceProperties*(a1: PDisplay, a2: PXDevice, a3: ptr cint): PAtom
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
725 proc XChangeDeviceProperty*(a1: PDisplay, a2: PXDevice, a3: Atom, a4: Atom, a5: cint,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
726 a6: cint, a7: cstring, a8: cint)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
727 proc XDeleteDeviceProperty*(a1: PDisplay, a2: PXDevice, a3: Atom)
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
728 proc XGetDeviceProperty*(a1: PDisplay, a2: PXDevice, a3: Atom, a4, a5: clong,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
729 a6: XBool, a7: Atom, a8: PAtom, a9: ptr cint, a10: ptr culong,
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
730 a11: ptr culong, a12: ptr cstring): Status
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
731
239adab121a3 sync from bedroom to office
sam <sam@basx.dev>
parents:
diff changeset
732 {.pop.}