1191
|
1
|
|
2 import
|
|
3 x
|
|
4
|
|
5 include "x11pragma.nim"
|
|
6
|
|
7 type
|
|
8 cunsigned* = cint
|
|
9 Pcint* = ptr cint
|
|
10 PPcint* = ptr Pcint
|
|
11 PPcuchar* = ptr ptr char
|
|
12 PWideChar* = ptr int16
|
|
13 PPChar* = ptr cstring
|
|
14 PPPChar* = ptr ptr cstring
|
|
15 Pculong* = ptr culong
|
|
16 Pcuchar* = cstring
|
|
17 Pcuint* = ptr cuint
|
|
18 Pcushort* = ptr uint16
|
|
19 # Automatically converted by H2Pas 0.99.15 from xlib.h
|
|
20 # The following command line parameters were used:
|
|
21 # -p
|
|
22 # -T
|
|
23 # -S
|
|
24 # -d
|
|
25 # -c
|
|
26 # xlib.h
|
|
27
|
|
28 const
|
|
29 XlibSpecificationRelease* = 6
|
|
30
|
|
31 type
|
|
32 PXPointer* = ptr XPointer
|
|
33 XPointer* = ptr char
|
|
34 PBool* = ptr XBool
|
|
35 XBool* = cint
|
|
36 PStatus* = ptr Status
|
|
37 Status* = cint
|
|
38
|
|
39 const
|
|
40 QueuedAlready* = 0
|
|
41 QueuedAfterReading* = 1
|
|
42 QueuedAfterFlush* = 2
|
|
43
|
|
44 type
|
|
45 PPXExtData* = ptr PXExtData
|
|
46 PXExtData* = ptr XExtData
|
|
47 XExtData*{.final.} = object
|
|
48 number*: cint
|
|
49 next*: PXExtData
|
|
50 free_private*: proc (extension: PXExtData): cint{.cdecl.}
|
|
51 private_data*: XPointer
|
|
52
|
|
53 PXExtCodes* = ptr XExtCodes
|
|
54 XExtCodes*{.final.} = object
|
|
55 extension*: cint
|
|
56 major_opcode*: cint
|
|
57 first_event*: cint
|
|
58 first_error*: cint
|
|
59
|
|
60 PXPixmapFormatValues* = ptr XPixmapFormatValues
|
|
61 XPixmapFormatValues*{.final.} = object
|
|
62 depth*: cint
|
|
63 bits_per_pixel*: cint
|
|
64 scanline_pad*: cint
|
|
65
|
|
66 PXGCValues* = ptr XGCValues
|
|
67 XGCValues*{.final.} = object
|
|
68 function*: cint
|
|
69 plane_mask*: culong
|
|
70 foreground*: culong
|
|
71 background*: culong
|
|
72 line_width*: cint
|
|
73 line_style*: cint
|
|
74 cap_style*: cint
|
|
75 join_style*: cint
|
|
76 fill_style*: cint
|
|
77 fill_rule*: cint
|
|
78 arc_mode*: cint
|
|
79 tile*: Pixmap
|
|
80 stipple*: Pixmap
|
|
81 ts_x_origin*: cint
|
|
82 ts_y_origin*: cint
|
|
83 font*: Font
|
|
84 subwindow_mode*: cint
|
|
85 graphics_exposures*: XBool
|
|
86 clip_x_origin*: cint
|
|
87 clip_y_origin*: cint
|
|
88 clip_mask*: Pixmap
|
|
89 dash_offset*: cint
|
|
90 dashes*: cchar
|
|
91
|
|
92 PXGC* = ptr XGC
|
|
93 XGC*{.final.} = object
|
|
94 GC* = PXGC
|
|
95 PGC* = ptr GC
|
|
96 PVisual* = ptr Visual
|
|
97 Visual*{.final.} = object
|
|
98 ext_data*: PXExtData
|
|
99 visualid*: VisualID
|
|
100 c_class*: cint
|
|
101 red_mask*, green_mask*, blue_mask*: culong
|
|
102 bits_per_rgb*: cint
|
|
103 map_entries*: cint
|
|
104
|
|
105 PDepth* = ptr Depth
|
|
106 Depth*{.final.} = object
|
|
107 depth*: cint
|
|
108 nvisuals*: cint
|
|
109 visuals*: PVisual
|
|
110
|
|
111 PXDisplay* = ptr XDisplay
|
|
112 XDisplay*{.final.} = object
|
|
113
|
|
114 PScreen* = ptr Screen
|
|
115 Screen*{.final.} = object
|
|
116 ext_data*: PXExtData
|
|
117 display*: PXDisplay
|
|
118 root*: Window
|
|
119 width*, height*: cint
|
|
120 mwidth*, mheight*: cint
|
|
121 ndepths*: cint
|
|
122 depths*: PDepth
|
|
123 root_depth*: cint
|
|
124 root_visual*: PVisual
|
|
125 default_gc*: GC
|
|
126 cmap*: Colormap
|
|
127 white_pixel*: culong
|
|
128 black_pixel*: culong
|
|
129 max_maps*, min_maps*: cint
|
|
130 backing_store*: cint
|
|
131 save_unders*: XBool
|
|
132 root_input_mask*: clong
|
|
133
|
|
134 PScreenFormat* = ptr ScreenFormat
|
|
135 ScreenFormat*{.final.} = object
|
|
136 ext_data*: PXExtData
|
|
137 depth*: cint
|
|
138 bits_per_pixel*: cint
|
|
139 scanline_pad*: cint
|
|
140
|
|
141 PXSetWindowAttributes* = ptr XSetWindowAttributes
|
|
142 XSetWindowAttributes*{.final.} = object
|
|
143 background_pixmap*: Pixmap
|
|
144 background_pixel*: culong
|
|
145 border_pixmap*: Pixmap
|
|
146 border_pixel*: culong
|
|
147 bit_gravity*: cint
|
|
148 win_gravity*: cint
|
|
149 backing_store*: cint
|
|
150 backing_planes*: culong
|
|
151 backing_pixel*: culong
|
|
152 save_under*: XBool
|
|
153 event_mask*: clong
|
|
154 do_not_propagate_mask*: clong
|
|
155 override_redirect*: XBool
|
|
156 colormap*: Colormap
|
|
157 cursor*: Cursor
|
|
158
|
|
159 PXWindowAttributes* = ptr XWindowAttributes
|
|
160 XWindowAttributes*{.final.} = object
|
|
161 x*, y*: cint
|
|
162 width*, height*: cint
|
|
163 border_width*: cint
|
|
164 depth*: cint
|
|
165 visual*: PVisual
|
|
166 root*: Window
|
|
167 c_class*: cint
|
|
168 bit_gravity*: cint
|
|
169 win_gravity*: cint
|
|
170 backing_store*: cint
|
|
171 backing_planes*: culong
|
|
172 backing_pixel*: culong
|
|
173 save_under*: XBool
|
|
174 colormap*: Colormap
|
|
175 map_installed*: XBool
|
|
176 map_state*: cint
|
|
177 all_event_masks*: clong
|
|
178 your_event_mask*: clong
|
|
179 do_not_propagate_mask*: clong
|
|
180 override_redirect*: XBool
|
|
181 screen*: PScreen
|
|
182
|
|
183 PXHostAddress* = ptr XHostAddress
|
|
184 XHostAddress*{.final.} = object
|
|
185 family*: cint
|
|
186 len*: cint
|
|
187 address*: cstring
|
|
188
|
|
189 PXServerInterpretedAddress* = ptr XServerInterpretedAddress
|
|
190 XServerInterpretedAddress*{.final.} = object
|
|
191 typelength*: cint
|
|
192 valuelength*: cint
|
|
193 theType*: cstring
|
|
194 value*: cstring
|
|
195
|
|
196 PXImage* = ptr XImage
|
|
197 F*{.final.} = object
|
|
198 create_image*: proc (para1: PXDisplay, para2: PVisual, para3: cuint,
|
|
199 para4: cint, para5: cint, para6: cstring, para7: cuint,
|
|
200 para8: cuint, para9: cint, para10: cint): PXImage{.
|
|
201 cdecl.}
|
|
202 destroy_image*: proc (para1: PXImage): cint{.cdecl.}
|
|
203 get_pixel*: proc (para1: PXImage, para2: cint, para3: cint): culong{.cdecl.}
|
|
204 put_pixel*: proc (para1: PXImage, para2: cint, para3: cint, para4: culong): cint{.
|
|
205 cdecl.}
|
|
206 sub_image*: proc (para1: PXImage, para2: cint, para3: cint, para4: cuint,
|
|
207 para5: cuint): PXImage{.cdecl.}
|
|
208 add_pixel*: proc (para1: PXImage, para2: clong): cint{.cdecl.}
|
|
209
|
|
210 XImage*{.final.} = object
|
|
211 width*, height*: cint
|
|
212 xoffset*: cint
|
|
213 format*: cint
|
|
214 data*: cstring
|
|
215 byte_order*: cint
|
|
216 bitmap_unit*: cint
|
|
217 bitmap_bit_order*: cint
|
|
218 bitmap_pad*: cint
|
|
219 depth*: cint
|
|
220 bytes_per_line*: cint
|
|
221 bits_per_pixel*: cint
|
|
222 red_mask*: culong
|
|
223 green_mask*: culong
|
|
224 blue_mask*: culong
|
|
225 obdata*: XPointer
|
|
226 f*: F
|
|
227
|
|
228 PXWindowChanges* = ptr XWindowChanges
|
|
229 XWindowChanges*{.final.} = object
|
|
230 x*, y*: cint
|
|
231 width*, height*: cint
|
|
232 border_width*: cint
|
|
233 sibling*: Window
|
|
234 stack_mode*: cint
|
|
235
|
|
236 PXColor* = ptr XColor
|
|
237 XColor*{.final.} = object
|
|
238 pixel*: culong
|
|
239 red*, green*, blue*: cushort
|
|
240 flags*: cchar
|
|
241 pad*: cchar
|
|
242
|
|
243 PXSegment* = ptr XSegment
|
|
244 XSegment*{.final.} = object
|
|
245 x1*, y1*, x2*, y2*: cshort
|
|
246
|
|
247 PXPoint* = ptr XPoint
|
|
248 XPoint*{.final.} = object
|
|
249 x*, y*: cshort
|
|
250
|
|
251 PXRectangle* = ptr XRectangle
|
|
252 XRectangle*{.final.} = object
|
|
253 x*, y*: cshort
|
|
254 width*, height*: cushort
|
|
255
|
|
256 PXArc* = ptr XArc
|
|
257 XArc*{.final.} = object
|
|
258 x*, y*: cshort
|
|
259 width*, height*: cushort
|
|
260 angle1*, angle2*: cshort
|
|
261
|
|
262 PXKeyboardControl* = ptr XKeyboardControl
|
|
263 XKeyboardControl*{.final.} = object
|
|
264 key_click_percent*: cint
|
|
265 bell_percent*: cint
|
|
266 bell_pitch*: cint
|
|
267 bell_duration*: cint
|
|
268 led*: cint
|
|
269 led_mode*: cint
|
|
270 key*: cint
|
|
271 auto_repeat_mode*: cint
|
|
272
|
|
273 PXKeyboardState* = ptr XKeyboardState
|
|
274 XKeyboardState*{.final.} = object
|
|
275 key_click_percent*: cint
|
|
276 bell_percent*: cint
|
|
277 bell_pitch*, bell_duration*: cuint
|
|
278 led_mask*: culong
|
|
279 global_auto_repeat*: cint
|
|
280 auto_repeats*: array[0..31, cchar]
|
|
281
|
|
282 PXTimeCoord* = ptr XTimeCoord
|
|
283 XTimeCoord*{.final.} = object
|
|
284 time*: Time
|
|
285 x*, y*: cshort
|
|
286
|
|
287 PXModifierKeymap* = ptr XModifierKeymap
|
|
288 XModifierKeymap*{.final.} = object
|
|
289 max_keypermod*: cint
|
|
290 modifiermap*: PKeyCode
|
|
291
|
|
292 PDisplay* = ptr Display
|
|
293 Display* = XDisplay
|
|
294
|
|
295 PXPrivate* = ptr Private
|
|
296 Private*{.final.} = object
|
|
297
|
|
298 PXrmHashBucketRec* = ptr XrmHashBucketRec
|
|
299 XrmHashBucketRec*{.final.} = object
|
|
300
|
|
301 PXPrivDisplay* = ptr XPrivDisplay
|
|
302 XPrivDisplay*{.final.} = object
|
|
303 ext_data*: PXExtData
|
|
304 private1*: PXPrivate
|
|
305 fd*: cint
|
|
306 private2*: cint
|
|
307 proto_major_version*: cint
|
|
308 proto_minor_version*: cint
|
|
309 vendor*: cstring
|
|
310 private3*: XID
|
|
311 private4*: XID
|
|
312 private5*: XID
|
|
313 private6*: cint
|
|
314 resource_alloc*: proc (para1: PXDisplay): XID{.cdecl.}
|
|
315 byte_order*: cint
|
|
316 bitmap_unit*: cint
|
|
317 bitmap_pad*: cint
|
|
318 bitmap_bit_order*: cint
|
|
319 nformats*: cint
|
|
320 pixmap_format*: PScreenFormat
|
|
321 private8*: cint
|
|
322 release*: cint
|
|
323 private9*, private10*: PXPrivate
|
|
324 qlen*: cint
|
|
325 last_request_read*: culong
|
|
326 request*: culong
|
|
327 private11*: XPointer
|
|
328 private12*: XPointer
|
|
329 private13*: XPointer
|
|
330 private14*: XPointer
|
|
331 max_request_size*: cunsigned
|
|
332 db*: PXrmHashBucketRec
|
|
333 private15*: proc (para1: PXDisplay): cint{.cdecl.}
|
|
334 display_name*: cstring
|
|
335 default_screen*: cint
|
|
336 nscreens*: cint
|
|
337 screens*: PScreen
|
|
338 motion_buffer*: culong
|
|
339 private16*: culong
|
|
340 min_keycode*: cint
|
|
341 max_keycode*: cint
|
|
342 private17*: XPointer
|
|
343 private18*: XPointer
|
|
344 private19*: cint
|
|
345 xdefaults*: cstring
|
|
346
|
|
347 PXKeyEvent* = ptr XKeyEvent
|
|
348 XKeyEvent*{.final.} = object
|
|
349 theType*: cint
|
|
350 serial*: culong
|
|
351 send_event*: XBool
|
|
352 display*: PDisplay
|
|
353 window*: Window
|
|
354 root*: Window
|
|
355 subwindow*: Window
|
|
356 time*: Time
|
|
357 x*, y*: cint
|
|
358 x_root*, y_root*: cint
|
|
359 state*: cuint
|
|
360 keycode*: cuint
|
|
361 same_screen*: XBool
|
|
362
|
|
363 PXKeyPressedEvent* = ptr XKeyPressedEvent
|
|
364 XKeyPressedEvent* = XKeyEvent
|
|
365
|
|
366 PXKeyReleasedEvent* = ptr XKeyReleasedEvent
|
|
367 XKeyReleasedEvent* = XKeyEvent
|
|
368
|
|
369 PXButtonEvent* = ptr XButtonEvent
|
|
370 XButtonEvent*{.final.} = object
|
|
371 theType*: cint
|
|
372 serial*: culong
|
|
373 send_event*: XBool
|
|
374 display*: PDisplay
|
|
375 window*: Window
|
|
376 root*: Window
|
|
377 subwindow*: Window
|
|
378 time*: Time
|
|
379 x*, y*: cint
|
|
380 x_root*, y_root*: cint
|
|
381 state*: cuint
|
|
382 button*: cuint
|
|
383 same_screen*: XBool
|
|
384
|
|
385 PXButtonPressedEvent* = ptr XButtonPressedEvent
|
|
386 XButtonPressedEvent* = XButtonEvent
|
|
387
|
|
388 PXButtonReleasedEvent* = ptr XButtonReleasedEvent
|
|
389 XButtonReleasedEvent* = XButtonEvent
|
|
390
|
|
391 PXMotionEvent* = ptr XMotionEvent
|
|
392 XMotionEvent*{.final.} = object
|
|
393 theType*: cint
|
|
394 serial*: culong
|
|
395 send_event*: XBool
|
|
396 display*: PDisplay
|
|
397 window*: Window
|
|
398 root*: Window
|
|
399 subwindow*: Window
|
|
400 time*: Time
|
|
401 x*, y*: cint
|
|
402 x_root*, y_root*: cint
|
|
403 state*: cuint
|
|
404 is_hint*: cchar
|
|
405 same_screen*: XBool
|
|
406
|
|
407 PXPointerMovedEvent* = ptr XPointerMovedEvent
|
|
408 XPointerMovedEvent* = XMotionEvent
|
|
409
|
|
410 PXCrossingEvent* = ptr XCrossingEvent
|
|
411 XCrossingEvent*{.final.} = object
|
|
412 theType*: cint
|
|
413 serial*: culong
|
|
414 send_event*: XBool
|
|
415 display*: PDisplay
|
|
416 window*: Window
|
|
417 root*: Window
|
|
418 subwindow*: Window
|
|
419 time*: Time
|
|
420 x*, y*: cint
|
|
421 x_root*, y_root*: cint
|
|
422 mode*: cint
|
|
423 detail*: cint
|
|
424 same_screen*: XBool
|
|
425 focus*: XBool
|
|
426 state*: cuint
|
|
427
|
|
428 PXEnterWindowEvent* = ptr XEnterWindowEvent
|
|
429 XEnterWindowEvent* = XCrossingEvent
|
|
430
|
|
431 PXLeaveWindowEvent* = ptr XLeaveWindowEvent
|
|
432 XLeaveWindowEvent* = XCrossingEvent
|
|
433
|
|
434 PXFocusChangeEvent* = ptr XFocusChangeEvent
|
|
435 XFocusChangeEvent*{.final.} = object
|
|
436 theType*: cint
|
|
437 serial*: culong
|
|
438 send_event*: XBool
|
|
439 display*: PDisplay
|
|
440 window*: Window
|
|
441 mode*: cint
|
|
442 detail*: cint
|
|
443
|
|
444 PXFocusInEvent* = ptr XFocusInEvent
|
|
445 XFocusInEvent* = XFocusChangeEvent
|
|
446
|
|
447 PXFocusOutEvent* = ptr XFocusOutEvent
|
|
448 XFocusOutEvent* = XFocusChangeEvent
|
|
449
|
|
450 PXKeymapEvent* = ptr XKeymapEvent
|
|
451 XKeymapEvent*{.final.} = object
|
|
452 theType*: cint
|
|
453 serial*: culong
|
|
454 send_event*: XBool
|
|
455 display*: PDisplay
|
|
456 window*: Window
|
|
457 key_vector*: array[0..31, cchar]
|
|
458
|
|
459 PXExposeEvent* = ptr XExposeEvent
|
|
460 XExposeEvent*{.final.} = object
|
|
461 theType*: cint
|
|
462 serial*: culong
|
|
463 send_event*: XBool
|
|
464 display*: PDisplay
|
|
465 window*: Window
|
|
466 x*, y*: cint
|
|
467 width*, height*: cint
|
|
468 count*: cint
|
|
469
|
|
470 PXGraphicsExposeEvent* = ptr XGraphicsExposeEvent
|
|
471 XGraphicsExposeEvent*{.final.} = object
|
|
472 theType*: cint
|
|
473 serial*: culong
|
|
474 send_event*: XBool
|
|
475 display*: PDisplay
|
|
476 drawable*: Drawable
|
|
477 x*, y*: cint
|
|
478 width*, height*: cint
|
|
479 count*: cint
|
|
480 major_code*: cint
|
|
481 minor_code*: cint
|
|
482
|
|
483 PXNoExposeEvent* = ptr XNoExposeEvent
|
|
484 XNoExposeEvent*{.final.} = object
|
|
485 theType*: cint
|
|
486 serial*: culong
|
|
487 send_event*: XBool
|
|
488 display*: PDisplay
|
|
489 drawable*: Drawable
|
|
490 major_code*: cint
|
|
491 minor_code*: cint
|
|
492
|
|
493 PXVisibilityEvent* = ptr XVisibilityEvent
|
|
494 XVisibilityEvent*{.final.} = object
|
|
495 theType*: cint
|
|
496 serial*: culong
|
|
497 send_event*: XBool
|
|
498 display*: PDisplay
|
|
499 window*: Window
|
|
500 state*: cint
|
|
501
|
|
502 PXCreateWindowEvent* = ptr XCreateWindowEvent
|
|
503 XCreateWindowEvent*{.final.} = object
|
|
504 theType*: cint
|
|
505 serial*: culong
|
|
506 send_event*: XBool
|
|
507 display*: PDisplay
|
|
508 parent*: Window
|
|
509 window*: Window
|
|
510 x*, y*: cint
|
|
511 width*, height*: cint
|
|
512 border_width*: cint
|
|
513 override_redirect*: XBool
|
|
514
|
|
515 PXDestroyWindowEvent* = ptr XDestroyWindowEvent
|
|
516 XDestroyWindowEvent*{.final.} = object
|
|
517 theType*: cint
|
|
518 serial*: culong
|
|
519 send_event*: XBool
|
|
520 display*: PDisplay
|
|
521 event*: Window
|
|
522 window*: Window
|
|
523
|
|
524 PXUnmapEvent* = ptr XUnmapEvent
|
|
525 XUnmapEvent*{.final.} = object
|
|
526 theType*: cint
|
|
527 serial*: culong
|
|
528 send_event*: XBool
|
|
529 display*: PDisplay
|
|
530 event*: Window
|
|
531 window*: Window
|
|
532 from_configure*: XBool
|
|
533
|
|
534 PXMapEvent* = ptr XMapEvent
|
|
535 XMapEvent*{.final.} = object
|
|
536 theType*: cint
|
|
537 serial*: culong
|
|
538 send_event*: XBool
|
|
539 display*: PDisplay
|
|
540 event*: Window
|
|
541 window*: Window
|
|
542 override_redirect*: XBool
|
|
543
|
|
544 PXMapRequestEvent* = ptr XMapRequestEvent
|
|
545 XMapRequestEvent*{.final.} = object
|
|
546 theType*: cint
|
|
547 serial*: culong
|
|
548 send_event*: XBool
|
|
549 display*: PDisplay
|
|
550 parent*: Window
|
|
551 window*: Window
|
|
552
|
|
553 PXReparentEvent* = ptr XReparentEvent
|
|
554 XReparentEvent*{.final.} = object
|
|
555 theType*: cint
|
|
556 serial*: culong
|
|
557 send_event*: XBool
|
|
558 display*: PDisplay
|
|
559 event*: Window
|
|
560 window*: Window
|
|
561 parent*: Window
|
|
562 x*, y*: cint
|
|
563 override_redirect*: XBool
|
|
564
|
|
565 PXConfigureEvent* = ptr XConfigureEvent
|
|
566 XConfigureEvent*{.final.} = object
|
|
567 theType*: cint
|
|
568 serial*: culong
|
|
569 send_event*: XBool
|
|
570 display*: PDisplay
|
|
571 event*: Window
|
|
572 window*: Window
|
|
573 x*, y*: cint
|
|
574 width*, height*: cint
|
|
575 border_width*: cint
|
|
576 above*: Window
|
|
577 override_redirect*: XBool
|
|
578
|
|
579 PXGravityEvent* = ptr XGravityEvent
|
|
580 XGravityEvent*{.final.} = object
|
|
581 theType*: cint
|
|
582 serial*: culong
|
|
583 send_event*: XBool
|
|
584 display*: PDisplay
|
|
585 event*: Window
|
|
586 window*: Window
|
|
587 x*, y*: cint
|
|
588
|
|
589 PXResizeRequestEvent* = ptr XResizeRequestEvent
|
|
590 XResizeRequestEvent*{.final.} = object
|
|
591 theType*: cint
|
|
592 serial*: culong
|
|
593 send_event*: XBool
|
|
594 display*: PDisplay
|
|
595 window*: Window
|
|
596 width*, height*: cint
|
|
597
|
|
598 PXConfigureRequestEvent* = ptr XConfigureRequestEvent
|
|
599 XConfigureRequestEvent*{.final.} = object
|
|
600 theType*: cint
|
|
601 serial*: culong
|
|
602 send_event*: XBool
|
|
603 display*: PDisplay
|
|
604 parent*: Window
|
|
605 window*: Window
|
|
606 x*, y*: cint
|
|
607 width*, height*: cint
|
|
608 border_width*: cint
|
|
609 above*: Window
|
|
610 detail*: cint
|
|
611 value_mask*: culong
|
|
612
|
|
613 PXCirculateEvent* = ptr XCirculateEvent
|
|
614 XCirculateEvent*{.final.} = object
|
|
615 theType*: cint
|
|
616 serial*: culong
|
|
617 send_event*: XBool
|
|
618 display*: PDisplay
|
|
619 event*: Window
|
|
620 window*: Window
|
|
621 place*: cint
|
|
622
|
|
623 PXCirculateRequestEvent* = ptr XCirculateRequestEvent
|
|
624 XCirculateRequestEvent*{.final.} = object
|
|
625 theType*: cint
|
|
626 serial*: culong
|
|
627 send_event*: XBool
|
|
628 display*: PDisplay
|
|
629 parent*: Window
|
|
630 window*: Window
|
|
631 place*: cint
|
|
632
|
|
633 PXPropertyEvent* = ptr XPropertyEvent
|
|
634 XPropertyEvent*{.final.} = object
|
|
635 theType*: cint
|
|
636 serial*: culong
|
|
637 send_event*: XBool
|
|
638 display*: PDisplay
|
|
639 window*: Window
|
|
640 atom*: Atom
|
|
641 time*: Time
|
|
642 state*: cint
|
|
643
|
|
644 PXSelectionClearEvent* = ptr XSelectionClearEvent
|
|
645 XSelectionClearEvent*{.final.} = object
|
|
646 theType*: cint
|
|
647 serial*: culong
|
|
648 send_event*: XBool
|
|
649 display*: PDisplay
|
|
650 window*: Window
|
|
651 selection*: Atom
|
|
652 time*: Time
|
|
653
|
|
654 PXSelectionRequestEvent* = ptr XSelectionRequestEvent
|
|
655 XSelectionRequestEvent*{.final.} = object
|
|
656 theType*: cint
|
|
657 serial*: culong
|
|
658 send_event*: XBool
|
|
659 display*: PDisplay
|
|
660 owner*: Window
|
|
661 requestor*: Window
|
|
662 selection*: Atom
|
|
663 target*: Atom
|
|
664 property*: Atom
|
|
665 time*: Time
|
|
666
|
|
667 PXSelectionEvent* = ptr XSelectionEvent
|
|
668 XSelectionEvent*{.final.} = object
|
|
669 theType*: cint
|
|
670 serial*: culong
|
|
671 send_event*: XBool
|
|
672 display*: PDisplay
|
|
673 requestor*: Window
|
|
674 selection*: Atom
|
|
675 target*: Atom
|
|
676 property*: Atom
|
|
677 time*: Time
|
|
678
|
|
679 PXColormapEvent* = ptr XColormapEvent
|
|
680 XColormapEvent*{.final.} = object
|
|
681 theType*: cint
|
|
682 serial*: culong
|
|
683 send_event*: XBool
|
|
684 display*: PDisplay
|
|
685 window*: Window
|
|
686 colormap*: Colormap
|
|
687 c_new*: XBool
|
|
688 state*: cint
|
|
689
|
|
690 PXClientMessageEvent* = ptr XClientMessageEvent
|
|
691
|
|
692 XClientMessageData* {.union.} = object
|
|
693 b*: array[20, cchar]
|
|
694 s*: array[10, cshort]
|
|
695 l*: array[5, clong]
|
|
696
|
|
697 XClientMessageEvent*{.final.} = object
|
|
698 theType*: cint
|
|
699 serial*: culong
|
|
700 send_event*: XBool
|
|
701 display*: PDisplay
|
|
702 window*: Window
|
|
703 message_type*: Atom
|
|
704 format*: cint
|
|
705 data*: XClientMessageData
|
|
706
|
|
707 PXMappingEvent* = ptr XMappingEvent
|
|
708 XMappingEvent*{.final.} = object
|
|
709 theType*: cint
|
|
710 serial*: culong
|
|
711 send_event*: XBool
|
|
712 display*: PDisplay
|
|
713 window*: Window
|
|
714 request*: cint
|
|
715 first_keycode*: cint
|
|
716 count*: cint
|
|
717
|
|
718 PXErrorEvent* = ptr XErrorEvent
|
|
719 XErrorEvent*{.final.} = object
|
|
720 theType*: cint
|
|
721 display*: PDisplay
|
|
722 resourceid*: XID
|
|
723 serial*: culong
|
|
724 error_code*: char
|
|
725 request_code*: char
|
|
726 minor_code*: char
|
|
727
|
|
728 PXAnyEvent* = ptr XAnyEvent
|
|
729 XAnyEvent*{.final.} = object
|
|
730 theType*: cint
|
|
731 serial*: culong
|
|
732 send_event*: XBool
|
|
733 display*: PDisplay
|
|
734 window*: Window
|
|
735
|
|
736 PXGenericEvent* = ptr XGenericEvent
|
|
737 XGenericEvent*{.final.} = object
|
|
738 theType*: cint ## of event. Always GenericEvent
|
|
739 serial*: culong ## # of last request processed
|
|
740 send_event*: XBool ## true if from SendEvent request
|
|
741 display*: PDisplay ## Display the event was read from
|
|
742 extension*: cint ## major opcode of extension that caused the event
|
|
743 evtype*: cint ## actual event type.
|
|
744
|
|
745 PXGenericEventCookie* = ptr XGenericEventCookie
|
|
746 XGenericEventCookie*{.final.} = object
|
|
747 theType*: cint ## of event. Always GenericEvent
|
|
748 serial*: culong ## # of last request processed
|
|
749 send_event*: XBool ## true if from SendEvent request
|
|
750 display*: PDisplay ## Display the event was read from
|
|
751 extension*: cint ## major opcode of extension that caused the event
|
|
752 evtype*: cint ## actual event type.
|
|
753 cookie*: cuint
|
|
754 data*: pointer
|
|
755
|
|
756 PXEvent* = ptr XEvent
|
|
757 XEvent*{.final, union.} = object
|
|
758 theType*: cint
|
|
759 xany*: XAnyEvent
|
|
760 xkey*: XKeyEvent
|
|
761 xbutton*: XButtonEvent
|
|
762 xmotion*: XMotionEvent
|
|
763 xcrossing*: XCrossingEvent
|
|
764 xfocus*: XFocusChangeEvent
|
|
765 xexpose*: XExposeEvent
|
|
766 xgraphicsexpose*: XGraphicsExposeEvent
|
|
767 xnoexpose*: XNoExposeEvent
|
|
768 xvisibility*: XVisibilityEvent
|
|
769 xcreatewindow*: XCreateWindowEvent
|
|
770 xdestroywindow*: XDestroyWindowEvent
|
|
771 xunmap*: XUnmapEvent
|
|
772 xmap*: XMapEvent
|
|
773 xmaprequest*: XMapRequestEvent
|
|
774 xreparent*: XReparentEvent
|
|
775 xconfigure*: XConfigureEvent
|
|
776 xgravity*: XGravityEvent
|
|
777 xresizerequest*: XResizeRequestEvent
|
|
778 xconfigurerequest*: XConfigureRequestEvent
|
|
779 xcirculate*: XCirculateEvent
|
|
780 xcirculaterequest*: XCirculateRequestEvent
|
|
781 xproperty*: XPropertyEvent
|
|
782 xselectionclear*: XSelectionClearEvent
|
|
783 xselectionrequest*: XSelectionRequestEvent
|
|
784 xselection*: XSelectionEvent
|
|
785 xcolormap*: XColormapEvent
|
|
786 xclient*: XClientMessageEvent
|
|
787 xmapping*: XMappingEvent
|
|
788 xerror*: XErrorEvent
|
|
789 xkeymap*: XKeymapEvent
|
|
790 xgeneric*: XGenericEvent
|
|
791 xcookie*: XGenericEventCookie
|
|
792 pad: array[0..23, clong]
|
|
793
|
|
794
|
|
795 type
|
|
796 PXCharStruct* = ptr XCharStruct
|
|
797 XCharStruct*{.final.} = object
|
|
798 lbearing*: cshort
|
|
799 rbearing*: cshort
|
|
800 width*: cshort
|
|
801 ascent*: cshort
|
|
802 descent*: cshort
|
|
803 attributes*: cushort
|
|
804
|
|
805 PXFontProp* = ptr XFontProp
|
|
806 XFontProp*{.final.} = object
|
|
807 name*: Atom
|
|
808 card32*: culong
|
|
809
|
|
810 PPPXFontStruct* = ptr PPXFontStruct
|
|
811 PPXFontStruct* = ptr PXFontStruct
|
|
812 PXFontStruct* = ptr XFontStruct
|
|
813 XFontStruct*{.final.} = object
|
|
814 ext_data*: PXExtData
|
|
815 fid*: Font
|
|
816 direction*: cunsigned
|
|
817 min_char_or_byte2*: cunsigned
|
|
818 max_char_or_byte2*: cunsigned
|
|
819 min_byte1*: cunsigned
|
|
820 max_byte1*: cunsigned
|
|
821 all_chars_exist*: XBool
|
|
822 default_char*: cunsigned
|
|
823 n_properties*: cint
|
|
824 properties*: PXFontProp
|
|
825 min_bounds*: XCharStruct
|
|
826 max_bounds*: XCharStruct
|
|
827 per_char*: PXCharStruct
|
|
828 ascent*: cint
|
|
829 descent*: cint
|
|
830
|
|
831 PXTextItem* = ptr XTextItem
|
|
832 XTextItem*{.final.} = object
|
|
833 chars*: cstring
|
|
834 nchars*: cint
|
|
835 delta*: cint
|
|
836 font*: Font
|
|
837
|
|
838 PXChar2b* = ptr XChar2b
|
|
839 XChar2b*{.final.} = object
|
|
840 byte1*: char
|
|
841 byte2*: char
|
|
842
|
|
843 PXTextItem16* = ptr XTextItem16
|
|
844 XTextItem16*{.final.} = object
|
|
845 chars*: PXChar2b
|
|
846 nchars*: cint
|
|
847 delta*: cint
|
|
848 font*: Font
|
|
849
|
|
850 PXEDataObject* = ptr XEDataObject
|
|
851 XEDataObject*{.final.} = object
|
|
852 display*: PDisplay # case longint of
|
|
853 # 0 : ( display : PDisplay );
|
|
854 # 1 : ( gc : GC );
|
|
855 # 2 : ( visual : PVisual );
|
|
856 # 3 : ( screen : PScreen );
|
|
857 # 4 : ( pixmap_format : PScreenFormat );
|
|
858 # 5 : ( font : PXFontStruct );
|
|
859
|
|
860 PXFontSetExtents* = ptr XFontSetExtents
|
|
861 XFontSetExtents*{.final.} = object
|
|
862 max_ink_extent*: XRectangle
|
|
863 max_logical_extent*: XRectangle
|
|
864
|
|
865 PXOM* = ptr XOM
|
|
866 XOM*{.final.} = object
|
|
867
|
|
868 PXOC* = ptr XOC
|
|
869 XOC*{.final.} = object
|
|
870
|
|
871 PXFontSet* = ptr XFontSet
|
|
872 XFontSet* = PXOC
|
|
873
|
|
874 PXmbTextItem* = ptr XmbTextItem
|
|
875 XmbTextItem*{.final.} = object
|
|
876 chars*: cstring
|
|
877 nchars*: cint
|
|
878 delta*: cint
|
|
879 font_set*: XFontSet
|
|
880
|
|
881 PXwcTextItem* = ptr XwcTextItem
|
|
882 XwcTextItem*{.final.} = object
|
|
883 chars*: PWideChar #wchar_t*
|
|
884 nchars*: cint
|
|
885 delta*: cint
|
|
886 font_set*: XFontSet
|
|
887
|
|
888 const
|
|
889 XNRequiredCharSet* = "requiredCharSet"
|
|
890 XNQueryOrientation* = "queryOrientation"
|
|
891 XNBaseFontName* = "baseFontName"
|
|
892 XNOMAutomatic* = "omAutomatic"
|
|
893 XNMissingCharSet* = "missingCharSet"
|
|
894 XNDefaultString* = "defaultString"
|
|
895 XNOrientation* = "orientation"
|
|
896 XNDirectionalDependentDrawing* = "directionalDependentDrawing"
|
|
897 XNContextualDrawing* = "contextualDrawing"
|
|
898 XNFontInfo* = "fontInfo"
|
|
899
|
|
900 type
|
|
901 PXOMCharSetList* = ptr XOMCharSetList
|
|
902 XOMCharSetList*{.final.} = object
|
|
903 charset_count*: cint
|
|
904 charset_list*: PPChar
|
|
905
|
|
906 PXOrientation* = ptr XOrientation
|
|
907 XOrientation* = enum
|
|
908 XOMOrientation_LTR_TTB, XOMOrientation_RTL_TTB, XOMOrientation_TTB_LTR,
|
|
909 XOMOrientation_TTB_RTL, XOMOrientation_Context
|
|
910
|
|
911 PXOMOrientation* = ptr XOMOrientation
|
|
912 XOMOrientation*{.final.} = object
|
|
913 num_orientation*: cint
|
|
914 orientation*: PXOrientation
|
|
915
|
|
916 PXOMFontInfo* = ptr XOMFontInfo
|
|
917 XOMFontInfo*{.final.} = object
|
|
918 num_font*: cint
|
|
919 font_struct_list*: ptr PXFontStruct
|
|
920 font_name_list*: PPChar
|
|
921
|
|
922 XIM*{.final.} = ptr object
|
|
923
|
|
924 XIC*{.final.} = ptr object
|
|
925
|
|
926 XIMProc* = proc (para1: XIM, para2: XPointer, para3: XPointer){.cdecl.}
|
|
927
|
|
928 XICProc* = proc (para1: XIC, para2: XPointer, para3: XPointer): XBool{.
|
|
929 cdecl.}
|
|
930
|
|
931 XIDProc* = proc (para1: PDisplay, para2: XPointer, para3: XPointer){.cdecl.}
|
|
932
|
|
933 PXIMStyle* = ptr XIMStyle
|
|
934 XIMStyle* = culong
|
|
935
|
|
936 PXIMStyles* = ptr XIMStyles
|
|
937 XIMStyles*{.final.} = object
|
|
938 count_styles*: cushort
|
|
939 supported_styles*: PXIMStyle
|
|
940
|
|
941 const
|
|
942 XIMPreeditArea* = 0x00000001
|
|
943 XIMPreeditCallbacks* = 0x00000002
|
|
944 XIMPreeditPosition* = 0x00000004
|
|
945 XIMPreeditNothing* = 0x00000008
|
|
946 XIMPreeditNone* = 0x00000010
|
|
947 XIMStatusArea* = 0x00000100
|
|
948 XIMStatusCallbacks* = 0x00000200
|
|
949 XIMStatusNothing* = 0x00000400
|
|
950 XIMStatusNone* = 0x00000800
|
|
951 XNVaNestedList* = "XNVaNestedList"
|
|
952 XNQueryInputStyle* = "queryInputStyle"
|
|
953 XNClientWindow* = "clientWindow"
|
|
954 XNInputStyle* = "inputStyle"
|
|
955 XNFocusWindow* = "focusWindow"
|
|
956 XNResourceName* = "resourceName"
|
|
957 XNResourceClass* = "resourceClass"
|
|
958 XNGeometryCallback* = "geometryCallback"
|
|
959 XNDestroyCallback* = "destroyCallback"
|
|
960 XNFilterEvents* = "filterEvents"
|
|
961 XNPreeditStartCallback* = "preeditStartCallback"
|
|
962 XNPreeditDoneCallback* = "preeditDoneCallback"
|
|
963 XNPreeditDrawCallback* = "preeditDrawCallback"
|
|
964 XNPreeditCaretCallback* = "preeditCaretCallback"
|
|
965 XNPreeditStateNotifyCallback* = "preeditStateNotifyCallback"
|
|
966 XNPreeditAttributes* = "preeditAttributes"
|
|
967 XNStatusStartCallback* = "statusStartCallback"
|
|
968 XNStatusDoneCallback* = "statusDoneCallback"
|
|
969 XNStatusDrawCallback* = "statusDrawCallback"
|
|
970 XNStatusAttributes* = "statusAttributes"
|
|
971 XNArea* = "area"
|
|
972 XNAreaNeeded* = "areaNeeded"
|
|
973 XNSpotLocation* = "spotLocation"
|
|
974 XNColormap* = "colorMap"
|
|
975 XNStdColormap* = "stdColorMap"
|
|
976 XNForeground* = "foreground"
|
|
977 XNBackground* = "background"
|
|
978 XNBackgroundPixmap* = "backgroundPixmap"
|
|
979 XNFontSet* = "fontSet"
|
|
980 XNLineSpace* = "lineSpace"
|
|
981 XNCursor* = "cursor"
|
|
982 XNQueryIMValuesList* = "queryIMValuesList"
|
|
983 XNQueryICValuesList* = "queryICValuesList"
|
|
984 XNVisiblePosition* = "visiblePosition"
|
|
985 XNR6PreeditCallback* = "r6PreeditCallback"
|
|
986 XNStringConversionCallback* = "stringConversionCallback"
|
|
987 XNStringConversion* = "stringConversion"
|
|
988 XNResetState* = "resetState"
|
|
989 XNHotKey* = "hotKey"
|
|
990 XNHotKeyState* = "hotKeyState"
|
|
991 XNPreeditState* = "preeditState"
|
|
992 XNSeparatorofNestedList* = "separatorofNestedList"
|
|
993 XBufferOverflow* = - (1)
|
|
994 XLookupNone* = 1
|
|
995 XLookupChars* = 2
|
|
996 XLookupKeySymVal* = 3
|
|
997 XLookupBoth* = 4
|
|
998
|
|
999 type
|
|
1000 PXVaNestedList* = ptr XVaNestedList
|
|
1001 XVaNestedList* = pointer
|
|
1002
|
|
1003 PXIMCallback* = ptr XIMCallback
|
|
1004 XIMCallback*{.final.} = object
|
|
1005 client_data*: XPointer
|
|
1006 callback*: XIMProc
|
|
1007
|
|
1008 PXICCallback* = ptr XICCallback
|
|
1009 XICCallback*{.final.} = object
|
|
1010 client_data*: XPointer
|
|
1011 callback*: XICProc
|
|
1012
|
|
1013 PXIMFeedback* = ptr XIMFeedback
|
|
1014 XIMFeedback* = culong
|
|
1015
|
|
1016 const
|
|
1017 XIMReverse* = 1
|
|
1018 XIMUnderline* = 1 shl 1
|
|
1019 XIMHighlight* = 1 shl 2
|
|
1020 XIMPrimary* = 1 shl 5
|
|
1021 XIMSecondary* = 1 shl 6
|
|
1022 XIMTertiary* = 1 shl 7
|
|
1023 XIMVisibleToForward* = 1 shl 8
|
|
1024 XIMVisibleToBackword* = 1 shl 9
|
|
1025 XIMVisibleToCenter* = 1 shl 10
|
|
1026
|
|
1027 type
|
|
1028 PXIMText* = ptr XIMText
|
|
1029 XIMText*{.final.} = object
|
|
1030 len*: cushort
|
|
1031 feedback*: PXIMFeedback
|
|
1032 encoding_is_wchar*: XBool
|
|
1033 multi_byte*: cstring
|
|
1034
|
|
1035 PXIMPreeditState* = ptr XIMPreeditState
|
|
1036 XIMPreeditState* = culong
|
|
1037
|
|
1038 const
|
|
1039 XIMPreeditUnKnown* = 0
|
|
1040 XIMPreeditEnable* = 1
|
|
1041 XIMPreeditDisable* = 1 shl 1
|
|
1042
|
|
1043 type
|
|
1044 PXIMPreeditStateNotifyCallbackStruct* = ptr XIMPreeditStateNotifyCallbackStruct
|
|
1045 XIMPreeditStateNotifyCallbackStruct*{.final.} = object
|
|
1046 state*: XIMPreeditState
|
|
1047
|
|
1048 PXIMResetState* = ptr XIMResetState
|
|
1049 XIMResetState* = culong
|
|
1050
|
|
1051 const
|
|
1052 XIMInitialState* = 1
|
|
1053 XIMPreserveState* = 1 shl 1
|
|
1054
|
|
1055 type
|
|
1056 PXIMStringConversionFeedback* = ptr XIMStringConversionFeedback
|
|
1057 XIMStringConversionFeedback* = culong
|
|
1058
|
|
1059 const
|
|
1060 XIMStringConversionLeftEdge* = 0x00000001
|
|
1061 XIMStringConversionRightEdge* = 0x00000002
|
|
1062 XIMStringConversionTopEdge* = 0x00000004
|
|
1063 XIMStringConversionBottomEdge* = 0x00000008
|
|
1064 XIMStringConversionConcealed* = 0x00000010
|
|
1065 XIMStringConversionWrapped* = 0x00000020
|
|
1066
|
|
1067 type
|
|
1068 PXIMStringConversionText* = ptr XIMStringConversionText
|
|
1069 XIMStringConversionText*{.final.} = object
|
|
1070 len*: cushort
|
|
1071 feedback*: PXIMStringConversionFeedback
|
|
1072 encoding_is_wchar*: XBool
|
|
1073 mbs*: cstring
|
|
1074
|
|
1075 PXIMStringConversionPosition* = ptr XIMStringConversionPosition
|
|
1076 XIMStringConversionPosition* = cushort
|
|
1077
|
|
1078 PXIMStringConversionType* = ptr XIMStringConversionType
|
|
1079 XIMStringConversionType* = cushort
|
|
1080
|
|
1081 const
|
|
1082 XIMStringConversionBuffer* = 0x00000001
|
|
1083 XIMStringConversionLine* = 0x00000002
|
|
1084 XIMStringConversionWord* = 0x00000003
|
|
1085 XIMStringConversionChar* = 0x00000004
|
|
1086
|
|
1087 type
|
|
1088 PXIMStringConversionOperation* = ptr XIMStringConversionOperation
|
|
1089 XIMStringConversionOperation* = cushort
|
|
1090
|
|
1091 const
|
|
1092 XIMStringConversionSubstitution* = 0x00000001
|
|
1093 XIMStringConversionRetrieval* = 0x00000002
|
|
1094
|
|
1095 type
|
|
1096 PXIMCaretDirection* = ptr XIMCaretDirection
|
|
1097 XIMCaretDirection* = enum
|
|
1098 XIMForwardChar, XIMBackwardChar, XIMForwardWord, XIMBackwardWord,
|
|
1099 XIMCaretUp, XIMCaretDown, XIMNextLine, XIMPreviousLine, XIMLineStart,
|
|
1100 XIMLineEnd, XIMAbsolutePosition, XIMDontChange
|
|
1101
|
|
1102 PXIMStringConversionCallbackStruct* = ptr XIMStringConversionCallbackStruct
|
|
1103 XIMStringConversionCallbackStruct*{.final.} = object
|
|
1104 position*: XIMStringConversionPosition
|
|
1105 direction*: XIMCaretDirection
|
|
1106 operation*: XIMStringConversionOperation
|
|
1107 factor*: cushort
|
|
1108 text*: PXIMStringConversionText
|
|
1109
|
|
1110 PXIMPreeditDrawCallbackStruct* = ptr XIMPreeditDrawCallbackStruct
|
|
1111 XIMPreeditDrawCallbackStruct*{.final.} = object
|
|
1112 caret*: cint
|
|
1113 chg_first*: cint
|
|
1114 chg_length*: cint
|
|
1115 text*: PXIMText
|
|
1116
|
|
1117 PXIMCaretStyle* = ptr XIMCaretStyle
|
|
1118 XIMCaretStyle* = enum
|
|
1119 XIMIsInvisible, XIMIsPrimary, XIMIsSecondary
|
|
1120
|
|
1121 PXIMPreeditCaretCallbackStruct* = ptr XIMPreeditCaretCallbackStruct
|
|
1122 XIMPreeditCaretCallbackStruct*{.final.} = object
|
|
1123 position*: cint
|
|
1124 direction*: XIMCaretDirection
|
|
1125 style*: XIMCaretStyle
|
|
1126
|
|
1127 PXIMStatusDataType* = ptr XIMStatusDataType
|
|
1128 XIMStatusDataType* = enum
|
|
1129 XIMTextType, XIMBitmapType
|
|
1130
|
|
1131 PXIMStatusDrawCallbackStruct* = ptr XIMStatusDrawCallbackStruct
|
|
1132 XIMStatusDrawCallbackStruct*{.final.} = object
|
|
1133 theType*: XIMStatusDataType
|
|
1134 bitmap*: Pixmap
|
|
1135
|
|
1136 PXIMHotKeyTrigger* = ptr XIMHotKeyTrigger
|
|
1137 XIMHotKeyTrigger*{.final.} = object
|
|
1138 keysym*: KeySym
|
|
1139 modifier*: cint
|
|
1140 modifier_mask*: cint
|
|
1141
|
|
1142 PXIMHotKeyTriggers* = ptr XIMHotKeyTriggers
|
|
1143 XIMHotKeyTriggers*{.final.} = object
|
|
1144 num_hot_key*: cint
|
|
1145 key*: PXIMHotKeyTrigger
|
|
1146
|
|
1147 PXIMHotKeyState* = ptr XIMHotKeyState
|
|
1148 XIMHotKeyState* = culong
|
|
1149
|
|
1150 const
|
|
1151 XIMHotKeyStateON* = 0x00000001
|
|
1152 XIMHotKeyStateOFF* = 0x00000002
|
|
1153
|
|
1154 type
|
|
1155 PXIMValuesList* = ptr XIMValuesList
|
|
1156 XIMValuesList*{.final.} = object
|
|
1157 count_values*: cushort
|
|
1158 supported_values*: PPChar
|
|
1159
|
|
1160
|
|
1161 type
|
|
1162 funcdisp* = proc (display: PDisplay): cint{.cdecl.}
|
|
1163 funcifevent* = proc (display: PDisplay, event: PXEvent, p: XPointer): XBool{.
|
|
1164 cdecl.}
|
|
1165 chararr32* = array[0..31, char]
|
|
1166
|
|
1167 const
|
|
1168 AllPlanes*: culong = not culong(0)
|
|
1169
|
|
1170 proc XLoadQueryFont*(para1: PDisplay, para2: cstring): PXFontStruct{.libx11.}
|
|
1171 proc XQueryFont*(para1: PDisplay, para2: XID): PXFontStruct{.libx11.}
|
|
1172 proc XGetMotionEvents*(para1: PDisplay, para2: Window, para3: Time,
|
|
1173 para4: Time, para5: Pcint): PXTimeCoord{.libx11.}
|
|
1174 proc XDeleteModifiermapEntry*(para1: PXModifierKeymap, para2: KeyCode,
|
|
1175 para3: cint): PXModifierKeymap{.libx11.}
|
|
1176 proc XGetModifierMapping*(para1: PDisplay): PXModifierKeymap{.libx11.}
|
|
1177 proc XInsertModifiermapEntry*(para1: PXModifierKeymap, para2: KeyCode,
|
|
1178 para3: cint): PXModifierKeymap{.libx11.}
|
|
1179 proc XNewModifiermap*(para1: cint): PXModifierKeymap{.libx11.}
|
|
1180 proc XCreateImage*(para1: PDisplay, para2: PVisual, para3: cuint, para4: cint,
|
|
1181 para5: cint, para6: cstring, para7: cuint, para8: cuint,
|
|
1182 para9: cint, para10: cint): PXImage{.libx11.}
|
|
1183 proc XInitImage*(para1: PXImage): Status{.libx11.}
|
|
1184 proc XGetImage*(para1: PDisplay, para2: Drawable, para3: cint, para4: cint,
|
|
1185 para5: cuint, para6: cuint, para7: culong, para8: cint): PXImage{.
|
|
1186 libx11.}
|
|
1187 proc XGetSubImage*(para1: PDisplay, para2: Drawable, para3: cint, para4: cint,
|
|
1188 para5: cuint, para6: cuint, para7: culong, para8: cint,
|
|
1189 para9: PXImage, para10: cint, para11: cint): PXImage{.libx11.}
|
|
1190 proc XOpenDisplay*(para1: cstring): PDisplay{.libx11.}
|
|
1191 proc XrmInitialize*(){.libx11.}
|
|
1192 proc XFetchBytes*(para1: PDisplay, para2: Pcint): cstring{.libx11.}
|
|
1193 proc XFetchBuffer*(para1: PDisplay, para2: Pcint, para3: cint): cstring{.libx11.}
|
|
1194 proc XGetAtomName*(para1: PDisplay, para2: Atom): cstring{.libx11.}
|
|
1195 proc XGetAtomNames*(para1: PDisplay, para2: PAtom, para3: cint, para4: PPchar): Status{.
|
|
1196 libx11.}
|
|
1197 proc XGetDefault*(para1: PDisplay, para2: cstring, para3: cstring): cstring{.
|
|
1198 libx11.}
|
|
1199 proc XDisplayName*(para1: cstring): cstring{.libx11.}
|
|
1200 proc XKeysymToString*(para1: KeySym): cstring{.libx11.}
|
|
1201 proc XSynchronize*(para1: PDisplay, para2: XBool): funcdisp{.libx11.}
|
|
1202 proc XSetAfterFunction*(para1: PDisplay, para2: funcdisp): funcdisp{.libx11.}
|
|
1203 proc XInternAtom*(para1: PDisplay, para2: cstring, para3: XBool): Atom{.libx11.}
|
|
1204 proc XInternAtoms*(para1: PDisplay, para2: PPchar, para3: cint, para4: XBool,
|
|
1205 para5: PAtom): Status{.libx11.}
|
|
1206 proc XCopyColormapAndFree*(para1: PDisplay, para2: Colormap): Colormap{.libx11.}
|
|
1207 proc XCreateColormap*(para1: PDisplay, para2: Window, para3: PVisual,
|
|
1208 para4: cint): Colormap{.libx11.}
|
|
1209 proc XCreatePixmapCursor*(para1: PDisplay, para2: Pixmap, para3: Pixmap,
|
|
1210 para4: PXColor, para5: PXColor, para6: cuint,
|
|
1211 para7: cuint): Cursor{.libx11.}
|
|
1212 proc XCreateGlyphCursor*(para1: PDisplay, para2: Font, para3: Font,
|
|
1213 para4: cuint, para5: cuint, para6: PXColor,
|
|
1214 para7: PXColor): Cursor{.libx11.}
|
|
1215 proc XCreateFontCursor*(para1: PDisplay, para2: cuint): Cursor{.libx11.}
|
|
1216 proc XLoadFont*(para1: PDisplay, para2: cstring): Font{.libx11.}
|
|
1217 proc XCreateGC*(para1: PDisplay, para2: Drawable, para3: culong,
|
|
1218 para4: PXGCValues): GC{.libx11.}
|
|
1219 proc XGContextFromGC*(para1: GC): GContext{.libx11.}
|
|
1220 proc XFlushGC*(para1: PDisplay, para2: GC){.libx11.}
|
|
1221 proc XCreatePixmap*(para1: PDisplay, para2: Drawable, para3: cuint,
|
|
1222 para4: cuint, para5: cuint): Pixmap{.libx11.}
|
|
1223 proc XCreateBitmapFromData*(para1: PDisplay, para2: Drawable, para3: cstring,
|
|
1224 para4: cuint, para5: cuint): Pixmap{.libx11.}
|
|
1225 proc XCreatePixmapFromBitmapData*(para1: PDisplay, para2: Drawable,
|
|
1226 para3: cstring, para4: cuint, para5: cuint,
|
|
1227 para6: culong, para7: culong, para8: cuint): Pixmap{.
|
|
1228 libx11.}
|
|
1229 proc XCreateSimpleWindow*(para1: PDisplay, para2: Window, para3: cint,
|
|
1230 para4: cint, para5: cuint, para6: cuint, para7: cuint,
|
|
1231 para8: culong, para9: culong): Window{.libx11.}
|
|
1232 proc XGetSelectionOwner*(para1: PDisplay, para2: Atom): Window{.libx11.}
|
|
1233 proc XCreateWindow*(para1: PDisplay, para2: Window, para3: cint, para4: cint,
|
|
1234 para5: cuint, para6: cuint, para7: cuint, para8: cint,
|
|
1235 para9: cuint, para10: PVisual, para11: culong,
|
|
1236 para12: PXSetWindowAttributes): Window{.libx11.}
|
|
1237 proc XListInstalledColormaps*(para1: PDisplay, para2: Window, para3: Pcint): PColormap{.
|
|
1238 libx11.}
|
|
1239 proc XListFonts*(para1: PDisplay, para2: cstring, para3: cint, para4: Pcint): PPChar{.
|
|
1240 libx11.}
|
|
1241 proc XListFontsWithInfo*(para1: PDisplay, para2: cstring, para3: cint,
|
|
1242 para4: Pcint, para5: PPXFontStruct): PPChar{.libx11.}
|
|
1243 proc XGetFontPath*(para1: PDisplay, para2: Pcint): PPChar{.libx11.}
|
|
1244 proc XListExtensions*(para1: PDisplay, para2: Pcint): PPChar{.libx11.}
|
|
1245 proc XListProperties*(para1: PDisplay, para2: Window, para3: Pcint): PAtom{.
|
|
1246 libx11.}
|
|
1247 proc XListHosts*(para1: PDisplay, para2: Pcint, para3: PBool): PXHostAddress{.
|
|
1248 libx11.}
|
|
1249 proc XKeycodeToKeysym*(para1: PDisplay, para2: KeyCode, para3: cint): KeySym{.
|
|
1250 libx11.}
|
|
1251 proc XLookupKeysym*(para1: PXKeyEvent, para2: cint): KeySym{.libx11.}
|
|
1252 proc XGetKeyboardMapping*(para1: PDisplay, para2: KeyCode, para3: cint,
|
|
1253 para4: Pcint): PKeySym{.libx11.}
|
|
1254 proc XStringToKeysym*(para1: cstring): KeySym{.libx11.}
|
|
1255 proc XMaxRequestSize*(para1: PDisplay): clong{.libx11.}
|
|
1256 proc XExtendedMaxRequestSize*(para1: PDisplay): clong{.libx11.}
|
|
1257 proc XResourceManagerString*(para1: PDisplay): cstring{.libx11.}
|
|
1258 proc XScreenResourceString*(para1: PScreen): cstring{.libx11.}
|
|
1259 proc XDisplayMotionBufferSize*(para1: PDisplay): culong{.libx11.}
|
|
1260 proc XVisualIDFromVisual*(para1: PVisual): VisualID{.libx11.}
|
|
1261 proc XInitThreads*(): Status{.libx11.}
|
|
1262 proc XLockDisplay*(para1: PDisplay){.libx11.}
|
|
1263 proc XUnlockDisplay*(para1: PDisplay){.libx11.}
|
|
1264 proc XInitExtension*(para1: PDisplay, para2: cstring): PXExtCodes{.libx11.}
|
|
1265 proc XAddExtension*(para1: PDisplay): PXExtCodes{.libx11.}
|
|
1266 proc XFindOnExtensionList*(para1: PPXExtData, para2: cint): PXExtData{.libx11.}
|
|
1267 proc XEHeadOfExtensionList*(para1: XEDataObject): PPXExtData{.libx11.}
|
|
1268 proc XRootWindow*(para1: PDisplay, para2: cint): Window{.libx11.}
|
|
1269 proc XDefaultRootWindow*(para1: PDisplay): Window{.libx11.}
|
|
1270 proc XRootWindowOfScreen*(para1: PScreen): Window{.libx11.}
|
|
1271 proc XDefaultVisual*(para1: PDisplay, para2: cint): PVisual{.libx11.}
|
|
1272 proc XDefaultVisualOfScreen*(para1: PScreen): PVisual{.libx11.}
|
|
1273 proc XDefaultGC*(para1: PDisplay, para2: cint): GC{.libx11.}
|
|
1274 proc XDefaultGCOfScreen*(para1: PScreen): GC{.libx11.}
|
|
1275 proc XBlackPixel*(para1: PDisplay, para2: cint): culong{.libx11.}
|
|
1276 proc XWhitePixel*(para1: PDisplay, para2: cint): culong{.libx11.}
|
|
1277 proc XAllPlanes*(): culong{.libx11.}
|
|
1278 proc XBlackPixelOfScreen*(para1: PScreen): culong{.libx11.}
|
|
1279 proc XWhitePixelOfScreen*(para1: PScreen): culong{.libx11.}
|
|
1280 proc XNextRequest*(para1: PDisplay): culong{.libx11.}
|
|
1281 proc XLastKnownRequestProcessed*(para1: PDisplay): culong{.libx11.}
|
|
1282 proc XServerVendor*(para1: PDisplay): cstring{.libx11.}
|
|
1283 proc XDisplayString*(para1: PDisplay): cstring{.libx11.}
|
|
1284 proc XDefaultColormap*(para1: PDisplay, para2: cint): Colormap{.libx11.}
|
|
1285 proc XDefaultColormapOfScreen*(para1: PScreen): Colormap{.libx11.}
|
|
1286 proc XDisplayOfScreen*(para1: PScreen): PDisplay{.libx11.}
|
|
1287 proc XScreenOfDisplay*(para1: PDisplay, para2: cint): PScreen{.libx11.}
|
|
1288 proc XDefaultScreenOfDisplay*(para1: PDisplay): PScreen{.libx11.}
|
|
1289 proc XEventMaskOfScreen*(para1: PScreen): clong{.libx11.}
|
|
1290 proc XScreenNumberOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1291
|
|
1292 type
|
|
1293 XErrorHandler* = proc (para1: PDisplay, para2: PXErrorEvent): cint{.cdecl.}
|
|
1294
|
|
1295 proc XSetErrorHandler*(para1: XErrorHandler): XErrorHandler{.libx11.}
|
|
1296 type
|
|
1297 XIOErrorHandler* = proc (para1: PDisplay): cint{.cdecl.}
|
|
1298
|
|
1299 proc XSetIOErrorHandler*(para1: XIOErrorHandler): XIOErrorHandler{.libx11.}
|
|
1300 proc XListPixmapFormats*(para1: PDisplay, para2: Pcint): PXPixmapFormatValues{.
|
|
1301 libx11.}
|
|
1302 proc XListDepths*(para1: PDisplay, para2: cint, para3: Pcint): Pcint{.libx11.}
|
|
1303 proc XReconfigureWMWindow*(para1: PDisplay, para2: Window, para3: cint,
|
|
1304 para4: cuint, para5: PXWindowChanges): Status{.
|
|
1305 libx11.}
|
|
1306 proc XGetWMProtocols*(para1: PDisplay, para2: Window, para3: PPAtom,
|
|
1307 para4: Pcint): Status{.libx11.}
|
|
1308 proc XSetWMProtocols*(para1: PDisplay, para2: Window, para3: PAtom, para4: cint): Status{.
|
|
1309 libx11.}
|
|
1310 proc XIconifyWindow*(para1: PDisplay, para2: Window, para3: cint): Status{.
|
|
1311 libx11.}
|
|
1312 proc XWithdrawWindow*(para1: PDisplay, para2: Window, para3: cint): Status{.
|
|
1313 libx11.}
|
|
1314 proc XGetCommand*(para1: PDisplay, para2: Window, para3: PPPchar, para4: Pcint): Status{.
|
|
1315 libx11.}
|
|
1316 proc XGetWMColormapWindows*(para1: PDisplay, para2: Window, para3: PPWindow,
|
|
1317 para4: Pcint): Status{.libx11.}
|
|
1318 proc XSetWMColormapWindows*(para1: PDisplay, para2: Window, para3: PWindow,
|
|
1319 para4: cint): Status{.libx11.}
|
|
1320 proc XFreeStringList*(para1: PPchar){.libx11.}
|
|
1321 proc XSetTransientForHint*(para1: PDisplay, para2: Window, para3: Window): cint{.
|
|
1322 libx11.}
|
|
1323 proc XActivateScreenSaver*(para1: PDisplay): cint{.libx11.}
|
|
1324 proc XAddHost*(para1: PDisplay, para2: PXHostAddress): cint{.libx11.}
|
|
1325 proc XAddHosts*(para1: PDisplay, para2: PXHostAddress, para3: cint): cint{.
|
|
1326 libx11.}
|
|
1327 proc XAddToExtensionList*(para1: PPXExtData, para2: PXExtData): cint{.libx11.}
|
|
1328 proc XAddToSaveSet*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1329 proc XAllocColor*(para1: PDisplay, para2: Colormap, para3: PXColor): Status{.
|
|
1330 libx11.}
|
|
1331 proc XAllocColorCells*(para1: PDisplay, para2: Colormap, para3: XBool,
|
|
1332 para4: Pculong, para5: cuint, para6: Pculong,
|
|
1333 para7: cuint): Status{.libx11.}
|
|
1334 proc XAllocColorPlanes*(para1: PDisplay, para2: Colormap, para3: XBool,
|
|
1335 para4: Pculong, para5: cint, para6: cint, para7: cint,
|
|
1336 para8: cint, para9: Pculong, para10: Pculong,
|
|
1337 para11: Pculong): Status{.libx11.}
|
|
1338 proc XAllocNamedColor*(para1: PDisplay, para2: Colormap, para3: cstring,
|
|
1339 para4: PXColor, para5: PXColor): Status{.libx11.}
|
|
1340 proc XAllowEvents*(para1: PDisplay, para2: cint, para3: Time): cint{.libx11.}
|
|
1341 proc XAutoRepeatOff*(para1: PDisplay): cint{.libx11.}
|
|
1342 proc XAutoRepeatOn*(para1: PDisplay): cint{.libx11.}
|
|
1343 proc XBell*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1344 proc XBitmapBitOrder*(para1: PDisplay): cint{.libx11.}
|
|
1345 proc XBitmapPad*(para1: PDisplay): cint{.libx11.}
|
|
1346 proc XBitmapUnit*(para1: PDisplay): cint{.libx11.}
|
|
1347 proc XCellsOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1348 proc XChangeActivePointerGrab*(para1: PDisplay, para2: cuint, para3: Cursor,
|
|
1349 para4: Time): cint{.libx11.}
|
|
1350 proc XChangeGC*(para1: PDisplay, para2: GC, para3: culong, para4: PXGCValues): cint{.
|
|
1351 libx11.}
|
|
1352 proc XChangeKeyboardControl*(para1: PDisplay, para2: culong,
|
|
1353 para3: PXKeyboardControl): cint{.libx11.}
|
|
1354 proc XChangeKeyboardMapping*(para1: PDisplay, para2: cint, para3: cint,
|
|
1355 para4: PKeySym, para5: cint): cint{.libx11.}
|
|
1356 proc XChangePointerControl*(para1: PDisplay, para2: XBool, para3: XBool,
|
|
1357 para4: cint, para5: cint, para6: cint): cint{.libx11.}
|
|
1358 proc XChangeProperty*(para1: PDisplay, para2: Window, para3: Atom,
|
|
1359 para4: Atom, para5: cint, para6: cint, para7: Pcuchar,
|
|
1360 para8: cint): cint{.libx11.}
|
|
1361 proc XChangeSaveSet*(para1: PDisplay, para2: Window, para3: cint): cint{.libx11.}
|
|
1362 proc XChangeWindowAttributes*(para1: PDisplay, para2: Window, para3: culong,
|
|
1363 para4: PXSetWindowAttributes): cint{.libx11.}
|
|
1364 proc XCheckIfEvent*(para1: PDisplay, para2: PXEvent, para3: funcifevent,
|
|
1365 para4: XPointer): XBool{.libx11.}
|
|
1366 proc XCheckMaskEvent*(para1: PDisplay, para2: clong, para3: PXEvent): XBool{.
|
|
1367 libx11.}
|
|
1368 proc XCheckTypedEvent*(para1: PDisplay, para2: cint, para3: PXEvent): XBool{.
|
|
1369 libx11.}
|
|
1370 proc XCheckTypedWindowEvent*(para1: PDisplay, para2: Window, para3: cint,
|
|
1371 para4: PXEvent): XBool{.libx11.}
|
|
1372 proc XCheckWindowEvent*(para1: PDisplay, para2: Window, para3: clong,
|
|
1373 para4: PXEvent): XBool{.libx11.}
|
|
1374 proc XCirculateSubwindows*(para1: PDisplay, para2: Window, para3: cint): cint{.
|
|
1375 libx11.}
|
|
1376 proc XCirculateSubwindowsDown*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1377 proc XCirculateSubwindowsUp*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1378 proc XClearArea*(para1: PDisplay, para2: Window, para3: cint, para4: cint,
|
|
1379 para5: cuint, para6: cuint, para7: XBool): cint{.libx11.}
|
|
1380 proc XClearWindow*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1381 proc XCloseDisplay*(para1: PDisplay): cint{.libx11.}
|
|
1382 proc XConfigureWindow*(para1: PDisplay, para2: Window, para3: cuint,
|
|
1383 para4: PXWindowChanges): cint{.libx11.}
|
|
1384 proc XConnectionNumber*(para1: PDisplay): cint{.libx11.}
|
|
1385 proc XConvertSelection*(para1: PDisplay, para2: Atom, para3: Atom,
|
|
1386 para4: Atom, para5: Window, para6: Time): cint{.
|
|
1387 libx11.}
|
|
1388 proc XCopyArea*(para1: PDisplay, para2: Drawable, para3: Drawable, para4: GC,
|
|
1389 para5: cint, para6: cint, para7: cuint, para8: cuint,
|
|
1390 para9: cint, para10: cint): cint{.libx11.}
|
|
1391 proc XCopyGC*(para1: PDisplay, para2: GC, para3: culong, para4: GC): cint{.
|
|
1392 libx11.}
|
|
1393 proc XCopyPlane*(para1: PDisplay, para2: Drawable, para3: Drawable,
|
|
1394 para4: GC, para5: cint, para6: cint, para7: cuint,
|
|
1395 para8: cuint, para9: cint, para10: cint, para11: culong): cint{.
|
|
1396 libx11.}
|
|
1397 proc XDefaultDepth*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1398 proc XDefaultDepthOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1399 proc XDefaultScreen*(para1: PDisplay): cint{.libx11.}
|
|
1400 proc XDefineCursor*(para1: PDisplay, para2: Window, para3: Cursor): cint{.
|
|
1401 libx11.}
|
|
1402 proc XDeleteProperty*(para1: PDisplay, para2: Window, para3: Atom): cint{.
|
|
1403 libx11.}
|
|
1404 proc XDestroyWindow*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1405 proc XDestroySubwindows*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1406 proc XDoesBackingStore*(para1: PScreen): cint{.libx11.}
|
|
1407 proc XDoesSaveUnders*(para1: PScreen): XBool{.libx11.}
|
|
1408 proc XDisableAccessControl*(para1: PDisplay): cint{.libx11.}
|
|
1409 proc XDisplayCells*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1410 proc XDisplayHeight*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1411 proc XDisplayHeightMM*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1412 proc XDisplayKeycodes*(para1: PDisplay, para2: Pcint, para3: Pcint): cint{.
|
|
1413 libx11.}
|
|
1414 proc XDisplayPlanes*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1415 proc XDisplayWidth*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1416 proc XDisplayWidthMM*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1417 proc XDrawArc*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1418 para5: cint, para6: cuint, para7: cuint, para8: cint, para9: cint): cint{.
|
|
1419 libx11.}
|
|
1420 proc XDrawArcs*(para1: PDisplay, para2: Drawable, para3: GC, para4: PXArc,
|
|
1421 para5: cint): cint{.libx11.}
|
|
1422 proc XDrawImageString*(para1: PDisplay, para2: Drawable, para3: GC,
|
|
1423 para4: cint, para5: cint, para6: cstring, para7: cint): cint{.
|
|
1424 libx11.}
|
|
1425 proc XDrawImageString16*(para1: PDisplay, para2: Drawable, para3: GC,
|
|
1426 para4: cint, para5: cint, para6: PXChar2b, para7: cint): cint{.
|
|
1427 libx11.}
|
|
1428 proc XDrawLine*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1429 para5: cint, para6: cint, para7: cint): cint{.libx11.}
|
|
1430 proc XDrawLines*(para1: PDisplay, para2: Drawable, para3: GC, para4: PXPoint,
|
|
1431 para5: cint, para6: cint): cint{.libx11.}
|
|
1432 proc XDrawPoint*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1433 para5: cint): cint{.libx11.}
|
|
1434 proc XDrawPoints*(para1: PDisplay, para2: Drawable, para3: GC, para4: PXPoint,
|
|
1435 para5: cint, para6: cint): cint{.libx11.}
|
|
1436 proc XDrawRectangle*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1437 para5: cint, para6: cuint, para7: cuint): cint{.libx11.}
|
|
1438 proc XDrawRectangles*(para1: PDisplay, para2: Drawable, para3: GC,
|
|
1439 para4: PXRectangle, para5: cint): cint{.libx11.}
|
|
1440 proc XDrawSegments*(para1: PDisplay, para2: Drawable, para3: GC,
|
|
1441 para4: PXSegment, para5: cint): cint{.libx11.}
|
|
1442 proc XDrawString*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1443 para5: cint, para6: cstring, para7: cint): cint{.libx11.}
|
|
1444 proc XDrawString16*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1445 para5: cint, para6: PXChar2b, para7: cint): cint{.libx11.}
|
|
1446 proc XDrawText*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1447 para5: cint, para6: PXTextItem, para7: cint): cint{.libx11.}
|
|
1448 proc XDrawText16*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1449 para5: cint, para6: PXTextItem16, para7: cint): cint{.libx11.}
|
|
1450 proc XEnableAccessControl*(para1: PDisplay): cint{.libx11.}
|
|
1451 proc XEventsQueued*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1452 proc XFetchName*(para1: PDisplay, para2: Window, para3: PPchar): Status{.
|
|
1453 libx11.}
|
|
1454 proc XFillArc*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1455 para5: cint, para6: cuint, para7: cuint, para8: cint, para9: cint): cint{.
|
|
1456 libx11.}
|
|
1457 proc XFillArcs*(para1: PDisplay, para2: Drawable, para3: GC, para4: PXArc,
|
|
1458 para5: cint): cint{.libx11.}
|
|
1459 proc XFillPolygon*(para1: PDisplay, para2: Drawable, para3: GC,
|
|
1460 para4: PXPoint, para5: cint, para6: cint, para7: cint): cint{.
|
|
1461 libx11.}
|
|
1462 proc XFillRectangle*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1463 para5: cint, para6: cuint, para7: cuint): cint{.libx11.}
|
|
1464 proc XFillRectangles*(para1: PDisplay, para2: Drawable, para3: GC,
|
|
1465 para4: PXRectangle, para5: cint): cint{.libx11.}
|
|
1466 proc XFlush*(para1: PDisplay): cint{.libx11.}
|
|
1467 proc XForceScreenSaver*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1468 proc XFree*(para1: pointer): cint{.libx11.}
|
|
1469 proc XFreeColormap*(para1: PDisplay, para2: Colormap): cint{.libx11.}
|
|
1470 proc XFreeColors*(para1: PDisplay, para2: Colormap, para3: Pculong,
|
|
1471 para4: cint, para5: culong): cint{.libx11.}
|
|
1472 proc XFreeCursor*(para1: PDisplay, para2: Cursor): cint{.libx11.}
|
|
1473 proc XFreeExtensionList*(para1: PPchar): cint{.libx11.}
|
|
1474 proc XFreeFont*(para1: PDisplay, para2: PXFontStruct): cint{.libx11.}
|
|
1475 proc XFreeFontInfo*(para1: PPchar, para2: PXFontStruct, para3: cint): cint{.
|
|
1476 libx11.}
|
|
1477 proc XFreeFontNames*(para1: PPchar): cint{.libx11.}
|
|
1478 proc XFreeFontPath*(para1: PPchar): cint{.libx11.}
|
|
1479 proc XFreeGC*(para1: PDisplay, para2: GC): cint{.libx11.}
|
|
1480 proc XFreeModifiermap*(para1: PXModifierKeymap): cint{.libx11.}
|
|
1481 proc XFreePixmap*(para1: PDisplay, para2: Pixmap): cint{.libx11.}
|
|
1482 proc XGeometry*(para1: PDisplay, para2: cint, para3: cstring, para4: cstring,
|
|
1483 para5: cuint, para6: cuint, para7: cuint, para8: cint,
|
|
1484 para9: cint, para10: Pcint, para11: Pcint, para12: Pcint,
|
|
1485 para13: Pcint): cint{.libx11.}
|
|
1486 proc XGetErrorDatabaseText*(para1: PDisplay, para2: cstring, para3: cstring,
|
|
1487 para4: cstring, para5: cstring, para6: cint): cint{.
|
|
1488 libx11.}
|
|
1489 proc XGetErrorText*(para1: PDisplay, para2: cint, para3: cstring, para4: cint): cint{.
|
|
1490 libx11.}
|
|
1491 proc XGetFontProperty*(para1: PXFontStruct, para2: Atom, para3: Pculong): XBool{.
|
|
1492 libx11.}
|
|
1493 proc XGetGCValues*(para1: PDisplay, para2: GC, para3: culong, para4: PXGCValues): Status{.
|
|
1494 libx11.}
|
|
1495 proc XGetGeometry*(para1: PDisplay, para2: Drawable, para3: PWindow,
|
|
1496 para4: Pcint, para5: Pcint, para6: Pcuint, para7: Pcuint,
|
|
1497 para8: Pcuint, para9: Pcuint): Status{.libx11.}
|
|
1498 proc XGetIconName*(para1: PDisplay, para2: Window, para3: PPchar): Status{.
|
|
1499 libx11.}
|
|
1500 proc XGetInputFocus*(para1: PDisplay, para2: PWindow, para3: Pcint): cint{.
|
|
1501 libx11.}
|
|
1502 proc XGetKeyboardControl*(para1: PDisplay, para2: PXKeyboardState): cint{.libx11.}
|
|
1503 proc XGetPointerControl*(para1: PDisplay, para2: Pcint, para3: Pcint,
|
|
1504 para4: Pcint): cint{.libx11.}
|
|
1505 proc XGetPointerMapping*(para1: PDisplay, para2: Pcuchar, para3: cint): cint{.
|
|
1506 libx11.}
|
|
1507 proc XGetScreenSaver*(para1: PDisplay, para2: Pcint, para3: Pcint, para4: Pcint,
|
|
1508 para5: Pcint): cint{.libx11.}
|
|
1509 proc XGetTransientForHint*(para1: PDisplay, para2: Window, para3: PWindow): Status{.
|
|
1510 libx11.}
|
|
1511 proc XGetWindowProperty*(para1: PDisplay, para2: Window, para3: Atom,
|
|
1512 para4: clong, para5: clong, para6: XBool, para7: Atom,
|
|
1513 para8: PAtom, para9: Pcint, para10: Pculong,
|
|
1514 para11: Pculong, para12: PPcuchar): cint{.libx11.}
|
|
1515 proc XGetWindowAttributes*(para1: PDisplay, para2: Window,
|
|
1516 para3: PXWindowAttributes): Status{.libx11.}
|
|
1517 proc XGrabButton*(para1: PDisplay, para2: cuint, para3: cuint, para4: Window,
|
|
1518 para5: XBool, para6: cuint, para7: cint, para8: cint,
|
|
1519 para9: Window, para10: Cursor): cint{.libx11.}
|
|
1520 proc XGrabKey*(para1: PDisplay, para2: cint, para3: cuint, para4: Window,
|
|
1521 para5: XBool, para6: cint, para7: cint): cint{.libx11.}
|
|
1522 proc XGrabKeyboard*(para1: PDisplay, para2: Window, para3: XBool, para4: cint,
|
|
1523 para5: cint, para6: Time): cint{.libx11.}
|
|
1524 proc XGrabPointer*(para1: PDisplay, para2: Window, para3: XBool, para4: cuint,
|
|
1525 para5: cint, para6: cint, para7: Window, para8: Cursor,
|
|
1526 para9: Time): cint{.libx11.}
|
|
1527 proc XGrabServer*(para1: PDisplay): cint{.libx11.}
|
|
1528 proc XHeightMMOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1529 proc XHeightOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1530 proc XIfEvent*(para1: PDisplay, para2: PXEvent, para3: funcifevent,
|
|
1531 para4: XPointer): cint{.libx11.}
|
|
1532 proc XImageByteOrder*(para1: PDisplay): cint{.libx11.}
|
|
1533 proc XInstallColormap*(para1: PDisplay, para2: Colormap): cint{.libx11.}
|
|
1534 proc XKeysymToKeycode*(para1: PDisplay, para2: KeySym): KeyCode{.libx11.}
|
|
1535 proc XKillClient*(para1: PDisplay, para2: XID): cint{.libx11.}
|
|
1536 proc XLookupColor*(para1: PDisplay, para2: Colormap, para3: cstring,
|
|
1537 para4: PXColor, para5: PXColor): Status{.libx11.}
|
|
1538 proc XLowerWindow*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1539 proc XMapRaised*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1540 proc XMapSubwindows*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1541 proc XMapWindow*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1542 proc XMaskEvent*(para1: PDisplay, para2: clong, para3: PXEvent): cint{.libx11.}
|
|
1543 proc XMaxCmapsOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1544 proc XMinCmapsOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1545 proc XMoveResizeWindow*(para1: PDisplay, para2: Window, para3: cint,
|
|
1546 para4: cint, para5: cuint, para6: cuint): cint{.libx11.}
|
|
1547 proc XMoveWindow*(para1: PDisplay, para2: Window, para3: cint, para4: cint): cint{.
|
|
1548 libx11.}
|
|
1549 proc XNextEvent*(para1: PDisplay, para2: PXEvent): cint{.libx11.}
|
|
1550 proc XNoOp*(para1: PDisplay): cint{.libx11.}
|
|
1551 proc XParseColor*(para1: PDisplay, para2: Colormap, para3: cstring,
|
|
1552 para4: PXColor): Status{.libx11.}
|
|
1553 proc XParseGeometry*(para1: cstring, para2: Pcint, para3: Pcint, para4: Pcuint,
|
|
1554 para5: Pcuint): cint{.libx11.}
|
|
1555 proc XPeekEvent*(para1: PDisplay, para2: PXEvent): cint{.libx11.}
|
|
1556 proc XPeekIfEvent*(para1: PDisplay, para2: PXEvent, para3: funcifevent,
|
|
1557 para4: XPointer): cint{.libx11.}
|
|
1558 proc XPending*(para1: PDisplay): cint{.libx11.}
|
|
1559 proc XPlanesOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1560 proc XProtocolRevision*(para1: PDisplay): cint{.libx11.}
|
|
1561 proc XProtocolVersion*(para1: PDisplay): cint{.libx11.}
|
|
1562 proc XPutBackEvent*(para1: PDisplay, para2: PXEvent): cint{.libx11.}
|
|
1563 proc XPutImage*(para1: PDisplay, para2: Drawable, para3: GC, para4: PXImage,
|
|
1564 para5: cint, para6: cint, para7: cint, para8: cint,
|
|
1565 para9: cuint, para10: cuint): cint{.libx11.}
|
|
1566 proc XQLength*(para1: PDisplay): cint{.libx11.}
|
|
1567 proc XQueryBestCursor*(para1: PDisplay, para2: Drawable, para3: cuint,
|
|
1568 para4: cuint, para5: Pcuint, para6: Pcuint): Status{.
|
|
1569 libx11.}
|
|
1570 proc XQueryBestSize*(para1: PDisplay, para2: cint, para3: Drawable,
|
|
1571 para4: cuint, para5: cuint, para6: Pcuint, para7: Pcuint): Status{.
|
|
1572 libx11.}
|
|
1573 proc XQueryBestStipple*(para1: PDisplay, para2: Drawable, para3: cuint,
|
|
1574 para4: cuint, para5: Pcuint, para6: Pcuint): Status{.
|
|
1575 libx11.}
|
|
1576 proc XQueryBestTile*(para1: PDisplay, para2: Drawable, para3: cuint,
|
|
1577 para4: cuint, para5: Pcuint, para6: Pcuint): Status{.
|
|
1578 libx11.}
|
|
1579 proc XQueryColor*(para1: PDisplay, para2: Colormap, para3: PXColor): cint{.
|
|
1580 libx11.}
|
|
1581 proc XQueryColors*(para1: PDisplay, para2: Colormap, para3: PXColor,
|
|
1582 para4: cint): cint{.libx11.}
|
|
1583 proc XQueryExtension*(para1: PDisplay, para2: cstring, para3: Pcint,
|
|
1584 para4: Pcint, para5: Pcint): XBool{.libx11.}
|
|
1585 #?
|
|
1586 proc XQueryKeymap*(para1: PDisplay, para2: chararr32): cint{.libx11.}
|
|
1587 proc XQueryPointer*(para1: PDisplay, para2: Window, para3: PWindow,
|
|
1588 para4: PWindow, para5: Pcint, para6: Pcint, para7: Pcint,
|
|
1589 para8: Pcint, para9: Pcuint): XBool{.libx11.}
|
|
1590 proc XQueryTextExtents*(para1: PDisplay, para2: XID, para3: cstring,
|
|
1591 para4: cint, para5: Pcint, para6: Pcint, para7: Pcint,
|
|
1592 para8: PXCharStruct): cint{.libx11.}
|
|
1593 proc XQueryTextExtents16*(para1: PDisplay, para2: XID, para3: PXChar2b,
|
|
1594 para4: cint, para5: Pcint, para6: Pcint, para7: Pcint,
|
|
1595 para8: PXCharStruct): cint{.libx11.}
|
|
1596 proc XQueryTree*(para1: PDisplay, para2: Window, para3: PWindow,
|
|
1597 para4: PWindow, para5: PPWindow, para6: Pcuint): Status{.
|
|
1598 libx11.}
|
|
1599 proc XRaiseWindow*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1600 proc XReadBitmapFile*(para1: PDisplay, para2: Drawable, para3: cstring,
|
|
1601 para4: Pcuint, para5: Pcuint, para6: PPixmap,
|
|
1602 para7: Pcint, para8: Pcint): cint{.libx11.}
|
|
1603 proc XReadBitmapFileData*(para1: cstring, para2: Pcuint, para3: Pcuint,
|
|
1604 para4: PPcuchar, para5: Pcint, para6: Pcint): cint{.
|
|
1605 libx11.}
|
|
1606 proc XRebindKeysym*(para1: PDisplay, para2: KeySym, para3: PKeySym,
|
|
1607 para4: cint, para5: Pcuchar, para6: cint): cint{.libx11.}
|
|
1608 proc XRecolorCursor*(para1: PDisplay, para2: Cursor, para3: PXColor,
|
|
1609 para4: PXColor): cint{.libx11.}
|
|
1610 proc XRefreshKeyboardMapping*(para1: PXMappingEvent): cint{.libx11.}
|
|
1611 proc XRemoveFromSaveSet*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1612 proc XRemoveHost*(para1: PDisplay, para2: PXHostAddress): cint{.libx11.}
|
|
1613 proc XRemoveHosts*(para1: PDisplay, para2: PXHostAddress, para3: cint): cint{.
|
|
1614 libx11.}
|
|
1615 proc XReparentWindow*(para1: PDisplay, para2: Window, para3: Window,
|
|
1616 para4: cint, para5: cint): cint{.libx11.}
|
|
1617 proc XResetScreenSaver*(para1: PDisplay): cint{.libx11.}
|
|
1618 proc XResizeWindow*(para1: PDisplay, para2: Window, para3: cuint, para4: cuint): cint{.
|
|
1619 libx11.}
|
|
1620 proc XRestackWindows*(para1: PDisplay, para2: PWindow, para3: cint): cint{.
|
|
1621 libx11.}
|
|
1622 proc XRotateBuffers*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1623 proc XRotateWindowProperties*(para1: PDisplay, para2: Window, para3: PAtom,
|
|
1624 para4: cint, para5: cint): cint{.libx11.}
|
|
1625 proc XScreenCount*(para1: PDisplay): cint{.libx11.}
|
|
1626 proc XSelectInput*(para1: PDisplay, para2: Window, para3: clong): cint{.libx11.}
|
|
1627 proc XSendEvent*(para1: PDisplay, para2: Window, para3: XBool, para4: clong,
|
|
1628 para5: PXEvent): Status{.libx11.}
|
|
1629 proc XSetAccessControl*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1630 proc XSetArcMode*(para1: PDisplay, para2: GC, para3: cint): cint{.libx11.}
|
|
1631 proc XSetBackground*(para1: PDisplay, para2: GC, para3: culong): cint{.libx11.}
|
|
1632 proc XSetClipMask*(para1: PDisplay, para2: GC, para3: Pixmap): cint{.libx11.}
|
|
1633 proc XSetClipOrigin*(para1: PDisplay, para2: GC, para3: cint, para4: cint): cint{.
|
|
1634 libx11.}
|
|
1635 proc XSetClipRectangles*(para1: PDisplay, para2: GC, para3: cint, para4: cint,
|
|
1636 para5: PXRectangle, para6: cint, para7: cint): cint{.
|
|
1637 libx11.}
|
|
1638 proc XSetCloseDownMode*(para1: PDisplay, para2: cint): cint{.libx11.}
|
|
1639 proc XSetCommand*(para1: PDisplay, para2: Window, para3: PPchar, para4: cint): cint{.
|
|
1640 libx11.}
|
|
1641 proc XSetDashes*(para1: PDisplay, para2: GC, para3: cint, para4: cstring,
|
|
1642 para5: cint): cint{.libx11.}
|
|
1643 proc XSetFillRule*(para1: PDisplay, para2: GC, para3: cint): cint{.libx11.}
|
|
1644 proc XSetFillStyle*(para1: PDisplay, para2: GC, para3: cint): cint{.libx11.}
|
|
1645 proc XSetFont*(para1: PDisplay, para2: GC, para3: Font): cint{.libx11.}
|
|
1646 proc XSetFontPath*(para1: PDisplay, para2: PPchar, para3: cint): cint{.libx11.}
|
|
1647 proc XSetForeground*(para1: PDisplay, para2: GC, para3: culong): cint{.libx11.}
|
|
1648 proc XSetFunction*(para1: PDisplay, para2: GC, para3: cint): cint{.libx11.}
|
|
1649 proc XSetGraphicsExposures*(para1: PDisplay, para2: GC, para3: XBool): cint{.
|
|
1650 libx11.}
|
|
1651 proc XSetIconName*(para1: PDisplay, para2: Window, para3: cstring): cint{.
|
|
1652 libx11.}
|
|
1653 proc XSetInputFocus*(para1: PDisplay, para2: Window, para3: cint, para4: Time): cint{.
|
|
1654 libx11.}
|
|
1655 proc XSetLineAttributes*(para1: PDisplay, para2: GC, para3: cuint, para4: cint,
|
|
1656 para5: cint, para6: cint): cint{.libx11.}
|
|
1657 proc XSetModifierMapping*(para1: PDisplay, para2: PXModifierKeymap): cint{.
|
|
1658 libx11.}
|
|
1659 proc XSetPlaneMask*(para1: PDisplay, para2: GC, para3: culong): cint{.libx11.}
|
|
1660 proc XSetPointerMapping*(para1: PDisplay, para2: Pcuchar, para3: cint): cint{.
|
|
1661 libx11.}
|
|
1662 proc XSetScreenSaver*(para1: PDisplay, para2: cint, para3: cint, para4: cint,
|
|
1663 para5: cint): cint{.libx11.}
|
|
1664 proc XSetSelectionOwner*(para1: PDisplay, para2: Atom, para3: Window,
|
|
1665 para4: Time): cint{.libx11.}
|
|
1666 proc XSetState*(para1: PDisplay, para2: GC, para3: culong, para4: culong,
|
|
1667 para5: cint, para6: culong): cint{.libx11.}
|
|
1668 proc XSetStipple*(para1: PDisplay, para2: GC, para3: Pixmap): cint{.libx11.}
|
|
1669 proc XSetSubwindowMode*(para1: PDisplay, para2: GC, para3: cint): cint{.libx11.}
|
|
1670 proc XSetTSOrigin*(para1: PDisplay, para2: GC, para3: cint, para4: cint): cint{.
|
|
1671 libx11.}
|
|
1672 proc XSetTile*(para1: PDisplay, para2: GC, para3: Pixmap): cint{.libx11.}
|
|
1673 proc XSetWindowBackground*(para1: PDisplay, para2: Window, para3: culong): cint{.
|
|
1674 libx11.}
|
|
1675 proc XSetWindowBackgroundPixmap*(para1: PDisplay, para2: Window, para3: Pixmap): cint{.
|
|
1676 libx11.}
|
|
1677 proc XSetWindowBorder*(para1: PDisplay, para2: Window, para3: culong): cint{.
|
|
1678 libx11.}
|
|
1679 proc XSetWindowBorderPixmap*(para1: PDisplay, para2: Window, para3: Pixmap): cint{.
|
|
1680 libx11.}
|
|
1681 proc XSetWindowBorderWidth*(para1: PDisplay, para2: Window, para3: cuint): cint{.
|
|
1682 libx11.}
|
|
1683 proc XSetWindowColormap*(para1: PDisplay, para2: Window, para3: Colormap): cint{.
|
|
1684 libx11.}
|
|
1685 proc XStoreBuffer*(para1: PDisplay, para2: cstring, para3: cint, para4: cint): cint{.
|
|
1686 libx11.}
|
|
1687 proc XStoreBytes*(para1: PDisplay, para2: cstring, para3: cint): cint{.libx11.}
|
|
1688 proc XStoreColor*(para1: PDisplay, para2: Colormap, para3: PXColor): cint{.
|
|
1689 libx11.}
|
|
1690 proc XStoreColors*(para1: PDisplay, para2: Colormap, para3: PXColor,
|
|
1691 para4: cint): cint{.libx11.}
|
|
1692 proc XStoreName*(para1: PDisplay, para2: Window, para3: cstring): cint{.libx11.}
|
|
1693 proc XStoreNamedColor*(para1: PDisplay, para2: Colormap, para3: cstring,
|
|
1694 para4: culong, para5: cint): cint{.libx11.}
|
|
1695 proc XSync*(para1: PDisplay, para2: XBool): cint{.libx11.}
|
|
1696 proc XTextExtents*(para1: PXFontStruct, para2: cstring, para3: cint,
|
|
1697 para4: Pcint, para5: Pcint, para6: Pcint, para7: PXCharStruct): cint{.
|
|
1698 libx11.}
|
|
1699 proc XTextExtents16*(para1: PXFontStruct, para2: PXChar2b, para3: cint,
|
|
1700 para4: Pcint, para5: Pcint, para6: Pcint,
|
|
1701 para7: PXCharStruct): cint{.libx11.}
|
|
1702 proc XTextWidth*(para1: PXFontStruct, para2: cstring, para3: cint): cint{.libx11.}
|
|
1703 proc XTextWidth16*(para1: PXFontStruct, para2: PXChar2b, para3: cint): cint{.
|
|
1704 libx11.}
|
|
1705 proc XTranslateCoordinates*(para1: PDisplay, para2: Window, para3: Window,
|
|
1706 para4: cint, para5: cint, para6: Pcint,
|
|
1707 para7: Pcint, para8: PWindow): XBool{.libx11.}
|
|
1708 proc XUndefineCursor*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1709 proc XUngrabButton*(para1: PDisplay, para2: cuint, para3: cuint, para4: Window): cint{.
|
|
1710 libx11.}
|
|
1711 proc XUngrabKey*(para1: PDisplay, para2: cint, para3: cuint, para4: Window): cint{.
|
|
1712 libx11.}
|
|
1713 proc XUngrabKeyboard*(para1: PDisplay, para2: Time): cint{.libx11.}
|
|
1714 proc XUngrabPointer*(para1: PDisplay, para2: Time): cint{.libx11.}
|
|
1715 proc XUngrabServer*(para1: PDisplay): cint{.libx11.}
|
|
1716 proc XUninstallColormap*(para1: PDisplay, para2: Colormap): cint{.libx11.}
|
|
1717 proc XUnloadFont*(para1: PDisplay, para2: Font): cint{.libx11.}
|
|
1718 proc XUnmapSubwindows*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1719 proc XUnmapWindow*(para1: PDisplay, para2: Window): cint{.libx11.}
|
|
1720 proc XVendorRelease*(para1: PDisplay): cint{.libx11.}
|
|
1721 proc XWarpPointer*(para1: PDisplay, para2: Window, para3: Window, para4: cint,
|
|
1722 para5: cint, para6: cuint, para7: cuint, para8: cint,
|
|
1723 para9: cint): cint{.libx11.}
|
|
1724 proc XWidthMMOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1725 proc XWidthOfScreen*(para1: PScreen): cint{.libx11.}
|
|
1726 proc XWindowEvent*(para1: PDisplay, para2: Window, para3: clong, para4: PXEvent): cint{.
|
|
1727 libx11.}
|
|
1728 proc XWriteBitmapFile*(para1: PDisplay, para2: cstring, para3: Pixmap,
|
|
1729 para4: cuint, para5: cuint, para6: cint, para7: cint): cint{.
|
|
1730 libx11.}
|
|
1731 proc XSupportsLocale*(): XBool{.libx11.}
|
|
1732 proc XSetLocaleModifiers*(para1: cstring): cstring{.libx11.}
|
|
1733 proc XOpenOM*(para1: PDisplay, para2: PXrmHashBucketRec, para3: cstring,
|
|
1734 para4: cstring): XOM{.libx11.}
|
|
1735 proc XCloseOM*(para1: XOM): Status{.libx11.}
|
|
1736 proc XSetOMValues*(para1: XOM): cstring{.varargs, libx11.}
|
|
1737 proc XGetOMValues*(para1: XOM): cstring{.varargs, libx11.}
|
|
1738 proc XDisplayOfOM*(para1: XOM): PDisplay{.libx11.}
|
|
1739 proc XLocaleOfOM*(para1: XOM): cstring{.libx11.}
|
|
1740 proc XCreateOC*(para1: XOM): XOC{.varargs, libx11.}
|
|
1741 proc XDestroyOC*(para1: XOC){.libx11.}
|
|
1742 proc XOMOfOC*(para1: XOC): XOM{.libx11.}
|
|
1743 proc XSetOCValues*(para1: XOC): cstring{.varargs, libx11.}
|
|
1744 proc XGetOCValues*(para1: XOC): cstring{.varargs, libx11.}
|
|
1745 proc XCreateFontSet*(para1: PDisplay, para2: cstring, para3: PPPchar,
|
|
1746 para4: Pcint, para5: PPchar): XFontSet{.libx11.}
|
|
1747 proc XFreeFontSet*(para1: PDisplay, para2: XFontSet){.libx11.}
|
|
1748 proc XFontsOfFontSet*(para1: XFontSet, para2: PPPXFontStruct, para3: PPPchar): cint{.
|
|
1749 libx11.}
|
|
1750 proc XBaseFontNameListOfFontSet*(para1: XFontSet): cstring{.libx11.}
|
|
1751 proc XLocaleOfFontSet*(para1: XFontSet): cstring{.libx11.}
|
|
1752 proc XContextDependentDrawing*(para1: XFontSet): XBool{.libx11.}
|
|
1753 proc XDirectionalDependentDrawing*(para1: XFontSet): XBool{.libx11.}
|
|
1754 proc XContextualDrawing*(para1: XFontSet): XBool{.libx11.}
|
|
1755 proc XExtentsOfFontSet*(para1: XFontSet): PXFontSetExtents{.libx11.}
|
|
1756 proc XmbTextEscapement*(para1: XFontSet, para2: cstring, para3: cint): cint{.
|
|
1757 libx11.}
|
|
1758 proc XwcTextEscapement*(para1: XFontSet, para2: PWideChar, para3: cint): cint{.
|
|
1759 libx11.}
|
|
1760 proc Xutf8TextEscapement*(para1: XFontSet, para2: cstring, para3: cint): cint{.
|
|
1761 libx11.}
|
|
1762 proc XmbTextExtents*(para1: XFontSet, para2: cstring, para3: cint,
|
|
1763 para4: PXRectangle, para5: PXRectangle): cint{.libx11.}
|
|
1764 proc XwcTextExtents*(para1: XFontSet, para2: PWideChar, para3: cint,
|
|
1765 para4: PXRectangle, para5: PXRectangle): cint{.libx11.}
|
|
1766 proc Xutf8TextExtents*(para1: XFontSet, para2: cstring, para3: cint,
|
|
1767 para4: PXRectangle, para5: PXRectangle): cint{.libx11.}
|
|
1768 proc XmbTextPerCharExtents*(para1: XFontSet, para2: cstring, para3: cint,
|
|
1769 para4: PXRectangle, para5: PXRectangle, para6: cint,
|
|
1770 para7: Pcint, para8: PXRectangle, para9: PXRectangle): Status{.
|
|
1771 libx11.}
|
|
1772 proc XwcTextPerCharExtents*(para1: XFontSet, para2: PWideChar, para3: cint,
|
|
1773 para4: PXRectangle, para5: PXRectangle, para6: cint,
|
|
1774 para7: Pcint, para8: PXRectangle, para9: PXRectangle): Status{.
|
|
1775 libx11.}
|
|
1776 proc Xutf8TextPerCharExtents*(para1: XFontSet, para2: cstring, para3: cint,
|
|
1777 para4: PXRectangle, para5: PXRectangle,
|
|
1778 para6: cint, para7: Pcint, para8: PXRectangle,
|
|
1779 para9: PXRectangle): Status{.libx11.}
|
|
1780 proc XmbDrawText*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1781 para5: cint, para6: PXmbTextItem, para7: cint){.libx11.}
|
|
1782 proc XwcDrawText*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1783 para5: cint, para6: PXwcTextItem, para7: cint){.libx11.}
|
|
1784 proc Xutf8DrawText*(para1: PDisplay, para2: Drawable, para3: GC, para4: cint,
|
|
1785 para5: cint, para6: PXmbTextItem, para7: cint){.libx11.}
|
|
1786 proc XmbDrawString*(para1: PDisplay, para2: Drawable, para3: XFontSet,
|
|
1787 para4: GC, para5: cint, para6: cint, para7: cstring,
|
|
1788 para8: cint){.libx11.}
|
|
1789 proc XwcDrawString*(para1: PDisplay, para2: Drawable, para3: XFontSet,
|
|
1790 para4: GC, para5: cint, para6: cint, para7: PWideChar,
|
|
1791 para8: cint){.libx11.}
|
|
1792 proc Xutf8DrawString*(para1: PDisplay, para2: Drawable, para3: XFontSet,
|
|
1793 para4: GC, para5: cint, para6: cint, para7: cstring,
|
|
1794 para8: cint){.libx11.}
|
|
1795 proc XmbDrawImageString*(para1: PDisplay, para2: Drawable, para3: XFontSet,
|
|
1796 para4: GC, para5: cint, para6: cint, para7: cstring,
|
|
1797 para8: cint){.libx11.}
|
|
1798 proc XwcDrawImageString*(para1: PDisplay, para2: Drawable, para3: XFontSet,
|
|
1799 para4: GC, para5: cint, para6: cint, para7: PWideChar,
|
|
1800 para8: cint){.libx11.}
|
|
1801 proc Xutf8DrawImageString*(para1: PDisplay, para2: Drawable, para3: XFontSet,
|
|
1802 para4: GC, para5: cint, para6: cint, para7: cstring,
|
|
1803 para8: cint){.libx11.}
|
|
1804 proc XOpenIM*(para1: PDisplay, para2: PXrmHashBucketRec, para3: cstring,
|
|
1805 para4: cstring): XIM{.libx11.}
|
|
1806 proc XCloseIM*(para1: XIM): Status{.libx11.}
|
|
1807 proc XGetIMValues*(para1: XIM): cstring{.varargs, libx11.}
|
|
1808 proc XSetIMValues*(para1: XIM): cstring{.varargs, libx11.}
|
|
1809 proc XDisplayOfIM*(para1: XIM): PDisplay{.libx11.}
|
|
1810 proc XLocaleOfIM*(para1: XIM): cstring{.libx11.}
|
|
1811 proc XCreateIC*(para1: XIM): XIC{.varargs, libx11.}
|
|
1812 proc XDestroyIC*(para1: XIC){.libx11.}
|
|
1813 proc XSetICFocus*(para1: XIC){.libx11.}
|
|
1814 proc XUnsetICFocus*(para1: XIC){.libx11.}
|
|
1815 proc XwcResetIC*(para1: XIC): PWideChar{.libx11.}
|
|
1816 proc XmbResetIC*(para1: XIC): cstring{.libx11.}
|
|
1817 proc Xutf8ResetIC*(para1: XIC): cstring{.libx11.}
|
|
1818 proc XSetICValues*(para1: XIC): cstring{.varargs, libx11.}
|
|
1819 proc XGetICValues*(para1: XIC): cstring{.varargs, libx11.}
|
|
1820 proc XIMOfIC*(para1: XIC): XIM{.libx11.}
|
|
1821 proc XFilterEvent*(para1: PXEvent, para2: Window): XBool{.libx11.}
|
|
1822 proc XmbLookupString*(para1: XIC, para2: PXKeyPressedEvent, para3: cstring,
|
|
1823 para4: cint, para5: PKeySym, para6: PStatus): cint{.libx11.}
|
|
1824 proc XwcLookupString*(para1: XIC, para2: PXKeyPressedEvent, para3: PWideChar,
|
|
1825 para4: cint, para5: PKeySym, para6: PStatus): cint{.libx11.}
|
|
1826 proc Xutf8LookupString*(para1: XIC, para2: PXKeyPressedEvent, para3: cstring,
|
|
1827 para4: cint, para5: PKeySym, para6: PStatus): cint{.
|
|
1828 libx11.}
|
|
1829 proc XVaCreateNestedList*(unused: cint): XVaNestedList{.varargs, libx11.}
|
|
1830 proc XRegisterIMInstantiateCallback*(para1: PDisplay, para2: PXrmHashBucketRec,
|
|
1831 para3: cstring, para4: cstring,
|
|
1832 para5: XIDProc, para6: XPointer): XBool{.
|
|
1833 libx11.}
|
|
1834 proc XUnregisterIMInstantiateCallback*(para1: PDisplay,
|
|
1835 para2: PXrmHashBucketRec, para3: cstring,
|
|
1836 para4: cstring, para5: XIDProc,
|
|
1837 para6: XPointer): XBool{.libx11.}
|
|
1838 type
|
|
1839 XConnectionWatchProc* = proc (para1: PDisplay, para2: XPointer, para3: cint,
|
|
1840 para4: XBool, para5: PXPointer){.cdecl.}
|
|
1841
|
|
1842 proc XInternalConnectionNumbers*(para1: PDisplay, para2: PPcint, para3: Pcint): Status{.
|
|
1843 libx11.}
|
|
1844 proc XProcessInternalConnection*(para1: PDisplay, para2: cint){.libx11.}
|
|
1845 proc XAddConnectionWatch*(para1: PDisplay, para2: XConnectionWatchProc,
|
|
1846 para3: XPointer): Status{.libx11.}
|
|
1847 proc XRemoveConnectionWatch*(para1: PDisplay, para2: XConnectionWatchProc,
|
|
1848 para3: XPointer){.libx11.}
|
|
1849 proc XSetAuthorization*(para1: cstring, para2: cint, para3: cstring, para4: cint){.
|
|
1850 libx11.}
|
|
1851 #
|
|
1852 # _Xmbtowc?
|
|
1853 # _Xwctomb?
|
|
1854 #
|
|
1855 proc XGetEventData*(para1: PDisplay, para2: PXGenericEventCookie): XBool {.libX11.}
|
|
1856 proc XFreeEventData*(para1: PDisplay, para2: PXGenericEventCookie) {.libX11.}
|
|
1857 #when defined(MACROS):
|
|
1858 proc ConnectionNumber*(dpy: PDisplay): cint
|
|
1859 proc RootWindow*(dpy: PDisplay, scr: cint): Window
|
|
1860 proc DefaultScreen*(dpy: PDisplay): cint
|
|
1861 proc DefaultRootWindow*(dpy: PDisplay): Window
|
|
1862 proc DefaultVisual*(dpy: PDisplay, scr: cint): PVisual
|
|
1863 proc DefaultGC*(dpy: PDisplay, scr: cint): GC
|
|
1864 proc BlackPixel*(dpy: PDisplay, scr: cint): culong
|
|
1865 proc WhitePixel*(dpy: PDisplay, scr: cint): culong
|
|
1866 proc QLength*(dpy: PDisplay): cint
|
|
1867 proc DisplayWidth*(dpy: PDisplay, scr: cint): cint
|
|
1868 proc DisplayHeight*(dpy: PDisplay, scr: cint): cint
|
|
1869 proc DisplayWidthMM*(dpy: PDisplay, scr: cint): cint
|
|
1870 proc DisplayHeightMM*(dpy: PDisplay, scr: cint): cint
|
|
1871 proc DisplayPlanes*(dpy: PDisplay, scr: cint): cint
|
|
1872 proc DisplayCells*(dpy: PDisplay, scr: cint): cint
|
|
1873 proc ScreenCount*(dpy: PDisplay): cint
|
|
1874 proc ServerVendor*(dpy: PDisplay): cstring
|
|
1875 proc ProtocolVersion*(dpy: PDisplay): cint
|
|
1876 proc ProtocolRevision*(dpy: PDisplay): cint
|
|
1877 proc VendorRelease*(dpy: PDisplay): cint
|
|
1878 proc DisplayString*(dpy: PDisplay): cstring
|
|
1879 proc DefaultDepth*(dpy: PDisplay, scr: cint): cint
|
|
1880 proc DefaultColormap*(dpy: PDisplay, scr: cint): Colormap
|
|
1881 proc BitmapUnit*(dpy: PDisplay): cint
|
|
1882 proc BitmapBitOrder*(dpy: PDisplay): cint
|
|
1883 proc BitmapPad*(dpy: PDisplay): cint
|
|
1884 proc ImageByteOrder*(dpy: PDisplay): cint
|
|
1885 proc NextRequest*(dpy: PDisplay): culong
|
|
1886 proc LastKnownRequestProcessed*(dpy: PDisplay): culong
|
|
1887 proc ScreenOfDisplay*(dpy: PDisplay, scr: cint): PScreen
|
|
1888 proc DefaultScreenOfDisplay*(dpy: PDisplay): PScreen
|
|
1889 proc DisplayOfScreen*(s: PScreen): PDisplay
|
|
1890 proc RootWindowOfScreen*(s: PScreen): Window
|
|
1891 proc BlackPixelOfScreen*(s: PScreen): culong
|
|
1892 proc WhitePixelOfScreen*(s: PScreen): culong
|
|
1893 proc DefaultColormapOfScreen*(s: PScreen): Colormap
|
|
1894 proc DefaultDepthOfScreen*(s: PScreen): cint
|
|
1895 proc DefaultGCOfScreen*(s: PScreen): GC
|
|
1896 proc DefaultVisualOfScreen*(s: PScreen): PVisual
|
|
1897 proc WidthOfScreen*(s: PScreen): cint
|
|
1898 proc HeightOfScreen*(s: PScreen): cint
|
|
1899 proc WidthMMOfScreen*(s: PScreen): cint
|
|
1900 proc HeightMMOfScreen*(s: PScreen): cint
|
|
1901 proc PlanesOfScreen*(s: PScreen): cint
|
|
1902 proc CellsOfScreen*(s: PScreen): cint
|
|
1903 proc MinCmapsOfScreen*(s: PScreen): cint
|
|
1904 proc MaxCmapsOfScreen*(s: PScreen): cint
|
|
1905 proc DoesSaveUnders*(s: PScreen): XBool
|
|
1906 proc DoesBackingStore*(s: PScreen): cint
|
|
1907 proc EventMaskOfScreen*(s: PScreen): clong
|
|
1908 proc XAllocID*(dpy: PDisplay): XID
|
|
1909 # implementation
|
|
1910
|
|
1911 #when defined(MACROS):
|
|
1912 template privDisp: untyped = cast[PXPrivDisplay](dpy)
|
|
1913
|
|
1914 proc ConnectionNumber(dpy: PDisplay): cint =
|
|
1915 privDisp.fd
|
|
1916
|
|
1917 proc RootWindow(dpy: PDisplay, scr: cint): Window =
|
|
1918 ScreenOfDisplay(dpy, scr).root
|
|
1919
|
|
1920 proc DefaultScreen(dpy: PDisplay): cint =
|
|
1921 privDisp.default_screen
|
|
1922
|
|
1923 proc DefaultRootWindow(dpy: PDisplay): Window =
|
|
1924 ScreenOfDisplay(dpy, DefaultScreen(dpy)).root
|
|
1925
|
|
1926 proc DefaultVisual(dpy: PDisplay, scr: cint): PVisual =
|
|
1927 ScreenOfDisplay(dpy, scr).root_visual
|
|
1928
|
|
1929 proc DefaultGC(dpy: PDisplay, scr: cint): GC =
|
|
1930 ScreenOfDisplay(dpy, scr).default_gc
|
|
1931
|
|
1932 proc BlackPixel(dpy: PDisplay, scr: cint): culong =
|
|
1933 ScreenOfDisplay(dpy, scr).black_pixel
|
|
1934
|
|
1935 proc WhitePixel(dpy: PDisplay, scr: cint): culong =
|
|
1936 ScreenOfDisplay(dpy, scr).white_pixel
|
|
1937
|
|
1938 proc QLength(dpy: PDisplay): cint =
|
|
1939 privDisp.qlen
|
|
1940
|
|
1941 proc DisplayWidth(dpy: PDisplay, scr: cint): cint =
|
|
1942 ScreenOfDisplay(dpy, scr).width
|
|
1943
|
|
1944 proc DisplayHeight(dpy: PDisplay, scr: cint): cint =
|
|
1945 ScreenOfDisplay(dpy, scr).height
|
|
1946
|
|
1947 proc DisplayWidthMM(dpy: PDisplay, scr: cint): cint =
|
|
1948 ScreenOfDisplay(dpy, scr).mwidth
|
|
1949
|
|
1950 proc DisplayHeightMM(dpy: PDisplay, scr: cint): cint =
|
|
1951 ScreenOfDisplay(dpy, scr).mheight
|
|
1952
|
|
1953 proc DisplayPlanes(dpy: PDisplay, scr: cint): cint =
|
|
1954 ScreenOfDisplay(dpy, scr).root_depth
|
|
1955
|
|
1956 proc DisplayCells(dpy: PDisplay, scr: cint): cint =
|
|
1957 DefaultVisual(dpy, scr).map_entries
|
|
1958
|
|
1959 proc ScreenCount(dpy: PDisplay): cint =
|
|
1960 privDisp.nscreens
|
|
1961
|
|
1962 proc ServerVendor(dpy: PDisplay): cstring =
|
|
1963 privDisp.vendor
|
|
1964
|
|
1965 proc ProtocolVersion(dpy: PDisplay): cint =
|
|
1966 privDisp.proto_major_version
|
|
1967
|
|
1968 proc ProtocolRevision(dpy: PDisplay): cint =
|
|
1969 privDisp.proto_minor_version
|
|
1970
|
|
1971 proc VendorRelease(dpy: PDisplay): cint =
|
|
1972 privDisp.release
|
|
1973
|
|
1974 proc DisplayString(dpy: PDisplay): cstring =
|
|
1975 privDisp.display_name
|
|
1976
|
|
1977 proc DefaultDepth(dpy: PDisplay, scr: cint): cint =
|
|
1978 ScreenOfDisplay(dpy, scr).root_depth
|
|
1979
|
|
1980 proc DefaultColormap(dpy: PDisplay, scr: cint): Colormap =
|
|
1981 ScreenOfDisplay(dpy, scr).cmap
|
|
1982
|
|
1983 proc BitmapUnit(dpy: PDisplay): cint =
|
|
1984 privDisp.bitmap_unit
|
|
1985
|
|
1986 proc BitmapBitOrder(dpy: PDisplay): cint =
|
|
1987 privDisp.bitmap_bit_order
|
|
1988
|
|
1989 proc BitmapPad(dpy: PDisplay): cint =
|
|
1990 privDisp.bitmap_pad
|
|
1991
|
|
1992 proc ImageByteOrder(dpy: PDisplay): cint =
|
|
1993 privDisp.byte_order
|
|
1994
|
|
1995 proc NextRequest(dpy: PDisplay): culong =
|
|
1996 privDisp.request + 1.culong
|
|
1997
|
|
1998 proc LastKnownRequestProcessed(dpy: PDisplay): culong =
|
|
1999 privDisp.last_request_read
|
|
2000
|
|
2001 # from fowltek/pointer_arithm, required for ScreenOfDisplay()
|
|
2002 proc offset[A] (some: ptr A; b: int): ptr A =
|
|
2003 cast[ptr A](cast[int](some) + (b * sizeof(A)))
|
|
2004 proc ScreenOfDisplay(dpy: PDisplay, scr: cint): PScreen =
|
|
2005 #addr(((privDisp.screens)[scr]))
|
|
2006 privDisp.screens.offset(scr.int)
|
|
2007
|
|
2008 proc DefaultScreenOfDisplay(dpy: PDisplay): PScreen =
|
|
2009 ScreenOfDisplay(dpy, DefaultScreen(dpy))
|
|
2010
|
|
2011 proc DisplayOfScreen(s: PScreen): PDisplay =
|
|
2012 s.display
|
|
2013
|
|
2014 proc RootWindowOfScreen(s: PScreen): Window =
|
|
2015 s.root
|
|
2016
|
|
2017 proc BlackPixelOfScreen(s: PScreen): culong =
|
|
2018 s.black_pixel
|
|
2019
|
|
2020 proc WhitePixelOfScreen(s: PScreen): culong =
|
|
2021 s.white_pixel
|
|
2022
|
|
2023 proc DefaultColormapOfScreen(s: PScreen): Colormap =
|
|
2024 s.cmap
|
|
2025
|
|
2026 proc DefaultDepthOfScreen(s: PScreen): cint =
|
|
2027 s.root_depth
|
|
2028
|
|
2029 proc DefaultGCOfScreen(s: PScreen): GC =
|
|
2030 s.default_gc
|
|
2031
|
|
2032 proc DefaultVisualOfScreen(s: PScreen): PVisual =
|
|
2033 s.root_visual
|
|
2034
|
|
2035 proc WidthOfScreen(s: PScreen): cint =
|
|
2036 s.width
|
|
2037
|
|
2038 proc HeightOfScreen(s: PScreen): cint =
|
|
2039 s.height
|
|
2040
|
|
2041 proc WidthMMOfScreen(s: PScreen): cint =
|
|
2042 s.mwidth
|
|
2043
|
|
2044 proc HeightMMOfScreen(s: PScreen): cint =
|
|
2045 s.mheight
|
|
2046
|
|
2047 proc PlanesOfScreen(s: PScreen): cint =
|
|
2048 s.root_depth
|
|
2049
|
|
2050 proc CellsOfScreen(s: PScreen): cint =
|
|
2051 DefaultVisualOfScreen(s).map_entries
|
|
2052
|
|
2053 proc MinCmapsOfScreen(s: PScreen): cint =
|
|
2054 s.min_maps
|
|
2055
|
|
2056 proc MaxCmapsOfScreen(s: PScreen): cint =
|
|
2057 s.max_maps
|
|
2058
|
|
2059 proc DoesSaveUnders(s: PScreen): XBool =
|
|
2060 s.save_unders
|
|
2061
|
|
2062 proc DoesBackingStore(s: PScreen): cint =
|
|
2063 s.backing_store
|
|
2064
|
|
2065 proc EventMaskOfScreen(s: PScreen): clong =
|
|
2066 s.root_input_mask
|
|
2067
|
|
2068 proc XAllocID(dpy: PDisplay): XID =
|
|
2069 privDisp.resource_alloc(dpy)
|