Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/internal/c/XInput.d @ 25:f713da8bc051
Added SWT Linux GTK
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 20 Mar 2009 23:03:58 +0100 |
parents | |
children | fb3aa8075988 |
comparison
equal
deleted
inserted
replaced
24:b7a1d02a0e1f | 25:f713da8bc051 |
---|---|
1 /****************************************************************************** | |
2 Based on the generated files from the BCD tool | |
3 modified by: Frank Benoit <keinfarbton@googlemail.com> | |
4 ******************************************************************************/ | |
5 module org.eclipse.swt.internal.c.XInput; | |
6 | |
7 import java.lang.all; | |
8 | |
9 public import org.eclipse.swt.internal.c.Xlib; | |
10 | |
11 extern(C): | |
12 align(4): | |
13 | |
14 struct XExtensionVersion{ int a; int b; }; | |
15 | |
16 | |
17 | |
18 const int _deviceKeyPress = 0; | |
19 const int _deviceKeyRelease = 1; | |
20 const int _deviceButtonPress = 0; | |
21 const int _deviceButtonRelease = 1; | |
22 const int _deviceMotionNotify = 0; | |
23 const int _deviceFocusIn = 0; | |
24 const int _deviceFocusOut = 1; | |
25 const int _proximityIn = 0; | |
26 const int _proximityOut = 1; | |
27 const int _deviceStateNotify = 0; | |
28 const int _deviceMappingNotify = 1; | |
29 const int _changeDeviceNotify = 2; | |
30 alias _XValuatorInfo XValuatorInfo; | |
31 alias _XValuatorInfo * XValuatorInfoPtr; | |
32 alias _XAxisInfo * XAxisInfoPtr; | |
33 alias _XAxisInfo XAxisInfo; | |
34 alias _XButtonInfo XButtonInfo; | |
35 alias _XButtonInfo * XButtonInfoPtr; | |
36 alias _XKeyInfo XKeyInfo; | |
37 alias _XKeyInfo * XKeyInfoPtr; | |
38 alias _XDeviceInfo XDeviceInfo; | |
39 alias _XDeviceInfo * XDeviceInfoPtr; | |
40 alias _XAnyClassinfo * XAnyClassPtr; | |
41 alias _XAnyClassinfo XAnyClassInfo; | |
42 alias XDeviceEnableControl XDeviceEnableState; | |
43 alias XDeviceAbsAreaControl XDeviceAbsAreaState; | |
44 alias XDeviceAbsCalibControl XDeviceAbsCalibState; | |
45 alias XProximityNotifyEvent XProximityOutEvent; | |
46 alias XProximityNotifyEvent XProximityInEvent; | |
47 alias XDeviceFocusChangeEvent XDeviceFocusOutEvent; | |
48 alias XDeviceFocusChangeEvent XDeviceFocusInEvent; | |
49 alias XDeviceButtonEvent XDeviceButtonReleasedEvent; | |
50 alias XDeviceButtonEvent XDeviceButtonPressedEvent; | |
51 alias XDeviceKeyEvent XDeviceKeyReleasedEvent; | |
52 alias XDeviceKeyEvent XDeviceKeyPressedEvent; | |
53 alias void function(void *, char *, int, int, char * *) _BCD_func__1398; | |
54 alias int function(void *) _BCD_func__1440; | |
55 alias int function(void *, XErrorEvent *) _BCD_func__1441; | |
56 alias void function(void *, char *, char *) _BCD_func__1515; | |
57 alias int function(void *, char *, char *) _BCD_func__1516; | |
58 alias void function(void *, char *, char *) _BCD_func__1517; | |
59 struct XButtonState { | |
60 char c_class; | |
61 char length; | |
62 short num_buttons; | |
63 char [32] buttons; | |
64 } | |
65 struct XKeyState { | |
66 char c_class; | |
67 char length; | |
68 short num_keys; | |
69 char [32] keys; | |
70 } | |
71 struct XValuatorState { | |
72 char c_class; | |
73 char length; | |
74 char num_valuators; | |
75 char mode; | |
76 int * valuators; | |
77 } | |
78 struct XDeviceState { | |
79 uint device_id; | |
80 int num_classes; | |
81 XInputClass * data; | |
82 } | |
83 struct XDeviceTimeCoord { | |
84 uint time; | |
85 int * data; | |
86 } | |
87 struct XEventList { | |
88 uint event_type; | |
89 uint device; | |
90 } | |
91 struct XDevice { | |
92 uint device_id; | |
93 int num_classes; | |
94 XInputClassInfo * classes; | |
95 } | |
96 struct XInputClassInfo { | |
97 char input_class; | |
98 char event_type_base; | |
99 } | |
100 struct _XValuatorInfo { | |
101 uint c_class; | |
102 int length; | |
103 char num_axes; | |
104 char mode; | |
105 uint motion_buffer; | |
106 _XAxisInfo * axes; | |
107 } | |
108 struct _XAxisInfo { | |
109 int resolution; | |
110 int min_value; | |
111 int max_value; | |
112 } | |
113 struct _XButtonInfo { | |
114 uint c_class; | |
115 int length; | |
116 short num_buttons; | |
117 } | |
118 struct _XKeyInfo { | |
119 uint c_class; | |
120 int length; | |
121 ushort min_keycode; | |
122 ushort max_keycode; | |
123 ushort num_keys; | |
124 } | |
125 struct _XDeviceInfo { | |
126 uint id; | |
127 uint type; | |
128 char * name; | |
129 int num_classes; | |
130 int use; | |
131 _XAnyClassinfo * inputclassinfo; | |
132 } | |
133 struct _XAnyClassinfo { | |
134 uint c_class; | |
135 int length; | |
136 } | |
137 struct XDeviceEnableControl { | |
138 uint control; | |
139 int length; | |
140 int enable; | |
141 } | |
142 struct XDeviceCoreState { | |
143 uint control; | |
144 int length; | |
145 int status; | |
146 int iscore; | |
147 } | |
148 struct XDeviceCoreControl { | |
149 uint control; | |
150 int length; | |
151 int status; | |
152 } | |
153 struct XDeviceAbsAreaControl { | |
154 uint control; | |
155 int length; | |
156 int offset_x; | |
157 int offset_y; | |
158 int width; | |
159 int height; | |
160 int screen; | |
161 uint following; | |
162 } | |
163 struct XDeviceAbsCalibControl { | |
164 uint control; | |
165 int length; | |
166 int min_x; | |
167 int max_x; | |
168 int min_y; | |
169 int max_y; | |
170 int flip_x; | |
171 int flip_y; | |
172 int rotation; | |
173 int button_threshold; | |
174 } | |
175 struct XDeviceResolutionState { | |
176 uint control; | |
177 int length; | |
178 int num_valuators; | |
179 int * resolutions; | |
180 int * min_resolutions; | |
181 int * max_resolutions; | |
182 } | |
183 struct XDeviceResolutionControl { | |
184 uint control; | |
185 int length; | |
186 int first_valuator; | |
187 int num_valuators; | |
188 int * resolutions; | |
189 } | |
190 struct XDeviceControl { | |
191 uint control; | |
192 int length; | |
193 } | |
194 struct XLedFeedbackControl { | |
195 uint c_class; | |
196 int length; | |
197 uint id; | |
198 int led_mask; | |
199 int led_values; | |
200 } | |
201 struct XBellFeedbackControl { | |
202 uint c_class; | |
203 int length; | |
204 uint id; | |
205 int percent; | |
206 int pitch; | |
207 int duration; | |
208 } | |
209 struct XIntegerFeedbackControl { | |
210 uint c_class; | |
211 int length; | |
212 uint id; | |
213 int int_to_display; | |
214 } | |
215 struct XStringFeedbackControl { | |
216 uint c_class; | |
217 int length; | |
218 uint id; | |
219 int num_keysyms; | |
220 uint * syms_to_display; | |
221 } | |
222 struct XKbdFeedbackControl { | |
223 uint c_class; | |
224 int length; | |
225 uint id; | |
226 int click; | |
227 int percent; | |
228 int pitch; | |
229 int duration; | |
230 int led_mask; | |
231 int led_value; | |
232 int key; | |
233 int auto_repeat_mode; | |
234 } | |
235 struct XPtrFeedbackControl { | |
236 uint c_class; | |
237 int length; | |
238 uint id; | |
239 int accelNum; | |
240 int accelDenom; | |
241 int threshold; | |
242 } | |
243 struct XFeedbackControl { | |
244 uint c_class; | |
245 int length; | |
246 uint id; | |
247 } | |
248 struct XLedFeedbackState { | |
249 uint c_class; | |
250 int length; | |
251 uint id; | |
252 int led_values; | |
253 int led_mask; | |
254 } | |
255 struct XBellFeedbackState { | |
256 uint c_class; | |
257 int length; | |
258 uint id; | |
259 int percent; | |
260 int pitch; | |
261 int duration; | |
262 } | |
263 struct XStringFeedbackState { | |
264 uint c_class; | |
265 int length; | |
266 uint id; | |
267 int max_symbols; | |
268 int num_syms_supported; | |
269 uint * syms_supported; | |
270 } | |
271 struct XIntegerFeedbackState { | |
272 uint c_class; | |
273 int length; | |
274 uint id; | |
275 int resolution; | |
276 int minVal; | |
277 int maxVal; | |
278 } | |
279 struct XPtrFeedbackState { | |
280 uint c_class; | |
281 int length; | |
282 uint id; | |
283 int accelNum; | |
284 int accelDenom; | |
285 int threshold; | |
286 } | |
287 struct XKbdFeedbackState { | |
288 uint c_class; | |
289 int length; | |
290 uint id; | |
291 int click; | |
292 int percent; | |
293 int pitch; | |
294 int duration; | |
295 int led_mask; | |
296 int global_auto_repeat; | |
297 char [32] auto_repeats; | |
298 } | |
299 struct XFeedbackState { | |
300 uint c_class; | |
301 int length; | |
302 uint id; | |
303 } | |
304 struct XDevicePresenceNotifyEvent { | |
305 int type; | |
306 uint serial; | |
307 int send_event; | |
308 void * display; | |
309 uint window; | |
310 uint time; | |
311 int devchange; | |
312 uint deviceid; | |
313 uint control; | |
314 } | |
315 struct XChangeDeviceNotifyEvent { | |
316 int type; | |
317 uint serial; | |
318 int send_event; | |
319 void * display; | |
320 uint window; | |
321 uint deviceid; | |
322 uint time; | |
323 int request; | |
324 } | |
325 struct XDeviceMappingEvent { | |
326 int type; | |
327 uint serial; | |
328 int send_event; | |
329 void * display; | |
330 uint window; | |
331 uint deviceid; | |
332 uint time; | |
333 int request; | |
334 int first_keycode; | |
335 int count; | |
336 } | |
337 struct XButtonStatus { | |
338 char c_class; | |
339 char length; | |
340 short num_buttons; | |
341 char [32] buttons; | |
342 } | |
343 struct XKeyStatus { | |
344 char c_class; | |
345 char length; | |
346 short num_keys; | |
347 char [32] keys; | |
348 } | |
349 struct XValuatorStatus { | |
350 char c_class; | |
351 char length; | |
352 char num_valuators; | |
353 char mode; | |
354 int [6] valuators; | |
355 } | |
356 struct XDeviceStateNotifyEvent { | |
357 int type; | |
358 uint serial; | |
359 int send_event; | |
360 void * display; | |
361 uint window; | |
362 uint deviceid; | |
363 uint time; | |
364 int num_classes; | |
365 char [64] data; | |
366 } | |
367 struct XInputClass { | |
368 char c_class; | |
369 char length; | |
370 } | |
371 struct XProximityNotifyEvent { | |
372 int type; | |
373 uint serial; | |
374 int send_event; | |
375 void * display; | |
376 uint window; | |
377 uint deviceid; | |
378 uint root; | |
379 uint subwindow; | |
380 uint time; | |
381 int x; | |
382 int y; | |
383 int x_root; | |
384 int y_root; | |
385 uint state; | |
386 int same_screen; | |
387 uint device_state; | |
388 char axes_count; | |
389 char first_axis; | |
390 int [6] axis_data; | |
391 } | |
392 struct XDeviceFocusChangeEvent { | |
393 int type; | |
394 uint serial; | |
395 int send_event; | |
396 void * display; | |
397 uint window; | |
398 uint deviceid; | |
399 int mode; | |
400 int detail; | |
401 uint time; | |
402 } | |
403 struct XDeviceMotionEvent { | |
404 int type; | |
405 uint serial; | |
406 int send_event; | |
407 void * display; | |
408 uint window; | |
409 uint deviceid; | |
410 uint root; | |
411 uint subwindow; | |
412 uint time; | |
413 int x; | |
414 int y; | |
415 int x_root; | |
416 int y_root; | |
417 uint state; | |
418 char is_hint; | |
419 int same_screen; | |
420 uint device_state; | |
421 char axes_count; | |
422 char first_axis; | |
423 int [6] axis_data; | |
424 } | |
425 struct XDeviceButtonEvent { | |
426 int type; | |
427 uint serial; | |
428 int send_event; | |
429 void * display; | |
430 uint window; | |
431 uint deviceid; | |
432 uint root; | |
433 uint subwindow; | |
434 uint time; | |
435 int x; | |
436 int y; | |
437 int x_root; | |
438 int y_root; | |
439 uint state; | |
440 uint button; | |
441 int same_screen; | |
442 uint device_state; | |
443 char axes_count; | |
444 char first_axis; | |
445 int [6] axis_data; | |
446 } | |
447 struct XDeviceKeyEvent { | |
448 int type; | |
449 uint serial; | |
450 int send_event; | |
451 void * display; | |
452 uint window; | |
453 uint deviceid; | |
454 uint root; | |
455 uint subwindow; | |
456 uint time; | |
457 int x; | |
458 int y; | |
459 int x_root; | |
460 int y_root; | |
461 uint state; | |
462 uint keycode; | |
463 int same_screen; | |
464 uint device_state; | |
465 char axes_count; | |
466 char first_axis; | |
467 int [6] axis_data; | |
468 } | |
469 version(DYNLINK){ | |
470 extern (C) void function(XDeviceControl *)XFreeDeviceControl; | |
471 extern (C) void function(XDeviceTimeCoord *)XFreeDeviceMotionEvents; | |
472 extern (C) XDeviceTimeCoord * function(void *, XDevice *, uint, uint, int *, int *, int *)XGetDeviceMotionEvents; | |
473 extern (C) int function(void *, XDevice *, uint, int, int, uint *, _XEvent *)XSendExtensionEvent; | |
474 extern (C) uint * function(void *, uint, int *)XGetDeviceDontPropagateList; | |
475 extern (C) int function(void *, uint, int, uint *, int)XChangeDeviceDontPropagateList; | |
476 extern (C) int function(void *, uint, int *, uint * *, int *, uint * *)XGetSelectedExtensionEvents; | |
477 extern (C) int function(void *, uint, uint *, int)XSelectExtensionEvent; | |
478 extern (C) int function(void *, XDevice *, int, XDeviceControl *)XChangeDeviceControl; | |
479 extern (C) XDeviceControl * function(void *, XDevice *, int)XGetDeviceControl; | |
480 extern (C) int function(void *, XDevice *, int *, int, int)XSetDeviceValuators; | |
481 extern (C) int function(void *, XDevice *, int)XSetDeviceMode; | |
482 extern (C) int function(void *, XDevice *)XCloseDevice; | |
483 extern (C) XDevice * function(void *, uint)XOpenDevice; | |
484 extern (C) void function(_XDeviceInfo *)XFreeDeviceList; | |
485 extern (C) _XDeviceInfo * function(void *, int *)XListInputDevices; | |
486 extern (C) XExtensionVersion * function(void *, char *)XGetExtensionVersion; | |
487 extern (C) void function(XDeviceState *)XFreeDeviceState; | |
488 extern (C) XDeviceState * function(void *, XDevice *)XQueryDeviceState; | |
489 extern (C) int function(void *, XDevice *, char *, uint)XGetDeviceButtonMapping; | |
490 extern (C) int function(void *, XDevice *, char *, int)XSetDeviceButtonMapping; | |
491 extern (C) int function(void *, XDevice *, XModifierKeymap *)XSetDeviceModifierMapping; | |
492 extern (C) XModifierKeymap * function(void *, XDevice *)XGetDeviceModifierMapping; | |
493 extern (C) int function(void *, XDevice *, int, int, uint *, int)XChangeDeviceKeyMapping; | |
494 extern (C) uint * function(void *, XDevice *, char, int, int *)XGetDeviceKeyMapping; | |
495 extern (C) int function(void *, XDevice *, uint, uint, int)XDeviceBell; | |
496 extern (C) int function(void *, XDevice *, uint, XFeedbackControl *)XChangeFeedbackControl; | |
497 extern (C) void function(XFeedbackState *)XFreeFeedbackList; | |
498 extern (C) XFeedbackState * function(void *, XDevice *, int *)XGetFeedbackControl; | |
499 extern (C) int function(void *, XDevice *, uint, int, uint)XSetDeviceFocus; | |
500 extern (C) int function(void *, XDevice *, uint *, int *, uint *)XGetDeviceFocus; | |
501 extern (C) int function(void *, XDevice *, int, uint)XAllowDeviceEvents; | |
502 extern (C) int function(void *, XDevice *, uint, uint, XDevice *, uint)XUngrabDeviceButton; | |
503 extern (C) int function(void *, XDevice *, uint, uint, XDevice *, uint, int, uint, uint *, int, int)XGrabDeviceButton; | |
504 extern (C) int function(void *, XDevice *, uint, uint, XDevice *, uint)XUngrabDeviceKey; | |
505 extern (C) int function(void *, XDevice *, uint, uint, XDevice *, uint, int, uint, uint *, int, int)XGrabDeviceKey; | |
506 extern (C) int function(void *, XDevice *, uint)XUngrabDevice; | |
507 extern (C) int function(void *, XDevice *, uint, int, int, uint *, int, int, uint)XGrabDevice; | |
508 extern (C) int function(void *, XDevice *, int, int)XChangePointerDevice; | |
509 extern (C) int function(void *, XDevice *)XChangeKeyboardDevice; | |
510 | |
511 | |
512 Symbol[] symbols = [ | |
513 { "XFreeDeviceControl", cast(void**)& XFreeDeviceControl}, | |
514 { "XFreeDeviceMotionEvents", cast(void**)& XFreeDeviceMotionEvents}, | |
515 { "XGetDeviceMotionEvents", cast(void**)& XGetDeviceMotionEvents}, | |
516 { "XSendExtensionEvent", cast(void**)& XSendExtensionEvent}, | |
517 { "XGetDeviceDontPropagateList", cast(void**)& XGetDeviceDontPropagateList}, | |
518 { "XChangeDeviceDontPropagateList", cast(void**)& XChangeDeviceDontPropagateList}, | |
519 { "XGetSelectedExtensionEvents", cast(void**)& XGetSelectedExtensionEvents}, | |
520 { "XSelectExtensionEvent", cast(void**)& XSelectExtensionEvent}, | |
521 { "XChangeDeviceControl", cast(void**)& XChangeDeviceControl}, | |
522 { "XGetDeviceControl", cast(void**)& XGetDeviceControl}, | |
523 { "XSetDeviceValuators", cast(void**)& XSetDeviceValuators}, | |
524 { "XSetDeviceMode", cast(void**)& XSetDeviceMode}, | |
525 { "XCloseDevice", cast(void**)& XCloseDevice}, | |
526 { "XOpenDevice", cast(void**)& XOpenDevice}, | |
527 { "XFreeDeviceList", cast(void**)& XFreeDeviceList}, | |
528 { "XListInputDevices", cast(void**)& XListInputDevices}, | |
529 { "XGetExtensionVersion", cast(void**)& XGetExtensionVersion}, | |
530 { "XFreeDeviceState", cast(void**)& XFreeDeviceState}, | |
531 { "XQueryDeviceState", cast(void**)& XQueryDeviceState}, | |
532 { "XGetDeviceButtonMapping", cast(void**)& XGetDeviceButtonMapping}, | |
533 { "XSetDeviceButtonMapping", cast(void**)& XSetDeviceButtonMapping}, | |
534 { "XSetDeviceModifierMapping", cast(void**)& XSetDeviceModifierMapping}, | |
535 { "XGetDeviceModifierMapping", cast(void**)& XGetDeviceModifierMapping}, | |
536 { "XChangeDeviceKeyMapping", cast(void**)& XChangeDeviceKeyMapping}, | |
537 { "XGetDeviceKeyMapping", cast(void**)& XGetDeviceKeyMapping}, | |
538 { "XDeviceBell", cast(void**)& XDeviceBell}, | |
539 { "XChangeFeedbackControl", cast(void**)& XChangeFeedbackControl}, | |
540 { "XFreeFeedbackList", cast(void**)& XFreeFeedbackList}, | |
541 { "XGetFeedbackControl", cast(void**)& XGetFeedbackControl}, | |
542 { "XSetDeviceFocus", cast(void**)& XSetDeviceFocus}, | |
543 { "XGetDeviceFocus", cast(void**)& XGetDeviceFocus}, | |
544 { "XAllowDeviceEvents", cast(void**)& XAllowDeviceEvents}, | |
545 { "XUngrabDeviceButton", cast(void**)& XUngrabDeviceButton}, | |
546 { "XGrabDeviceButton", cast(void**)& XGrabDeviceButton}, | |
547 { "XUngrabDeviceKey", cast(void**)& XUngrabDeviceKey}, | |
548 { "XGrabDeviceKey", cast(void**)& XGrabDeviceKey}, | |
549 { "XUngrabDevice", cast(void**)& XUngrabDevice}, | |
550 { "XGrabDevice", cast(void**)& XGrabDevice}, | |
551 { "XChangePointerDevice", cast(void**)& XChangePointerDevice}, | |
552 { "XChangeKeyboardDevice", cast(void**)& XChangeKeyboardDevice}, | |
553 ]; | |
554 | |
555 } else { // version(DYNLINK) | |
556 extern (C) void XFreeDeviceControl(XDeviceControl *); | |
557 extern (C) void XFreeDeviceMotionEvents(XDeviceTimeCoord *); | |
558 extern (C) XDeviceTimeCoord * XGetDeviceMotionEvents(void *, XDevice *, uint, uint, int *, int *, int *); | |
559 extern (C) int XSendExtensionEvent(void *, XDevice *, uint, int, int, uint *, _XEvent *); | |
560 extern (C) uint * XGetDeviceDontPropagateList(void *, uint, int *); | |
561 extern (C) int XChangeDeviceDontPropagateList(void *, uint, int, uint *, int); | |
562 extern (C) int XGetSelectedExtensionEvents(void *, uint, int *, uint * *, int *, uint * *); | |
563 extern (C) int XSelectExtensionEvent(void *, uint, uint *, int); | |
564 extern (C) int XChangeDeviceControl(void *, XDevice *, int, XDeviceControl *); | |
565 extern (C) XDeviceControl * XGetDeviceControl(void *, XDevice *, int); | |
566 extern (C) int XSetDeviceValuators(void *, XDevice *, int *, int, int); | |
567 extern (C) int XSetDeviceMode(void *, XDevice *, int); | |
568 extern (C) int XCloseDevice(void *, XDevice *); | |
569 extern (C) XDevice * XOpenDevice(void *, uint); | |
570 extern (C) void XFreeDeviceList(_XDeviceInfo *); | |
571 extern (C) _XDeviceInfo * XListInputDevices(void *, int *); | |
572 extern (C) XExtensionVersion * XGetExtensionVersion(void *, char *); | |
573 extern (C) void XFreeDeviceState(XDeviceState *); | |
574 extern (C) XDeviceState * XQueryDeviceState(void *, XDevice *); | |
575 extern (C) int XGetDeviceButtonMapping(void *, XDevice *, char *, uint); | |
576 extern (C) int XSetDeviceButtonMapping(void *, XDevice *, char *, int); | |
577 extern (C) int XSetDeviceModifierMapping(void *, XDevice *, XModifierKeymap *); | |
578 extern (C) XModifierKeymap * XGetDeviceModifierMapping(void *, XDevice *); | |
579 extern (C) int XChangeDeviceKeyMapping(void *, XDevice *, int, int, uint *, int); | |
580 extern (C) uint * XGetDeviceKeyMapping(void *, XDevice *, char, int, int *); | |
581 extern (C) int XDeviceBell(void *, XDevice *, uint, uint, int); | |
582 extern (C) int XChangeFeedbackControl(void *, XDevice *, uint, XFeedbackControl *); | |
583 extern (C) void XFreeFeedbackList(XFeedbackState *); | |
584 extern (C) XFeedbackState * XGetFeedbackControl(void *, XDevice *, int *); | |
585 extern (C) int XSetDeviceFocus(void *, XDevice *, uint, int, uint); | |
586 extern (C) int XGetDeviceFocus(void *, XDevice *, uint *, int *, uint *); | |
587 extern (C) int XAllowDeviceEvents(void *, XDevice *, int, uint); | |
588 extern (C) int XUngrabDeviceButton(void *, XDevice *, uint, uint, XDevice *, uint); | |
589 extern (C) int XGrabDeviceButton(void *, XDevice *, uint, uint, XDevice *, uint, int, uint, uint *, int, int); | |
590 extern (C) int XUngrabDeviceKey(void *, XDevice *, uint, uint, XDevice *, uint); | |
591 extern (C) int XGrabDeviceKey(void *, XDevice *, uint, uint, XDevice *, uint, int, uint, uint *, int, int); | |
592 extern (C) int XUngrabDevice(void *, XDevice *, uint); | |
593 extern (C) int XGrabDevice(void *, XDevice *, uint, int, int, uint *, int, int, uint); | |
594 extern (C) int XChangePointerDevice(void *, XDevice *, int, int); | |
595 extern (C) int XChangeKeyboardDevice(void *, XDevice *); | |
596 } // version(DYNLINK) |