vx11 / functions.c.v
4437 lines · 3173 sloc · 179.19 KB · 6de7c1113616d30335010eea79fd03d19722b474
Raw
1// Generated from the installed X11 headers.
2module vx11
3
4fn C.XLoadQueryFont(display &Display, name &char) &XFontStruct
5
6// XLoadQueryFont: raw Xlib ownership and return codes.
7pub fn load_query_font(display &Display, name &char) &XFontStruct {
8 return C.XLoadQueryFont(display, name)
9}
10
11fn C.XQueryFont(display &Display, font_id XID) &XFontStruct
12
13// XQueryFont: raw Xlib ownership and return codes.
14pub fn query_font(display &Display, font_id XID) &XFontStruct {
15 return C.XQueryFont(display, font_id)
16}
17
18fn C.XGetMotionEvents(display &Display, w Window, start Time, stop Time, nevents_return &i32) &XTimeCoord
19
20// XGetMotionEvents: raw Xlib ownership and return codes.
21pub fn get_motion_events(display &Display, w Window, start Time, stop Time, nevents_return &i32) &XTimeCoord {
22 return C.XGetMotionEvents(display, w, start, stop, nevents_return)
23}
24
25fn C.XDeleteModifiermapEntry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap
26
27// XDeleteModifiermapEntry: raw Xlib ownership and return codes.
28pub fn delete_modifiermap_entry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap {
29 return C.XDeleteModifiermapEntry(modmap, keycode_entry, modifier)
30}
31
32fn C.XGetModifierMapping(display &Display) &XModifierKeymap
33
34// XGetModifierMapping: raw Xlib ownership and return codes.
35pub fn get_modifier_mapping(display &Display) &XModifierKeymap {
36 return C.XGetModifierMapping(display)
37}
38
39fn C.XInsertModifiermapEntry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap
40
41// XInsertModifiermapEntry: raw Xlib ownership and return codes.
42pub fn insert_modifiermap_entry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap {
43 return C.XInsertModifiermapEntry(modmap, keycode_entry, modifier)
44}
45
46fn C.XNewModifiermap(max_keys_per_mod i32) &XModifierKeymap
47
48// XNewModifiermap: raw Xlib ownership and return codes.
49pub fn new_modifiermap(max_keys_per_mod i32) &XModifierKeymap {
50 return C.XNewModifiermap(max_keys_per_mod)
51}
52
53fn C.XCreateImage(display &Display, visual &Visual, depth u32, format i32, offset i32, data &char, width u32, height u32, bitmap_pad i32, bytes_per_line i32) &XImage
54
55// XCreateImage: raw Xlib ownership and return codes.
56pub fn create_image(display &Display, visual &Visual, depth u32, format i32, offset i32, data &char, width u32, height u32, bitmap_pad i32, bytes_per_line i32) &XImage {
57 return C.XCreateImage(display, visual, depth, format, offset, data, width, height, bitmap_pad, bytes_per_line)
58}
59
60fn C.XInitImage(image &XImage) i32
61
62// XInitImage: raw Xlib ownership and return codes.
63pub fn init_image(image &XImage) i32 {
64 return C.XInitImage(image)
65}
66
67fn C.XGetImage(display &Display, d Drawable, x i32, y i32, width u32, height u32, plane_mask CULong, format i32) &XImage
68
69// XGetImage: raw Xlib ownership and return codes.
70pub fn get_image(display &Display, d Drawable, x i32, y i32, width u32, height u32, plane_mask CULong, format i32) &XImage {
71 return C.XGetImage(display, d, x, y, width, height, plane_mask, format)
72}
73
74fn C.XGetSubImage(display &Display, d Drawable, x i32, y i32, width u32, height u32, plane_mask CULong, format i32, dest_image &XImage, dest_x i32, dest_y i32) &XImage
75
76// XGetSubImage: raw Xlib ownership and return codes.
77pub fn get_sub_image(display &Display, d Drawable, x i32, y i32, width u32, height u32, plane_mask CULong, format i32, dest_image &XImage, dest_x i32, dest_y i32) &XImage {
78 return C.XGetSubImage(display, d, x, y, width, height, plane_mask, format, dest_image, dest_x, dest_y)
79}
80
81fn C.XOpenDisplay(display_name &char) &Display
82
83// XOpenDisplay: raw Xlib ownership and return codes.
84pub fn open_display(display_name &char) &Display {
85 return C.XOpenDisplay(display_name)
86}
87
88fn C.XrmInitialize()
89
90// XrmInitialize: raw Xlib ownership and return codes.
91pub fn xrm_initialize() {
92 C.XrmInitialize()
93}
94
95fn C.XFetchBytes(display &Display, nbytes_return &i32) &char
96
97// XFetchBytes: raw Xlib ownership and return codes.
98pub fn fetch_bytes(display &Display, nbytes_return &i32) &char {
99 return C.XFetchBytes(display, nbytes_return)
100}
101
102fn C.XFetchBuffer(display &Display, nbytes_return &i32, buffer i32) &char
103
104// XFetchBuffer: raw Xlib ownership and return codes.
105pub fn fetch_buffer(display &Display, nbytes_return &i32, buffer i32) &char {
106 return C.XFetchBuffer(display, nbytes_return, buffer)
107}
108
109fn C.XGetAtomName(display &Display, atom Atom) &char
110
111// XGetAtomName: raw Xlib ownership and return codes.
112pub fn get_atom_name(display &Display, atom Atom) &char {
113 return C.XGetAtomName(display, atom)
114}
115
116fn C.XGetAtomNames(dpy &Display, atoms &Atom, count i32, names_return &&char) i32
117
118// XGetAtomNames: raw Xlib ownership and return codes.
119pub fn get_atom_names(dpy &Display, atoms &Atom, count i32, names_return &&char) i32 {
120 return C.XGetAtomNames(dpy, atoms, count, names_return)
121}
122
123fn C.XGetDefault(display &Display, program &char, option &char) &char
124
125// XGetDefault: raw Xlib ownership and return codes.
126pub fn get_default(display &Display, program &char, option &char) &char {
127 return C.XGetDefault(display, program, option)
128}
129
130fn C.XDisplayName(string_arg &char) &char
131
132// XDisplayName: raw Xlib ownership and return codes.
133pub fn display_name(string_arg &char) &char {
134 return C.XDisplayName(string_arg)
135}
136
137fn C.XKeysymToString(keysym KeySym) &char
138
139// XKeysymToString: raw Xlib ownership and return codes.
140pub fn keysym_to_string(keysym KeySym) &char {
141 return C.XKeysymToString(keysym)
142}
143
144fn C.vx11_XSynchronize(display &Display, onoff i32) voidptr
145
146// XSynchronize: raw Xlib ownership and return codes.
147pub fn synchronize(display &Display, onoff i32) fn (&Display) i32 {
148 return AfterFunction(C.vx11_XSynchronize(display, onoff))
149}
150
151fn C.vx11_XSetAfterFunction(display &Display, arg1 voidptr) voidptr
152
153// XSetAfterFunction: raw Xlib ownership and return codes.
154pub fn set_after_function(display &Display, arg1 fn (&Display) i32) fn (&Display) i32 {
155 return AfterFunction(C.vx11_XSetAfterFunction(display, voidptr(arg1)))
156}
157
158fn C.XInternAtom(display &Display, atom_name &char, only_if_exists i32) Atom
159
160// XInternAtom: raw Xlib ownership and return codes.
161pub fn intern_atom(display &Display, atom_name &char, only_if_exists i32) Atom {
162 return C.XInternAtom(display, atom_name, only_if_exists)
163}
164
165fn C.XInternAtoms(dpy &Display, names &&char, count i32, only_if_exists i32, atoms_return &Atom) i32
166
167// XInternAtoms: raw Xlib ownership and return codes.
168pub fn intern_atoms(dpy &Display, names &&char, count i32, only_if_exists i32, atoms_return &Atom) i32 {
169 return C.XInternAtoms(dpy, names, count, only_if_exists, atoms_return)
170}
171
172fn C.XCopyColormapAndFree(display &Display, colormap Colormap) Colormap
173
174// XCopyColormapAndFree: raw Xlib ownership and return codes.
175pub fn copy_colormap_and_free(display &Display, colormap Colormap) Colormap {
176 return C.XCopyColormapAndFree(display, colormap)
177}
178
179fn C.XCreateColormap(display &Display, w Window, visual &Visual, alloc i32) Colormap
180
181// XCreateColormap: raw Xlib ownership and return codes.
182pub fn create_colormap(display &Display, w Window, visual &Visual, alloc i32) Colormap {
183 return C.XCreateColormap(display, w, visual, alloc)
184}
185
186fn C.XCreatePixmapCursor(display &Display, source Pixmap, mask Pixmap, foreground_color &XColor, background_color &XColor, x u32, y u32) Cursor
187
188// XCreatePixmapCursor: raw Xlib ownership and return codes.
189pub fn create_pixmap_cursor(display &Display, source Pixmap, mask Pixmap, foreground_color &XColor, background_color &XColor, x u32, y u32) Cursor {
190 return C.XCreatePixmapCursor(display, source, mask, foreground_color, background_color, x, y)
191}
192
193fn C.XCreateGlyphCursor(display &Display, source_font Font, mask_font Font, source_char u32, mask_char u32, foreground_color &XColor, background_color &XColor) Cursor
194
195// XCreateGlyphCursor: raw Xlib ownership and return codes.
196pub fn create_glyph_cursor(display &Display, source_font Font, mask_font Font, source_char u32, mask_char u32, foreground_color &XColor, background_color &XColor) Cursor {
197 return C.XCreateGlyphCursor(display, source_font, mask_font, source_char, mask_char, foreground_color, background_color)
198}
199
200fn C.XCreateFontCursor(display &Display, shape u32) Cursor
201
202// XCreateFontCursor: raw Xlib ownership and return codes.
203pub fn create_font_cursor(display &Display, shape u32) Cursor {
204 return C.XCreateFontCursor(display, shape)
205}
206
207fn C.XLoadFont(display &Display, name &char) Font
208
209// XLoadFont: raw Xlib ownership and return codes.
210pub fn load_font(display &Display, name &char) Font {
211 return C.XLoadFont(display, name)
212}
213
214fn C.XCreateGC(display &Display, d Drawable, valuemask CULong, values &XGCValues) GC
215
216// XCreateGC: raw Xlib ownership and return codes.
217pub fn create_gc(display &Display, d Drawable, valuemask CULong, values &XGCValues) GC {
218 return C.XCreateGC(display, d, valuemask, values)
219}
220
221fn C.XGContextFromGC(gc GC) GContext
222
223// XGContextFromGC: raw Xlib ownership and return codes.
224pub fn g_context_from_gc(gc GC) GContext {
225 return C.XGContextFromGC(gc)
226}
227
228fn C.XFlushGC(display &Display, gc GC)
229
230// XFlushGC: raw Xlib ownership and return codes.
231pub fn flush_gc(display &Display, gc GC) {
232 C.XFlushGC(display, gc)
233}
234
235fn C.XCreatePixmap(display &Display, d Drawable, width u32, height u32, depth u32) Pixmap
236
237// XCreatePixmap: raw Xlib ownership and return codes.
238pub fn create_pixmap(display &Display, d Drawable, width u32, height u32, depth u32) Pixmap {
239 return C.XCreatePixmap(display, d, width, height, depth)
240}
241
242fn C.XCreateBitmapFromData(display &Display, d Drawable, data &char, width u32, height u32) Pixmap
243
244// XCreateBitmapFromData: raw Xlib ownership and return codes.
245pub fn create_bitmap_from_data(display &Display, d Drawable, data &char, width u32, height u32) Pixmap {
246 return C.XCreateBitmapFromData(display, d, data, width, height)
247}
248
249fn C.XCreatePixmapFromBitmapData(display &Display, d Drawable, data &char, width u32, height u32, fg CULong, bg CULong, depth u32) Pixmap
250
251// XCreatePixmapFromBitmapData: raw Xlib ownership and return codes.
252pub fn create_pixmap_from_bitmap_data(display &Display, d Drawable, data &char, width u32, height u32, fg CULong, bg CULong, depth u32) Pixmap {
253 return C.XCreatePixmapFromBitmapData(display, d, data, width, height, fg, bg, depth)
254}
255
256fn C.XCreateSimpleWindow(display &Display, parent Window, x i32, y i32, width u32, height u32, border_width u32, border CULong, background CULong) Window
257
258// XCreateSimpleWindow: raw Xlib ownership and return codes.
259pub fn create_simple_window(display &Display, parent Window, x i32, y i32, width u32, height u32, border_width u32, border CULong, background CULong) Window {
260 return C.XCreateSimpleWindow(display, parent, x, y, width, height, border_width, border, background)
261}
262
263fn C.XGetSelectionOwner(display &Display, selection Atom) Window
264
265// XGetSelectionOwner: raw Xlib ownership and return codes.
266pub fn get_selection_owner(display &Display, selection Atom) Window {
267 return C.XGetSelectionOwner(display, selection)
268}
269
270fn C.XCreateWindow(display &Display, parent Window, x i32, y i32, width u32, height u32, border_width u32, depth i32, class u32, visual &Visual, valuemask CULong, attributes &XSetWindowAttributes) Window
271
272// XCreateWindow: raw Xlib ownership and return codes.
273pub fn create_window(display &Display, parent Window, x i32, y i32, width u32, height u32, border_width u32, depth i32, class u32, visual &Visual, valuemask CULong, attributes &XSetWindowAttributes) Window {
274 return C.XCreateWindow(display, parent, x, y, width, height, border_width, depth, class, visual, valuemask, attributes)
275}
276
277fn C.XListInstalledColormaps(display &Display, w Window, num_return &i32) &Colormap
278
279// XListInstalledColormaps: raw Xlib ownership and return codes.
280pub fn list_installed_colormaps(display &Display, w Window, num_return &i32) &Colormap {
281 return C.XListInstalledColormaps(display, w, num_return)
282}
283
284fn C.XListFonts(display &Display, pattern &char, maxnames i32, actual_count_return &i32) &&char
285
286// XListFonts: raw Xlib ownership and return codes.
287pub fn list_fonts(display &Display, pattern &char, maxnames i32, actual_count_return &i32) &&char {
288 return C.XListFonts(display, pattern, maxnames, actual_count_return)
289}
290
291fn C.XListFontsWithInfo(display &Display, pattern &char, maxnames i32, count_return &i32, info_return &&XFontStruct) &&char
292
293// XListFontsWithInfo: raw Xlib ownership and return codes.
294pub fn list_fonts_with_info(display &Display, pattern &char, maxnames i32, count_return &i32, info_return &&XFontStruct) &&char {
295 return C.XListFontsWithInfo(display, pattern, maxnames, count_return, info_return)
296}
297
298fn C.XGetFontPath(display &Display, npaths_return &i32) &&char
299
300// XGetFontPath: raw Xlib ownership and return codes.
301pub fn get_font_path(display &Display, npaths_return &i32) &&char {
302 return C.XGetFontPath(display, npaths_return)
303}
304
305fn C.XListExtensions(display &Display, nextensions_return &i32) &&char
306
307// XListExtensions: raw Xlib ownership and return codes.
308pub fn list_extensions(display &Display, nextensions_return &i32) &&char {
309 return C.XListExtensions(display, nextensions_return)
310}
311
312fn C.XListProperties(display &Display, w Window, num_prop_return &i32) &Atom
313
314// XListProperties: raw Xlib ownership and return codes.
315pub fn list_properties(display &Display, w Window, num_prop_return &i32) &Atom {
316 return C.XListProperties(display, w, num_prop_return)
317}
318
319fn C.XListHosts(display &Display, nhosts_return &i32, state_return &i32) &XHostAddress
320
321// XListHosts: raw Xlib ownership and return codes.
322pub fn list_hosts(display &Display, nhosts_return &i32, state_return &i32) &XHostAddress {
323 return C.XListHosts(display, nhosts_return, state_return)
324}
325
326fn C.XKeycodeToKeysym(display &Display, keycode KeyCode, index i32) KeySym
327
328// XKeycodeToKeysym: raw Xlib ownership and return codes.
329pub fn keycode_to_keysym(display &Display, keycode KeyCode, index i32) KeySym {
330 return C.XKeycodeToKeysym(display, keycode, index)
331}
332
333fn C.XLookupKeysym(key_event &XKeyEvent, index i32) KeySym
334
335// XLookupKeysym: raw Xlib ownership and return codes.
336pub fn lookup_keysym(key_event &XKeyEvent, index i32) KeySym {
337 return C.XLookupKeysym(key_event, index)
338}
339
340fn C.XGetKeyboardMapping(display &Display, first_keycode KeyCode, keycode_count i32, keysyms_per_keycode_return &i32) &KeySym
341
342// XGetKeyboardMapping: raw Xlib ownership and return codes.
343pub fn get_keyboard_mapping(display &Display, first_keycode KeyCode, keycode_count i32, keysyms_per_keycode_return &i32) &KeySym {
344 return C.XGetKeyboardMapping(display, first_keycode, keycode_count, keysyms_per_keycode_return)
345}
346
347fn C.XStringToKeysym(string_arg &char) KeySym
348
349// XStringToKeysym: raw Xlib ownership and return codes.
350pub fn string_to_keysym(string_arg &char) KeySym {
351 return C.XStringToKeysym(string_arg)
352}
353
354fn C.XMaxRequestSize(display &Display) CLong
355
356// XMaxRequestSize: raw Xlib ownership and return codes.
357pub fn max_request_size(display &Display) CLong {
358 return C.XMaxRequestSize(display)
359}
360
361fn C.XExtendedMaxRequestSize(display &Display) CLong
362
363// XExtendedMaxRequestSize: raw Xlib ownership and return codes.
364pub fn extended_max_request_size(display &Display) CLong {
365 return C.XExtendedMaxRequestSize(display)
366}
367
368fn C.XResourceManagerString(display &Display) &char
369
370// XResourceManagerString: raw Xlib ownership and return codes.
371pub fn resource_manager_string(display &Display) &char {
372 return C.XResourceManagerString(display)
373}
374
375fn C.XScreenResourceString(screen &Screen) &char
376
377// XScreenResourceString: raw Xlib ownership and return codes.
378pub fn screen_resource_string(screen &Screen) &char {
379 return C.XScreenResourceString(screen)
380}
381
382fn C.XDisplayMotionBufferSize(display &Display) CULong
383
384// XDisplayMotionBufferSize: raw Xlib ownership and return codes.
385pub fn display_motion_buffer_size(display &Display) CULong {
386 return C.XDisplayMotionBufferSize(display)
387}
388
389fn C.XVisualIDFromVisual(visual &Visual) VisualID
390
391// XVisualIDFromVisual: raw Xlib ownership and return codes.
392pub fn visual_id_from_visual(visual &Visual) VisualID {
393 return C.XVisualIDFromVisual(visual)
394}
395
396fn C.XInitThreads() i32
397
398// XInitThreads: raw Xlib ownership and return codes.
399pub fn init_threads() i32 {
400 return C.XInitThreads()
401}
402
403fn C.XFreeThreads() i32
404
405// XFreeThreads: raw Xlib ownership and return codes.
406pub fn free_threads() i32 {
407 return C.XFreeThreads()
408}
409
410fn C.XLockDisplay(display &Display)
411
412// XLockDisplay: raw Xlib ownership and return codes.
413pub fn lock_display(display &Display) {
414 C.XLockDisplay(display)
415}
416
417fn C.XUnlockDisplay(display &Display)
418
419// XUnlockDisplay: raw Xlib ownership and return codes.
420pub fn unlock_display(display &Display) {
421 C.XUnlockDisplay(display)
422}
423
424fn C.XInitExtension(display &Display, name &char) &XExtCodes
425
426// XInitExtension: raw Xlib ownership and return codes.
427pub fn init_extension(display &Display, name &char) &XExtCodes {
428 return C.XInitExtension(display, name)
429}
430
431fn C.XAddExtension(display &Display) &XExtCodes
432
433// XAddExtension: raw Xlib ownership and return codes.
434pub fn add_extension(display &Display) &XExtCodes {
435 return C.XAddExtension(display)
436}
437
438fn C.XFindOnExtensionList(structure &&XExtData, number i32) &XExtData
439
440// XFindOnExtensionList: raw Xlib ownership and return codes.
441pub fn find_on_extension_list(structure &&XExtData, number i32) &XExtData {
442 return C.XFindOnExtensionList(structure, number)
443}
444
445fn C.XEHeadOfExtensionList(object XEDataObject) &&XExtData
446
447// XEHeadOfExtensionList: raw Xlib ownership and return codes.
448pub fn e_head_of_extension_list(object XEDataObject) &&XExtData {
449 return C.XEHeadOfExtensionList(object)
450}
451
452fn C.XRootWindow(display &Display, screen_number i32) Window
453
454// XRootWindow: raw Xlib ownership and return codes.
455pub fn root_window(display &Display, screen_number i32) Window {
456 return C.XRootWindow(display, screen_number)
457}
458
459fn C.XDefaultRootWindow(display &Display) Window
460
461// XDefaultRootWindow: raw Xlib ownership and return codes.
462pub fn default_root_window(display &Display) Window {
463 return C.XDefaultRootWindow(display)
464}
465
466fn C.XRootWindowOfScreen(screen &Screen) Window
467
468// XRootWindowOfScreen: raw Xlib ownership and return codes.
469pub fn root_window_of_screen(screen &Screen) Window {
470 return C.XRootWindowOfScreen(screen)
471}
472
473fn C.XDefaultVisual(display &Display, screen_number i32) &Visual
474
475// XDefaultVisual: raw Xlib ownership and return codes.
476pub fn default_visual(display &Display, screen_number i32) &Visual {
477 return C.XDefaultVisual(display, screen_number)
478}
479
480fn C.XDefaultVisualOfScreen(screen &Screen) &Visual
481
482// XDefaultVisualOfScreen: raw Xlib ownership and return codes.
483pub fn default_visual_of_screen(screen &Screen) &Visual {
484 return C.XDefaultVisualOfScreen(screen)
485}
486
487fn C.XDefaultGC(display &Display, screen_number i32) GC
488
489// XDefaultGC: raw Xlib ownership and return codes.
490pub fn default_gc(display &Display, screen_number i32) GC {
491 return C.XDefaultGC(display, screen_number)
492}
493
494fn C.XDefaultGCOfScreen(screen &Screen) GC
495
496// XDefaultGCOfScreen: raw Xlib ownership and return codes.
497pub fn default_gc_of_screen(screen &Screen) GC {
498 return C.XDefaultGCOfScreen(screen)
499}
500
501fn C.XBlackPixel(display &Display, screen_number i32) CULong
502
503// XBlackPixel: raw Xlib ownership and return codes.
504pub fn black_pixel(display &Display, screen_number i32) CULong {
505 return C.XBlackPixel(display, screen_number)
506}
507
508fn C.XWhitePixel(display &Display, screen_number i32) CULong
509
510// XWhitePixel: raw Xlib ownership and return codes.
511pub fn white_pixel(display &Display, screen_number i32) CULong {
512 return C.XWhitePixel(display, screen_number)
513}
514
515fn C.XAllPlanes() CULong
516
517// XAllPlanes: raw Xlib ownership and return codes.
518pub fn all_planes() CULong {
519 return C.XAllPlanes()
520}
521
522fn C.XBlackPixelOfScreen(screen &Screen) CULong
523
524// XBlackPixelOfScreen: raw Xlib ownership and return codes.
525pub fn black_pixel_of_screen(screen &Screen) CULong {
526 return C.XBlackPixelOfScreen(screen)
527}
528
529fn C.XWhitePixelOfScreen(screen &Screen) CULong
530
531// XWhitePixelOfScreen: raw Xlib ownership and return codes.
532pub fn white_pixel_of_screen(screen &Screen) CULong {
533 return C.XWhitePixelOfScreen(screen)
534}
535
536fn C.XNextRequest(display &Display) CULong
537
538// XNextRequest: raw Xlib ownership and return codes.
539pub fn next_request(display &Display) CULong {
540 return C.XNextRequest(display)
541}
542
543fn C.XLastKnownRequestProcessed(display &Display) CULong
544
545// XLastKnownRequestProcessed: raw Xlib ownership and return codes.
546pub fn last_known_request_processed(display &Display) CULong {
547 return C.XLastKnownRequestProcessed(display)
548}
549
550fn C.XServerVendor(display &Display) &char
551
552// XServerVendor: raw Xlib ownership and return codes.
553pub fn server_vendor(display &Display) &char {
554 return C.XServerVendor(display)
555}
556
557fn C.XDisplayString(display &Display) &char
558
559// XDisplayString: raw Xlib ownership and return codes.
560pub fn display_string(display &Display) &char {
561 return C.XDisplayString(display)
562}
563
564fn C.XDefaultColormap(display &Display, screen_number i32) Colormap
565
566// XDefaultColormap: raw Xlib ownership and return codes.
567pub fn default_colormap(display &Display, screen_number i32) Colormap {
568 return C.XDefaultColormap(display, screen_number)
569}
570
571fn C.XDefaultColormapOfScreen(screen &Screen) Colormap
572
573// XDefaultColormapOfScreen: raw Xlib ownership and return codes.
574pub fn default_colormap_of_screen(screen &Screen) Colormap {
575 return C.XDefaultColormapOfScreen(screen)
576}
577
578fn C.XDisplayOfScreen(screen &Screen) &Display
579
580// XDisplayOfScreen: raw Xlib ownership and return codes.
581pub fn display_of_screen(screen &Screen) &Display {
582 return C.XDisplayOfScreen(screen)
583}
584
585fn C.XScreenOfDisplay(display &Display, screen_number i32) &Screen
586
587// XScreenOfDisplay: raw Xlib ownership and return codes.
588pub fn screen_of_display(display &Display, screen_number i32) &Screen {
589 return C.XScreenOfDisplay(display, screen_number)
590}
591
592fn C.XDefaultScreenOfDisplay(display &Display) &Screen
593
594// XDefaultScreenOfDisplay: raw Xlib ownership and return codes.
595pub fn default_screen_of_display(display &Display) &Screen {
596 return C.XDefaultScreenOfDisplay(display)
597}
598
599fn C.XEventMaskOfScreen(screen &Screen) CLong
600
601// XEventMaskOfScreen: raw Xlib ownership and return codes.
602pub fn event_mask_of_screen(screen &Screen) CLong {
603 return C.XEventMaskOfScreen(screen)
604}
605
606fn C.XScreenNumberOfScreen(screen &Screen) i32
607
608// XScreenNumberOfScreen: raw Xlib ownership and return codes.
609pub fn screen_number_of_screen(screen &Screen) i32 {
610 return C.XScreenNumberOfScreen(screen)
611}
612
613fn C.vx11_XSetErrorHandler(handler voidptr) voidptr
614
615// XSetErrorHandler: raw Xlib ownership and return codes.
616pub fn set_error_handler(handler XErrorHandler) XErrorHandler {
617 return XErrorHandler(C.vx11_XSetErrorHandler(voidptr(handler)))
618}
619
620fn C.vx11_XSetIOErrorHandler(handler voidptr) voidptr
621
622// XSetIOErrorHandler: raw Xlib ownership and return codes.
623pub fn set_io_error_handler(handler XIOErrorHandler) XIOErrorHandler {
624 return XIOErrorHandler(C.vx11_XSetIOErrorHandler(voidptr(handler)))
625}
626
627fn C.vx11_XSetIOErrorExitHandler(arg0 &Display, display voidptr, user_data voidptr)
628
629// XSetIOErrorExitHandler: raw Xlib ownership and return codes.
630pub fn set_io_error_exit_handler(arg0 &Display, display XIOErrorExitHandler, user_data voidptr) {
631 C.vx11_XSetIOErrorExitHandler(arg0, voidptr(display), user_data)
632}
633
634fn C.XListPixmapFormats(display &Display, count_return &i32) &XPixmapFormatValues
635
636// XListPixmapFormats: raw Xlib ownership and return codes.
637pub fn list_pixmap_formats(display &Display, count_return &i32) &XPixmapFormatValues {
638 return C.XListPixmapFormats(display, count_return)
639}
640
641fn C.XListDepths(display &Display, screen_number i32, count_return &i32) &i32
642
643// XListDepths: raw Xlib ownership and return codes.
644pub fn list_depths(display &Display, screen_number i32, count_return &i32) &i32 {
645 return C.XListDepths(display, screen_number, count_return)
646}
647
648fn C.XReconfigureWMWindow(display &Display, w Window, screen_number i32, mask u32, changes &XWindowChanges) i32
649
650// XReconfigureWMWindow: raw Xlib ownership and return codes.
651pub fn reconfigure_wm_window(display &Display, w Window, screen_number i32, mask u32, changes &XWindowChanges) i32 {
652 return C.XReconfigureWMWindow(display, w, screen_number, mask, changes)
653}
654
655fn C.XGetWMProtocols(display &Display, w Window, protocols_return &&Atom, count_return &i32) i32
656
657// XGetWMProtocols: raw Xlib ownership and return codes.
658pub fn get_wm_protocols(display &Display, w Window, protocols_return &&Atom, count_return &i32) i32 {
659 return C.XGetWMProtocols(display, w, protocols_return, count_return)
660}
661
662fn C.XSetWMProtocols(display &Display, w Window, protocols &Atom, count i32) i32
663
664// XSetWMProtocols: raw Xlib ownership and return codes.
665pub fn set_wm_protocols(display &Display, w Window, protocols &Atom, count i32) i32 {
666 return C.XSetWMProtocols(display, w, protocols, count)
667}
668
669fn C.XIconifyWindow(display &Display, w Window, screen_number i32) i32
670
671// XIconifyWindow: raw Xlib ownership and return codes.
672pub fn iconify_window(display &Display, w Window, screen_number i32) i32 {
673 return C.XIconifyWindow(display, w, screen_number)
674}
675
676fn C.XWithdrawWindow(display &Display, w Window, screen_number i32) i32
677
678// XWithdrawWindow: raw Xlib ownership and return codes.
679pub fn withdraw_window(display &Display, w Window, screen_number i32) i32 {
680 return C.XWithdrawWindow(display, w, screen_number)
681}
682
683fn C.XGetCommand(display &Display, w Window, argv_return &&&char, argc_return &i32) i32
684
685// XGetCommand: raw Xlib ownership and return codes.
686pub fn get_command(display &Display, w Window, argv_return &&&char, argc_return &i32) i32 {
687 return C.XGetCommand(display, w, argv_return, argc_return)
688}
689
690fn C.XGetWMColormapWindows(display &Display, w Window, windows_return &&Window, count_return &i32) i32
691
692// XGetWMColormapWindows: raw Xlib ownership and return codes.
693pub fn get_wm_colormap_windows(display &Display, w Window, windows_return &&Window, count_return &i32) i32 {
694 return C.XGetWMColormapWindows(display, w, windows_return, count_return)
695}
696
697fn C.XSetWMColormapWindows(display &Display, w Window, colormap_windows &Window, count i32) i32
698
699// XSetWMColormapWindows: raw Xlib ownership and return codes.
700pub fn set_wm_colormap_windows(display &Display, w Window, colormap_windows &Window, count i32) i32 {
701 return C.XSetWMColormapWindows(display, w, colormap_windows, count)
702}
703
704fn C.XFreeStringList(list &&char)
705
706// XFreeStringList: raw Xlib ownership and return codes.
707pub fn free_string_list(list &&char) {
708 C.XFreeStringList(list)
709}
710
711fn C.XSetTransientForHint(display &Display, w Window, prop_window Window) i32
712
713// XSetTransientForHint: raw Xlib ownership and return codes.
714pub fn set_transient_for_hint(display &Display, w Window, prop_window Window) i32 {
715 return C.XSetTransientForHint(display, w, prop_window)
716}
717
718fn C.XActivateScreenSaver(display &Display) i32
719
720// XActivateScreenSaver: raw Xlib ownership and return codes.
721pub fn activate_screen_saver(display &Display) i32 {
722 return C.XActivateScreenSaver(display)
723}
724
725fn C.XAddHost(display &Display, host &XHostAddress) i32
726
727// XAddHost: raw Xlib ownership and return codes.
728pub fn add_host(display &Display, host &XHostAddress) i32 {
729 return C.XAddHost(display, host)
730}
731
732fn C.XAddHosts(display &Display, hosts &XHostAddress, num_hosts i32) i32
733
734// XAddHosts: raw Xlib ownership and return codes.
735pub fn add_hosts(display &Display, hosts &XHostAddress, num_hosts i32) i32 {
736 return C.XAddHosts(display, hosts, num_hosts)
737}
738
739fn C.XAddToExtensionList(structure voidptr, ext_data &XExtData) i32
740
741// XAddToExtensionList: raw Xlib ownership and return codes.
742pub fn add_to_extension_list(structure voidptr, ext_data &XExtData) i32 {
743 return C.XAddToExtensionList(structure, ext_data)
744}
745
746fn C.XAddToSaveSet(display &Display, w Window) i32
747
748// XAddToSaveSet: raw Xlib ownership and return codes.
749pub fn add_to_save_set(display &Display, w Window) i32 {
750 return C.XAddToSaveSet(display, w)
751}
752
753fn C.XAllocColor(display &Display, colormap Colormap, screen_in_out &XColor) i32
754
755// XAllocColor: raw Xlib ownership and return codes.
756pub fn alloc_color(display &Display, colormap Colormap, screen_in_out &XColor) i32 {
757 return C.XAllocColor(display, colormap, screen_in_out)
758}
759
760fn C.XAllocColorCells(display &Display, colormap Colormap, contig i32, plane_masks_return &CULong, nplanes u32, pixels_return &CULong, npixels u32) i32
761
762// XAllocColorCells: raw Xlib ownership and return codes.
763pub fn alloc_color_cells(display &Display, colormap Colormap, contig i32, plane_masks_return &CULong, nplanes u32, pixels_return &CULong, npixels u32) i32 {
764 return C.XAllocColorCells(display, colormap, contig, plane_masks_return, nplanes, pixels_return, npixels)
765}
766
767fn C.XAllocColorPlanes(display &Display, colormap Colormap, contig i32, pixels_return &CULong, ncolors i32, nreds i32, ngreens i32, nblues i32, rmask_return &CULong, gmask_return &CULong, bmask_return &CULong) i32
768
769// XAllocColorPlanes: raw Xlib ownership and return codes.
770pub fn alloc_color_planes(display &Display, colormap Colormap, contig i32, pixels_return &CULong, ncolors i32, nreds i32, ngreens i32, nblues i32, rmask_return &CULong, gmask_return &CULong, bmask_return &CULong) i32 {
771 return C.XAllocColorPlanes(display, colormap, contig, pixels_return, ncolors, nreds, ngreens, nblues, rmask_return, gmask_return, bmask_return)
772}
773
774fn C.XAllocNamedColor(display &Display, colormap Colormap, color_name &char, screen_def_return &XColor, exact_def_return &XColor) i32
775
776// XAllocNamedColor: raw Xlib ownership and return codes.
777pub fn alloc_named_color(display &Display, colormap Colormap, color_name &char, screen_def_return &XColor, exact_def_return &XColor) i32 {
778 return C.XAllocNamedColor(display, colormap, color_name, screen_def_return, exact_def_return)
779}
780
781fn C.XAllowEvents(display &Display, event_mode i32, time Time) i32
782
783// XAllowEvents: raw Xlib ownership and return codes.
784pub fn allow_events(display &Display, event_mode i32, time Time) i32 {
785 return C.XAllowEvents(display, event_mode, time)
786}
787
788fn C.XAutoRepeatOff(display &Display) i32
789
790// XAutoRepeatOff: raw Xlib ownership and return codes.
791pub fn auto_repeat_off(display &Display) i32 {
792 return C.XAutoRepeatOff(display)
793}
794
795fn C.XAutoRepeatOn(display &Display) i32
796
797// XAutoRepeatOn: raw Xlib ownership and return codes.
798pub fn auto_repeat_on(display &Display) i32 {
799 return C.XAutoRepeatOn(display)
800}
801
802fn C.XBell(display &Display, percent i32) i32
803
804// XBell: raw Xlib ownership and return codes.
805pub fn bell(display &Display, percent i32) i32 {
806 return C.XBell(display, percent)
807}
808
809fn C.XBitmapBitOrder(display &Display) i32
810
811// XBitmapBitOrder: raw Xlib ownership and return codes.
812pub fn bitmap_bit_order(display &Display) i32 {
813 return C.XBitmapBitOrder(display)
814}
815
816fn C.XBitmapPad(display &Display) i32
817
818// XBitmapPad: raw Xlib ownership and return codes.
819pub fn bitmap_pad(display &Display) i32 {
820 return C.XBitmapPad(display)
821}
822
823fn C.XBitmapUnit(display &Display) i32
824
825// XBitmapUnit: raw Xlib ownership and return codes.
826pub fn bitmap_unit(display &Display) i32 {
827 return C.XBitmapUnit(display)
828}
829
830fn C.XCellsOfScreen(screen &Screen) i32
831
832// XCellsOfScreen: raw Xlib ownership and return codes.
833pub fn cells_of_screen(screen &Screen) i32 {
834 return C.XCellsOfScreen(screen)
835}
836
837fn C.XChangeActivePointerGrab(display &Display, event_mask u32, cursor Cursor, time Time) i32
838
839// XChangeActivePointerGrab: raw Xlib ownership and return codes.
840pub fn change_active_pointer_grab(display &Display, event_mask u32, cursor Cursor, time Time) i32 {
841 return C.XChangeActivePointerGrab(display, event_mask, cursor, time)
842}
843
844fn C.XChangeGC(display &Display, gc GC, valuemask CULong, values &XGCValues) i32
845
846// XChangeGC: raw Xlib ownership and return codes.
847pub fn change_gc(display &Display, gc GC, valuemask CULong, values &XGCValues) i32 {
848 return C.XChangeGC(display, gc, valuemask, values)
849}
850
851fn C.XChangeKeyboardControl(display &Display, value_mask CULong, values &XKeyboardControl) i32
852
853// XChangeKeyboardControl: raw Xlib ownership and return codes.
854pub fn change_keyboard_control(display &Display, value_mask CULong, values &XKeyboardControl) i32 {
855 return C.XChangeKeyboardControl(display, value_mask, values)
856}
857
858fn C.XChangeKeyboardMapping(display &Display, first_keycode i32, keysyms_per_keycode i32, keysyms &KeySym, num_codes i32) i32
859
860// XChangeKeyboardMapping: raw Xlib ownership and return codes.
861pub fn change_keyboard_mapping(display &Display, first_keycode i32, keysyms_per_keycode i32, keysyms &KeySym, num_codes i32) i32 {
862 return C.XChangeKeyboardMapping(display, first_keycode, keysyms_per_keycode, keysyms, num_codes)
863}
864
865fn C.XChangePointerControl(display &Display, do_accel i32, do_threshold i32, accel_numerator i32, accel_denominator i32, threshold i32) i32
866
867// XChangePointerControl: raw Xlib ownership and return codes.
868pub fn change_pointer_control(display &Display, do_accel i32, do_threshold i32, accel_numerator i32, accel_denominator i32, threshold i32) i32 {
869 return C.XChangePointerControl(display, do_accel, do_threshold, accel_numerator, accel_denominator, threshold)
870}
871
872fn C.XChangeProperty(display &Display, w Window, property Atom, @type Atom, format i32, mode i32, data &u8, nelements i32) i32
873
874// XChangeProperty: raw Xlib ownership and return codes.
875pub fn change_property(display &Display, w Window, property Atom, @type Atom, format i32, mode i32, data &u8, nelements i32) i32 {
876 return C.XChangeProperty(display, w, property, @type, format, mode, data, nelements)
877}
878
879fn C.XChangeSaveSet(display &Display, w Window, change_mode i32) i32
880
881// XChangeSaveSet: raw Xlib ownership and return codes.
882pub fn change_save_set(display &Display, w Window, change_mode i32) i32 {
883 return C.XChangeSaveSet(display, w, change_mode)
884}
885
886fn C.XChangeWindowAttributes(display &Display, w Window, valuemask CULong, attributes &XSetWindowAttributes) i32
887
888// XChangeWindowAttributes: raw Xlib ownership and return codes.
889pub fn change_window_attributes(display &Display, w Window, valuemask CULong, attributes &XSetWindowAttributes) i32 {
890 return C.XChangeWindowAttributes(display, w, valuemask, attributes)
891}
892
893fn C.vx11_XCheckIfEvent(display &Display, event_return &XEvent, arg2 voidptr, arg XPointer) i32
894
895// XCheckIfEvent: raw Xlib ownership and return codes.
896pub fn check_if_event(display &Display, event_return &XEvent, arg2 fn (&Display, &XEvent, XPointer) i32, arg XPointer) i32 {
897 return C.vx11_XCheckIfEvent(display, event_return, voidptr(arg2), arg)
898}
899
900fn C.XCheckMaskEvent(display &Display, event_mask CLong, event_return &XEvent) i32
901
902// XCheckMaskEvent: raw Xlib ownership and return codes.
903pub fn check_mask_event(display &Display, event_mask CLong, event_return &XEvent) i32 {
904 return C.XCheckMaskEvent(display, event_mask, event_return)
905}
906
907fn C.XCheckTypedEvent(display &Display, event_type i32, event_return &XEvent) i32
908
909// XCheckTypedEvent: raw Xlib ownership and return codes.
910pub fn check_typed_event(display &Display, event_type i32, event_return &XEvent) i32 {
911 return C.XCheckTypedEvent(display, event_type, event_return)
912}
913
914fn C.XCheckTypedWindowEvent(display &Display, w Window, event_type i32, event_return &XEvent) i32
915
916// XCheckTypedWindowEvent: raw Xlib ownership and return codes.
917pub fn check_typed_window_event(display &Display, w Window, event_type i32, event_return &XEvent) i32 {
918 return C.XCheckTypedWindowEvent(display, w, event_type, event_return)
919}
920
921fn C.XCheckWindowEvent(display &Display, w Window, event_mask CLong, event_return &XEvent) i32
922
923// XCheckWindowEvent: raw Xlib ownership and return codes.
924pub fn check_window_event(display &Display, w Window, event_mask CLong, event_return &XEvent) i32 {
925 return C.XCheckWindowEvent(display, w, event_mask, event_return)
926}
927
928fn C.XCirculateSubwindows(display &Display, w Window, direction i32) i32
929
930// XCirculateSubwindows: raw Xlib ownership and return codes.
931pub fn circulate_subwindows(display &Display, w Window, direction i32) i32 {
932 return C.XCirculateSubwindows(display, w, direction)
933}
934
935fn C.XCirculateSubwindowsDown(display &Display, w Window) i32
936
937// XCirculateSubwindowsDown: raw Xlib ownership and return codes.
938pub fn circulate_subwindows_down(display &Display, w Window) i32 {
939 return C.XCirculateSubwindowsDown(display, w)
940}
941
942fn C.XCirculateSubwindowsUp(display &Display, w Window) i32
943
944// XCirculateSubwindowsUp: raw Xlib ownership and return codes.
945pub fn circulate_subwindows_up(display &Display, w Window) i32 {
946 return C.XCirculateSubwindowsUp(display, w)
947}
948
949fn C.XClearArea(display &Display, w Window, x i32, y i32, width u32, height u32, exposures i32) i32
950
951// XClearArea: raw Xlib ownership and return codes.
952pub fn clear_area(display &Display, w Window, x i32, y i32, width u32, height u32, exposures i32) i32 {
953 return C.XClearArea(display, w, x, y, width, height, exposures)
954}
955
956fn C.XClearWindow(display &Display, w Window) i32
957
958// XClearWindow: raw Xlib ownership and return codes.
959pub fn clear_window(display &Display, w Window) i32 {
960 return C.XClearWindow(display, w)
961}
962
963fn C.XCloseDisplay(display &Display) i32
964
965// XCloseDisplay: raw Xlib ownership and return codes.
966pub fn close_display(display &Display) i32 {
967 return C.XCloseDisplay(display)
968}
969
970fn C.XConfigureWindow(display &Display, w Window, value_mask u32, values &XWindowChanges) i32
971
972// XConfigureWindow: raw Xlib ownership and return codes.
973pub fn configure_window(display &Display, w Window, value_mask u32, values &XWindowChanges) i32 {
974 return C.XConfigureWindow(display, w, value_mask, values)
975}
976
977fn C.XConnectionNumber(display &Display) i32
978
979// XConnectionNumber: raw Xlib ownership and return codes.
980pub fn connection_number(display &Display) i32 {
981 return C.XConnectionNumber(display)
982}
983
984fn C.XConvertSelection(display &Display, selection Atom, target Atom, property Atom, requestor Window, time Time) i32
985
986// XConvertSelection: raw Xlib ownership and return codes.
987pub fn convert_selection(display &Display, selection Atom, target Atom, property Atom, requestor Window, time Time) i32 {
988 return C.XConvertSelection(display, selection, target, property, requestor, time)
989}
990
991fn C.XCopyArea(display &Display, src Drawable, dest Drawable, gc GC, src_x i32, src_y i32, width u32, height u32, dest_x i32, dest_y i32) i32
992
993// XCopyArea: raw Xlib ownership and return codes.
994pub fn copy_area(display &Display, src Drawable, dest Drawable, gc GC, src_x i32, src_y i32, width u32, height u32, dest_x i32, dest_y i32) i32 {
995 return C.XCopyArea(display, src, dest, gc, src_x, src_y, width, height, dest_x, dest_y)
996}
997
998fn C.XCopyGC(display &Display, src GC, valuemask CULong, dest GC) i32
999
1000// XCopyGC: raw Xlib ownership and return codes.
1001pub fn copy_gc(display &Display, src GC, valuemask CULong, dest GC) i32 {
1002 return C.XCopyGC(display, src, valuemask, dest)
1003}
1004
1005fn C.XCopyPlane(display &Display, src Drawable, dest Drawable, gc GC, src_x i32, src_y i32, width u32, height u32, dest_x i32, dest_y i32, plane CULong) i32
1006
1007// XCopyPlane: raw Xlib ownership and return codes.
1008pub fn copy_plane(display &Display, src Drawable, dest Drawable, gc GC, src_x i32, src_y i32, width u32, height u32, dest_x i32, dest_y i32, plane CULong) i32 {
1009 return C.XCopyPlane(display, src, dest, gc, src_x, src_y, width, height, dest_x, dest_y, plane)
1010}
1011
1012fn C.XDefaultDepth(display &Display, screen_number i32) i32
1013
1014// XDefaultDepth: raw Xlib ownership and return codes.
1015pub fn default_depth(display &Display, screen_number i32) i32 {
1016 return C.XDefaultDepth(display, screen_number)
1017}
1018
1019fn C.XDefaultDepthOfScreen(screen &Screen) i32
1020
1021// XDefaultDepthOfScreen: raw Xlib ownership and return codes.
1022pub fn default_depth_of_screen(screen &Screen) i32 {
1023 return C.XDefaultDepthOfScreen(screen)
1024}
1025
1026fn C.XDefaultScreen(display &Display) i32
1027
1028// XDefaultScreen: raw Xlib ownership and return codes.
1029pub fn default_screen(display &Display) i32 {
1030 return C.XDefaultScreen(display)
1031}
1032
1033fn C.XDefineCursor(display &Display, w Window, cursor Cursor) i32
1034
1035// XDefineCursor: raw Xlib ownership and return codes.
1036pub fn define_cursor(display &Display, w Window, cursor Cursor) i32 {
1037 return C.XDefineCursor(display, w, cursor)
1038}
1039
1040fn C.XDeleteProperty(display &Display, w Window, property Atom) i32
1041
1042// XDeleteProperty: raw Xlib ownership and return codes.
1043pub fn delete_property(display &Display, w Window, property Atom) i32 {
1044 return C.XDeleteProperty(display, w, property)
1045}
1046
1047fn C.XDestroyWindow(display &Display, w Window) i32
1048
1049// XDestroyWindow: raw Xlib ownership and return codes.
1050pub fn destroy_window(display &Display, w Window) i32 {
1051 return C.XDestroyWindow(display, w)
1052}
1053
1054fn C.XDestroySubwindows(display &Display, w Window) i32
1055
1056// XDestroySubwindows: raw Xlib ownership and return codes.
1057pub fn destroy_subwindows(display &Display, w Window) i32 {
1058 return C.XDestroySubwindows(display, w)
1059}
1060
1061fn C.XDoesBackingStore(screen &Screen) i32
1062
1063// XDoesBackingStore: raw Xlib ownership and return codes.
1064pub fn does_backing_store(screen &Screen) i32 {
1065 return C.XDoesBackingStore(screen)
1066}
1067
1068fn C.XDoesSaveUnders(screen &Screen) i32
1069
1070// XDoesSaveUnders: raw Xlib ownership and return codes.
1071pub fn does_save_unders(screen &Screen) i32 {
1072 return C.XDoesSaveUnders(screen)
1073}
1074
1075fn C.XDisableAccessControl(display &Display) i32
1076
1077// XDisableAccessControl: raw Xlib ownership and return codes.
1078pub fn disable_access_control(display &Display) i32 {
1079 return C.XDisableAccessControl(display)
1080}
1081
1082fn C.XDisplayCells(display &Display, screen_number i32) i32
1083
1084// XDisplayCells: raw Xlib ownership and return codes.
1085pub fn display_cells(display &Display, screen_number i32) i32 {
1086 return C.XDisplayCells(display, screen_number)
1087}
1088
1089fn C.XDisplayHeight(display &Display, screen_number i32) i32
1090
1091// XDisplayHeight: raw Xlib ownership and return codes.
1092pub fn display_height(display &Display, screen_number i32) i32 {
1093 return C.XDisplayHeight(display, screen_number)
1094}
1095
1096fn C.XDisplayHeightMM(display &Display, screen_number i32) i32
1097
1098// XDisplayHeightMM: raw Xlib ownership and return codes.
1099pub fn display_height_mm(display &Display, screen_number i32) i32 {
1100 return C.XDisplayHeightMM(display, screen_number)
1101}
1102
1103fn C.XDisplayKeycodes(display &Display, min_keycodes_return &i32, max_keycodes_return &i32) i32
1104
1105// XDisplayKeycodes: raw Xlib ownership and return codes.
1106pub fn display_keycodes(display &Display, min_keycodes_return &i32, max_keycodes_return &i32) i32 {
1107 return C.XDisplayKeycodes(display, min_keycodes_return, max_keycodes_return)
1108}
1109
1110fn C.XDisplayPlanes(display &Display, screen_number i32) i32
1111
1112// XDisplayPlanes: raw Xlib ownership and return codes.
1113pub fn display_planes(display &Display, screen_number i32) i32 {
1114 return C.XDisplayPlanes(display, screen_number)
1115}
1116
1117fn C.XDisplayWidth(display &Display, screen_number i32) i32
1118
1119// XDisplayWidth: raw Xlib ownership and return codes.
1120pub fn display_width(display &Display, screen_number i32) i32 {
1121 return C.XDisplayWidth(display, screen_number)
1122}
1123
1124fn C.XDisplayWidthMM(display &Display, screen_number i32) i32
1125
1126// XDisplayWidthMM: raw Xlib ownership and return codes.
1127pub fn display_width_mm(display &Display, screen_number i32) i32 {
1128 return C.XDisplayWidthMM(display, screen_number)
1129}
1130
1131fn C.XDrawArc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32
1132
1133// XDrawArc: raw Xlib ownership and return codes.
1134pub fn draw_arc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32 {
1135 return C.XDrawArc(display, d, gc, x, y, width, height, angle1, angle2)
1136}
1137
1138fn C.XDrawArcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32
1139
1140// XDrawArcs: raw Xlib ownership and return codes.
1141pub fn draw_arcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32 {
1142 return C.XDrawArcs(display, d, gc, arcs, narcs)
1143}
1144
1145fn C.XDrawImageString(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32
1146
1147// XDrawImageString: raw Xlib ownership and return codes.
1148pub fn draw_image_string(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32 {
1149 return C.XDrawImageString(display, d, gc, x, y, string_arg, length)
1150}
1151
1152fn C.XDrawImageString16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32
1153
1154// XDrawImageString16: raw Xlib ownership and return codes.
1155pub fn draw_image_string16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32 {
1156 return C.XDrawImageString16(display, d, gc, x, y, string_arg, length)
1157}
1158
1159fn C.XDrawLine(display &Display, d Drawable, gc GC, x1 i32, y1 i32, x2 i32, y2 i32) i32
1160
1161// XDrawLine: raw Xlib ownership and return codes.
1162pub fn draw_line(display &Display, d Drawable, gc GC, x1 i32, y1 i32, x2 i32, y2 i32) i32 {
1163 return C.XDrawLine(display, d, gc, x1, y1, x2, y2)
1164}
1165
1166fn C.XDrawLines(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32
1167
1168// XDrawLines: raw Xlib ownership and return codes.
1169pub fn draw_lines(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32 {
1170 return C.XDrawLines(display, d, gc, points, npoints, mode)
1171}
1172
1173fn C.XDrawPoint(display &Display, d Drawable, gc GC, x i32, y i32) i32
1174
1175// XDrawPoint: raw Xlib ownership and return codes.
1176pub fn draw_point(display &Display, d Drawable, gc GC, x i32, y i32) i32 {
1177 return C.XDrawPoint(display, d, gc, x, y)
1178}
1179
1180fn C.XDrawPoints(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32
1181
1182// XDrawPoints: raw Xlib ownership and return codes.
1183pub fn draw_points(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32 {
1184 return C.XDrawPoints(display, d, gc, points, npoints, mode)
1185}
1186
1187fn C.XDrawRectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32
1188
1189// XDrawRectangle: raw Xlib ownership and return codes.
1190pub fn draw_rectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32 {
1191 return C.XDrawRectangle(display, d, gc, x, y, width, height)
1192}
1193
1194fn C.XDrawRectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32
1195
1196// XDrawRectangles: raw Xlib ownership and return codes.
1197pub fn draw_rectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32 {
1198 return C.XDrawRectangles(display, d, gc, rectangles, nrectangles)
1199}
1200
1201fn C.XDrawSegments(display &Display, d Drawable, gc GC, segments &XSegment, nsegments i32) i32
1202
1203// XDrawSegments: raw Xlib ownership and return codes.
1204pub fn draw_segments(display &Display, d Drawable, gc GC, segments &XSegment, nsegments i32) i32 {
1205 return C.XDrawSegments(display, d, gc, segments, nsegments)
1206}
1207
1208fn C.XDrawString(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32
1209
1210// XDrawString: raw Xlib ownership and return codes.
1211pub fn draw_string(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32 {
1212 return C.XDrawString(display, d, gc, x, y, string_arg, length)
1213}
1214
1215fn C.XDrawString16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32
1216
1217// XDrawString16: raw Xlib ownership and return codes.
1218pub fn draw_string16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32 {
1219 return C.XDrawString16(display, d, gc, x, y, string_arg, length)
1220}
1221
1222fn C.XDrawText(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem, nitems i32) i32
1223
1224// XDrawText: raw Xlib ownership and return codes.
1225pub fn draw_text(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem, nitems i32) i32 {
1226 return C.XDrawText(display, d, gc, x, y, items, nitems)
1227}
1228
1229fn C.XDrawText16(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem16, nitems i32) i32
1230
1231// XDrawText16: raw Xlib ownership and return codes.
1232pub fn draw_text16(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem16, nitems i32) i32 {
1233 return C.XDrawText16(display, d, gc, x, y, items, nitems)
1234}
1235
1236fn C.XEnableAccessControl(display &Display) i32
1237
1238// XEnableAccessControl: raw Xlib ownership and return codes.
1239pub fn enable_access_control(display &Display) i32 {
1240 return C.XEnableAccessControl(display)
1241}
1242
1243fn C.XEventsQueued(display &Display, mode i32) i32
1244
1245// XEventsQueued: raw Xlib ownership and return codes.
1246pub fn events_queued(display &Display, mode i32) i32 {
1247 return C.XEventsQueued(display, mode)
1248}
1249
1250fn C.XFetchName(display &Display, w Window, window_name_return &&char) i32
1251
1252// XFetchName: raw Xlib ownership and return codes.
1253pub fn fetch_name(display &Display, w Window, window_name_return &&char) i32 {
1254 return C.XFetchName(display, w, window_name_return)
1255}
1256
1257fn C.XFillArc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32
1258
1259// XFillArc: raw Xlib ownership and return codes.
1260pub fn fill_arc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32 {
1261 return C.XFillArc(display, d, gc, x, y, width, height, angle1, angle2)
1262}
1263
1264fn C.XFillArcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32
1265
1266// XFillArcs: raw Xlib ownership and return codes.
1267pub fn fill_arcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32 {
1268 return C.XFillArcs(display, d, gc, arcs, narcs)
1269}
1270
1271fn C.XFillPolygon(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, shape i32, mode i32) i32
1272
1273// XFillPolygon: raw Xlib ownership and return codes.
1274pub fn fill_polygon(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, shape i32, mode i32) i32 {
1275 return C.XFillPolygon(display, d, gc, points, npoints, shape, mode)
1276}
1277
1278fn C.XFillRectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32
1279
1280// XFillRectangle: raw Xlib ownership and return codes.
1281pub fn fill_rectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32 {
1282 return C.XFillRectangle(display, d, gc, x, y, width, height)
1283}
1284
1285fn C.XFillRectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32
1286
1287// XFillRectangles: raw Xlib ownership and return codes.
1288pub fn fill_rectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32 {
1289 return C.XFillRectangles(display, d, gc, rectangles, nrectangles)
1290}
1291
1292fn C.XFlush(display &Display) i32
1293
1294// XFlush: raw Xlib ownership and return codes.
1295pub fn flush(display &Display) i32 {
1296 return C.XFlush(display)
1297}
1298
1299fn C.XForceScreenSaver(display &Display, mode i32) i32
1300
1301// XForceScreenSaver: raw Xlib ownership and return codes.
1302pub fn force_screen_saver(display &Display, mode i32) i32 {
1303 return C.XForceScreenSaver(display, mode)
1304}
1305
1306fn C.XFree(data voidptr) i32
1307
1308// XFree: raw Xlib ownership and return codes.
1309pub fn free(data voidptr) i32 {
1310 return C.XFree(data)
1311}
1312
1313fn C.XFreeColormap(display &Display, colormap Colormap) i32
1314
1315// XFreeColormap: raw Xlib ownership and return codes.
1316pub fn free_colormap(display &Display, colormap Colormap) i32 {
1317 return C.XFreeColormap(display, colormap)
1318}
1319
1320fn C.XFreeColors(display &Display, colormap Colormap, pixels &CULong, npixels i32, planes CULong) i32
1321
1322// XFreeColors: raw Xlib ownership and return codes.
1323pub fn free_colors(display &Display, colormap Colormap, pixels &CULong, npixels i32, planes CULong) i32 {
1324 return C.XFreeColors(display, colormap, pixels, npixels, planes)
1325}
1326
1327fn C.XFreeCursor(display &Display, cursor Cursor) i32
1328
1329// XFreeCursor: raw Xlib ownership and return codes.
1330pub fn free_cursor(display &Display, cursor Cursor) i32 {
1331 return C.XFreeCursor(display, cursor)
1332}
1333
1334fn C.XFreeExtensionList(list &&char) i32
1335
1336// XFreeExtensionList: raw Xlib ownership and return codes.
1337pub fn free_extension_list(list &&char) i32 {
1338 return C.XFreeExtensionList(list)
1339}
1340
1341fn C.XFreeFont(display &Display, font_struct &XFontStruct) i32
1342
1343// XFreeFont: raw Xlib ownership and return codes.
1344pub fn free_font(display &Display, font_struct &XFontStruct) i32 {
1345 return C.XFreeFont(display, font_struct)
1346}
1347
1348fn C.XFreeFontInfo(names &&char, free_info &XFontStruct, actual_count i32) i32
1349
1350// XFreeFontInfo: raw Xlib ownership and return codes.
1351pub fn free_font_info(names &&char, free_info &XFontStruct, actual_count i32) i32 {
1352 return C.XFreeFontInfo(names, free_info, actual_count)
1353}
1354
1355fn C.XFreeFontNames(list &&char) i32
1356
1357// XFreeFontNames: raw Xlib ownership and return codes.
1358pub fn free_font_names(list &&char) i32 {
1359 return C.XFreeFontNames(list)
1360}
1361
1362fn C.XFreeFontPath(list &&char) i32
1363
1364// XFreeFontPath: raw Xlib ownership and return codes.
1365pub fn free_font_path(list &&char) i32 {
1366 return C.XFreeFontPath(list)
1367}
1368
1369fn C.XFreeGC(display &Display, gc GC) i32
1370
1371// XFreeGC: raw Xlib ownership and return codes.
1372pub fn free_gc(display &Display, gc GC) i32 {
1373 return C.XFreeGC(display, gc)
1374}
1375
1376fn C.XFreeModifiermap(modmap &XModifierKeymap) i32
1377
1378// XFreeModifiermap: raw Xlib ownership and return codes.
1379pub fn free_modifiermap(modmap &XModifierKeymap) i32 {
1380 return C.XFreeModifiermap(modmap)
1381}
1382
1383fn C.XFreePixmap(display &Display, pixmap Pixmap) i32
1384
1385// XFreePixmap: raw Xlib ownership and return codes.
1386pub fn free_pixmap(display &Display, pixmap Pixmap) i32 {
1387 return C.XFreePixmap(display, pixmap)
1388}
1389
1390fn C.XGeometry(display &Display, screen i32, position &char, default_position &char, bwidth u32, fwidth u32, fheight u32, xadder i32, yadder i32, x_return &i32, y_return &i32, width_return &i32, height_return &i32) i32
1391
1392// XGeometry: raw Xlib ownership and return codes.
1393pub fn geometry(display &Display, screen i32, position &char, default_position &char, bwidth u32, fwidth u32, fheight u32, xadder i32, yadder i32, x_return &i32, y_return &i32, width_return &i32, height_return &i32) i32 {
1394 return C.XGeometry(display, screen, position, default_position, bwidth, fwidth, fheight, xadder, yadder, x_return, y_return, width_return, height_return)
1395}
1396
1397fn C.XGetErrorDatabaseText(display &Display, name &char, message &char, default_string &char, buffer_return &char, length i32) i32
1398
1399// XGetErrorDatabaseText: raw Xlib ownership and return codes.
1400pub fn get_error_database_text(display &Display, name &char, message &char, default_string &char, buffer_return &char, length i32) i32 {
1401 return C.XGetErrorDatabaseText(display, name, message, default_string, buffer_return, length)
1402}
1403
1404fn C.XGetErrorText(display &Display, code i32, buffer_return &char, length i32) i32
1405
1406// XGetErrorText: raw Xlib ownership and return codes.
1407pub fn get_error_text(display &Display, code i32, buffer_return &char, length i32) i32 {
1408 return C.XGetErrorText(display, code, buffer_return, length)
1409}
1410
1411fn C.XGetFontProperty(font_struct &XFontStruct, atom Atom, value_return &CULong) i32
1412
1413// XGetFontProperty: raw Xlib ownership and return codes.
1414pub fn get_font_property(font_struct &XFontStruct, atom Atom, value_return &CULong) i32 {
1415 return C.XGetFontProperty(font_struct, atom, value_return)
1416}
1417
1418fn C.XGetGCValues(display &Display, gc GC, valuemask CULong, values_return &XGCValues) i32
1419
1420// XGetGCValues: raw Xlib ownership and return codes.
1421pub fn get_gc_values(display &Display, gc GC, valuemask CULong, values_return &XGCValues) i32 {
1422 return C.XGetGCValues(display, gc, valuemask, values_return)
1423}
1424
1425fn C.XGetGeometry(display &Display, d Drawable, root_return &Window, x_return &i32, y_return &i32, width_return &u32, height_return &u32, border_width_return &u32, depth_return &u32) i32
1426
1427// XGetGeometry: raw Xlib ownership and return codes.
1428pub fn get_geometry(display &Display, d Drawable, root_return &Window, x_return &i32, y_return &i32, width_return &u32, height_return &u32, border_width_return &u32, depth_return &u32) i32 {
1429 return C.XGetGeometry(display, d, root_return, x_return, y_return, width_return, height_return, border_width_return, depth_return)
1430}
1431
1432fn C.XGetIconName(display &Display, w Window, icon_name_return &&char) i32
1433
1434// XGetIconName: raw Xlib ownership and return codes.
1435pub fn get_icon_name(display &Display, w Window, icon_name_return &&char) i32 {
1436 return C.XGetIconName(display, w, icon_name_return)
1437}
1438
1439fn C.XGetInputFocus(display &Display, focus_return &Window, revert_to_return &i32) i32
1440
1441// XGetInputFocus: raw Xlib ownership and return codes.
1442pub fn get_input_focus(display &Display, focus_return &Window, revert_to_return &i32) i32 {
1443 return C.XGetInputFocus(display, focus_return, revert_to_return)
1444}
1445
1446fn C.XGetKeyboardControl(display &Display, values_return &XKeyboardState) i32
1447
1448// XGetKeyboardControl: raw Xlib ownership and return codes.
1449pub fn get_keyboard_control(display &Display, values_return &XKeyboardState) i32 {
1450 return C.XGetKeyboardControl(display, values_return)
1451}
1452
1453fn C.XGetPointerControl(display &Display, accel_numerator_return &i32, accel_denominator_return &i32, threshold_return &i32) i32
1454
1455// XGetPointerControl: raw Xlib ownership and return codes.
1456pub fn get_pointer_control(display &Display, accel_numerator_return &i32, accel_denominator_return &i32, threshold_return &i32) i32 {
1457 return C.XGetPointerControl(display, accel_numerator_return, accel_denominator_return, threshold_return)
1458}
1459
1460fn C.XGetPointerMapping(display &Display, map_return &u8, nmap i32) i32
1461
1462// XGetPointerMapping: raw Xlib ownership and return codes.
1463pub fn get_pointer_mapping(display &Display, map_return &u8, nmap i32) i32 {
1464 return C.XGetPointerMapping(display, map_return, nmap)
1465}
1466
1467fn C.XGetScreenSaver(display &Display, timeout_return &i32, interval_return &i32, prefer_blanking_return &i32, allow_exposures_return &i32) i32
1468
1469// XGetScreenSaver: raw Xlib ownership and return codes.
1470pub fn get_screen_saver(display &Display, timeout_return &i32, interval_return &i32, prefer_blanking_return &i32, allow_exposures_return &i32) i32 {
1471 return C.XGetScreenSaver(display, timeout_return, interval_return, prefer_blanking_return, allow_exposures_return)
1472}
1473
1474fn C.XGetTransientForHint(display &Display, w Window, prop_window_return &Window) i32
1475
1476// XGetTransientForHint: raw Xlib ownership and return codes.
1477pub fn get_transient_for_hint(display &Display, w Window, prop_window_return &Window) i32 {
1478 return C.XGetTransientForHint(display, w, prop_window_return)
1479}
1480
1481fn C.XGetWindowProperty(display &Display, w Window, property Atom, long_offset CLong, long_length CLong, delete i32, req_type Atom, actual_type_return &Atom, actual_format_return &i32, nitems_return &CULong, bytes_after_return &CULong, prop_return &&u8) i32
1482
1483// XGetWindowProperty: raw Xlib ownership and return codes.
1484pub fn get_window_property(display &Display, w Window, property Atom, long_offset CLong, long_length CLong, delete i32, req_type Atom, actual_type_return &Atom, actual_format_return &i32, nitems_return &CULong, bytes_after_return &CULong, prop_return &&u8) i32 {
1485 return C.XGetWindowProperty(display, w, property, long_offset, long_length, delete, req_type, actual_type_return, actual_format_return, nitems_return, bytes_after_return, prop_return)
1486}
1487
1488fn C.XGetWindowAttributes(display &Display, w Window, window_attributes_return &XWindowAttributes) i32
1489
1490// XGetWindowAttributes: raw Xlib ownership and return codes.
1491pub fn get_window_attributes(display &Display, w Window, window_attributes_return &XWindowAttributes) i32 {
1492 return C.XGetWindowAttributes(display, w, window_attributes_return)
1493}
1494
1495fn C.XGrabButton(display &Display, button u32, modifiers u32, grab_window Window, owner_events i32, event_mask u32, pointer_mode i32, keyboard_mode i32, confine_to Window, cursor Cursor) i32
1496
1497// XGrabButton: raw Xlib ownership and return codes.
1498pub fn grab_button(display &Display, button u32, modifiers u32, grab_window Window, owner_events i32, event_mask u32, pointer_mode i32, keyboard_mode i32, confine_to Window, cursor Cursor) i32 {
1499 return C.XGrabButton(display, button, modifiers, grab_window, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor)
1500}
1501
1502fn C.XGrabKey(display &Display, keycode i32, modifiers u32, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32) i32
1503
1504// XGrabKey: raw Xlib ownership and return codes.
1505pub fn grab_key(display &Display, keycode i32, modifiers u32, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32) i32 {
1506 return C.XGrabKey(display, keycode, modifiers, grab_window, owner_events, pointer_mode, keyboard_mode)
1507}
1508
1509fn C.XGrabKeyboard(display &Display, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32, time Time) i32
1510
1511// XGrabKeyboard: raw Xlib ownership and return codes.
1512pub fn grab_keyboard(display &Display, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32, time Time) i32 {
1513 return C.XGrabKeyboard(display, grab_window, owner_events, pointer_mode, keyboard_mode, time)
1514}
1515
1516fn C.XGrabPointer(display &Display, grab_window Window, owner_events i32, event_mask u32, pointer_mode i32, keyboard_mode i32, confine_to Window, cursor Cursor, time Time) i32
1517
1518// XGrabPointer: raw Xlib ownership and return codes.
1519pub fn grab_pointer(display &Display, grab_window Window, owner_events i32, event_mask u32, pointer_mode i32, keyboard_mode i32, confine_to Window, cursor Cursor, time Time) i32 {
1520 return C.XGrabPointer(display, grab_window, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, time)
1521}
1522
1523fn C.XGrabServer(display &Display) i32
1524
1525// XGrabServer: raw Xlib ownership and return codes.
1526pub fn grab_server(display &Display) i32 {
1527 return C.XGrabServer(display)
1528}
1529
1530fn C.XHeightMMOfScreen(screen &Screen) i32
1531
1532// XHeightMMOfScreen: raw Xlib ownership and return codes.
1533pub fn height_mm_of_screen(screen &Screen) i32 {
1534 return C.XHeightMMOfScreen(screen)
1535}
1536
1537fn C.XHeightOfScreen(screen &Screen) i32
1538
1539// XHeightOfScreen: raw Xlib ownership and return codes.
1540pub fn height_of_screen(screen &Screen) i32 {
1541 return C.XHeightOfScreen(screen)
1542}
1543
1544fn C.vx11_XIfEvent(display &Display, event_return &XEvent, arg2 voidptr, arg XPointer) i32
1545
1546// XIfEvent: raw Xlib ownership and return codes.
1547pub fn if_event(display &Display, event_return &XEvent, arg2 fn (&Display, &XEvent, XPointer) i32, arg XPointer) i32 {
1548 return C.vx11_XIfEvent(display, event_return, voidptr(arg2), arg)
1549}
1550
1551fn C.XImageByteOrder(display &Display) i32
1552
1553// XImageByteOrder: raw Xlib ownership and return codes.
1554pub fn image_byte_order(display &Display) i32 {
1555 return C.XImageByteOrder(display)
1556}
1557
1558fn C.XInstallColormap(display &Display, colormap Colormap) i32
1559
1560// XInstallColormap: raw Xlib ownership and return codes.
1561pub fn install_colormap(display &Display, colormap Colormap) i32 {
1562 return C.XInstallColormap(display, colormap)
1563}
1564
1565fn C.XKeysymToKeycode(display &Display, keysym KeySym) KeyCode
1566
1567// XKeysymToKeycode: raw Xlib ownership and return codes.
1568pub fn keysym_to_keycode(display &Display, keysym KeySym) KeyCode {
1569 return C.XKeysymToKeycode(display, keysym)
1570}
1571
1572fn C.XKillClient(display &Display, resource XID) i32
1573
1574// XKillClient: raw Xlib ownership and return codes.
1575pub fn kill_client(display &Display, resource XID) i32 {
1576 return C.XKillClient(display, resource)
1577}
1578
1579fn C.XLookupColor(display &Display, colormap Colormap, color_name &char, exact_def_return &XColor, screen_def_return &XColor) i32
1580
1581// XLookupColor: raw Xlib ownership and return codes.
1582pub fn lookup_color(display &Display, colormap Colormap, color_name &char, exact_def_return &XColor, screen_def_return &XColor) i32 {
1583 return C.XLookupColor(display, colormap, color_name, exact_def_return, screen_def_return)
1584}
1585
1586fn C.XLowerWindow(display &Display, w Window) i32
1587
1588// XLowerWindow: raw Xlib ownership and return codes.
1589pub fn lower_window(display &Display, w Window) i32 {
1590 return C.XLowerWindow(display, w)
1591}
1592
1593fn C.XMapRaised(display &Display, w Window) i32
1594
1595// XMapRaised: raw Xlib ownership and return codes.
1596pub fn map_raised(display &Display, w Window) i32 {
1597 return C.XMapRaised(display, w)
1598}
1599
1600fn C.XMapSubwindows(display &Display, w Window) i32
1601
1602// XMapSubwindows: raw Xlib ownership and return codes.
1603pub fn map_subwindows(display &Display, w Window) i32 {
1604 return C.XMapSubwindows(display, w)
1605}
1606
1607fn C.XMapWindow(display &Display, w Window) i32
1608
1609// XMapWindow: raw Xlib ownership and return codes.
1610pub fn map_window(display &Display, w Window) i32 {
1611 return C.XMapWindow(display, w)
1612}
1613
1614fn C.XMaskEvent(display &Display, event_mask CLong, event_return &XEvent) i32
1615
1616// XMaskEvent: raw Xlib ownership and return codes.
1617pub fn mask_event(display &Display, event_mask CLong, event_return &XEvent) i32 {
1618 return C.XMaskEvent(display, event_mask, event_return)
1619}
1620
1621fn C.XMaxCmapsOfScreen(screen &Screen) i32
1622
1623// XMaxCmapsOfScreen: raw Xlib ownership and return codes.
1624pub fn max_cmaps_of_screen(screen &Screen) i32 {
1625 return C.XMaxCmapsOfScreen(screen)
1626}
1627
1628fn C.XMinCmapsOfScreen(screen &Screen) i32
1629
1630// XMinCmapsOfScreen: raw Xlib ownership and return codes.
1631pub fn min_cmaps_of_screen(screen &Screen) i32 {
1632 return C.XMinCmapsOfScreen(screen)
1633}
1634
1635fn C.XMoveResizeWindow(display &Display, w Window, x i32, y i32, width u32, height u32) i32
1636
1637// XMoveResizeWindow: raw Xlib ownership and return codes.
1638pub fn move_resize_window(display &Display, w Window, x i32, y i32, width u32, height u32) i32 {
1639 return C.XMoveResizeWindow(display, w, x, y, width, height)
1640}
1641
1642fn C.XMoveWindow(display &Display, w Window, x i32, y i32) i32
1643
1644// XMoveWindow: raw Xlib ownership and return codes.
1645pub fn move_window(display &Display, w Window, x i32, y i32) i32 {
1646 return C.XMoveWindow(display, w, x, y)
1647}
1648
1649fn C.XNextEvent(display &Display, event_return &XEvent) i32
1650
1651// XNextEvent: raw Xlib ownership and return codes.
1652pub fn next_event(display &Display, event_return &XEvent) i32 {
1653 return C.XNextEvent(display, event_return)
1654}
1655
1656fn C.XNoOp(display &Display) i32
1657
1658// XNoOp: raw Xlib ownership and return codes.
1659pub fn no_op(display &Display) i32 {
1660 return C.XNoOp(display)
1661}
1662
1663fn C.XParseColor(display &Display, colormap Colormap, spec &char, exact_def_return &XColor) i32
1664
1665// XParseColor: raw Xlib ownership and return codes.
1666pub fn parse_color(display &Display, colormap Colormap, spec &char, exact_def_return &XColor) i32 {
1667 return C.XParseColor(display, colormap, spec, exact_def_return)
1668}
1669
1670fn C.XParseGeometry(parsestring &char, x_return &i32, y_return &i32, width_return &u32, height_return &u32) i32
1671
1672// XParseGeometry: raw Xlib ownership and return codes.
1673pub fn parse_geometry(parsestring &char, x_return &i32, y_return &i32, width_return &u32, height_return &u32) i32 {
1674 return C.XParseGeometry(parsestring, x_return, y_return, width_return, height_return)
1675}
1676
1677fn C.XPeekEvent(display &Display, event_return &XEvent) i32
1678
1679// XPeekEvent: raw Xlib ownership and return codes.
1680pub fn peek_event(display &Display, event_return &XEvent) i32 {
1681 return C.XPeekEvent(display, event_return)
1682}
1683
1684fn C.vx11_XPeekIfEvent(display &Display, event_return &XEvent, arg2 voidptr, arg XPointer) i32
1685
1686// XPeekIfEvent: raw Xlib ownership and return codes.
1687pub fn peek_if_event(display &Display, event_return &XEvent, arg2 fn (&Display, &XEvent, XPointer) i32, arg XPointer) i32 {
1688 return C.vx11_XPeekIfEvent(display, event_return, voidptr(arg2), arg)
1689}
1690
1691fn C.XPending(display &Display) i32
1692
1693// XPending: raw Xlib ownership and return codes.
1694pub fn pending(display &Display) i32 {
1695 return C.XPending(display)
1696}
1697
1698fn C.XPlanesOfScreen(screen &Screen) i32
1699
1700// XPlanesOfScreen: raw Xlib ownership and return codes.
1701pub fn planes_of_screen(screen &Screen) i32 {
1702 return C.XPlanesOfScreen(screen)
1703}
1704
1705fn C.XProtocolRevision(display &Display) i32
1706
1707// XProtocolRevision: raw Xlib ownership and return codes.
1708pub fn protocol_revision(display &Display) i32 {
1709 return C.XProtocolRevision(display)
1710}
1711
1712fn C.XProtocolVersion(display &Display) i32
1713
1714// XProtocolVersion: raw Xlib ownership and return codes.
1715pub fn protocol_version(display &Display) i32 {
1716 return C.XProtocolVersion(display)
1717}
1718
1719fn C.XPutBackEvent(display &Display, event &XEvent) i32
1720
1721// XPutBackEvent: raw Xlib ownership and return codes.
1722pub fn put_back_event(display &Display, event &XEvent) i32 {
1723 return C.XPutBackEvent(display, event)
1724}
1725
1726fn C.XPutImage(display &Display, d Drawable, gc GC, image &XImage, src_x i32, src_y i32, dest_x i32, dest_y i32, width u32, height u32) i32
1727
1728// XPutImage: raw Xlib ownership and return codes.
1729pub fn put_image(display &Display, d Drawable, gc GC, image &XImage, src_x i32, src_y i32, dest_x i32, dest_y i32, width u32, height u32) i32 {
1730 return C.XPutImage(display, d, gc, image, src_x, src_y, dest_x, dest_y, width, height)
1731}
1732
1733fn C.XQLength(display &Display) i32
1734
1735// XQLength: raw Xlib ownership and return codes.
1736pub fn q_length(display &Display) i32 {
1737 return C.XQLength(display)
1738}
1739
1740fn C.XQueryBestCursor(display &Display, d Drawable, width u32, height u32, width_return &u32, height_return &u32) i32
1741
1742// XQueryBestCursor: raw Xlib ownership and return codes.
1743pub fn query_best_cursor(display &Display, d Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 {
1744 return C.XQueryBestCursor(display, d, width, height, width_return, height_return)
1745}
1746
1747fn C.XQueryBestSize(display &Display, class i32, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32
1748
1749// XQueryBestSize: raw Xlib ownership and return codes.
1750pub fn query_best_size(display &Display, class i32, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 {
1751 return C.XQueryBestSize(display, class, which_screen, width, height, width_return, height_return)
1752}
1753
1754fn C.XQueryBestStipple(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32
1755
1756// XQueryBestStipple: raw Xlib ownership and return codes.
1757pub fn query_best_stipple(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 {
1758 return C.XQueryBestStipple(display, which_screen, width, height, width_return, height_return)
1759}
1760
1761fn C.XQueryBestTile(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32
1762
1763// XQueryBestTile: raw Xlib ownership and return codes.
1764pub fn query_best_tile(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 {
1765 return C.XQueryBestTile(display, which_screen, width, height, width_return, height_return)
1766}
1767
1768fn C.XQueryColor(display &Display, colormap Colormap, def_in_out &XColor) i32
1769
1770// XQueryColor: raw Xlib ownership and return codes.
1771pub fn query_color(display &Display, colormap Colormap, def_in_out &XColor) i32 {
1772 return C.XQueryColor(display, colormap, def_in_out)
1773}
1774
1775fn C.XQueryColors(display &Display, colormap Colormap, defs_in_out &XColor, ncolors i32) i32
1776
1777// XQueryColors: raw Xlib ownership and return codes.
1778pub fn query_colors(display &Display, colormap Colormap, defs_in_out &XColor, ncolors i32) i32 {
1779 return C.XQueryColors(display, colormap, defs_in_out, ncolors)
1780}
1781
1782fn C.XQueryExtension(display &Display, name &char, major_opcode_return &i32, first_event_return &i32, first_error_return &i32) i32
1783
1784// XQueryExtension: raw Xlib ownership and return codes.
1785pub fn query_extension(display &Display, name &char, major_opcode_return &i32, first_event_return &i32, first_error_return &i32) i32 {
1786 return C.XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return)
1787}
1788
1789fn C.XQueryKeymap(display &Display, arg1 &char) i32
1790
1791// XQueryKeymap: raw Xlib ownership and return codes.
1792pub fn query_keymap(display &Display, arg1 &char) i32 {
1793 return C.XQueryKeymap(display, arg1)
1794}
1795
1796fn C.XQueryPointer(display &Display, w Window, root_return &Window, child_return &Window, root_x_return &i32, root_y_return &i32, win_x_return &i32, win_y_return &i32, mask_return &u32) i32
1797
1798// XQueryPointer: raw Xlib ownership and return codes.
1799pub fn query_pointer(display &Display, w Window, root_return &Window, child_return &Window, root_x_return &i32, root_y_return &i32, win_x_return &i32, win_y_return &i32, mask_return &u32) i32 {
1800 return C.XQueryPointer(display, w, root_return, child_return, root_x_return, root_y_return, win_x_return, win_y_return, mask_return)
1801}
1802
1803fn C.XQueryTextExtents(display &Display, font_id XID, string_arg &char, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32
1804
1805// XQueryTextExtents: raw Xlib ownership and return codes.
1806pub fn query_text_extents(display &Display, font_id XID, string_arg &char, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32 {
1807 return C.XQueryTextExtents(display, font_id, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return)
1808}
1809
1810fn C.XQueryTextExtents16(display &Display, font_id XID, string_arg &XChar2b, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32
1811
1812// XQueryTextExtents16: raw Xlib ownership and return codes.
1813pub fn query_text_extents16(display &Display, font_id XID, string_arg &XChar2b, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32 {
1814 return C.XQueryTextExtents16(display, font_id, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return)
1815}
1816
1817fn C.XQueryTree(display &Display, w Window, root_return &Window, parent_return &Window, children_return &&Window, nchildren_return &u32) i32
1818
1819// XQueryTree: raw Xlib ownership and return codes.
1820pub fn query_tree(display &Display, w Window, root_return &Window, parent_return &Window, children_return &&Window, nchildren_return &u32) i32 {
1821 return C.XQueryTree(display, w, root_return, parent_return, children_return, nchildren_return)
1822}
1823
1824fn C.XRaiseWindow(display &Display, w Window) i32
1825
1826// XRaiseWindow: raw Xlib ownership and return codes.
1827pub fn raise_window(display &Display, w Window) i32 {
1828 return C.XRaiseWindow(display, w)
1829}
1830
1831fn C.XReadBitmapFile(display &Display, d Drawable, filename &char, width_return &u32, height_return &u32, bitmap_return &Pixmap, x_hot_return &i32, y_hot_return &i32) i32
1832
1833// XReadBitmapFile: raw Xlib ownership and return codes.
1834pub fn read_bitmap_file(display &Display, d Drawable, filename &char, width_return &u32, height_return &u32, bitmap_return &Pixmap, x_hot_return &i32, y_hot_return &i32) i32 {
1835 return C.XReadBitmapFile(display, d, filename, width_return, height_return, bitmap_return, x_hot_return, y_hot_return)
1836}
1837
1838fn C.XReadBitmapFileData(filename &char, width_return &u32, height_return &u32, data_return &&u8, x_hot_return &i32, y_hot_return &i32) i32
1839
1840// XReadBitmapFileData: raw Xlib ownership and return codes.
1841pub fn read_bitmap_file_data(filename &char, width_return &u32, height_return &u32, data_return &&u8, x_hot_return &i32, y_hot_return &i32) i32 {
1842 return C.XReadBitmapFileData(filename, width_return, height_return, data_return, x_hot_return, y_hot_return)
1843}
1844
1845fn C.XRebindKeysym(display &Display, keysym KeySym, list &KeySym, mod_count i32, string_arg &u8, bytes_string i32) i32
1846
1847// XRebindKeysym: raw Xlib ownership and return codes.
1848pub fn rebind_keysym(display &Display, keysym KeySym, list &KeySym, mod_count i32, string_arg &u8, bytes_string i32) i32 {
1849 return C.XRebindKeysym(display, keysym, list, mod_count, string_arg, bytes_string)
1850}
1851
1852fn C.XRecolorCursor(display &Display, cursor Cursor, foreground_color &XColor, background_color &XColor) i32
1853
1854// XRecolorCursor: raw Xlib ownership and return codes.
1855pub fn recolor_cursor(display &Display, cursor Cursor, foreground_color &XColor, background_color &XColor) i32 {
1856 return C.XRecolorCursor(display, cursor, foreground_color, background_color)
1857}
1858
1859fn C.XRefreshKeyboardMapping(event_map &XMappingEvent) i32
1860
1861// XRefreshKeyboardMapping: raw Xlib ownership and return codes.
1862pub fn refresh_keyboard_mapping(event_map &XMappingEvent) i32 {
1863 return C.XRefreshKeyboardMapping(event_map)
1864}
1865
1866fn C.XRemoveFromSaveSet(display &Display, w Window) i32
1867
1868// XRemoveFromSaveSet: raw Xlib ownership and return codes.
1869pub fn remove_from_save_set(display &Display, w Window) i32 {
1870 return C.XRemoveFromSaveSet(display, w)
1871}
1872
1873fn C.XRemoveHost(display &Display, host &XHostAddress) i32
1874
1875// XRemoveHost: raw Xlib ownership and return codes.
1876pub fn remove_host(display &Display, host &XHostAddress) i32 {
1877 return C.XRemoveHost(display, host)
1878}
1879
1880fn C.XRemoveHosts(display &Display, hosts &XHostAddress, num_hosts i32) i32
1881
1882// XRemoveHosts: raw Xlib ownership and return codes.
1883pub fn remove_hosts(display &Display, hosts &XHostAddress, num_hosts i32) i32 {
1884 return C.XRemoveHosts(display, hosts, num_hosts)
1885}
1886
1887fn C.XReparentWindow(display &Display, w Window, parent Window, x i32, y i32) i32
1888
1889// XReparentWindow: raw Xlib ownership and return codes.
1890pub fn reparent_window(display &Display, w Window, parent Window, x i32, y i32) i32 {
1891 return C.XReparentWindow(display, w, parent, x, y)
1892}
1893
1894fn C.XResetScreenSaver(display &Display) i32
1895
1896// XResetScreenSaver: raw Xlib ownership and return codes.
1897pub fn reset_screen_saver(display &Display) i32 {
1898 return C.XResetScreenSaver(display)
1899}
1900
1901fn C.XResizeWindow(display &Display, w Window, width u32, height u32) i32
1902
1903// XResizeWindow: raw Xlib ownership and return codes.
1904pub fn resize_window(display &Display, w Window, width u32, height u32) i32 {
1905 return C.XResizeWindow(display, w, width, height)
1906}
1907
1908fn C.XRestackWindows(display &Display, windows &Window, nwindows i32) i32
1909
1910// XRestackWindows: raw Xlib ownership and return codes.
1911pub fn restack_windows(display &Display, windows &Window, nwindows i32) i32 {
1912 return C.XRestackWindows(display, windows, nwindows)
1913}
1914
1915fn C.XRotateBuffers(display &Display, rotate i32) i32
1916
1917// XRotateBuffers: raw Xlib ownership and return codes.
1918pub fn rotate_buffers(display &Display, rotate i32) i32 {
1919 return C.XRotateBuffers(display, rotate)
1920}
1921
1922fn C.XRotateWindowProperties(display &Display, w Window, properties &Atom, num_prop i32, npositions i32) i32
1923
1924// XRotateWindowProperties: raw Xlib ownership and return codes.
1925pub fn rotate_window_properties(display &Display, w Window, properties &Atom, num_prop i32, npositions i32) i32 {
1926 return C.XRotateWindowProperties(display, w, properties, num_prop, npositions)
1927}
1928
1929fn C.XScreenCount(display &Display) i32
1930
1931// XScreenCount: raw Xlib ownership and return codes.
1932pub fn screen_count(display &Display) i32 {
1933 return C.XScreenCount(display)
1934}
1935
1936fn C.XSelectInput(display &Display, w Window, event_mask CLong) i32
1937
1938// XSelectInput: raw Xlib ownership and return codes.
1939pub fn select_input(display &Display, w Window, event_mask CLong) i32 {
1940 return C.XSelectInput(display, w, event_mask)
1941}
1942
1943fn C.XSendEvent(display &Display, w Window, propagate i32, event_mask CLong, event_send &XEvent) i32
1944
1945// XSendEvent: raw Xlib ownership and return codes.
1946pub fn send_event(display &Display, w Window, propagate i32, event_mask CLong, event_send &XEvent) i32 {
1947 return C.XSendEvent(display, w, propagate, event_mask, event_send)
1948}
1949
1950fn C.XSetAccessControl(display &Display, mode i32) i32
1951
1952// XSetAccessControl: raw Xlib ownership and return codes.
1953pub fn set_access_control(display &Display, mode i32) i32 {
1954 return C.XSetAccessControl(display, mode)
1955}
1956
1957fn C.XSetArcMode(display &Display, gc GC, arc_mode i32) i32
1958
1959// XSetArcMode: raw Xlib ownership and return codes.
1960pub fn set_arc_mode(display &Display, gc GC, arc_mode i32) i32 {
1961 return C.XSetArcMode(display, gc, arc_mode)
1962}
1963
1964fn C.XSetBackground(display &Display, gc GC, background CULong) i32
1965
1966// XSetBackground: raw Xlib ownership and return codes.
1967pub fn set_background(display &Display, gc GC, background CULong) i32 {
1968 return C.XSetBackground(display, gc, background)
1969}
1970
1971fn C.XSetClipMask(display &Display, gc GC, pixmap Pixmap) i32
1972
1973// XSetClipMask: raw Xlib ownership and return codes.
1974pub fn set_clip_mask(display &Display, gc GC, pixmap Pixmap) i32 {
1975 return C.XSetClipMask(display, gc, pixmap)
1976}
1977
1978fn C.XSetClipOrigin(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32) i32
1979
1980// XSetClipOrigin: raw Xlib ownership and return codes.
1981pub fn set_clip_origin(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32) i32 {
1982 return C.XSetClipOrigin(display, gc, clip_x_origin, clip_y_origin)
1983}
1984
1985fn C.XSetClipRectangles(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32, rectangles &XRectangle, n i32, ordering i32) i32
1986
1987// XSetClipRectangles: raw Xlib ownership and return codes.
1988pub fn set_clip_rectangles(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32, rectangles &XRectangle, n i32, ordering i32) i32 {
1989 return C.XSetClipRectangles(display, gc, clip_x_origin, clip_y_origin, rectangles, n, ordering)
1990}
1991
1992fn C.XSetCloseDownMode(display &Display, close_mode i32) i32
1993
1994// XSetCloseDownMode: raw Xlib ownership and return codes.
1995pub fn set_close_down_mode(display &Display, close_mode i32) i32 {
1996 return C.XSetCloseDownMode(display, close_mode)
1997}
1998
1999fn C.XSetCommand(display &Display, w Window, argv &&char, argc i32) i32
2000
2001// XSetCommand: raw Xlib ownership and return codes.
2002pub fn set_command(display &Display, w Window, argv &&char, argc i32) i32 {
2003 return C.XSetCommand(display, w, argv, argc)
2004}
2005
2006fn C.XSetDashes(display &Display, gc GC, dash_offset i32, dash_list &char, n i32) i32
2007
2008// XSetDashes: raw Xlib ownership and return codes.
2009pub fn set_dashes(display &Display, gc GC, dash_offset i32, dash_list &char, n i32) i32 {
2010 return C.XSetDashes(display, gc, dash_offset, dash_list, n)
2011}
2012
2013fn C.XSetFillRule(display &Display, gc GC, fill_rule i32) i32
2014
2015// XSetFillRule: raw Xlib ownership and return codes.
2016pub fn set_fill_rule(display &Display, gc GC, fill_rule i32) i32 {
2017 return C.XSetFillRule(display, gc, fill_rule)
2018}
2019
2020fn C.XSetFillStyle(display &Display, gc GC, fill_style i32) i32
2021
2022// XSetFillStyle: raw Xlib ownership and return codes.
2023pub fn set_fill_style(display &Display, gc GC, fill_style i32) i32 {
2024 return C.XSetFillStyle(display, gc, fill_style)
2025}
2026
2027fn C.XSetFont(display &Display, gc GC, font Font) i32
2028
2029// XSetFont: raw Xlib ownership and return codes.
2030pub fn set_font(display &Display, gc GC, font Font) i32 {
2031 return C.XSetFont(display, gc, font)
2032}
2033
2034fn C.XSetFontPath(display &Display, directories &&char, ndirs i32) i32
2035
2036// XSetFontPath: raw Xlib ownership and return codes.
2037pub fn set_font_path(display &Display, directories &&char, ndirs i32) i32 {
2038 return C.XSetFontPath(display, directories, ndirs)
2039}
2040
2041fn C.XSetForeground(display &Display, gc GC, foreground CULong) i32
2042
2043// XSetForeground: raw Xlib ownership and return codes.
2044pub fn set_foreground(display &Display, gc GC, foreground CULong) i32 {
2045 return C.XSetForeground(display, gc, foreground)
2046}
2047
2048fn C.XSetFunction(display &Display, gc GC, function i32) i32
2049
2050// XSetFunction: raw Xlib ownership and return codes.
2051pub fn set_function(display &Display, gc GC, function i32) i32 {
2052 return C.XSetFunction(display, gc, function)
2053}
2054
2055fn C.XSetGraphicsExposures(display &Display, gc GC, graphics_exposures i32) i32
2056
2057// XSetGraphicsExposures: raw Xlib ownership and return codes.
2058pub fn set_graphics_exposures(display &Display, gc GC, graphics_exposures i32) i32 {
2059 return C.XSetGraphicsExposures(display, gc, graphics_exposures)
2060}
2061
2062fn C.XSetIconName(display &Display, w Window, icon_name &char) i32
2063
2064// XSetIconName: raw Xlib ownership and return codes.
2065pub fn set_icon_name(display &Display, w Window, icon_name &char) i32 {
2066 return C.XSetIconName(display, w, icon_name)
2067}
2068
2069fn C.XSetInputFocus(display &Display, focus Window, revert_to i32, time Time) i32
2070
2071// XSetInputFocus: raw Xlib ownership and return codes.
2072pub fn set_input_focus(display &Display, focus Window, revert_to i32, time Time) i32 {
2073 return C.XSetInputFocus(display, focus, revert_to, time)
2074}
2075
2076fn C.XSetLineAttributes(display &Display, gc GC, line_width u32, line_style i32, cap_style i32, join_style i32) i32
2077
2078// XSetLineAttributes: raw Xlib ownership and return codes.
2079pub fn set_line_attributes(display &Display, gc GC, line_width u32, line_style i32, cap_style i32, join_style i32) i32 {
2080 return C.XSetLineAttributes(display, gc, line_width, line_style, cap_style, join_style)
2081}
2082
2083fn C.XSetModifierMapping(display &Display, modmap &XModifierKeymap) i32
2084
2085// XSetModifierMapping: raw Xlib ownership and return codes.
2086pub fn set_modifier_mapping(display &Display, modmap &XModifierKeymap) i32 {
2087 return C.XSetModifierMapping(display, modmap)
2088}
2089
2090fn C.XSetPlaneMask(display &Display, gc GC, plane_mask CULong) i32
2091
2092// XSetPlaneMask: raw Xlib ownership and return codes.
2093pub fn set_plane_mask(display &Display, gc GC, plane_mask CULong) i32 {
2094 return C.XSetPlaneMask(display, gc, plane_mask)
2095}
2096
2097fn C.XSetPointerMapping(display &Display, map_arg &u8, nmap i32) i32
2098
2099// XSetPointerMapping: raw Xlib ownership and return codes.
2100pub fn set_pointer_mapping(display &Display, map_arg &u8, nmap i32) i32 {
2101 return C.XSetPointerMapping(display, map_arg, nmap)
2102}
2103
2104fn C.XSetScreenSaver(display &Display, timeout i32, interval i32, prefer_blanking i32, allow_exposures i32) i32
2105
2106// XSetScreenSaver: raw Xlib ownership and return codes.
2107pub fn set_screen_saver(display &Display, timeout i32, interval i32, prefer_blanking i32, allow_exposures i32) i32 {
2108 return C.XSetScreenSaver(display, timeout, interval, prefer_blanking, allow_exposures)
2109}
2110
2111fn C.XSetSelectionOwner(display &Display, selection Atom, owner Window, time Time) i32
2112
2113// XSetSelectionOwner: raw Xlib ownership and return codes.
2114pub fn set_selection_owner(display &Display, selection Atom, owner Window, time Time) i32 {
2115 return C.XSetSelectionOwner(display, selection, owner, time)
2116}
2117
2118fn C.XSetState(display &Display, gc GC, foreground CULong, background CULong, function i32, plane_mask CULong) i32
2119
2120// XSetState: raw Xlib ownership and return codes.
2121pub fn set_state(display &Display, gc GC, foreground CULong, background CULong, function i32, plane_mask CULong) i32 {
2122 return C.XSetState(display, gc, foreground, background, function, plane_mask)
2123}
2124
2125fn C.XSetStipple(display &Display, gc GC, stipple Pixmap) i32
2126
2127// XSetStipple: raw Xlib ownership and return codes.
2128pub fn set_stipple(display &Display, gc GC, stipple Pixmap) i32 {
2129 return C.XSetStipple(display, gc, stipple)
2130}
2131
2132fn C.XSetSubwindowMode(display &Display, gc GC, subwindow_mode i32) i32
2133
2134// XSetSubwindowMode: raw Xlib ownership and return codes.
2135pub fn set_subwindow_mode(display &Display, gc GC, subwindow_mode i32) i32 {
2136 return C.XSetSubwindowMode(display, gc, subwindow_mode)
2137}
2138
2139fn C.XSetTSOrigin(display &Display, gc GC, ts_x_origin i32, ts_y_origin i32) i32
2140
2141// XSetTSOrigin: raw Xlib ownership and return codes.
2142pub fn set_ts_origin(display &Display, gc GC, ts_x_origin i32, ts_y_origin i32) i32 {
2143 return C.XSetTSOrigin(display, gc, ts_x_origin, ts_y_origin)
2144}
2145
2146fn C.XSetTile(display &Display, gc GC, tile Pixmap) i32
2147
2148// XSetTile: raw Xlib ownership and return codes.
2149pub fn set_tile(display &Display, gc GC, tile Pixmap) i32 {
2150 return C.XSetTile(display, gc, tile)
2151}
2152
2153fn C.XSetWindowBackground(display &Display, w Window, background_pixel CULong) i32
2154
2155// XSetWindowBackground: raw Xlib ownership and return codes.
2156pub fn set_window_background(display &Display, w Window, background_pixel CULong) i32 {
2157 return C.XSetWindowBackground(display, w, background_pixel)
2158}
2159
2160fn C.XSetWindowBackgroundPixmap(display &Display, w Window, background_pixmap Pixmap) i32
2161
2162// XSetWindowBackgroundPixmap: raw Xlib ownership and return codes.
2163pub fn set_window_background_pixmap(display &Display, w Window, background_pixmap Pixmap) i32 {
2164 return C.XSetWindowBackgroundPixmap(display, w, background_pixmap)
2165}
2166
2167fn C.XSetWindowBorder(display &Display, w Window, border_pixel CULong) i32
2168
2169// XSetWindowBorder: raw Xlib ownership and return codes.
2170pub fn set_window_border(display &Display, w Window, border_pixel CULong) i32 {
2171 return C.XSetWindowBorder(display, w, border_pixel)
2172}
2173
2174fn C.XSetWindowBorderPixmap(display &Display, w Window, border_pixmap Pixmap) i32
2175
2176// XSetWindowBorderPixmap: raw Xlib ownership and return codes.
2177pub fn set_window_border_pixmap(display &Display, w Window, border_pixmap Pixmap) i32 {
2178 return C.XSetWindowBorderPixmap(display, w, border_pixmap)
2179}
2180
2181fn C.XSetWindowBorderWidth(display &Display, w Window, width u32) i32
2182
2183// XSetWindowBorderWidth: raw Xlib ownership and return codes.
2184pub fn set_window_border_width(display &Display, w Window, width u32) i32 {
2185 return C.XSetWindowBorderWidth(display, w, width)
2186}
2187
2188fn C.XSetWindowColormap(display &Display, w Window, colormap Colormap) i32
2189
2190// XSetWindowColormap: raw Xlib ownership and return codes.
2191pub fn set_window_colormap(display &Display, w Window, colormap Colormap) i32 {
2192 return C.XSetWindowColormap(display, w, colormap)
2193}
2194
2195fn C.XStoreBuffer(display &Display, bytes &char, nbytes i32, buffer i32) i32
2196
2197// XStoreBuffer: raw Xlib ownership and return codes.
2198pub fn store_buffer(display &Display, bytes &char, nbytes i32, buffer i32) i32 {
2199 return C.XStoreBuffer(display, bytes, nbytes, buffer)
2200}
2201
2202fn C.XStoreBytes(display &Display, bytes &char, nbytes i32) i32
2203
2204// XStoreBytes: raw Xlib ownership and return codes.
2205pub fn store_bytes(display &Display, bytes &char, nbytes i32) i32 {
2206 return C.XStoreBytes(display, bytes, nbytes)
2207}
2208
2209fn C.XStoreColor(display &Display, colormap Colormap, color &XColor) i32
2210
2211// XStoreColor: raw Xlib ownership and return codes.
2212pub fn store_color(display &Display, colormap Colormap, color &XColor) i32 {
2213 return C.XStoreColor(display, colormap, color)
2214}
2215
2216fn C.XStoreColors(display &Display, colormap Colormap, color &XColor, ncolors i32) i32
2217
2218// XStoreColors: raw Xlib ownership and return codes.
2219pub fn store_colors(display &Display, colormap Colormap, color &XColor, ncolors i32) i32 {
2220 return C.XStoreColors(display, colormap, color, ncolors)
2221}
2222
2223fn C.XStoreName(display &Display, w Window, window_name &char) i32
2224
2225// XStoreName: raw Xlib ownership and return codes.
2226pub fn store_name(display &Display, w Window, window_name &char) i32 {
2227 return C.XStoreName(display, w, window_name)
2228}
2229
2230fn C.XStoreNamedColor(display &Display, colormap Colormap, color &char, pixel CULong, flags i32) i32
2231
2232// XStoreNamedColor: raw Xlib ownership and return codes.
2233pub fn store_named_color(display &Display, colormap Colormap, color &char, pixel CULong, flags i32) i32 {
2234 return C.XStoreNamedColor(display, colormap, color, pixel, flags)
2235}
2236
2237fn C.XSync(display &Display, discard i32) i32
2238
2239// XSync: raw Xlib ownership and return codes.
2240pub fn sync(display &Display, discard i32) i32 {
2241 return C.XSync(display, discard)
2242}
2243
2244fn C.XTextExtents(font_struct &XFontStruct, string_arg &char, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32
2245
2246// XTextExtents: raw Xlib ownership and return codes.
2247pub fn text_extents(font_struct &XFontStruct, string_arg &char, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32 {
2248 return C.XTextExtents(font_struct, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return)
2249}
2250
2251fn C.XTextExtents16(font_struct &XFontStruct, string_arg &XChar2b, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32
2252
2253// XTextExtents16: raw Xlib ownership and return codes.
2254pub fn text_extents16(font_struct &XFontStruct, string_arg &XChar2b, nchars i32, direction_return &i32, font_ascent_return &i32, font_descent_return &i32, overall_return &XCharStruct) i32 {
2255 return C.XTextExtents16(font_struct, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return)
2256}
2257
2258fn C.XTextWidth(font_struct &XFontStruct, string_arg &char, count i32) i32
2259
2260// XTextWidth: raw Xlib ownership and return codes.
2261pub fn text_width(font_struct &XFontStruct, string_arg &char, count i32) i32 {
2262 return C.XTextWidth(font_struct, string_arg, count)
2263}
2264
2265fn C.XTextWidth16(font_struct &XFontStruct, string_arg &XChar2b, count i32) i32
2266
2267// XTextWidth16: raw Xlib ownership and return codes.
2268pub fn text_width16(font_struct &XFontStruct, string_arg &XChar2b, count i32) i32 {
2269 return C.XTextWidth16(font_struct, string_arg, count)
2270}
2271
2272fn C.XTranslateCoordinates(display &Display, src_w Window, dest_w Window, src_x i32, src_y i32, dest_x_return &i32, dest_y_return &i32, child_return &Window) i32
2273
2274// XTranslateCoordinates: raw Xlib ownership and return codes.
2275pub fn translate_coordinates(display &Display, src_w Window, dest_w Window, src_x i32, src_y i32, dest_x_return &i32, dest_y_return &i32, child_return &Window) i32 {
2276 return C.XTranslateCoordinates(display, src_w, dest_w, src_x, src_y, dest_x_return, dest_y_return, child_return)
2277}
2278
2279fn C.XUndefineCursor(display &Display, w Window) i32
2280
2281// XUndefineCursor: raw Xlib ownership and return codes.
2282pub fn undefine_cursor(display &Display, w Window) i32 {
2283 return C.XUndefineCursor(display, w)
2284}
2285
2286fn C.XUngrabButton(display &Display, button u32, modifiers u32, grab_window Window) i32
2287
2288// XUngrabButton: raw Xlib ownership and return codes.
2289pub fn ungrab_button(display &Display, button u32, modifiers u32, grab_window Window) i32 {
2290 return C.XUngrabButton(display, button, modifiers, grab_window)
2291}
2292
2293fn C.XUngrabKey(display &Display, keycode i32, modifiers u32, grab_window Window) i32
2294
2295// XUngrabKey: raw Xlib ownership and return codes.
2296pub fn ungrab_key(display &Display, keycode i32, modifiers u32, grab_window Window) i32 {
2297 return C.XUngrabKey(display, keycode, modifiers, grab_window)
2298}
2299
2300fn C.XUngrabKeyboard(display &Display, time Time) i32
2301
2302// XUngrabKeyboard: raw Xlib ownership and return codes.
2303pub fn ungrab_keyboard(display &Display, time Time) i32 {
2304 return C.XUngrabKeyboard(display, time)
2305}
2306
2307fn C.XUngrabPointer(display &Display, time Time) i32
2308
2309// XUngrabPointer: raw Xlib ownership and return codes.
2310pub fn ungrab_pointer(display &Display, time Time) i32 {
2311 return C.XUngrabPointer(display, time)
2312}
2313
2314fn C.XUngrabServer(display &Display) i32
2315
2316// XUngrabServer: raw Xlib ownership and return codes.
2317pub fn ungrab_server(display &Display) i32 {
2318 return C.XUngrabServer(display)
2319}
2320
2321fn C.XUninstallColormap(display &Display, colormap Colormap) i32
2322
2323// XUninstallColormap: raw Xlib ownership and return codes.
2324pub fn uninstall_colormap(display &Display, colormap Colormap) i32 {
2325 return C.XUninstallColormap(display, colormap)
2326}
2327
2328fn C.XUnloadFont(display &Display, font Font) i32
2329
2330// XUnloadFont: raw Xlib ownership and return codes.
2331pub fn unload_font(display &Display, font Font) i32 {
2332 return C.XUnloadFont(display, font)
2333}
2334
2335fn C.XUnmapSubwindows(display &Display, w Window) i32
2336
2337// XUnmapSubwindows: raw Xlib ownership and return codes.
2338pub fn unmap_subwindows(display &Display, w Window) i32 {
2339 return C.XUnmapSubwindows(display, w)
2340}
2341
2342fn C.XUnmapWindow(display &Display, w Window) i32
2343
2344// XUnmapWindow: raw Xlib ownership and return codes.
2345pub fn unmap_window(display &Display, w Window) i32 {
2346 return C.XUnmapWindow(display, w)
2347}
2348
2349fn C.XVendorRelease(display &Display) i32
2350
2351// XVendorRelease: raw Xlib ownership and return codes.
2352pub fn vendor_release(display &Display) i32 {
2353 return C.XVendorRelease(display)
2354}
2355
2356fn C.XWarpPointer(display &Display, src_w Window, dest_w Window, src_x i32, src_y i32, src_width u32, src_height u32, dest_x i32, dest_y i32) i32
2357
2358// XWarpPointer: raw Xlib ownership and return codes.
2359pub fn warp_pointer(display &Display, src_w Window, dest_w Window, src_x i32, src_y i32, src_width u32, src_height u32, dest_x i32, dest_y i32) i32 {
2360 return C.XWarpPointer(display, src_w, dest_w, src_x, src_y, src_width, src_height, dest_x, dest_y)
2361}
2362
2363fn C.XWidthMMOfScreen(screen &Screen) i32
2364
2365// XWidthMMOfScreen: raw Xlib ownership and return codes.
2366pub fn width_mm_of_screen(screen &Screen) i32 {
2367 return C.XWidthMMOfScreen(screen)
2368}
2369
2370fn C.XWidthOfScreen(screen &Screen) i32
2371
2372// XWidthOfScreen: raw Xlib ownership and return codes.
2373pub fn width_of_screen(screen &Screen) i32 {
2374 return C.XWidthOfScreen(screen)
2375}
2376
2377fn C.XWindowEvent(display &Display, w Window, event_mask CLong, event_return &XEvent) i32
2378
2379// XWindowEvent: raw Xlib ownership and return codes.
2380pub fn window_event(display &Display, w Window, event_mask CLong, event_return &XEvent) i32 {
2381 return C.XWindowEvent(display, w, event_mask, event_return)
2382}
2383
2384fn C.XWriteBitmapFile(display &Display, filename &char, bitmap Pixmap, width u32, height u32, x_hot i32, y_hot i32) i32
2385
2386// XWriteBitmapFile: raw Xlib ownership and return codes.
2387pub fn write_bitmap_file(display &Display, filename &char, bitmap Pixmap, width u32, height u32, x_hot i32, y_hot i32) i32 {
2388 return C.XWriteBitmapFile(display, filename, bitmap, width, height, x_hot, y_hot)
2389}
2390
2391fn C.XSupportsLocale() i32
2392
2393// XSupportsLocale: raw Xlib ownership and return codes.
2394pub fn supports_locale() i32 {
2395 return C.XSupportsLocale()
2396}
2397
2398fn C.XSetLocaleModifiers(modifier_list &char) &char
2399
2400// XSetLocaleModifiers: raw Xlib ownership and return codes.
2401pub fn set_locale_modifiers(modifier_list &char) &char {
2402 return C.XSetLocaleModifiers(modifier_list)
2403}
2404
2405fn C.XOpenOM(display &Display, rdb voidptr, res_name &char, res_class &char) XOM
2406
2407// XOpenOM: raw Xlib ownership and return codes.
2408pub fn open_om(display &Display, rdb voidptr, res_name &char, res_class &char) XOM {
2409 return C.XOpenOM(display, rdb, res_name, res_class)
2410}
2411
2412fn C.XCloseOM(om XOM) i32
2413
2414// XCloseOM: raw Xlib ownership and return codes.
2415pub fn close_om(om XOM) i32 {
2416 return C.XCloseOM(om)
2417}
2418
2419fn C.vx11_XSetOMValues(om XOM, args &voidptr, count i32) &char
2420
2421// XSetOMValues: alternating name/value pointers, without a trailing null.
2422pub fn set_om_values(om XOM, args []voidptr) !&char {
2423 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2424 return C.vx11_XSetOMValues(om, args.data, i32(args.len))
2425}
2426
2427fn C.vx11_XGetOMValues(om XOM, args &voidptr, count i32) &char
2428
2429// XGetOMValues: alternating name/value pointers, without a trailing null.
2430pub fn get_om_values(om XOM, args []voidptr) !&char {
2431 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2432 return C.vx11_XGetOMValues(om, args.data, i32(args.len))
2433}
2434
2435fn C.XDisplayOfOM(om XOM) &Display
2436
2437// XDisplayOfOM: raw Xlib ownership and return codes.
2438pub fn display_of_om(om XOM) &Display {
2439 return C.XDisplayOfOM(om)
2440}
2441
2442fn C.XLocaleOfOM(om XOM) &char
2443
2444// XLocaleOfOM: raw Xlib ownership and return codes.
2445pub fn locale_of_om(om XOM) &char {
2446 return C.XLocaleOfOM(om)
2447}
2448
2449fn C.vx11_XCreateOC(om XOM, args &voidptr, count i32) XOC
2450
2451// XCreateOC: alternating name/value pointers, without a trailing null.
2452pub fn create_oc(om XOM, args []voidptr) !XOC {
2453 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2454 return C.vx11_XCreateOC(om, args.data, i32(args.len))
2455}
2456
2457fn C.XDestroyOC(oc XOC)
2458
2459// XDestroyOC: raw Xlib ownership and return codes.
2460pub fn destroy_oc(oc XOC) {
2461 C.XDestroyOC(oc)
2462}
2463
2464fn C.XOMOfOC(oc XOC) XOM
2465
2466// XOMOfOC: raw Xlib ownership and return codes.
2467pub fn om_of_oc(oc XOC) XOM {
2468 return C.XOMOfOC(oc)
2469}
2470
2471fn C.vx11_XSetOCValues(oc XOC, args &voidptr, count i32) &char
2472
2473// XSetOCValues: alternating name/value pointers, without a trailing null.
2474pub fn set_oc_values(oc XOC, args []voidptr) !&char {
2475 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2476 return C.vx11_XSetOCValues(oc, args.data, i32(args.len))
2477}
2478
2479fn C.vx11_XGetOCValues(oc XOC, args &voidptr, count i32) &char
2480
2481// XGetOCValues: alternating name/value pointers, without a trailing null.
2482pub fn get_oc_values(oc XOC, args []voidptr) !&char {
2483 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2484 return C.vx11_XGetOCValues(oc, args.data, i32(args.len))
2485}
2486
2487fn C.XCreateFontSet(display &Display, base_font_name_list &char, missing_charset_list &&&char, missing_charset_count &i32, def_string &&char) XFontSet
2488
2489// XCreateFontSet: raw Xlib ownership and return codes.
2490pub fn create_font_set(display &Display, base_font_name_list &char, missing_charset_list &&&char, missing_charset_count &i32, def_string &&char) XFontSet {
2491 return C.XCreateFontSet(display, base_font_name_list, missing_charset_list, missing_charset_count, def_string)
2492}
2493
2494fn C.XFreeFontSet(display &Display, font_set XFontSet)
2495
2496// XFreeFontSet: raw Xlib ownership and return codes.
2497pub fn free_font_set(display &Display, font_set XFontSet) {
2498 C.XFreeFontSet(display, font_set)
2499}
2500
2501fn C.XFontsOfFontSet(font_set XFontSet, font_struct_list &&&XFontStruct, font_name_list &&&char) i32
2502
2503// XFontsOfFontSet: raw Xlib ownership and return codes.
2504pub fn fonts_of_font_set(font_set XFontSet, font_struct_list &&&XFontStruct, font_name_list &&&char) i32 {
2505 return C.XFontsOfFontSet(font_set, font_struct_list, font_name_list)
2506}
2507
2508fn C.XBaseFontNameListOfFontSet(font_set XFontSet) &char
2509
2510// XBaseFontNameListOfFontSet: raw Xlib ownership and return codes.
2511pub fn base_font_name_list_of_font_set(font_set XFontSet) &char {
2512 return C.XBaseFontNameListOfFontSet(font_set)
2513}
2514
2515fn C.XLocaleOfFontSet(font_set XFontSet) &char
2516
2517// XLocaleOfFontSet: raw Xlib ownership and return codes.
2518pub fn locale_of_font_set(font_set XFontSet) &char {
2519 return C.XLocaleOfFontSet(font_set)
2520}
2521
2522fn C.XContextDependentDrawing(font_set XFontSet) i32
2523
2524// XContextDependentDrawing: raw Xlib ownership and return codes.
2525pub fn context_dependent_drawing(font_set XFontSet) i32 {
2526 return C.XContextDependentDrawing(font_set)
2527}
2528
2529fn C.XDirectionalDependentDrawing(font_set XFontSet) i32
2530
2531// XDirectionalDependentDrawing: raw Xlib ownership and return codes.
2532pub fn directional_dependent_drawing(font_set XFontSet) i32 {
2533 return C.XDirectionalDependentDrawing(font_set)
2534}
2535
2536fn C.XContextualDrawing(font_set XFontSet) i32
2537
2538// XContextualDrawing: raw Xlib ownership and return codes.
2539pub fn contextual_drawing(font_set XFontSet) i32 {
2540 return C.XContextualDrawing(font_set)
2541}
2542
2543fn C.XExtentsOfFontSet(font_set XFontSet) &XFontSetExtents
2544
2545// XExtentsOfFontSet: raw Xlib ownership and return codes.
2546pub fn extents_of_font_set(font_set XFontSet) &XFontSetExtents {
2547 return C.XExtentsOfFontSet(font_set)
2548}
2549
2550fn C.XmbTextEscapement(font_set XFontSet, text &char, bytes_text i32) i32
2551
2552// XmbTextEscapement: raw Xlib ownership and return codes.
2553pub fn mb_text_escapement(font_set XFontSet, text &char, bytes_text i32) i32 {
2554 return C.XmbTextEscapement(font_set, text, bytes_text)
2555}
2556
2557fn C.XwcTextEscapement(font_set XFontSet, text &i32, num_wchars i32) i32
2558
2559// XwcTextEscapement: raw Xlib ownership and return codes.
2560pub fn wc_text_escapement(font_set XFontSet, text &i32, num_wchars i32) i32 {
2561 return C.XwcTextEscapement(font_set, text, num_wchars)
2562}
2563
2564fn C.Xutf8TextEscapement(font_set XFontSet, text &char, bytes_text i32) i32
2565
2566// Xutf8TextEscapement: raw Xlib ownership and return codes.
2567pub fn utf8_text_escapement(font_set XFontSet, text &char, bytes_text i32) i32 {
2568 return C.Xutf8TextEscapement(font_set, text, bytes_text)
2569}
2570
2571fn C.XmbTextExtents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32
2572
2573// XmbTextExtents: raw Xlib ownership and return codes.
2574pub fn mb_text_extents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 {
2575 return C.XmbTextExtents(font_set, text, bytes_text, overall_ink_return, overall_logical_return)
2576}
2577
2578fn C.XwcTextExtents(font_set XFontSet, text &i32, num_wchars i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32
2579
2580// XwcTextExtents: raw Xlib ownership and return codes.
2581pub fn wc_text_extents(font_set XFontSet, text &i32, num_wchars i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 {
2582 return C.XwcTextExtents(font_set, text, num_wchars, overall_ink_return, overall_logical_return)
2583}
2584
2585fn C.Xutf8TextExtents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32
2586
2587// Xutf8TextExtents: raw Xlib ownership and return codes.
2588pub fn utf8_text_extents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 {
2589 return C.Xutf8TextExtents(font_set, text, bytes_text, overall_ink_return, overall_logical_return)
2590}
2591
2592fn C.XmbTextPerCharExtents(font_set XFontSet, text &char, bytes_text i32, ink_extents_buffer &XRectangle, logical_extents_buffer &XRectangle, buffer_size i32, num_chars &i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32
2593
2594// XmbTextPerCharExtents: raw Xlib ownership and return codes.
2595pub fn mb_text_per_char_extents(font_set XFontSet, text &char, bytes_text i32, ink_extents_buffer &XRectangle, logical_extents_buffer &XRectangle, buffer_size i32, num_chars &i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 {
2596 return C.XmbTextPerCharExtents(font_set, text, bytes_text, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, overall_ink_return, overall_logical_return)
2597}
2598
2599fn C.XwcTextPerCharExtents(font_set XFontSet, text &i32, num_wchars i32, ink_extents_buffer &XRectangle, logical_extents_buffer &XRectangle, buffer_size i32, num_chars &i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32
2600
2601// XwcTextPerCharExtents: raw Xlib ownership and return codes.
2602pub fn wc_text_per_char_extents(font_set XFontSet, text &i32, num_wchars i32, ink_extents_buffer &XRectangle, logical_extents_buffer &XRectangle, buffer_size i32, num_chars &i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 {
2603 return C.XwcTextPerCharExtents(font_set, text, num_wchars, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, overall_ink_return, overall_logical_return)
2604}
2605
2606fn C.Xutf8TextPerCharExtents(font_set XFontSet, text &char, bytes_text i32, ink_extents_buffer &XRectangle, logical_extents_buffer &XRectangle, buffer_size i32, num_chars &i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32
2607
2608// Xutf8TextPerCharExtents: raw Xlib ownership and return codes.
2609pub fn utf8_text_per_char_extents(font_set XFontSet, text &char, bytes_text i32, ink_extents_buffer &XRectangle, logical_extents_buffer &XRectangle, buffer_size i32, num_chars &i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 {
2610 return C.Xutf8TextPerCharExtents(font_set, text, bytes_text, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, overall_ink_return, overall_logical_return)
2611}
2612
2613fn C.XmbDrawText(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32)
2614
2615// XmbDrawText: raw Xlib ownership and return codes.
2616pub fn mb_draw_text(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32) {
2617 C.XmbDrawText(display, d, gc, x, y, text_items, nitems)
2618}
2619
2620fn C.XwcDrawText(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XwcTextItem, nitems i32)
2621
2622// XwcDrawText: raw Xlib ownership and return codes.
2623pub fn wc_draw_text(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XwcTextItem, nitems i32) {
2624 C.XwcDrawText(display, d, gc, x, y, text_items, nitems)
2625}
2626
2627fn C.Xutf8DrawText(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32)
2628
2629// Xutf8DrawText: raw Xlib ownership and return codes.
2630pub fn utf8_draw_text(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32) {
2631 C.Xutf8DrawText(display, d, gc, x, y, text_items, nitems)
2632}
2633
2634fn C.XmbDrawString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32)
2635
2636// XmbDrawString: raw Xlib ownership and return codes.
2637pub fn mb_draw_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) {
2638 C.XmbDrawString(display, d, font_set, gc, x, y, text, bytes_text)
2639}
2640
2641fn C.XwcDrawString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32)
2642
2643// XwcDrawString: raw Xlib ownership and return codes.
2644pub fn wc_draw_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32) {
2645 C.XwcDrawString(display, d, font_set, gc, x, y, text, num_wchars)
2646}
2647
2648fn C.Xutf8DrawString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32)
2649
2650// Xutf8DrawString: raw Xlib ownership and return codes.
2651pub fn utf8_draw_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) {
2652 C.Xutf8DrawString(display, d, font_set, gc, x, y, text, bytes_text)
2653}
2654
2655fn C.XmbDrawImageString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32)
2656
2657// XmbDrawImageString: raw Xlib ownership and return codes.
2658pub fn mb_draw_image_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) {
2659 C.XmbDrawImageString(display, d, font_set, gc, x, y, text, bytes_text)
2660}
2661
2662fn C.XwcDrawImageString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32)
2663
2664// XwcDrawImageString: raw Xlib ownership and return codes.
2665pub fn wc_draw_image_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32) {
2666 C.XwcDrawImageString(display, d, font_set, gc, x, y, text, num_wchars)
2667}
2668
2669fn C.Xutf8DrawImageString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32)
2670
2671// Xutf8DrawImageString: raw Xlib ownership and return codes.
2672pub fn utf8_draw_image_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) {
2673 C.Xutf8DrawImageString(display, d, font_set, gc, x, y, text, bytes_text)
2674}
2675
2676fn C.XOpenIM(dpy &Display, rdb voidptr, res_name &char, res_class &char) XIM
2677
2678// XOpenIM: raw Xlib ownership and return codes.
2679pub fn open_im(dpy &Display, rdb voidptr, res_name &char, res_class &char) XIM {
2680 return C.XOpenIM(dpy, rdb, res_name, res_class)
2681}
2682
2683fn C.XCloseIM(im XIM) i32
2684
2685// XCloseIM: raw Xlib ownership and return codes.
2686pub fn close_im(im XIM) i32 {
2687 return C.XCloseIM(im)
2688}
2689
2690fn C.vx11_XGetIMValues(im XIM, args &voidptr, count i32) &char
2691
2692// XGetIMValues: alternating name/value pointers, without a trailing null.
2693pub fn get_im_values(im XIM, args []voidptr) !&char {
2694 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2695 return C.vx11_XGetIMValues(im, args.data, i32(args.len))
2696}
2697
2698fn C.vx11_XSetIMValues(im XIM, args &voidptr, count i32) &char
2699
2700// XSetIMValues: alternating name/value pointers, without a trailing null.
2701pub fn set_im_values(im XIM, args []voidptr) !&char {
2702 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2703 return C.vx11_XSetIMValues(im, args.data, i32(args.len))
2704}
2705
2706fn C.XDisplayOfIM(im XIM) &Display
2707
2708// XDisplayOfIM: raw Xlib ownership and return codes.
2709pub fn display_of_im(im XIM) &Display {
2710 return C.XDisplayOfIM(im)
2711}
2712
2713fn C.XLocaleOfIM(im XIM) &char
2714
2715// XLocaleOfIM: raw Xlib ownership and return codes.
2716pub fn locale_of_im(im XIM) &char {
2717 return C.XLocaleOfIM(im)
2718}
2719
2720fn C.vx11_XCreateIC(im XIM, args &voidptr, count i32) XIC
2721
2722// XCreateIC: alternating name/value pointers, without a trailing null.
2723pub fn create_ic(im XIM, args []voidptr) !XIC {
2724 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2725 return C.vx11_XCreateIC(im, args.data, i32(args.len))
2726}
2727
2728fn C.XDestroyIC(ic XIC)
2729
2730// XDestroyIC: raw Xlib ownership and return codes.
2731pub fn destroy_ic(ic XIC) {
2732 C.XDestroyIC(ic)
2733}
2734
2735fn C.XSetICFocus(ic XIC)
2736
2737// XSetICFocus: raw Xlib ownership and return codes.
2738pub fn set_ic_focus(ic XIC) {
2739 C.XSetICFocus(ic)
2740}
2741
2742fn C.XUnsetICFocus(ic XIC)
2743
2744// XUnsetICFocus: raw Xlib ownership and return codes.
2745pub fn unset_ic_focus(ic XIC) {
2746 C.XUnsetICFocus(ic)
2747}
2748
2749fn C.XwcResetIC(ic XIC) &i32
2750
2751// XwcResetIC: raw Xlib ownership and return codes.
2752pub fn wc_reset_ic(ic XIC) &i32 {
2753 return C.XwcResetIC(ic)
2754}
2755
2756fn C.XmbResetIC(ic XIC) &char
2757
2758// XmbResetIC: raw Xlib ownership and return codes.
2759pub fn mb_reset_ic(ic XIC) &char {
2760 return C.XmbResetIC(ic)
2761}
2762
2763fn C.Xutf8ResetIC(ic XIC) &char
2764
2765// Xutf8ResetIC: raw Xlib ownership and return codes.
2766pub fn utf8_reset_ic(ic XIC) &char {
2767 return C.Xutf8ResetIC(ic)
2768}
2769
2770fn C.vx11_XSetICValues(ic XIC, args &voidptr, count i32) &char
2771
2772// XSetICValues: alternating name/value pointers, without a trailing null.
2773pub fn set_ic_values(ic XIC, args []voidptr) !&char {
2774 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2775 return C.vx11_XSetICValues(ic, args.data, i32(args.len))
2776}
2777
2778fn C.vx11_XGetICValues(ic XIC, args &voidptr, count i32) &char
2779
2780// XGetICValues: alternating name/value pointers, without a trailing null.
2781pub fn get_ic_values(ic XIC, args []voidptr) !&char {
2782 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2783 return C.vx11_XGetICValues(ic, args.data, i32(args.len))
2784}
2785
2786fn C.XIMOfIC(ic XIC) XIM
2787
2788// XIMOfIC: raw Xlib ownership and return codes.
2789pub fn im_of_ic(ic XIC) XIM {
2790 return C.XIMOfIC(ic)
2791}
2792
2793fn C.XFilterEvent(event &XEvent, window Window) i32
2794
2795// XFilterEvent: raw Xlib ownership and return codes.
2796pub fn filter_event(event &XEvent, window Window) i32 {
2797 return C.XFilterEvent(event, window)
2798}
2799
2800fn C.XmbLookupString(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32
2801
2802// XmbLookupString: raw Xlib ownership and return codes.
2803pub fn mb_lookup_string(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32 {
2804 return C.XmbLookupString(ic, event, buffer_return, bytes_buffer, keysym_return, status_return)
2805}
2806
2807fn C.XwcLookupString(ic XIC, event &XKeyPressedEvent, buffer_return &i32, wchars_buffer i32, keysym_return &KeySym, status_return &i32) i32
2808
2809// XwcLookupString: raw Xlib ownership and return codes.
2810pub fn wc_lookup_string(ic XIC, event &XKeyPressedEvent, buffer_return &i32, wchars_buffer i32, keysym_return &KeySym, status_return &i32) i32 {
2811 return C.XwcLookupString(ic, event, buffer_return, wchars_buffer, keysym_return, status_return)
2812}
2813
2814fn C.Xutf8LookupString(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32
2815
2816// Xutf8LookupString: raw Xlib ownership and return codes.
2817pub fn utf8_lookup_string(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32 {
2818 return C.Xutf8LookupString(ic, event, buffer_return, bytes_buffer, keysym_return, status_return)
2819}
2820
2821fn C.vx11_XVaCreateNestedList(unused i32, args &voidptr, count i32) XVaNestedList
2822
2823// XVaCreateNestedList: alternating name/value pointers, without a trailing null.
2824pub fn va_create_nested_list(unused i32, args []voidptr) !XVaNestedList {
2825 if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') }
2826 return C.vx11_XVaCreateNestedList(unused, args.data, i32(args.len))
2827}
2828
2829fn C.vx11_XRegisterIMInstantiateCallback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback voidptr, client_data XPointer) i32
2830
2831// XRegisterIMInstantiateCallback: raw Xlib ownership and return codes.
2832pub fn register_im_instantiate_callback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback XIDProc, client_data XPointer) i32 {
2833 return C.vx11_XRegisterIMInstantiateCallback(dpy, rdb, res_name, res_class, voidptr(callback), client_data)
2834}
2835
2836fn C.vx11_XUnregisterIMInstantiateCallback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback voidptr, client_data XPointer) i32
2837
2838// XUnregisterIMInstantiateCallback: raw Xlib ownership and return codes.
2839pub fn unregister_im_instantiate_callback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback XIDProc, client_data XPointer) i32 {
2840 return C.vx11_XUnregisterIMInstantiateCallback(dpy, rdb, res_name, res_class, voidptr(callback), client_data)
2841}
2842
2843fn C.XInternalConnectionNumbers(dpy &Display, fd_return &&i32, count_return &i32) i32
2844
2845// XInternalConnectionNumbers: raw Xlib ownership and return codes.
2846pub fn internal_connection_numbers(dpy &Display, fd_return &&i32, count_return &i32) i32 {
2847 return C.XInternalConnectionNumbers(dpy, fd_return, count_return)
2848}
2849
2850fn C.XProcessInternalConnection(dpy &Display, fd i32)
2851
2852// XProcessInternalConnection: raw Xlib ownership and return codes.
2853pub fn process_internal_connection(dpy &Display, fd i32) {
2854 C.XProcessInternalConnection(dpy, fd)
2855}
2856
2857fn C.vx11_XAddConnectionWatch(dpy &Display, callback voidptr, client_data XPointer) i32
2858
2859// XAddConnectionWatch: raw Xlib ownership and return codes.
2860pub fn add_connection_watch(dpy &Display, callback XConnectionWatchProc, client_data XPointer) i32 {
2861 return C.vx11_XAddConnectionWatch(dpy, voidptr(callback), client_data)
2862}
2863
2864fn C.vx11_XRemoveConnectionWatch(dpy &Display, callback voidptr, client_data XPointer)
2865
2866// XRemoveConnectionWatch: raw Xlib ownership and return codes.
2867pub fn remove_connection_watch(dpy &Display, callback XConnectionWatchProc, client_data XPointer) {
2868 C.vx11_XRemoveConnectionWatch(dpy, voidptr(callback), client_data)
2869}
2870
2871fn C.XSetAuthorization(name &char, namelen i32, data &char, datalen i32)
2872
2873// XSetAuthorization: raw Xlib ownership and return codes.
2874pub fn set_authorization(name &char, namelen i32, data &char, datalen i32) {
2875 C.XSetAuthorization(name, namelen, data, datalen)
2876}
2877
2878fn C.XGetEventData(dpy &Display, cookie &XGenericEventCookie) i32
2879
2880// XGetEventData: raw Xlib ownership and return codes.
2881pub fn get_event_data(dpy &Display, cookie &XGenericEventCookie) i32 {
2882 return C.XGetEventData(dpy, cookie)
2883}
2884
2885fn C.XFreeEventData(dpy &Display, cookie &XGenericEventCookie)
2886
2887// XFreeEventData: raw Xlib ownership and return codes.
2888pub fn free_event_data(dpy &Display, cookie &XGenericEventCookie) {
2889 C.XFreeEventData(dpy, cookie)
2890}
2891
2892fn C.Xpermalloc(size u32) &char
2893
2894// Xpermalloc: raw Xlib ownership and return codes.
2895pub fn permalloc(size u32) &char {
2896 return C.Xpermalloc(size)
2897}
2898
2899fn C.XrmStringToQuark(string_arg &char) XrmQuark
2900
2901// XrmStringToQuark: raw Xlib ownership and return codes.
2902pub fn xrm_string_to_quark(string_arg &char) XrmQuark {
2903 return C.XrmStringToQuark(string_arg)
2904}
2905
2906fn C.XrmPermStringToQuark(string_arg &char) XrmQuark
2907
2908// XrmPermStringToQuark: raw Xlib ownership and return codes.
2909pub fn xrm_perm_string_to_quark(string_arg &char) XrmQuark {
2910 return C.XrmPermStringToQuark(string_arg)
2911}
2912
2913fn C.XrmQuarkToString(quark XrmQuark) XrmString
2914
2915// XrmQuarkToString: raw Xlib ownership and return codes.
2916pub fn xrm_quark_to_string(quark XrmQuark) XrmString {
2917 return C.XrmQuarkToString(quark)
2918}
2919
2920fn C.XrmUniqueQuark() XrmQuark
2921
2922// XrmUniqueQuark: raw Xlib ownership and return codes.
2923pub fn xrm_unique_quark() XrmQuark {
2924 return C.XrmUniqueQuark()
2925}
2926
2927fn C.XrmStringToQuarkList(string_arg &char, quarks_return XrmQuarkList)
2928
2929// XrmStringToQuarkList: raw Xlib ownership and return codes.
2930pub fn xrm_string_to_quark_list(string_arg &char, quarks_return XrmQuarkList) {
2931 C.XrmStringToQuarkList(string_arg, quarks_return)
2932}
2933
2934fn C.XrmStringToBindingQuarkList(string_arg &char, bindings_return XrmBindingList, quarks_return XrmQuarkList)
2935
2936// XrmStringToBindingQuarkList: raw Xlib ownership and return codes.
2937pub fn xrm_string_to_binding_quark_list(string_arg &char, bindings_return XrmBindingList, quarks_return XrmQuarkList) {
2938 C.XrmStringToBindingQuarkList(string_arg, bindings_return, quarks_return)
2939}
2940
2941fn C.XrmDestroyDatabase(database XrmDatabase)
2942
2943// XrmDestroyDatabase: raw Xlib ownership and return codes.
2944pub fn xrm_destroy_database(database XrmDatabase) {
2945 C.XrmDestroyDatabase(database)
2946}
2947
2948fn C.XrmQPutResource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, @type XrmRepresentation, value &XrmValue)
2949
2950// XrmQPutResource: raw Xlib ownership and return codes.
2951pub fn xrm_q_put_resource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, @type XrmRepresentation, value &XrmValue) {
2952 C.XrmQPutResource(database, bindings, quarks, @type, value)
2953}
2954
2955fn C.XrmPutResource(database &XrmDatabase, specifier &char, @type &char, value &XrmValue)
2956
2957// XrmPutResource: raw Xlib ownership and return codes.
2958pub fn xrm_put_resource(database &XrmDatabase, specifier &char, @type &char, value &XrmValue) {
2959 C.XrmPutResource(database, specifier, @type, value)
2960}
2961
2962fn C.XrmQPutStringResource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, value &char)
2963
2964// XrmQPutStringResource: raw Xlib ownership and return codes.
2965pub fn xrm_q_put_string_resource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, value &char) {
2966 C.XrmQPutStringResource(database, bindings, quarks, value)
2967}
2968
2969fn C.XrmPutStringResource(database &XrmDatabase, specifier &char, value &char)
2970
2971// XrmPutStringResource: raw Xlib ownership and return codes.
2972pub fn xrm_put_string_resource(database &XrmDatabase, specifier &char, value &char) {
2973 C.XrmPutStringResource(database, specifier, value)
2974}
2975
2976fn C.XrmPutLineResource(database &XrmDatabase, line &char)
2977
2978// XrmPutLineResource: raw Xlib ownership and return codes.
2979pub fn xrm_put_line_resource(database &XrmDatabase, line &char) {
2980 C.XrmPutLineResource(database, line)
2981}
2982
2983fn C.XrmQGetResource(database XrmDatabase, quark_name XrmNameList, quark_class XrmClassList, quark_type_return &XrmRepresentation, value_return &XrmValue) i32
2984
2985// XrmQGetResource: raw Xlib ownership and return codes.
2986pub fn xrm_q_get_resource(database XrmDatabase, quark_name XrmNameList, quark_class XrmClassList, quark_type_return &XrmRepresentation, value_return &XrmValue) i32 {
2987 return C.XrmQGetResource(database, quark_name, quark_class, quark_type_return, value_return)
2988}
2989
2990fn C.XrmGetResource(database XrmDatabase, str_name &char, str_class &char, str_type_return &&char, value_return &XrmValue) i32
2991
2992// XrmGetResource: raw Xlib ownership and return codes.
2993pub fn xrm_get_resource(database XrmDatabase, str_name &char, str_class &char, str_type_return &&char, value_return &XrmValue) i32 {
2994 return C.XrmGetResource(database, str_name, str_class, str_type_return, value_return)
2995}
2996
2997fn C.XrmQGetSearchList(database XrmDatabase, names XrmNameList, classes XrmClassList, list_return &XrmHashTable, list_length i32) i32
2998
2999// XrmQGetSearchList: raw Xlib ownership and return codes.
3000pub fn xrm_q_get_search_list(database XrmDatabase, names XrmNameList, classes XrmClassList, list_return &XrmHashTable, list_length i32) i32 {
3001 return C.XrmQGetSearchList(database, names, classes, list_return, list_length)
3002}
3003
3004fn C.XrmQGetSearchResource(list &XrmHashTable, name XrmName, class XrmClass, type_return &XrmRepresentation, value_return &XrmValue) i32
3005
3006// XrmQGetSearchResource: raw Xlib ownership and return codes.
3007pub fn xrm_q_get_search_resource(list &XrmHashTable, name XrmName, class XrmClass, type_return &XrmRepresentation, value_return &XrmValue) i32 {
3008 return C.XrmQGetSearchResource(list, name, class, type_return, value_return)
3009}
3010
3011fn C.XrmSetDatabase(display &Display, database XrmDatabase)
3012
3013// XrmSetDatabase: raw Xlib ownership and return codes.
3014pub fn xrm_set_database(display &Display, database XrmDatabase) {
3015 C.XrmSetDatabase(display, database)
3016}
3017
3018fn C.XrmGetDatabase(display &Display) XrmDatabase
3019
3020// XrmGetDatabase: raw Xlib ownership and return codes.
3021pub fn xrm_get_database(display &Display) XrmDatabase {
3022 return C.XrmGetDatabase(display)
3023}
3024
3025fn C.XrmGetFileDatabase(filename &char) XrmDatabase
3026
3027// XrmGetFileDatabase: raw Xlib ownership and return codes.
3028pub fn xrm_get_file_database(filename &char) XrmDatabase {
3029 return C.XrmGetFileDatabase(filename)
3030}
3031
3032fn C.XrmCombineFileDatabase(filename &char, target &XrmDatabase, override i32) i32
3033
3034// XrmCombineFileDatabase: raw Xlib ownership and return codes.
3035pub fn xrm_combine_file_database(filename &char, target &XrmDatabase, override i32) i32 {
3036 return C.XrmCombineFileDatabase(filename, target, override)
3037}
3038
3039fn C.XrmGetStringDatabase(arg0 &char) XrmDatabase
3040
3041// XrmGetStringDatabase: raw Xlib ownership and return codes.
3042pub fn xrm_get_string_database(arg0 &char) XrmDatabase {
3043 return C.XrmGetStringDatabase(arg0)
3044}
3045
3046fn C.XrmPutFileDatabase(database XrmDatabase, filename &char)
3047
3048// XrmPutFileDatabase: raw Xlib ownership and return codes.
3049pub fn xrm_put_file_database(database XrmDatabase, filename &char) {
3050 C.XrmPutFileDatabase(database, filename)
3051}
3052
3053fn C.XrmMergeDatabases(source_db XrmDatabase, target_db &XrmDatabase)
3054
3055// XrmMergeDatabases: raw Xlib ownership and return codes.
3056pub fn xrm_merge_databases(source_db XrmDatabase, target_db &XrmDatabase) {
3057 C.XrmMergeDatabases(source_db, target_db)
3058}
3059
3060fn C.XrmCombineDatabase(source_db XrmDatabase, target_db &XrmDatabase, override i32)
3061
3062// XrmCombineDatabase: raw Xlib ownership and return codes.
3063pub fn xrm_combine_database(source_db XrmDatabase, target_db &XrmDatabase, override i32) {
3064 C.XrmCombineDatabase(source_db, target_db, override)
3065}
3066
3067fn C.vx11_XrmEnumerateDatabase(db XrmDatabase, name_prefix XrmNameList, class_prefix XrmClassList, mode i32, arg4 voidptr, closure XPointer) i32
3068
3069// XrmEnumerateDatabase: raw Xlib ownership and return codes.
3070pub fn xrm_enumerate_database(db XrmDatabase, name_prefix XrmNameList, class_prefix XrmClassList, mode i32, arg4 fn (&XrmDatabase, XrmBindingList, XrmQuarkList, &XrmRepresentation, &XrmValue, XPointer) i32, closure XPointer) i32 {
3071 return C.vx11_XrmEnumerateDatabase(db, name_prefix, class_prefix, mode, voidptr(arg4), closure)
3072}
3073
3074fn C.XrmLocaleOfDatabase(database XrmDatabase) &char
3075
3076// XrmLocaleOfDatabase: raw Xlib ownership and return codes.
3077pub fn xrm_locale_of_database(database XrmDatabase) &char {
3078 return C.XrmLocaleOfDatabase(database)
3079}
3080
3081fn C.XrmParseCommand(database &XrmDatabase, table XrmOptionDescList, table_count i32, name &char, argc_in_out &i32, argv_in_out &&char)
3082
3083// XrmParseCommand: raw Xlib ownership and return codes.
3084pub fn xrm_parse_command(database &XrmDatabase, table XrmOptionDescList, table_count i32, name &char, argc_in_out &i32, argv_in_out &&char) {
3085 C.XrmParseCommand(database, table, table_count, name, argc_in_out, argv_in_out)
3086}
3087
3088fn C.XAllocClassHint() &XClassHint
3089
3090// XAllocClassHint: raw Xlib ownership and return codes.
3091pub fn alloc_class_hint() &XClassHint {
3092 return C.XAllocClassHint()
3093}
3094
3095fn C.XAllocIconSize() &XIconSize
3096
3097// XAllocIconSize: raw Xlib ownership and return codes.
3098pub fn alloc_icon_size() &XIconSize {
3099 return C.XAllocIconSize()
3100}
3101
3102fn C.XAllocSizeHints() &XSizeHints
3103
3104// XAllocSizeHints: raw Xlib ownership and return codes.
3105pub fn alloc_size_hints() &XSizeHints {
3106 return C.XAllocSizeHints()
3107}
3108
3109fn C.XAllocStandardColormap() &XStandardColormap
3110
3111// XAllocStandardColormap: raw Xlib ownership and return codes.
3112pub fn alloc_standard_colormap() &XStandardColormap {
3113 return C.XAllocStandardColormap()
3114}
3115
3116fn C.XAllocWMHints() &XWMHints
3117
3118// XAllocWMHints: raw Xlib ownership and return codes.
3119pub fn alloc_wm_hints() &XWMHints {
3120 return C.XAllocWMHints()
3121}
3122
3123fn C.XClipBox(r Region, rect_return &XRectangle) i32
3124
3125// XClipBox: raw Xlib ownership and return codes.
3126pub fn clip_box(r Region, rect_return &XRectangle) i32 {
3127 return C.XClipBox(r, rect_return)
3128}
3129
3130fn C.XCreateRegion() Region
3131
3132// XCreateRegion: raw Xlib ownership and return codes.
3133pub fn create_region() Region {
3134 return C.XCreateRegion()
3135}
3136
3137fn C.XDefaultString() &char
3138
3139// XDefaultString: raw Xlib ownership and return codes.
3140pub fn default_string() &char {
3141 return C.XDefaultString()
3142}
3143
3144fn C.XDeleteContext(display &Display, rid XID, context XContext) i32
3145
3146// XDeleteContext: raw Xlib ownership and return codes.
3147pub fn delete_context(display &Display, rid XID, context XContext) i32 {
3148 return C.XDeleteContext(display, rid, context)
3149}
3150
3151fn C.XDestroyRegion(r Region) i32
3152
3153// XDestroyRegion: raw Xlib ownership and return codes.
3154pub fn destroy_region(r Region) i32 {
3155 return C.XDestroyRegion(r)
3156}
3157
3158fn C.XEmptyRegion(r Region) i32
3159
3160// XEmptyRegion: raw Xlib ownership and return codes.
3161pub fn empty_region(r Region) i32 {
3162 return C.XEmptyRegion(r)
3163}
3164
3165fn C.XEqualRegion(r1 Region, r2 Region) i32
3166
3167// XEqualRegion: raw Xlib ownership and return codes.
3168pub fn equal_region(r1 Region, r2 Region) i32 {
3169 return C.XEqualRegion(r1, r2)
3170}
3171
3172fn C.XFindContext(display &Display, rid XID, context XContext, data_return &XPointer) i32
3173
3174// XFindContext: raw Xlib ownership and return codes.
3175pub fn find_context(display &Display, rid XID, context XContext, data_return &XPointer) i32 {
3176 return C.XFindContext(display, rid, context, data_return)
3177}
3178
3179fn C.XGetClassHint(display &Display, w Window, class_hints_return &XClassHint) i32
3180
3181// XGetClassHint: raw Xlib ownership and return codes.
3182pub fn get_class_hint(display &Display, w Window, class_hints_return &XClassHint) i32 {
3183 return C.XGetClassHint(display, w, class_hints_return)
3184}
3185
3186fn C.XGetIconSizes(display &Display, w Window, size_list_return &&XIconSize, count_return &i32) i32
3187
3188// XGetIconSizes: raw Xlib ownership and return codes.
3189pub fn get_icon_sizes(display &Display, w Window, size_list_return &&XIconSize, count_return &i32) i32 {
3190 return C.XGetIconSizes(display, w, size_list_return, count_return)
3191}
3192
3193fn C.XGetNormalHints(display &Display, w Window, hints_return &XSizeHints) i32
3194
3195// XGetNormalHints: raw Xlib ownership and return codes.
3196pub fn get_normal_hints(display &Display, w Window, hints_return &XSizeHints) i32 {
3197 return C.XGetNormalHints(display, w, hints_return)
3198}
3199
3200fn C.XGetRGBColormaps(display &Display, w Window, stdcmap_return &&XStandardColormap, count_return &i32, property Atom) i32
3201
3202// XGetRGBColormaps: raw Xlib ownership and return codes.
3203pub fn get_rgb_colormaps(display &Display, w Window, stdcmap_return &&XStandardColormap, count_return &i32, property Atom) i32 {
3204 return C.XGetRGBColormaps(display, w, stdcmap_return, count_return, property)
3205}
3206
3207fn C.XGetSizeHints(display &Display, w Window, hints_return &XSizeHints, property Atom) i32
3208
3209// XGetSizeHints: raw Xlib ownership and return codes.
3210pub fn get_size_hints(display &Display, w Window, hints_return &XSizeHints, property Atom) i32 {
3211 return C.XGetSizeHints(display, w, hints_return, property)
3212}
3213
3214fn C.XGetStandardColormap(display &Display, w Window, colormap_return &XStandardColormap, property Atom) i32
3215
3216// XGetStandardColormap: raw Xlib ownership and return codes.
3217pub fn get_standard_colormap(display &Display, w Window, colormap_return &XStandardColormap, property Atom) i32 {
3218 return C.XGetStandardColormap(display, w, colormap_return, property)
3219}
3220
3221fn C.XGetTextProperty(display &Display, window Window, text_prop_return &XTextProperty, property Atom) i32
3222
3223// XGetTextProperty: raw Xlib ownership and return codes.
3224pub fn get_text_property(display &Display, window Window, text_prop_return &XTextProperty, property Atom) i32 {
3225 return C.XGetTextProperty(display, window, text_prop_return, property)
3226}
3227
3228fn C.XGetVisualInfo(display &Display, vinfo_mask CLong, vinfo_template &XVisualInfo, nitems_return &i32) &XVisualInfo
3229
3230// XGetVisualInfo: raw Xlib ownership and return codes.
3231pub fn get_visual_info(display &Display, vinfo_mask CLong, vinfo_template &XVisualInfo, nitems_return &i32) &XVisualInfo {
3232 return C.XGetVisualInfo(display, vinfo_mask, vinfo_template, nitems_return)
3233}
3234
3235fn C.XGetWMClientMachine(display &Display, w Window, text_prop_return &XTextProperty) i32
3236
3237// XGetWMClientMachine: raw Xlib ownership and return codes.
3238pub fn get_wm_client_machine(display &Display, w Window, text_prop_return &XTextProperty) i32 {
3239 return C.XGetWMClientMachine(display, w, text_prop_return)
3240}
3241
3242fn C.XGetWMHints(display &Display, w Window) &XWMHints
3243
3244// XGetWMHints: raw Xlib ownership and return codes.
3245pub fn get_wm_hints(display &Display, w Window) &XWMHints {
3246 return C.XGetWMHints(display, w)
3247}
3248
3249fn C.XGetWMIconName(display &Display, w Window, text_prop_return &XTextProperty) i32
3250
3251// XGetWMIconName: raw Xlib ownership and return codes.
3252pub fn get_wm_icon_name(display &Display, w Window, text_prop_return &XTextProperty) i32 {
3253 return C.XGetWMIconName(display, w, text_prop_return)
3254}
3255
3256fn C.XGetWMName(display &Display, w Window, text_prop_return &XTextProperty) i32
3257
3258// XGetWMName: raw Xlib ownership and return codes.
3259pub fn get_wm_name(display &Display, w Window, text_prop_return &XTextProperty) i32 {
3260 return C.XGetWMName(display, w, text_prop_return)
3261}
3262
3263fn C.XGetWMNormalHints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong) i32
3264
3265// XGetWMNormalHints: raw Xlib ownership and return codes.
3266pub fn get_wm_normal_hints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong) i32 {
3267 return C.XGetWMNormalHints(display, w, hints_return, supplied_return)
3268}
3269
3270fn C.XGetWMSizeHints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong, property Atom) i32
3271
3272// XGetWMSizeHints: raw Xlib ownership and return codes.
3273pub fn get_wm_size_hints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong, property Atom) i32 {
3274 return C.XGetWMSizeHints(display, w, hints_return, supplied_return, property)
3275}
3276
3277fn C.XGetZoomHints(display &Display, w Window, zhints_return &XSizeHints) i32
3278
3279// XGetZoomHints: raw Xlib ownership and return codes.
3280pub fn get_zoom_hints(display &Display, w Window, zhints_return &XSizeHints) i32 {
3281 return C.XGetZoomHints(display, w, zhints_return)
3282}
3283
3284fn C.XIntersectRegion(sra Region, srb Region, dr_return Region) i32
3285
3286// XIntersectRegion: raw Xlib ownership and return codes.
3287pub fn intersect_region(sra Region, srb Region, dr_return Region) i32 {
3288 return C.XIntersectRegion(sra, srb, dr_return)
3289}
3290
3291fn C.XConvertCase(sym KeySym, lower &KeySym, upper &KeySym)
3292
3293// XConvertCase: raw Xlib ownership and return codes.
3294pub fn convert_case(sym KeySym, lower &KeySym, upper &KeySym) {
3295 C.XConvertCase(sym, lower, upper)
3296}
3297
3298fn C.XLookupString(event_struct &XKeyEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_in_out &XComposeStatus) i32
3299
3300// XLookupString: raw Xlib ownership and return codes.
3301pub fn lookup_string(event_struct &XKeyEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_in_out &XComposeStatus) i32 {
3302 return C.XLookupString(event_struct, buffer_return, bytes_buffer, keysym_return, status_in_out)
3303}
3304
3305fn C.XMatchVisualInfo(display &Display, screen i32, depth i32, class i32, vinfo_return &XVisualInfo) i32
3306
3307// XMatchVisualInfo: raw Xlib ownership and return codes.
3308pub fn match_visual_info(display &Display, screen i32, depth i32, class i32, vinfo_return &XVisualInfo) i32 {
3309 return C.XMatchVisualInfo(display, screen, depth, class, vinfo_return)
3310}
3311
3312fn C.XOffsetRegion(r Region, dx i32, dy i32) i32
3313
3314// XOffsetRegion: raw Xlib ownership and return codes.
3315pub fn offset_region(r Region, dx i32, dy i32) i32 {
3316 return C.XOffsetRegion(r, dx, dy)
3317}
3318
3319fn C.XPointInRegion(r Region, x i32, y i32) i32
3320
3321// XPointInRegion: raw Xlib ownership and return codes.
3322pub fn point_in_region(r Region, x i32, y i32) i32 {
3323 return C.XPointInRegion(r, x, y)
3324}
3325
3326fn C.XPolygonRegion(points &XPoint, n i32, fill_rule i32) Region
3327
3328// XPolygonRegion: raw Xlib ownership and return codes.
3329pub fn polygon_region(points &XPoint, n i32, fill_rule i32) Region {
3330 return C.XPolygonRegion(points, n, fill_rule)
3331}
3332
3333fn C.XRectInRegion(r Region, x i32, y i32, width u32, height u32) i32
3334
3335// XRectInRegion: raw Xlib ownership and return codes.
3336pub fn rect_in_region(r Region, x i32, y i32, width u32, height u32) i32 {
3337 return C.XRectInRegion(r, x, y, width, height)
3338}
3339
3340fn C.XSaveContext(display &Display, rid XID, context XContext, data &char) i32
3341
3342// XSaveContext: raw Xlib ownership and return codes.
3343pub fn save_context(display &Display, rid XID, context XContext, data &char) i32 {
3344 return C.XSaveContext(display, rid, context, data)
3345}
3346
3347fn C.XSetClassHint(display &Display, w Window, class_hints &XClassHint) i32
3348
3349// XSetClassHint: raw Xlib ownership and return codes.
3350pub fn set_class_hint(display &Display, w Window, class_hints &XClassHint) i32 {
3351 return C.XSetClassHint(display, w, class_hints)
3352}
3353
3354fn C.XSetIconSizes(display &Display, w Window, size_list &XIconSize, count i32) i32
3355
3356// XSetIconSizes: raw Xlib ownership and return codes.
3357pub fn set_icon_sizes(display &Display, w Window, size_list &XIconSize, count i32) i32 {
3358 return C.XSetIconSizes(display, w, size_list, count)
3359}
3360
3361fn C.XSetNormalHints(display &Display, w Window, hints &XSizeHints) i32
3362
3363// XSetNormalHints: raw Xlib ownership and return codes.
3364pub fn set_normal_hints(display &Display, w Window, hints &XSizeHints) i32 {
3365 return C.XSetNormalHints(display, w, hints)
3366}
3367
3368fn C.XSetRGBColormaps(display &Display, w Window, stdcmaps &XStandardColormap, count i32, property Atom)
3369
3370// XSetRGBColormaps: raw Xlib ownership and return codes.
3371pub fn set_rgb_colormaps(display &Display, w Window, stdcmaps &XStandardColormap, count i32, property Atom) {
3372 C.XSetRGBColormaps(display, w, stdcmaps, count, property)
3373}
3374
3375fn C.XSetSizeHints(display &Display, w Window, hints &XSizeHints, property Atom) i32
3376
3377// XSetSizeHints: raw Xlib ownership and return codes.
3378pub fn set_size_hints(display &Display, w Window, hints &XSizeHints, property Atom) i32 {
3379 return C.XSetSizeHints(display, w, hints, property)
3380}
3381
3382fn C.XSetStandardProperties(display &Display, w Window, window_name &char, icon_name &char, icon_pixmap Pixmap, argv &&char, argc i32, hints &XSizeHints) i32
3383
3384// XSetStandardProperties: raw Xlib ownership and return codes.
3385pub fn set_standard_properties(display &Display, w Window, window_name &char, icon_name &char, icon_pixmap Pixmap, argv &&char, argc i32, hints &XSizeHints) i32 {
3386 return C.XSetStandardProperties(display, w, window_name, icon_name, icon_pixmap, argv, argc, hints)
3387}
3388
3389fn C.XSetTextProperty(display &Display, w Window, text_prop &XTextProperty, property Atom)
3390
3391// XSetTextProperty: raw Xlib ownership and return codes.
3392pub fn set_text_property(display &Display, w Window, text_prop &XTextProperty, property Atom) {
3393 C.XSetTextProperty(display, w, text_prop, property)
3394}
3395
3396fn C.XSetWMClientMachine(display &Display, w Window, text_prop &XTextProperty)
3397
3398// XSetWMClientMachine: raw Xlib ownership and return codes.
3399pub fn set_wm_client_machine(display &Display, w Window, text_prop &XTextProperty) {
3400 C.XSetWMClientMachine(display, w, text_prop)
3401}
3402
3403fn C.XSetWMHints(display &Display, w Window, wm_hints &XWMHints) i32
3404
3405// XSetWMHints: raw Xlib ownership and return codes.
3406pub fn set_wm_hints(display &Display, w Window, wm_hints &XWMHints) i32 {
3407 return C.XSetWMHints(display, w, wm_hints)
3408}
3409
3410fn C.XSetWMIconName(display &Display, w Window, text_prop &XTextProperty)
3411
3412// XSetWMIconName: raw Xlib ownership and return codes.
3413pub fn set_wm_icon_name(display &Display, w Window, text_prop &XTextProperty) {
3414 C.XSetWMIconName(display, w, text_prop)
3415}
3416
3417fn C.XSetWMName(display &Display, w Window, text_prop &XTextProperty)
3418
3419// XSetWMName: raw Xlib ownership and return codes.
3420pub fn set_wm_name(display &Display, w Window, text_prop &XTextProperty) {
3421 C.XSetWMName(display, w, text_prop)
3422}
3423
3424fn C.XSetWMNormalHints(display &Display, w Window, hints &XSizeHints)
3425
3426// XSetWMNormalHints: raw Xlib ownership and return codes.
3427pub fn set_wm_normal_hints(display &Display, w Window, hints &XSizeHints) {
3428 C.XSetWMNormalHints(display, w, hints)
3429}
3430
3431fn C.XSetWMProperties(display &Display, w Window, window_name &XTextProperty, icon_name &XTextProperty, argv &&char, argc i32, normal_hints &XSizeHints, wm_hints &XWMHints, class_hints &XClassHint)
3432
3433// XSetWMProperties: raw Xlib ownership and return codes.
3434pub fn set_wm_properties(display &Display, w Window, window_name &XTextProperty, icon_name &XTextProperty, argv &&char, argc i32, normal_hints &XSizeHints, wm_hints &XWMHints, class_hints &XClassHint) {
3435 C.XSetWMProperties(display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints)
3436}
3437
3438fn C.XmbSetWMProperties(display &Display, w Window, window_name &char, icon_name &char, argv &&char, argc i32, normal_hints &XSizeHints, wm_hints &XWMHints, class_hints &XClassHint)
3439
3440// XmbSetWMProperties: raw Xlib ownership and return codes.
3441pub fn mb_set_wm_properties(display &Display, w Window, window_name &char, icon_name &char, argv &&char, argc i32, normal_hints &XSizeHints, wm_hints &XWMHints, class_hints &XClassHint) {
3442 C.XmbSetWMProperties(display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints)
3443}
3444
3445fn C.Xutf8SetWMProperties(display &Display, w Window, window_name &char, icon_name &char, argv &&char, argc i32, normal_hints &XSizeHints, wm_hints &XWMHints, class_hints &XClassHint)
3446
3447// Xutf8SetWMProperties: raw Xlib ownership and return codes.
3448pub fn utf8_set_wm_properties(display &Display, w Window, window_name &char, icon_name &char, argv &&char, argc i32, normal_hints &XSizeHints, wm_hints &XWMHints, class_hints &XClassHint) {
3449 C.Xutf8SetWMProperties(display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints)
3450}
3451
3452fn C.XSetWMSizeHints(display &Display, w Window, hints &XSizeHints, property Atom)
3453
3454// XSetWMSizeHints: raw Xlib ownership and return codes.
3455pub fn set_wm_size_hints(display &Display, w Window, hints &XSizeHints, property Atom) {
3456 C.XSetWMSizeHints(display, w, hints, property)
3457}
3458
3459fn C.XSetRegion(display &Display, gc GC, r Region) i32
3460
3461// XSetRegion: raw Xlib ownership and return codes.
3462pub fn set_region(display &Display, gc GC, r Region) i32 {
3463 return C.XSetRegion(display, gc, r)
3464}
3465
3466fn C.XSetStandardColormap(display &Display, w Window, colormap &XStandardColormap, property Atom)
3467
3468// XSetStandardColormap: raw Xlib ownership and return codes.
3469pub fn set_standard_colormap(display &Display, w Window, colormap &XStandardColormap, property Atom) {
3470 C.XSetStandardColormap(display, w, colormap, property)
3471}
3472
3473fn C.XSetZoomHints(display &Display, w Window, zhints &XSizeHints) i32
3474
3475// XSetZoomHints: raw Xlib ownership and return codes.
3476pub fn set_zoom_hints(display &Display, w Window, zhints &XSizeHints) i32 {
3477 return C.XSetZoomHints(display, w, zhints)
3478}
3479
3480fn C.XShrinkRegion(r Region, dx i32, dy i32) i32
3481
3482// XShrinkRegion: raw Xlib ownership and return codes.
3483pub fn shrink_region(r Region, dx i32, dy i32) i32 {
3484 return C.XShrinkRegion(r, dx, dy)
3485}
3486
3487fn C.XStringListToTextProperty(list &&char, count i32, text_prop_return &XTextProperty) i32
3488
3489// XStringListToTextProperty: raw Xlib ownership and return codes.
3490pub fn string_list_to_text_property(list &&char, count i32, text_prop_return &XTextProperty) i32 {
3491 return C.XStringListToTextProperty(list, count, text_prop_return)
3492}
3493
3494fn C.XSubtractRegion(sra Region, srb Region, dr_return Region) i32
3495
3496// XSubtractRegion: raw Xlib ownership and return codes.
3497pub fn subtract_region(sra Region, srb Region, dr_return Region) i32 {
3498 return C.XSubtractRegion(sra, srb, dr_return)
3499}
3500
3501fn C.XmbTextListToTextProperty(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32
3502
3503// XmbTextListToTextProperty: raw Xlib ownership and return codes.
3504pub fn mb_text_list_to_text_property(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 {
3505 return C.XmbTextListToTextProperty(display, list, count, style, text_prop_return)
3506}
3507
3508fn C.XwcTextListToTextProperty(display &Display, list &&i32, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32
3509
3510// XwcTextListToTextProperty: raw Xlib ownership and return codes.
3511pub fn wc_text_list_to_text_property(display &Display, list &&i32, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 {
3512 return C.XwcTextListToTextProperty(display, list, count, style, text_prop_return)
3513}
3514
3515fn C.Xutf8TextListToTextProperty(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32
3516
3517// Xutf8TextListToTextProperty: raw Xlib ownership and return codes.
3518pub fn utf8_text_list_to_text_property(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 {
3519 return C.Xutf8TextListToTextProperty(display, list, count, style, text_prop_return)
3520}
3521
3522fn C.XwcFreeStringList(list &&i32)
3523
3524// XwcFreeStringList: raw Xlib ownership and return codes.
3525pub fn wc_free_string_list(list &&i32) {
3526 C.XwcFreeStringList(list)
3527}
3528
3529fn C.XTextPropertyToStringList(text_prop &XTextProperty, list_return &&&char, count_return &i32) i32
3530
3531// XTextPropertyToStringList: raw Xlib ownership and return codes.
3532pub fn text_property_to_string_list(text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 {
3533 return C.XTextPropertyToStringList(text_prop, list_return, count_return)
3534}
3535
3536fn C.XmbTextPropertyToTextList(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32
3537
3538// XmbTextPropertyToTextList: raw Xlib ownership and return codes.
3539pub fn mb_text_property_to_text_list(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 {
3540 return C.XmbTextPropertyToTextList(display, text_prop, list_return, count_return)
3541}
3542
3543fn C.XwcTextPropertyToTextList(display &Display, text_prop &XTextProperty, list_return &&&i32, count_return &i32) i32
3544
3545// XwcTextPropertyToTextList: raw Xlib ownership and return codes.
3546pub fn wc_text_property_to_text_list(display &Display, text_prop &XTextProperty, list_return &&&i32, count_return &i32) i32 {
3547 return C.XwcTextPropertyToTextList(display, text_prop, list_return, count_return)
3548}
3549
3550fn C.Xutf8TextPropertyToTextList(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32
3551
3552// Xutf8TextPropertyToTextList: raw Xlib ownership and return codes.
3553pub fn utf8_text_property_to_text_list(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 {
3554 return C.Xutf8TextPropertyToTextList(display, text_prop, list_return, count_return)
3555}
3556
3557fn C.XUnionRectWithRegion(rectangle &XRectangle, src_region Region, dest_region_return Region) i32
3558
3559// XUnionRectWithRegion: raw Xlib ownership and return codes.
3560pub fn union_rect_with_region(rectangle &XRectangle, src_region Region, dest_region_return Region) i32 {
3561 return C.XUnionRectWithRegion(rectangle, src_region, dest_region_return)
3562}
3563
3564fn C.XUnionRegion(sra Region, srb Region, dr_return Region) i32
3565
3566// XUnionRegion: raw Xlib ownership and return codes.
3567pub fn union_region(sra Region, srb Region, dr_return Region) i32 {
3568 return C.XUnionRegion(sra, srb, dr_return)
3569}
3570
3571fn C.XWMGeometry(display &Display, screen_number i32, user_geometry &char, default_geometry &char, border_width u32, hints &XSizeHints, x_return &i32, y_return &i32, width_return &i32, height_return &i32, gravity_return &i32) i32
3572
3573// XWMGeometry: raw Xlib ownership and return codes.
3574pub fn wm_geometry(display &Display, screen_number i32, user_geometry &char, default_geometry &char, border_width u32, hints &XSizeHints, x_return &i32, y_return &i32, width_return &i32, height_return &i32, gravity_return &i32) i32 {
3575 return C.XWMGeometry(display, screen_number, user_geometry, default_geometry, border_width, hints, x_return, y_return, width_return, height_return, gravity_return)
3576}
3577
3578fn C.XXorRegion(sra Region, srb Region, dr_return Region) i32
3579
3580// XXorRegion: raw Xlib ownership and return codes.
3581pub fn xor_region(sra Region, srb Region, dr_return Region) i32 {
3582 return C.XXorRegion(sra, srb, dr_return)
3583}
3584
3585fn C.XkbIgnoreExtension(ignore i32) i32
3586
3587// XkbIgnoreExtension: raw Xlib ownership and return codes.
3588pub fn xkb_ignore_extension(ignore i32) i32 {
3589 return C.XkbIgnoreExtension(ignore)
3590}
3591
3592fn C.XkbOpenDisplay(name &char, ev_rtrn &i32, err_rtrn &i32, major_rtrn &i32, minor_rtrn &i32, reason &i32) &Display
3593
3594// XkbOpenDisplay: raw Xlib ownership and return codes.
3595pub fn xkb_open_display(name &char, ev_rtrn &i32, err_rtrn &i32, major_rtrn &i32, minor_rtrn &i32, reason &i32) &Display {
3596 return C.XkbOpenDisplay(name, ev_rtrn, err_rtrn, major_rtrn, minor_rtrn, reason)
3597}
3598
3599fn C.XkbQueryExtension(dpy &Display, opcode_return &i32, event_base_return &i32, error_base_return &i32, major_rtrn &i32, minor_rtrn &i32) i32
3600
3601// XkbQueryExtension: raw Xlib ownership and return codes.
3602pub fn xkb_query_extension(dpy &Display, opcode_return &i32, event_base_return &i32, error_base_return &i32, major_rtrn &i32, minor_rtrn &i32) i32 {
3603 return C.XkbQueryExtension(dpy, opcode_return, event_base_return, error_base_return, major_rtrn, minor_rtrn)
3604}
3605
3606fn C.XkbUseExtension(dpy &Display, major_rtrn &i32, minor_rtrn &i32) i32
3607
3608// XkbUseExtension: raw Xlib ownership and return codes.
3609pub fn xkb_use_extension(dpy &Display, major_rtrn &i32, minor_rtrn &i32) i32 {
3610 return C.XkbUseExtension(dpy, major_rtrn, minor_rtrn)
3611}
3612
3613fn C.XkbLibraryVersion(lib_major_rtrn &i32, lib_minor_rtrn &i32) i32
3614
3615// XkbLibraryVersion: raw Xlib ownership and return codes.
3616pub fn xkb_library_version(lib_major_rtrn &i32, lib_minor_rtrn &i32) i32 {
3617 return C.XkbLibraryVersion(lib_major_rtrn, lib_minor_rtrn)
3618}
3619
3620fn C.XkbSetXlibControls(dpy &Display, affect u32, values u32) u32
3621
3622// XkbSetXlibControls: raw Xlib ownership and return codes.
3623pub fn xkb_set_xlib_controls(dpy &Display, affect u32, values u32) u32 {
3624 return C.XkbSetXlibControls(dpy, affect, values)
3625}
3626
3627fn C.XkbGetXlibControls(dpy &Display) u32
3628
3629// XkbGetXlibControls: raw Xlib ownership and return codes.
3630pub fn xkb_get_xlib_controls(dpy &Display) u32 {
3631 return C.XkbGetXlibControls(dpy)
3632}
3633
3634fn C.XkbXlibControlsImplemented() u32
3635
3636// XkbXlibControlsImplemented: raw Xlib ownership and return codes.
3637pub fn xkb_xlib_controls_implemented() u32 {
3638 return C.XkbXlibControlsImplemented()
3639}
3640
3641fn C.vx11_XkbSetAtomFuncs(get_atom voidptr, get_name voidptr)
3642
3643// XkbSetAtomFuncs: raw Xlib ownership and return codes.
3644pub fn xkb_set_atom_funcs(get_atom XkbInternAtomFunc, get_name XkbGetAtomNameFunc) {
3645 C.vx11_XkbSetAtomFuncs(voidptr(get_atom), voidptr(get_name))
3646}
3647
3648fn C.XkbKeycodeToKeysym(dpy &Display, kc KeyCode, group i32, level i32) KeySym
3649
3650// XkbKeycodeToKeysym: raw Xlib ownership and return codes.
3651pub fn xkb_keycode_to_keysym(dpy &Display, kc KeyCode, group i32, level i32) KeySym {
3652 return C.XkbKeycodeToKeysym(dpy, kc, group, level)
3653}
3654
3655fn C.XkbKeysymToModifiers(dpy &Display, ks KeySym) u32
3656
3657// XkbKeysymToModifiers: raw Xlib ownership and return codes.
3658pub fn xkb_keysym_to_modifiers(dpy &Display, ks KeySym) u32 {
3659 return C.XkbKeysymToModifiers(dpy, ks)
3660}
3661
3662fn C.XkbLookupKeySym(dpy &Display, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32
3663
3664// XkbLookupKeySym: raw Xlib ownership and return codes.
3665pub fn xkb_lookup_key_sym(dpy &Display, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32 {
3666 return C.XkbLookupKeySym(dpy, keycode, modifiers, modifiers_return, keysym_return)
3667}
3668
3669fn C.XkbLookupKeyBinding(dpy &Display, sym_rtrn KeySym, mods u32, buffer &char, nbytes i32, extra_rtrn &i32) i32
3670
3671// XkbLookupKeyBinding: raw Xlib ownership and return codes.
3672pub fn xkb_lookup_key_binding(dpy &Display, sym_rtrn KeySym, mods u32, buffer &char, nbytes i32, extra_rtrn &i32) i32 {
3673 return C.XkbLookupKeyBinding(dpy, sym_rtrn, mods, buffer, nbytes, extra_rtrn)
3674}
3675
3676fn C.XkbTranslateKeyCode(xkb XkbDescPtr, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32
3677
3678// XkbTranslateKeyCode: raw Xlib ownership and return codes.
3679pub fn xkb_translate_key_code(xkb XkbDescPtr, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32 {
3680 return C.XkbTranslateKeyCode(xkb, keycode, modifiers, modifiers_return, keysym_return)
3681}
3682
3683fn C.XkbTranslateKeySym(dpy &Display, sym_return &KeySym, modifiers u32, buffer &char, nbytes i32, extra_rtrn &i32) i32
3684
3685// XkbTranslateKeySym: raw Xlib ownership and return codes.
3686pub fn xkb_translate_key_sym(dpy &Display, sym_return &KeySym, modifiers u32, buffer &char, nbytes i32, extra_rtrn &i32) i32 {
3687 return C.XkbTranslateKeySym(dpy, sym_return, modifiers, buffer, nbytes, extra_rtrn)
3688}
3689
3690fn C.XkbSetAutoRepeatRate(dpy &Display, device_spec u32, delay u32, interval u32) i32
3691
3692// XkbSetAutoRepeatRate: raw Xlib ownership and return codes.
3693pub fn xkb_set_auto_repeat_rate(dpy &Display, device_spec u32, delay u32, interval u32) i32 {
3694 return C.XkbSetAutoRepeatRate(dpy, device_spec, delay, interval)
3695}
3696
3697fn C.XkbGetAutoRepeatRate(dpy &Display, device_spec u32, delay_rtrn &u32, interval_rtrn &u32) i32
3698
3699// XkbGetAutoRepeatRate: raw Xlib ownership and return codes.
3700pub fn xkb_get_auto_repeat_rate(dpy &Display, device_spec u32, delay_rtrn &u32, interval_rtrn &u32) i32 {
3701 return C.XkbGetAutoRepeatRate(dpy, device_spec, delay_rtrn, interval_rtrn)
3702}
3703
3704fn C.XkbChangeEnabledControls(dpy &Display, device_spec u32, affect u32, values u32) i32
3705
3706// XkbChangeEnabledControls: raw Xlib ownership and return codes.
3707pub fn xkb_change_enabled_controls(dpy &Display, device_spec u32, affect u32, values u32) i32 {
3708 return C.XkbChangeEnabledControls(dpy, device_spec, affect, values)
3709}
3710
3711fn C.XkbDeviceBell(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32
3712
3713// XkbDeviceBell: raw Xlib ownership and return codes.
3714pub fn xkb_device_bell(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32 {
3715 return C.XkbDeviceBell(dpy, win, device_spec, bell_class, bell_id, percent, name)
3716}
3717
3718fn C.XkbForceDeviceBell(dpy &Display, device_spec i32, bell_class i32, bell_id i32, percent i32) i32
3719
3720// XkbForceDeviceBell: raw Xlib ownership and return codes.
3721pub fn xkb_force_device_bell(dpy &Display, device_spec i32, bell_class i32, bell_id i32, percent i32) i32 {
3722 return C.XkbForceDeviceBell(dpy, device_spec, bell_class, bell_id, percent)
3723}
3724
3725fn C.XkbDeviceBellEvent(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32
3726
3727// XkbDeviceBellEvent: raw Xlib ownership and return codes.
3728pub fn xkb_device_bell_event(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32 {
3729 return C.XkbDeviceBellEvent(dpy, win, device_spec, bell_class, bell_id, percent, name)
3730}
3731
3732fn C.XkbBell(dpy &Display, win Window, percent i32, name Atom) i32
3733
3734// XkbBell: raw Xlib ownership and return codes.
3735pub fn xkb_bell(dpy &Display, win Window, percent i32, name Atom) i32 {
3736 return C.XkbBell(dpy, win, percent, name)
3737}
3738
3739fn C.XkbForceBell(dpy &Display, percent i32) i32
3740
3741// XkbForceBell: raw Xlib ownership and return codes.
3742pub fn xkb_force_bell(dpy &Display, percent i32) i32 {
3743 return C.XkbForceBell(dpy, percent)
3744}
3745
3746fn C.XkbBellEvent(dpy &Display, win Window, percent i32, name Atom) i32
3747
3748// XkbBellEvent: raw Xlib ownership and return codes.
3749pub fn xkb_bell_event(dpy &Display, win Window, percent i32, name Atom) i32 {
3750 return C.XkbBellEvent(dpy, win, percent, name)
3751}
3752
3753fn C.XkbSelectEvents(dpy &Display, device_id u32, affect u32, values u32) i32
3754
3755// XkbSelectEvents: raw Xlib ownership and return codes.
3756pub fn xkb_select_events(dpy &Display, device_id u32, affect u32, values u32) i32 {
3757 return C.XkbSelectEvents(dpy, device_id, affect, values)
3758}
3759
3760fn C.XkbSelectEventDetails(dpy &Display, device_id u32, event_type u32, affect CULong, details CULong) i32
3761
3762// XkbSelectEventDetails: raw Xlib ownership and return codes.
3763pub fn xkb_select_event_details(dpy &Display, device_id u32, event_type u32, affect CULong, details CULong) i32 {
3764 return C.XkbSelectEventDetails(dpy, device_id, event_type, affect, details)
3765}
3766
3767fn C.XkbNoteMapChanges(old XkbMapChangesPtr, new &XkbMapNotifyEvent, wanted u32)
3768
3769// XkbNoteMapChanges: raw Xlib ownership and return codes.
3770pub fn xkb_note_map_changes(old XkbMapChangesPtr, new &XkbMapNotifyEvent, wanted u32) {
3771 C.XkbNoteMapChanges(old, new, wanted)
3772}
3773
3774fn C.XkbNoteNameChanges(old XkbNameChangesPtr, new &XkbNamesNotifyEvent, wanted u32)
3775
3776// XkbNoteNameChanges: raw Xlib ownership and return codes.
3777pub fn xkb_note_name_changes(old XkbNameChangesPtr, new &XkbNamesNotifyEvent, wanted u32) {
3778 C.XkbNoteNameChanges(old, new, wanted)
3779}
3780
3781fn C.XkbGetIndicatorState(dpy &Display, device_spec u32, p_state_rtrn &u32) i32
3782
3783// XkbGetIndicatorState: raw Xlib ownership and return codes.
3784pub fn xkb_get_indicator_state(dpy &Display, device_spec u32, p_state_rtrn &u32) i32 {
3785 return C.XkbGetIndicatorState(dpy, device_spec, p_state_rtrn)
3786}
3787
3788fn C.XkbGetDeviceIndicatorState(dpy &Display, device_spec u32, led_class u32, led_id u32, p_state_rtrn &u32) i32
3789
3790// XkbGetDeviceIndicatorState: raw Xlib ownership and return codes.
3791pub fn xkb_get_device_indicator_state(dpy &Display, device_spec u32, led_class u32, led_id u32, p_state_rtrn &u32) i32 {
3792 return C.XkbGetDeviceIndicatorState(dpy, device_spec, led_class, led_id, p_state_rtrn)
3793}
3794
3795fn C.XkbGetIndicatorMap(dpy &Display, which CULong, desc XkbDescPtr) i32
3796
3797// XkbGetIndicatorMap: raw Xlib ownership and return codes.
3798pub fn xkb_get_indicator_map(dpy &Display, which CULong, desc XkbDescPtr) i32 {
3799 return C.XkbGetIndicatorMap(dpy, which, desc)
3800}
3801
3802fn C.XkbSetIndicatorMap(dpy &Display, which CULong, desc XkbDescPtr) i32
3803
3804// XkbSetIndicatorMap: raw Xlib ownership and return codes.
3805pub fn xkb_set_indicator_map(dpy &Display, which CULong, desc XkbDescPtr) i32 {
3806 return C.XkbSetIndicatorMap(dpy, which, desc)
3807}
3808
3809fn C.XkbGetNamedIndicator(dpy &Display, name Atom, p_ndx_rtrn &i32, p_state_rtrn &i32, p_map_rtrn XkbIndicatorMapPtr, p_real_rtrn &i32) i32
3810
3811// XkbGetNamedIndicator: raw Xlib ownership and return codes.
3812pub fn xkb_get_named_indicator(dpy &Display, name Atom, p_ndx_rtrn &i32, p_state_rtrn &i32, p_map_rtrn XkbIndicatorMapPtr, p_real_rtrn &i32) i32 {
3813 return C.XkbGetNamedIndicator(dpy, name, p_ndx_rtrn, p_state_rtrn, p_map_rtrn, p_real_rtrn)
3814}
3815
3816fn C.XkbGetNamedDeviceIndicator(dpy &Display, device_spec u32, led_class u32, led_id u32, name Atom, p_ndx_rtrn &i32, p_state_rtrn &i32, p_map_rtrn XkbIndicatorMapPtr, p_real_rtrn &i32) i32
3817
3818// XkbGetNamedDeviceIndicator: raw Xlib ownership and return codes.
3819pub fn xkb_get_named_device_indicator(dpy &Display, device_spec u32, led_class u32, led_id u32, name Atom, p_ndx_rtrn &i32, p_state_rtrn &i32, p_map_rtrn XkbIndicatorMapPtr, p_real_rtrn &i32) i32 {
3820 return C.XkbGetNamedDeviceIndicator(dpy, device_spec, led_class, led_id, name, p_ndx_rtrn, p_state_rtrn, p_map_rtrn, p_real_rtrn)
3821}
3822
3823fn C.XkbSetNamedIndicator(dpy &Display, name Atom, change_state i32, state i32, create_new_map i32, p_map XkbIndicatorMapPtr) i32
3824
3825// XkbSetNamedIndicator: raw Xlib ownership and return codes.
3826pub fn xkb_set_named_indicator(dpy &Display, name Atom, change_state i32, state i32, create_new_map i32, p_map XkbIndicatorMapPtr) i32 {
3827 return C.XkbSetNamedIndicator(dpy, name, change_state, state, create_new_map, p_map)
3828}
3829
3830fn C.XkbSetNamedDeviceIndicator(dpy &Display, device_spec u32, led_class u32, led_id u32, name Atom, change_state i32, state i32, create_new_map i32, p_map XkbIndicatorMapPtr) i32
3831
3832// XkbSetNamedDeviceIndicator: raw Xlib ownership and return codes.
3833pub fn xkb_set_named_device_indicator(dpy &Display, device_spec u32, led_class u32, led_id u32, name Atom, change_state i32, state i32, create_new_map i32, p_map XkbIndicatorMapPtr) i32 {
3834 return C.XkbSetNamedDeviceIndicator(dpy, device_spec, led_class, led_id, name, change_state, state, create_new_map, p_map)
3835}
3836
3837fn C.XkbLockModifiers(dpy &Display, device_spec u32, affect u32, values u32) i32
3838
3839// XkbLockModifiers: raw Xlib ownership and return codes.
3840pub fn xkb_lock_modifiers(dpy &Display, device_spec u32, affect u32, values u32) i32 {
3841 return C.XkbLockModifiers(dpy, device_spec, affect, values)
3842}
3843
3844fn C.XkbLatchModifiers(dpy &Display, device_spec u32, affect u32, values u32) i32
3845
3846// XkbLatchModifiers: raw Xlib ownership and return codes.
3847pub fn xkb_latch_modifiers(dpy &Display, device_spec u32, affect u32, values u32) i32 {
3848 return C.XkbLatchModifiers(dpy, device_spec, affect, values)
3849}
3850
3851fn C.XkbLockGroup(dpy &Display, device_spec u32, group u32) i32
3852
3853// XkbLockGroup: raw Xlib ownership and return codes.
3854pub fn xkb_lock_group(dpy &Display, device_spec u32, group u32) i32 {
3855 return C.XkbLockGroup(dpy, device_spec, group)
3856}
3857
3858fn C.XkbLatchGroup(dpy &Display, device_spec u32, group u32) i32
3859
3860// XkbLatchGroup: raw Xlib ownership and return codes.
3861pub fn xkb_latch_group(dpy &Display, device_spec u32, group u32) i32 {
3862 return C.XkbLatchGroup(dpy, device_spec, group)
3863}
3864
3865fn C.XkbSetServerInternalMods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32
3866
3867// XkbSetServerInternalMods: raw Xlib ownership and return codes.
3868pub fn xkb_set_server_internal_mods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32 {
3869 return C.XkbSetServerInternalMods(dpy, device_spec, affect_real, real_values, affect_virtual, virtual_values)
3870}
3871
3872fn C.XkbSetIgnoreLockMods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32
3873
3874// XkbSetIgnoreLockMods: raw Xlib ownership and return codes.
3875pub fn xkb_set_ignore_lock_mods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32 {
3876 return C.XkbSetIgnoreLockMods(dpy, device_spec, affect_real, real_values, affect_virtual, virtual_values)
3877}
3878
3879fn C.XkbVirtualModsToReal(xkb XkbDescPtr, virtual_mask u32, mask_rtrn &u32) i32
3880
3881// XkbVirtualModsToReal: raw Xlib ownership and return codes.
3882pub fn xkb_virtual_mods_to_real(xkb XkbDescPtr, virtual_mask u32, mask_rtrn &u32) i32 {
3883 return C.XkbVirtualModsToReal(xkb, virtual_mask, mask_rtrn)
3884}
3885
3886fn C.XkbComputeEffectiveMap(xkb XkbDescPtr, @type XkbKeyTypePtr, map_rtrn &u8) i32
3887
3888// XkbComputeEffectiveMap: raw Xlib ownership and return codes.
3889pub fn xkb_compute_effective_map(xkb XkbDescPtr, @type XkbKeyTypePtr, map_rtrn &u8) i32 {
3890 return C.XkbComputeEffectiveMap(xkb, @type, map_rtrn)
3891}
3892
3893fn C.XkbInitCanonicalKeyTypes(xkb XkbDescPtr, which u32, keypad_v_mod i32) i32
3894
3895// XkbInitCanonicalKeyTypes: raw Xlib ownership and return codes.
3896pub fn xkb_init_canonical_key_types(xkb XkbDescPtr, which u32, keypad_v_mod i32) i32 {
3897 return C.XkbInitCanonicalKeyTypes(xkb, which, keypad_v_mod)
3898}
3899
3900fn C.XkbAllocKeyboard() XkbDescPtr
3901
3902// XkbAllocKeyboard: raw Xlib ownership and return codes.
3903pub fn xkb_alloc_keyboard() XkbDescPtr {
3904 return C.XkbAllocKeyboard()
3905}
3906
3907fn C.XkbFreeKeyboard(xkb XkbDescPtr, which u32, free_desc i32)
3908
3909// XkbFreeKeyboard: raw Xlib ownership and return codes.
3910pub fn xkb_free_keyboard(xkb XkbDescPtr, which u32, free_desc i32) {
3911 C.XkbFreeKeyboard(xkb, which, free_desc)
3912}
3913
3914fn C.XkbAllocClientMap(xkb XkbDescPtr, which u32, n_types u32) i32
3915
3916// XkbAllocClientMap: raw Xlib ownership and return codes.
3917pub fn xkb_alloc_client_map(xkb XkbDescPtr, which u32, n_types u32) i32 {
3918 return C.XkbAllocClientMap(xkb, which, n_types)
3919}
3920
3921fn C.XkbAllocServerMap(xkb XkbDescPtr, which u32, n_actions u32) i32
3922
3923// XkbAllocServerMap: raw Xlib ownership and return codes.
3924pub fn xkb_alloc_server_map(xkb XkbDescPtr, which u32, n_actions u32) i32 {
3925 return C.XkbAllocServerMap(xkb, which, n_actions)
3926}
3927
3928fn C.XkbFreeClientMap(xkb XkbDescPtr, what u32, free_map i32)
3929
3930// XkbFreeClientMap: raw Xlib ownership and return codes.
3931pub fn xkb_free_client_map(xkb XkbDescPtr, what u32, free_map i32) {
3932 C.XkbFreeClientMap(xkb, what, free_map)
3933}
3934
3935fn C.XkbFreeServerMap(xkb XkbDescPtr, what u32, free_map i32)
3936
3937// XkbFreeServerMap: raw Xlib ownership and return codes.
3938pub fn xkb_free_server_map(xkb XkbDescPtr, what u32, free_map i32) {
3939 C.XkbFreeServerMap(xkb, what, free_map)
3940}
3941
3942fn C.XkbAddKeyType(xkb XkbDescPtr, name Atom, map_count i32, want_preserve i32, num_lvls i32) XkbKeyTypePtr
3943
3944// XkbAddKeyType: raw Xlib ownership and return codes.
3945pub fn xkb_add_key_type(xkb XkbDescPtr, name Atom, map_count i32, want_preserve i32, num_lvls i32) XkbKeyTypePtr {
3946 return C.XkbAddKeyType(xkb, name, map_count, want_preserve, num_lvls)
3947}
3948
3949fn C.XkbAllocIndicatorMaps(xkb XkbDescPtr) i32
3950
3951// XkbAllocIndicatorMaps: raw Xlib ownership and return codes.
3952pub fn xkb_alloc_indicator_maps(xkb XkbDescPtr) i32 {
3953 return C.XkbAllocIndicatorMaps(xkb)
3954}
3955
3956fn C.XkbFreeIndicatorMaps(xkb XkbDescPtr)
3957
3958// XkbFreeIndicatorMaps: raw Xlib ownership and return codes.
3959pub fn xkb_free_indicator_maps(xkb XkbDescPtr) {
3960 C.XkbFreeIndicatorMaps(xkb)
3961}
3962
3963fn C.XkbGetMap(dpy &Display, which u32, device_spec u32) XkbDescPtr
3964
3965// XkbGetMap: raw Xlib ownership and return codes.
3966pub fn xkb_get_map(dpy &Display, which u32, device_spec u32) XkbDescPtr {
3967 return C.XkbGetMap(dpy, which, device_spec)
3968}
3969
3970fn C.XkbGetUpdatedMap(dpy &Display, which u32, desc XkbDescPtr) i32
3971
3972// XkbGetUpdatedMap: raw Xlib ownership and return codes.
3973pub fn xkb_get_updated_map(dpy &Display, which u32, desc XkbDescPtr) i32 {
3974 return C.XkbGetUpdatedMap(dpy, which, desc)
3975}
3976
3977fn C.XkbGetMapChanges(dpy &Display, xkb XkbDescPtr, changes XkbMapChangesPtr) i32
3978
3979// XkbGetMapChanges: raw Xlib ownership and return codes.
3980pub fn xkb_get_map_changes(dpy &Display, xkb XkbDescPtr, changes XkbMapChangesPtr) i32 {
3981 return C.XkbGetMapChanges(dpy, xkb, changes)
3982}
3983
3984fn C.XkbRefreshKeyboardMapping(event &XkbMapNotifyEvent) i32
3985
3986// XkbRefreshKeyboardMapping: raw Xlib ownership and return codes.
3987pub fn xkb_refresh_keyboard_mapping(event &XkbMapNotifyEvent) i32 {
3988 return C.XkbRefreshKeyboardMapping(event)
3989}
3990
3991fn C.XkbGetKeyTypes(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32
3992
3993// XkbGetKeyTypes: raw Xlib ownership and return codes.
3994pub fn xkb_get_key_types(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 {
3995 return C.XkbGetKeyTypes(dpy, first, num, xkb)
3996}
3997
3998fn C.XkbGetKeySyms(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32
3999
4000// XkbGetKeySyms: raw Xlib ownership and return codes.
4001pub fn xkb_get_key_syms(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 {
4002 return C.XkbGetKeySyms(dpy, first, num, xkb)
4003}
4004
4005fn C.XkbGetKeyActions(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32
4006
4007// XkbGetKeyActions: raw Xlib ownership and return codes.
4008pub fn xkb_get_key_actions(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 {
4009 return C.XkbGetKeyActions(dpy, first, num, xkb)
4010}
4011
4012fn C.XkbGetKeyBehaviors(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32
4013
4014// XkbGetKeyBehaviors: raw Xlib ownership and return codes.
4015pub fn xkb_get_key_behaviors(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 {
4016 return C.XkbGetKeyBehaviors(dpy, first_key, n_keys, desc)
4017}
4018
4019fn C.XkbGetVirtualMods(dpy &Display, which u32, desc XkbDescPtr) i32
4020
4021// XkbGetVirtualMods: raw Xlib ownership and return codes.
4022pub fn xkb_get_virtual_mods(dpy &Display, which u32, desc XkbDescPtr) i32 {
4023 return C.XkbGetVirtualMods(dpy, which, desc)
4024}
4025
4026fn C.XkbGetKeyExplicitComponents(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32
4027
4028// XkbGetKeyExplicitComponents: raw Xlib ownership and return codes.
4029pub fn xkb_get_key_explicit_components(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 {
4030 return C.XkbGetKeyExplicitComponents(dpy, first_key, n_keys, desc)
4031}
4032
4033fn C.XkbGetKeyModifierMap(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32
4034
4035// XkbGetKeyModifierMap: raw Xlib ownership and return codes.
4036pub fn xkb_get_key_modifier_map(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 {
4037 return C.XkbGetKeyModifierMap(dpy, first_key, n_keys, desc)
4038}
4039
4040fn C.XkbGetKeyVirtualModMap(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32
4041
4042// XkbGetKeyVirtualModMap: raw Xlib ownership and return codes.
4043pub fn xkb_get_key_virtual_mod_map(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 {
4044 return C.XkbGetKeyVirtualModMap(dpy, first, num, xkb)
4045}
4046
4047fn C.XkbAllocControls(xkb XkbDescPtr, which u32) i32
4048
4049// XkbAllocControls: raw Xlib ownership and return codes.
4050pub fn xkb_alloc_controls(xkb XkbDescPtr, which u32) i32 {
4051 return C.XkbAllocControls(xkb, which)
4052}
4053
4054fn C.XkbFreeControls(xkb XkbDescPtr, which u32, free_map i32)
4055
4056// XkbFreeControls: raw Xlib ownership and return codes.
4057pub fn xkb_free_controls(xkb XkbDescPtr, which u32, free_map i32) {
4058 C.XkbFreeControls(xkb, which, free_map)
4059}
4060
4061fn C.XkbGetControls(dpy &Display, which CULong, desc XkbDescPtr) i32
4062
4063// XkbGetControls: raw Xlib ownership and return codes.
4064pub fn xkb_get_controls(dpy &Display, which CULong, desc XkbDescPtr) i32 {
4065 return C.XkbGetControls(dpy, which, desc)
4066}
4067
4068fn C.XkbSetControls(dpy &Display, which CULong, desc XkbDescPtr) i32
4069
4070// XkbSetControls: raw Xlib ownership and return codes.
4071pub fn xkb_set_controls(dpy &Display, which CULong, desc XkbDescPtr) i32 {
4072 return C.XkbSetControls(dpy, which, desc)
4073}
4074
4075fn C.XkbNoteControlsChanges(old XkbControlsChangesPtr, new &XkbControlsNotifyEvent, wanted u32)
4076
4077// XkbNoteControlsChanges: raw Xlib ownership and return codes.
4078pub fn xkb_note_controls_changes(old XkbControlsChangesPtr, new &XkbControlsNotifyEvent, wanted u32) {
4079 C.XkbNoteControlsChanges(old, new, wanted)
4080}
4081
4082fn C.XkbAllocCompatMap(xkb XkbDescPtr, which u32, n_interpret u32) i32
4083
4084// XkbAllocCompatMap: raw Xlib ownership and return codes.
4085pub fn xkb_alloc_compat_map(xkb XkbDescPtr, which u32, n_interpret u32) i32 {
4086 return C.XkbAllocCompatMap(xkb, which, n_interpret)
4087}
4088
4089fn C.XkbFreeCompatMap(xkb XkbDescPtr, which u32, free_map i32)
4090
4091// XkbFreeCompatMap: raw Xlib ownership and return codes.
4092pub fn xkb_free_compat_map(xkb XkbDescPtr, which u32, free_map i32) {
4093 C.XkbFreeCompatMap(xkb, which, free_map)
4094}
4095
4096fn C.XkbGetCompatMap(dpy &Display, which u32, xkb XkbDescPtr) i32
4097
4098// XkbGetCompatMap: raw Xlib ownership and return codes.
4099pub fn xkb_get_compat_map(dpy &Display, which u32, xkb XkbDescPtr) i32 {
4100 return C.XkbGetCompatMap(dpy, which, xkb)
4101}
4102
4103fn C.XkbSetCompatMap(dpy &Display, which u32, xkb XkbDescPtr, update_actions i32) i32
4104
4105// XkbSetCompatMap: raw Xlib ownership and return codes.
4106pub fn xkb_set_compat_map(dpy &Display, which u32, xkb XkbDescPtr, update_actions i32) i32 {
4107 return C.XkbSetCompatMap(dpy, which, xkb, update_actions)
4108}
4109
4110fn C.XkbAddSymInterpret(xkb XkbDescPtr, si XkbSymInterpretPtr, update_map i32, changes XkbChangesPtr) XkbSymInterpretPtr
4111
4112// XkbAddSymInterpret: raw Xlib ownership and return codes.
4113pub fn xkb_add_sym_interpret(xkb XkbDescPtr, si XkbSymInterpretPtr, update_map i32, changes XkbChangesPtr) XkbSymInterpretPtr {
4114 return C.XkbAddSymInterpret(xkb, si, update_map, changes)
4115}
4116
4117fn C.XkbAllocNames(xkb XkbDescPtr, which u32, n_total_rg i32, n_total_aliases i32) i32
4118
4119// XkbAllocNames: raw Xlib ownership and return codes.
4120pub fn xkb_alloc_names(xkb XkbDescPtr, which u32, n_total_rg i32, n_total_aliases i32) i32 {
4121 return C.XkbAllocNames(xkb, which, n_total_rg, n_total_aliases)
4122}
4123
4124fn C.XkbGetNames(dpy &Display, which u32, desc XkbDescPtr) i32
4125
4126// XkbGetNames: raw Xlib ownership and return codes.
4127pub fn xkb_get_names(dpy &Display, which u32, desc XkbDescPtr) i32 {
4128 return C.XkbGetNames(dpy, which, desc)
4129}
4130
4131fn C.XkbSetNames(dpy &Display, which u32, first_type u32, n_types u32, desc XkbDescPtr) i32
4132
4133// XkbSetNames: raw Xlib ownership and return codes.
4134pub fn xkb_set_names(dpy &Display, which u32, first_type u32, n_types u32, desc XkbDescPtr) i32 {
4135 return C.XkbSetNames(dpy, which, first_type, n_types, desc)
4136}
4137
4138fn C.XkbChangeNames(dpy &Display, xkb XkbDescPtr, changes XkbNameChangesPtr) i32
4139
4140// XkbChangeNames: raw Xlib ownership and return codes.
4141pub fn xkb_change_names(dpy &Display, xkb XkbDescPtr, changes XkbNameChangesPtr) i32 {
4142 return C.XkbChangeNames(dpy, xkb, changes)
4143}
4144
4145fn C.XkbFreeNames(xkb XkbDescPtr, which u32, free_map i32)
4146
4147// XkbFreeNames: raw Xlib ownership and return codes.
4148pub fn xkb_free_names(xkb XkbDescPtr, which u32, free_map i32) {
4149 C.XkbFreeNames(xkb, which, free_map)
4150}
4151
4152fn C.XkbGetState(dpy &Display, device_spec u32, rtrn_state XkbStatePtr) i32
4153
4154// XkbGetState: raw Xlib ownership and return codes.
4155pub fn xkb_get_state(dpy &Display, device_spec u32, rtrn_state XkbStatePtr) i32 {
4156 return C.XkbGetState(dpy, device_spec, rtrn_state)
4157}
4158
4159fn C.XkbSetMap(dpy &Display, which u32, desc XkbDescPtr) i32
4160
4161// XkbSetMap: raw Xlib ownership and return codes.
4162pub fn xkb_set_map(dpy &Display, which u32, desc XkbDescPtr) i32 {
4163 return C.XkbSetMap(dpy, which, desc)
4164}
4165
4166fn C.XkbChangeMap(dpy &Display, desc XkbDescPtr, changes XkbMapChangesPtr) i32
4167
4168// XkbChangeMap: raw Xlib ownership and return codes.
4169pub fn xkb_change_map(dpy &Display, desc XkbDescPtr, changes XkbMapChangesPtr) i32 {
4170 return C.XkbChangeMap(dpy, desc, changes)
4171}
4172
4173fn C.XkbSetDetectableAutoRepeat(dpy &Display, detectable i32, supported &i32) i32
4174
4175// XkbSetDetectableAutoRepeat: raw Xlib ownership and return codes.
4176pub fn xkb_set_detectable_auto_repeat(dpy &Display, detectable i32, supported &i32) i32 {
4177 return C.XkbSetDetectableAutoRepeat(dpy, detectable, supported)
4178}
4179
4180fn C.XkbGetDetectableAutoRepeat(dpy &Display, supported &i32) i32
4181
4182// XkbGetDetectableAutoRepeat: raw Xlib ownership and return codes.
4183pub fn xkb_get_detectable_auto_repeat(dpy &Display, supported &i32) i32 {
4184 return C.XkbGetDetectableAutoRepeat(dpy, supported)
4185}
4186
4187fn C.XkbSetAutoResetControls(dpy &Display, changes u32, auto_ctrls &u32, auto_values &u32) i32
4188
4189// XkbSetAutoResetControls: raw Xlib ownership and return codes.
4190pub fn xkb_set_auto_reset_controls(dpy &Display, changes u32, auto_ctrls &u32, auto_values &u32) i32 {
4191 return C.XkbSetAutoResetControls(dpy, changes, auto_ctrls, auto_values)
4192}
4193
4194fn C.XkbGetAutoResetControls(dpy &Display, auto_ctrls &u32, auto_ctrl_values &u32) i32
4195
4196// XkbGetAutoResetControls: raw Xlib ownership and return codes.
4197pub fn xkb_get_auto_reset_controls(dpy &Display, auto_ctrls &u32, auto_ctrl_values &u32) i32 {
4198 return C.XkbGetAutoResetControls(dpy, auto_ctrls, auto_ctrl_values)
4199}
4200
4201fn C.XkbSetPerClientControls(dpy &Display, change u32, values &u32) i32
4202
4203// XkbSetPerClientControls: raw Xlib ownership and return codes.
4204pub fn xkb_set_per_client_controls(dpy &Display, change u32, values &u32) i32 {
4205 return C.XkbSetPerClientControls(dpy, change, values)
4206}
4207
4208fn C.XkbGetPerClientControls(dpy &Display, ctrls &u32) i32
4209
4210// XkbGetPerClientControls: raw Xlib ownership and return codes.
4211pub fn xkb_get_per_client_controls(dpy &Display, ctrls &u32) i32 {
4212 return C.XkbGetPerClientControls(dpy, ctrls)
4213}
4214
4215fn C.XkbCopyKeyType(from XkbKeyTypePtr, into XkbKeyTypePtr) i32
4216
4217// XkbCopyKeyType: raw Xlib ownership and return codes.
4218pub fn xkb_copy_key_type(from XkbKeyTypePtr, into XkbKeyTypePtr) i32 {
4219 return C.XkbCopyKeyType(from, into)
4220}
4221
4222fn C.XkbCopyKeyTypes(from XkbKeyTypePtr, into XkbKeyTypePtr, num_types i32) i32
4223
4224// XkbCopyKeyTypes: raw Xlib ownership and return codes.
4225pub fn xkb_copy_key_types(from XkbKeyTypePtr, into XkbKeyTypePtr, num_types i32) i32 {
4226 return C.XkbCopyKeyTypes(from, into, num_types)
4227}
4228
4229fn C.XkbResizeKeyType(xkb XkbDescPtr, type_ndx i32, map_count i32, want_preserve i32, new_num_lvls i32) i32
4230
4231// XkbResizeKeyType: raw Xlib ownership and return codes.
4232pub fn xkb_resize_key_type(xkb XkbDescPtr, type_ndx i32, map_count i32, want_preserve i32, new_num_lvls i32) i32 {
4233 return C.XkbResizeKeyType(xkb, type_ndx, map_count, want_preserve, new_num_lvls)
4234}
4235
4236fn C.XkbResizeKeySyms(desc XkbDescPtr, for_key i32, syms_needed i32) &KeySym
4237
4238// XkbResizeKeySyms: raw Xlib ownership and return codes.
4239pub fn xkb_resize_key_syms(desc XkbDescPtr, for_key i32, syms_needed i32) &KeySym {
4240 return C.XkbResizeKeySyms(desc, for_key, syms_needed)
4241}
4242
4243fn C.XkbResizeKeyActions(desc XkbDescPtr, for_key i32, acts_needed i32) &XkbAction
4244
4245// XkbResizeKeyActions: raw Xlib ownership and return codes.
4246pub fn xkb_resize_key_actions(desc XkbDescPtr, for_key i32, acts_needed i32) &XkbAction {
4247 return C.XkbResizeKeyActions(desc, for_key, acts_needed)
4248}
4249
4250fn C.XkbChangeTypesOfKey(xkb XkbDescPtr, key i32, num_groups i32, groups u32, new_types &i32, p_changes XkbMapChangesPtr) i32
4251
4252// XkbChangeTypesOfKey: raw Xlib ownership and return codes.
4253pub fn xkb_change_types_of_key(xkb XkbDescPtr, key i32, num_groups i32, groups u32, new_types &i32, p_changes XkbMapChangesPtr) i32 {
4254 return C.XkbChangeTypesOfKey(xkb, key, num_groups, groups, new_types, p_changes)
4255}
4256
4257fn C.XkbChangeKeycodeRange(xkb XkbDescPtr, min_kc i32, max_kc i32, changes XkbChangesPtr) i32
4258
4259// XkbChangeKeycodeRange: raw Xlib ownership and return codes.
4260pub fn xkb_change_keycode_range(xkb XkbDescPtr, min_kc i32, max_kc i32, changes XkbChangesPtr) i32 {
4261 return C.XkbChangeKeycodeRange(xkb, min_kc, max_kc, changes)
4262}
4263
4264fn C.XkbListComponents(dpy &Display, device_spec u32, ptrns XkbComponentNamesPtr, max_inout &i32) XkbComponentListPtr
4265
4266// XkbListComponents: raw Xlib ownership and return codes.
4267pub fn xkb_list_components(dpy &Display, device_spec u32, ptrns XkbComponentNamesPtr, max_inout &i32) XkbComponentListPtr {
4268 return C.XkbListComponents(dpy, device_spec, ptrns, max_inout)
4269}
4270
4271fn C.XkbFreeComponentList(list XkbComponentListPtr)
4272
4273// XkbFreeComponentList: raw Xlib ownership and return codes.
4274pub fn xkb_free_component_list(list XkbComponentListPtr) {
4275 C.XkbFreeComponentList(list)
4276}
4277
4278fn C.XkbGetKeyboard(dpy &Display, which u32, device_spec u32) XkbDescPtr
4279
4280// XkbGetKeyboard: raw Xlib ownership and return codes.
4281pub fn xkb_get_keyboard(dpy &Display, which u32, device_spec u32) XkbDescPtr {
4282 return C.XkbGetKeyboard(dpy, which, device_spec)
4283}
4284
4285fn C.XkbGetKeyboardByName(dpy &Display, device_spec u32, names XkbComponentNamesPtr, want u32, need u32, load i32) XkbDescPtr
4286
4287// XkbGetKeyboardByName: raw Xlib ownership and return codes.
4288pub fn xkb_get_keyboard_by_name(dpy &Display, device_spec u32, names XkbComponentNamesPtr, want u32, need u32, load i32) XkbDescPtr {
4289 return C.XkbGetKeyboardByName(dpy, device_spec, names, want, need, load)
4290}
4291
4292fn C.XkbKeyTypesForCoreSymbols(xkb XkbDescPtr, map_width i32, core_syms &KeySym, protected u32, types_inout &i32, arg5 &KeySym) i32
4293
4294// XkbKeyTypesForCoreSymbols: raw Xlib ownership and return codes.
4295pub fn xkb_key_types_for_core_symbols(xkb XkbDescPtr, map_width i32, core_syms &KeySym, protected u32, types_inout &i32, arg5 &KeySym) i32 {
4296 return C.XkbKeyTypesForCoreSymbols(xkb, map_width, core_syms, protected, types_inout, arg5)
4297}
4298
4299fn C.XkbApplyCompatMapToKey(xkb XkbDescPtr, key KeyCode, arg2 XkbChangesPtr) i32
4300
4301// XkbApplyCompatMapToKey: raw Xlib ownership and return codes.
4302pub fn xkb_apply_compat_map_to_key(xkb XkbDescPtr, key KeyCode, arg2 XkbChangesPtr) i32 {
4303 return C.XkbApplyCompatMapToKey(xkb, key, arg2)
4304}
4305
4306fn C.XkbUpdateMapFromCore(xkb XkbDescPtr, first_key KeyCode, num_keys i32, map_width i32, core_keysyms &KeySym, arg5 XkbChangesPtr) i32
4307
4308// XkbUpdateMapFromCore: raw Xlib ownership and return codes.
4309pub fn xkb_update_map_from_core(xkb XkbDescPtr, first_key KeyCode, num_keys i32, map_width i32, core_keysyms &KeySym, arg5 XkbChangesPtr) i32 {
4310 return C.XkbUpdateMapFromCore(xkb, first_key, num_keys, map_width, core_keysyms, arg5)
4311}
4312
4313fn C.XkbAddDeviceLedInfo(devi XkbDeviceInfoPtr, led_class u32, led_id u32) XkbDeviceLedInfoPtr
4314
4315// XkbAddDeviceLedInfo: raw Xlib ownership and return codes.
4316pub fn xkb_add_device_led_info(devi XkbDeviceInfoPtr, led_class u32, led_id u32) XkbDeviceLedInfoPtr {
4317 return C.XkbAddDeviceLedInfo(devi, led_class, led_id)
4318}
4319
4320fn C.XkbResizeDeviceButtonActions(devi XkbDeviceInfoPtr, new_total u32) i32
4321
4322// XkbResizeDeviceButtonActions: raw Xlib ownership and return codes.
4323pub fn xkb_resize_device_button_actions(devi XkbDeviceInfoPtr, new_total u32) i32 {
4324 return C.XkbResizeDeviceButtonActions(devi, new_total)
4325}
4326
4327fn C.XkbAllocDeviceInfo(device_spec u32, n_buttons u32, sz_leds u32) XkbDeviceInfoPtr
4328
4329// XkbAllocDeviceInfo: raw Xlib ownership and return codes.
4330pub fn xkb_alloc_device_info(device_spec u32, n_buttons u32, sz_leds u32) XkbDeviceInfoPtr {
4331 return C.XkbAllocDeviceInfo(device_spec, n_buttons, sz_leds)
4332}
4333
4334fn C.XkbFreeDeviceInfo(devi XkbDeviceInfoPtr, which u32, free_dev_i i32)
4335
4336// XkbFreeDeviceInfo: raw Xlib ownership and return codes.
4337pub fn xkb_free_device_info(devi XkbDeviceInfoPtr, which u32, free_dev_i i32) {
4338 C.XkbFreeDeviceInfo(devi, which, free_dev_i)
4339}
4340
4341fn C.XkbNoteDeviceChanges(old XkbDeviceChangesPtr, new &XkbExtensionDeviceNotifyEvent, wanted u32)
4342
4343// XkbNoteDeviceChanges: raw Xlib ownership and return codes.
4344pub fn xkb_note_device_changes(old XkbDeviceChangesPtr, new &XkbExtensionDeviceNotifyEvent, wanted u32) {
4345 C.XkbNoteDeviceChanges(old, new, wanted)
4346}
4347
4348fn C.XkbGetDeviceInfo(dpy &Display, which u32, device_spec u32, led_class u32, led_id u32) XkbDeviceInfoPtr
4349
4350// XkbGetDeviceInfo: raw Xlib ownership and return codes.
4351pub fn xkb_get_device_info(dpy &Display, which u32, device_spec u32, led_class u32, led_id u32) XkbDeviceInfoPtr {
4352 return C.XkbGetDeviceInfo(dpy, which, device_spec, led_class, led_id)
4353}
4354
4355fn C.XkbGetDeviceInfoChanges(dpy &Display, devi XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32
4356
4357// XkbGetDeviceInfoChanges: raw Xlib ownership and return codes.
4358pub fn xkb_get_device_info_changes(dpy &Display, devi XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32 {
4359 return C.XkbGetDeviceInfoChanges(dpy, devi, changes)
4360}
4361
4362fn C.XkbGetDeviceButtonActions(dpy &Display, devi XkbDeviceInfoPtr, all i32, first u32, n_btns u32) i32
4363
4364// XkbGetDeviceButtonActions: raw Xlib ownership and return codes.
4365pub fn xkb_get_device_button_actions(dpy &Display, devi XkbDeviceInfoPtr, all i32, first u32, n_btns u32) i32 {
4366 return C.XkbGetDeviceButtonActions(dpy, devi, all, first, n_btns)
4367}
4368
4369fn C.XkbGetDeviceLedInfo(dpy &Display, devi XkbDeviceInfoPtr, arg2 u32, arg3 u32, arg4 u32) i32
4370
4371// XkbGetDeviceLedInfo: raw Xlib ownership and return codes.
4372pub fn xkb_get_device_led_info(dpy &Display, devi XkbDeviceInfoPtr, arg2 u32, arg3 u32, arg4 u32) i32 {
4373 return C.XkbGetDeviceLedInfo(dpy, devi, arg2, arg3, arg4)
4374}
4375
4376fn C.XkbSetDeviceInfo(dpy &Display, which u32, devi XkbDeviceInfoPtr) i32
4377
4378// XkbSetDeviceInfo: raw Xlib ownership and return codes.
4379pub fn xkb_set_device_info(dpy &Display, which u32, devi XkbDeviceInfoPtr) i32 {
4380 return C.XkbSetDeviceInfo(dpy, which, devi)
4381}
4382
4383fn C.XkbChangeDeviceInfo(dpy &Display, desc XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32
4384
4385// XkbChangeDeviceInfo: raw Xlib ownership and return codes.
4386pub fn xkb_change_device_info(dpy &Display, desc XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32 {
4387 return C.XkbChangeDeviceInfo(dpy, desc, changes)
4388}
4389
4390fn C.XkbSetDeviceLedInfo(dpy &Display, devi XkbDeviceInfoPtr, led_class u32, led_id u32, which u32) i32
4391
4392// XkbSetDeviceLedInfo: raw Xlib ownership and return codes.
4393pub fn xkb_set_device_led_info(dpy &Display, devi XkbDeviceInfoPtr, led_class u32, led_id u32, which u32) i32 {
4394 return C.XkbSetDeviceLedInfo(dpy, devi, led_class, led_id, which)
4395}
4396
4397fn C.XkbSetDeviceButtonActions(dpy &Display, devi XkbDeviceInfoPtr, first u32, n_btns u32) i32
4398
4399// XkbSetDeviceButtonActions: raw Xlib ownership and return codes.
4400pub fn xkb_set_device_button_actions(dpy &Display, devi XkbDeviceInfoPtr, first u32, n_btns u32) i32 {
4401 return C.XkbSetDeviceButtonActions(dpy, devi, first, n_btns)
4402}
4403
4404fn C.XkbToControl(c_arg char) char
4405
4406// XkbToControl: raw Xlib ownership and return codes.
4407pub fn xkb_to_control(c_arg char) char {
4408 return C.XkbToControl(c_arg)
4409}
4410
4411fn C.XkbSetDebuggingFlags(dpy &Display, mask u32, flags u32, msg &char, ctrls_mask u32, ctrls u32, rtrn_flags &u32, rtrn_ctrls &u32) i32
4412
4413// XkbSetDebuggingFlags: raw Xlib ownership and return codes.
4414pub fn xkb_set_debugging_flags(dpy &Display, mask u32, flags u32, msg &char, ctrls_mask u32, ctrls u32, rtrn_flags &u32, rtrn_ctrls &u32) i32 {
4415 return C.XkbSetDebuggingFlags(dpy, mask, flags, msg, ctrls_mask, ctrls, rtrn_flags, rtrn_ctrls)
4416}
4417
4418fn C.XkbApplyVirtualModChanges(xkb XkbDescPtr, changed u32, changes XkbChangesPtr) i32
4419
4420// XkbApplyVirtualModChanges: raw Xlib ownership and return codes.
4421pub fn xkb_apply_virtual_mod_changes(xkb XkbDescPtr, changed u32, changes XkbChangesPtr) i32 {
4422 return C.XkbApplyVirtualModChanges(xkb, changed, changes)
4423}
4424
4425fn C.XkbUpdateActionVirtualMods(xkb XkbDescPtr, act &XkbAction, changed u32) i32
4426
4427// XkbUpdateActionVirtualMods: raw Xlib ownership and return codes.
4428pub fn xkb_update_action_virtual_mods(xkb XkbDescPtr, act &XkbAction, changed u32) i32 {
4429 return C.XkbUpdateActionVirtualMods(xkb, act, changed)
4430}
4431
4432fn C.XkbUpdateKeyTypeVirtualMods(xkb XkbDescPtr, @type XkbKeyTypePtr, changed u32, changes XkbChangesPtr)
4433
4434// XkbUpdateKeyTypeVirtualMods: raw Xlib ownership and return codes.
4435pub fn xkb_update_key_type_virtual_mods(xkb XkbDescPtr, @type XkbKeyTypePtr, changed u32, changes XkbChangesPtr) {
4436 C.XkbUpdateKeyTypeVirtualMods(xkb, @type, changed, changes)
4437}
4438