// Generated from the installed X11 headers. module vx11 fn C.XLoadQueryFont(display &Display, name &char) &XFontStruct // XLoadQueryFont: raw Xlib ownership and return codes. pub fn load_query_font(display &Display, name &char) &XFontStruct { return C.XLoadQueryFont(display, name) } fn C.XQueryFont(display &Display, font_id XID) &XFontStruct // XQueryFont: raw Xlib ownership and return codes. pub fn query_font(display &Display, font_id XID) &XFontStruct { return C.XQueryFont(display, font_id) } fn C.XGetMotionEvents(display &Display, w Window, start Time, stop Time, nevents_return &i32) &XTimeCoord // XGetMotionEvents: raw Xlib ownership and return codes. pub fn get_motion_events(display &Display, w Window, start Time, stop Time, nevents_return &i32) &XTimeCoord { return C.XGetMotionEvents(display, w, start, stop, nevents_return) } fn C.XDeleteModifiermapEntry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap // XDeleteModifiermapEntry: raw Xlib ownership and return codes. pub fn delete_modifiermap_entry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap { return C.XDeleteModifiermapEntry(modmap, keycode_entry, modifier) } fn C.XGetModifierMapping(display &Display) &XModifierKeymap // XGetModifierMapping: raw Xlib ownership and return codes. pub fn get_modifier_mapping(display &Display) &XModifierKeymap { return C.XGetModifierMapping(display) } fn C.XInsertModifiermapEntry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap // XInsertModifiermapEntry: raw Xlib ownership and return codes. pub fn insert_modifiermap_entry(modmap &XModifierKeymap, keycode_entry KeyCode, modifier i32) &XModifierKeymap { return C.XInsertModifiermapEntry(modmap, keycode_entry, modifier) } fn C.XNewModifiermap(max_keys_per_mod i32) &XModifierKeymap // XNewModifiermap: raw Xlib ownership and return codes. pub fn new_modifiermap(max_keys_per_mod i32) &XModifierKeymap { return C.XNewModifiermap(max_keys_per_mod) } fn 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 // XCreateImage: raw Xlib ownership and return codes. pub 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 { return C.XCreateImage(display, visual, depth, format, offset, data, width, height, bitmap_pad, bytes_per_line) } fn C.XInitImage(image &XImage) i32 // XInitImage: raw Xlib ownership and return codes. pub fn init_image(image &XImage) i32 { return C.XInitImage(image) } fn C.XGetImage(display &Display, d Drawable, x i32, y i32, width u32, height u32, plane_mask CULong, format i32) &XImage // XGetImage: raw Xlib ownership and return codes. pub fn get_image(display &Display, d Drawable, x i32, y i32, width u32, height u32, plane_mask CULong, format i32) &XImage { return C.XGetImage(display, d, x, y, width, height, plane_mask, format) } fn 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 // XGetSubImage: raw Xlib ownership and return codes. pub 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 { return C.XGetSubImage(display, d, x, y, width, height, plane_mask, format, dest_image, dest_x, dest_y) } fn C.XOpenDisplay(display_name &char) &Display // XOpenDisplay: raw Xlib ownership and return codes. pub fn open_display(display_name &char) &Display { return C.XOpenDisplay(display_name) } fn C.XrmInitialize() // XrmInitialize: raw Xlib ownership and return codes. pub fn xrm_initialize() { C.XrmInitialize() } fn C.XFetchBytes(display &Display, nbytes_return &i32) &char // XFetchBytes: raw Xlib ownership and return codes. pub fn fetch_bytes(display &Display, nbytes_return &i32) &char { return C.XFetchBytes(display, nbytes_return) } fn C.XFetchBuffer(display &Display, nbytes_return &i32, buffer i32) &char // XFetchBuffer: raw Xlib ownership and return codes. pub fn fetch_buffer(display &Display, nbytes_return &i32, buffer i32) &char { return C.XFetchBuffer(display, nbytes_return, buffer) } fn C.XGetAtomName(display &Display, atom Atom) &char // XGetAtomName: raw Xlib ownership and return codes. pub fn get_atom_name(display &Display, atom Atom) &char { return C.XGetAtomName(display, atom) } fn C.XGetAtomNames(dpy &Display, atoms &Atom, count i32, names_return &&char) i32 // XGetAtomNames: raw Xlib ownership and return codes. pub fn get_atom_names(dpy &Display, atoms &Atom, count i32, names_return &&char) i32 { return C.XGetAtomNames(dpy, atoms, count, names_return) } fn C.XGetDefault(display &Display, program &char, option &char) &char // XGetDefault: raw Xlib ownership and return codes. pub fn get_default(display &Display, program &char, option &char) &char { return C.XGetDefault(display, program, option) } fn C.XDisplayName(string_arg &char) &char // XDisplayName: raw Xlib ownership and return codes. pub fn display_name(string_arg &char) &char { return C.XDisplayName(string_arg) } fn C.XKeysymToString(keysym KeySym) &char // XKeysymToString: raw Xlib ownership and return codes. pub fn keysym_to_string(keysym KeySym) &char { return C.XKeysymToString(keysym) } fn C.vx11_XSynchronize(display &Display, onoff i32) voidptr // XSynchronize: raw Xlib ownership and return codes. pub fn synchronize(display &Display, onoff i32) fn (&Display) i32 { return AfterFunction(C.vx11_XSynchronize(display, onoff)) } fn C.vx11_XSetAfterFunction(display &Display, arg1 voidptr) voidptr // XSetAfterFunction: raw Xlib ownership and return codes. pub fn set_after_function(display &Display, arg1 fn (&Display) i32) fn (&Display) i32 { return AfterFunction(C.vx11_XSetAfterFunction(display, voidptr(arg1))) } fn C.XInternAtom(display &Display, atom_name &char, only_if_exists i32) Atom // XInternAtom: raw Xlib ownership and return codes. pub fn intern_atom(display &Display, atom_name &char, only_if_exists i32) Atom { return C.XInternAtom(display, atom_name, only_if_exists) } fn C.XInternAtoms(dpy &Display, names &&char, count i32, only_if_exists i32, atoms_return &Atom) i32 // XInternAtoms: raw Xlib ownership and return codes. pub fn intern_atoms(dpy &Display, names &&char, count i32, only_if_exists i32, atoms_return &Atom) i32 { return C.XInternAtoms(dpy, names, count, only_if_exists, atoms_return) } fn C.XCopyColormapAndFree(display &Display, colormap Colormap) Colormap // XCopyColormapAndFree: raw Xlib ownership and return codes. pub fn copy_colormap_and_free(display &Display, colormap Colormap) Colormap { return C.XCopyColormapAndFree(display, colormap) } fn C.XCreateColormap(display &Display, w Window, visual &Visual, alloc i32) Colormap // XCreateColormap: raw Xlib ownership and return codes. pub fn create_colormap(display &Display, w Window, visual &Visual, alloc i32) Colormap { return C.XCreateColormap(display, w, visual, alloc) } fn C.XCreatePixmapCursor(display &Display, source Pixmap, mask Pixmap, foreground_color &XColor, background_color &XColor, x u32, y u32) Cursor // XCreatePixmapCursor: raw Xlib ownership and return codes. pub fn create_pixmap_cursor(display &Display, source Pixmap, mask Pixmap, foreground_color &XColor, background_color &XColor, x u32, y u32) Cursor { return C.XCreatePixmapCursor(display, source, mask, foreground_color, background_color, x, y) } fn C.XCreateGlyphCursor(display &Display, source_font Font, mask_font Font, source_char u32, mask_char u32, foreground_color &XColor, background_color &XColor) Cursor // XCreateGlyphCursor: raw Xlib ownership and return codes. pub 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 { return C.XCreateGlyphCursor(display, source_font, mask_font, source_char, mask_char, foreground_color, background_color) } fn C.XCreateFontCursor(display &Display, shape u32) Cursor // XCreateFontCursor: raw Xlib ownership and return codes. pub fn create_font_cursor(display &Display, shape u32) Cursor { return C.XCreateFontCursor(display, shape) } fn C.XLoadFont(display &Display, name &char) Font // XLoadFont: raw Xlib ownership and return codes. pub fn load_font(display &Display, name &char) Font { return C.XLoadFont(display, name) } fn C.XCreateGC(display &Display, d Drawable, valuemask CULong, values &XGCValues) GC // XCreateGC: raw Xlib ownership and return codes. pub fn create_gc(display &Display, d Drawable, valuemask CULong, values &XGCValues) GC { return C.XCreateGC(display, d, valuemask, values) } fn C.XGContextFromGC(gc GC) GContext // XGContextFromGC: raw Xlib ownership and return codes. pub fn g_context_from_gc(gc GC) GContext { return C.XGContextFromGC(gc) } fn C.XFlushGC(display &Display, gc GC) // XFlushGC: raw Xlib ownership and return codes. pub fn flush_gc(display &Display, gc GC) { C.XFlushGC(display, gc) } fn C.XCreatePixmap(display &Display, d Drawable, width u32, height u32, depth u32) Pixmap // XCreatePixmap: raw Xlib ownership and return codes. pub fn create_pixmap(display &Display, d Drawable, width u32, height u32, depth u32) Pixmap { return C.XCreatePixmap(display, d, width, height, depth) } fn C.XCreateBitmapFromData(display &Display, d Drawable, data &char, width u32, height u32) Pixmap // XCreateBitmapFromData: raw Xlib ownership and return codes. pub fn create_bitmap_from_data(display &Display, d Drawable, data &char, width u32, height u32) Pixmap { return C.XCreateBitmapFromData(display, d, data, width, height) } fn C.XCreatePixmapFromBitmapData(display &Display, d Drawable, data &char, width u32, height u32, fg CULong, bg CULong, depth u32) Pixmap // XCreatePixmapFromBitmapData: raw Xlib ownership and return codes. pub fn create_pixmap_from_bitmap_data(display &Display, d Drawable, data &char, width u32, height u32, fg CULong, bg CULong, depth u32) Pixmap { return C.XCreatePixmapFromBitmapData(display, d, data, width, height, fg, bg, depth) } fn C.XCreateSimpleWindow(display &Display, parent Window, x i32, y i32, width u32, height u32, border_width u32, border CULong, background CULong) Window // XCreateSimpleWindow: raw Xlib ownership and return codes. pub fn create_simple_window(display &Display, parent Window, x i32, y i32, width u32, height u32, border_width u32, border CULong, background CULong) Window { return C.XCreateSimpleWindow(display, parent, x, y, width, height, border_width, border, background) } fn C.XGetSelectionOwner(display &Display, selection Atom) Window // XGetSelectionOwner: raw Xlib ownership and return codes. pub fn get_selection_owner(display &Display, selection Atom) Window { return C.XGetSelectionOwner(display, selection) } fn 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 // XCreateWindow: raw Xlib ownership and return codes. pub 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 { return C.XCreateWindow(display, parent, x, y, width, height, border_width, depth, class, visual, valuemask, attributes) } fn C.XListInstalledColormaps(display &Display, w Window, num_return &i32) &Colormap // XListInstalledColormaps: raw Xlib ownership and return codes. pub fn list_installed_colormaps(display &Display, w Window, num_return &i32) &Colormap { return C.XListInstalledColormaps(display, w, num_return) } fn C.XListFonts(display &Display, pattern &char, maxnames i32, actual_count_return &i32) &&char // XListFonts: raw Xlib ownership and return codes. pub fn list_fonts(display &Display, pattern &char, maxnames i32, actual_count_return &i32) &&char { return C.XListFonts(display, pattern, maxnames, actual_count_return) } fn C.XListFontsWithInfo(display &Display, pattern &char, maxnames i32, count_return &i32, info_return &&XFontStruct) &&char // XListFontsWithInfo: raw Xlib ownership and return codes. pub fn list_fonts_with_info(display &Display, pattern &char, maxnames i32, count_return &i32, info_return &&XFontStruct) &&char { return C.XListFontsWithInfo(display, pattern, maxnames, count_return, info_return) } fn C.XGetFontPath(display &Display, npaths_return &i32) &&char // XGetFontPath: raw Xlib ownership and return codes. pub fn get_font_path(display &Display, npaths_return &i32) &&char { return C.XGetFontPath(display, npaths_return) } fn C.XListExtensions(display &Display, nextensions_return &i32) &&char // XListExtensions: raw Xlib ownership and return codes. pub fn list_extensions(display &Display, nextensions_return &i32) &&char { return C.XListExtensions(display, nextensions_return) } fn C.XListProperties(display &Display, w Window, num_prop_return &i32) &Atom // XListProperties: raw Xlib ownership and return codes. pub fn list_properties(display &Display, w Window, num_prop_return &i32) &Atom { return C.XListProperties(display, w, num_prop_return) } fn C.XListHosts(display &Display, nhosts_return &i32, state_return &i32) &XHostAddress // XListHosts: raw Xlib ownership and return codes. pub fn list_hosts(display &Display, nhosts_return &i32, state_return &i32) &XHostAddress { return C.XListHosts(display, nhosts_return, state_return) } fn C.XKeycodeToKeysym(display &Display, keycode KeyCode, index i32) KeySym // XKeycodeToKeysym: raw Xlib ownership and return codes. pub fn keycode_to_keysym(display &Display, keycode KeyCode, index i32) KeySym { return C.XKeycodeToKeysym(display, keycode, index) } fn C.XLookupKeysym(key_event &XKeyEvent, index i32) KeySym // XLookupKeysym: raw Xlib ownership and return codes. pub fn lookup_keysym(key_event &XKeyEvent, index i32) KeySym { return C.XLookupKeysym(key_event, index) } fn C.XGetKeyboardMapping(display &Display, first_keycode KeyCode, keycode_count i32, keysyms_per_keycode_return &i32) &KeySym // XGetKeyboardMapping: raw Xlib ownership and return codes. pub fn get_keyboard_mapping(display &Display, first_keycode KeyCode, keycode_count i32, keysyms_per_keycode_return &i32) &KeySym { return C.XGetKeyboardMapping(display, first_keycode, keycode_count, keysyms_per_keycode_return) } fn C.XStringToKeysym(string_arg &char) KeySym // XStringToKeysym: raw Xlib ownership and return codes. pub fn string_to_keysym(string_arg &char) KeySym { return C.XStringToKeysym(string_arg) } fn C.XMaxRequestSize(display &Display) CLong // XMaxRequestSize: raw Xlib ownership and return codes. pub fn max_request_size(display &Display) CLong { return C.XMaxRequestSize(display) } fn C.XExtendedMaxRequestSize(display &Display) CLong // XExtendedMaxRequestSize: raw Xlib ownership and return codes. pub fn extended_max_request_size(display &Display) CLong { return C.XExtendedMaxRequestSize(display) } fn C.XResourceManagerString(display &Display) &char // XResourceManagerString: raw Xlib ownership and return codes. pub fn resource_manager_string(display &Display) &char { return C.XResourceManagerString(display) } fn C.XScreenResourceString(screen &Screen) &char // XScreenResourceString: raw Xlib ownership and return codes. pub fn screen_resource_string(screen &Screen) &char { return C.XScreenResourceString(screen) } fn C.XDisplayMotionBufferSize(display &Display) CULong // XDisplayMotionBufferSize: raw Xlib ownership and return codes. pub fn display_motion_buffer_size(display &Display) CULong { return C.XDisplayMotionBufferSize(display) } fn C.XVisualIDFromVisual(visual &Visual) VisualID // XVisualIDFromVisual: raw Xlib ownership and return codes. pub fn visual_id_from_visual(visual &Visual) VisualID { return C.XVisualIDFromVisual(visual) } fn C.XInitThreads() i32 // XInitThreads: raw Xlib ownership and return codes. pub fn init_threads() i32 { return C.XInitThreads() } fn C.XFreeThreads() i32 // XFreeThreads: raw Xlib ownership and return codes. pub fn free_threads() i32 { return C.XFreeThreads() } fn C.XLockDisplay(display &Display) // XLockDisplay: raw Xlib ownership and return codes. pub fn lock_display(display &Display) { C.XLockDisplay(display) } fn C.XUnlockDisplay(display &Display) // XUnlockDisplay: raw Xlib ownership and return codes. pub fn unlock_display(display &Display) { C.XUnlockDisplay(display) } fn C.XInitExtension(display &Display, name &char) &XExtCodes // XInitExtension: raw Xlib ownership and return codes. pub fn init_extension(display &Display, name &char) &XExtCodes { return C.XInitExtension(display, name) } fn C.XAddExtension(display &Display) &XExtCodes // XAddExtension: raw Xlib ownership and return codes. pub fn add_extension(display &Display) &XExtCodes { return C.XAddExtension(display) } fn C.XFindOnExtensionList(structure &&XExtData, number i32) &XExtData // XFindOnExtensionList: raw Xlib ownership and return codes. pub fn find_on_extension_list(structure &&XExtData, number i32) &XExtData { return C.XFindOnExtensionList(structure, number) } fn C.XEHeadOfExtensionList(object XEDataObject) &&XExtData // XEHeadOfExtensionList: raw Xlib ownership and return codes. pub fn e_head_of_extension_list(object XEDataObject) &&XExtData { return C.XEHeadOfExtensionList(object) } fn C.XRootWindow(display &Display, screen_number i32) Window // XRootWindow: raw Xlib ownership and return codes. pub fn root_window(display &Display, screen_number i32) Window { return C.XRootWindow(display, screen_number) } fn C.XDefaultRootWindow(display &Display) Window // XDefaultRootWindow: raw Xlib ownership and return codes. pub fn default_root_window(display &Display) Window { return C.XDefaultRootWindow(display) } fn C.XRootWindowOfScreen(screen &Screen) Window // XRootWindowOfScreen: raw Xlib ownership and return codes. pub fn root_window_of_screen(screen &Screen) Window { return C.XRootWindowOfScreen(screen) } fn C.XDefaultVisual(display &Display, screen_number i32) &Visual // XDefaultVisual: raw Xlib ownership and return codes. pub fn default_visual(display &Display, screen_number i32) &Visual { return C.XDefaultVisual(display, screen_number) } fn C.XDefaultVisualOfScreen(screen &Screen) &Visual // XDefaultVisualOfScreen: raw Xlib ownership and return codes. pub fn default_visual_of_screen(screen &Screen) &Visual { return C.XDefaultVisualOfScreen(screen) } fn C.XDefaultGC(display &Display, screen_number i32) GC // XDefaultGC: raw Xlib ownership and return codes. pub fn default_gc(display &Display, screen_number i32) GC { return C.XDefaultGC(display, screen_number) } fn C.XDefaultGCOfScreen(screen &Screen) GC // XDefaultGCOfScreen: raw Xlib ownership and return codes. pub fn default_gc_of_screen(screen &Screen) GC { return C.XDefaultGCOfScreen(screen) } fn C.XBlackPixel(display &Display, screen_number i32) CULong // XBlackPixel: raw Xlib ownership and return codes. pub fn black_pixel(display &Display, screen_number i32) CULong { return C.XBlackPixel(display, screen_number) } fn C.XWhitePixel(display &Display, screen_number i32) CULong // XWhitePixel: raw Xlib ownership and return codes. pub fn white_pixel(display &Display, screen_number i32) CULong { return C.XWhitePixel(display, screen_number) } fn C.XAllPlanes() CULong // XAllPlanes: raw Xlib ownership and return codes. pub fn all_planes() CULong { return C.XAllPlanes() } fn C.XBlackPixelOfScreen(screen &Screen) CULong // XBlackPixelOfScreen: raw Xlib ownership and return codes. pub fn black_pixel_of_screen(screen &Screen) CULong { return C.XBlackPixelOfScreen(screen) } fn C.XWhitePixelOfScreen(screen &Screen) CULong // XWhitePixelOfScreen: raw Xlib ownership and return codes. pub fn white_pixel_of_screen(screen &Screen) CULong { return C.XWhitePixelOfScreen(screen) } fn C.XNextRequest(display &Display) CULong // XNextRequest: raw Xlib ownership and return codes. pub fn next_request(display &Display) CULong { return C.XNextRequest(display) } fn C.XLastKnownRequestProcessed(display &Display) CULong // XLastKnownRequestProcessed: raw Xlib ownership and return codes. pub fn last_known_request_processed(display &Display) CULong { return C.XLastKnownRequestProcessed(display) } fn C.XServerVendor(display &Display) &char // XServerVendor: raw Xlib ownership and return codes. pub fn server_vendor(display &Display) &char { return C.XServerVendor(display) } fn C.XDisplayString(display &Display) &char // XDisplayString: raw Xlib ownership and return codes. pub fn display_string(display &Display) &char { return C.XDisplayString(display) } fn C.XDefaultColormap(display &Display, screen_number i32) Colormap // XDefaultColormap: raw Xlib ownership and return codes. pub fn default_colormap(display &Display, screen_number i32) Colormap { return C.XDefaultColormap(display, screen_number) } fn C.XDefaultColormapOfScreen(screen &Screen) Colormap // XDefaultColormapOfScreen: raw Xlib ownership and return codes. pub fn default_colormap_of_screen(screen &Screen) Colormap { return C.XDefaultColormapOfScreen(screen) } fn C.XDisplayOfScreen(screen &Screen) &Display // XDisplayOfScreen: raw Xlib ownership and return codes. pub fn display_of_screen(screen &Screen) &Display { return C.XDisplayOfScreen(screen) } fn C.XScreenOfDisplay(display &Display, screen_number i32) &Screen // XScreenOfDisplay: raw Xlib ownership and return codes. pub fn screen_of_display(display &Display, screen_number i32) &Screen { return C.XScreenOfDisplay(display, screen_number) } fn C.XDefaultScreenOfDisplay(display &Display) &Screen // XDefaultScreenOfDisplay: raw Xlib ownership and return codes. pub fn default_screen_of_display(display &Display) &Screen { return C.XDefaultScreenOfDisplay(display) } fn C.XEventMaskOfScreen(screen &Screen) CLong // XEventMaskOfScreen: raw Xlib ownership and return codes. pub fn event_mask_of_screen(screen &Screen) CLong { return C.XEventMaskOfScreen(screen) } fn C.XScreenNumberOfScreen(screen &Screen) i32 // XScreenNumberOfScreen: raw Xlib ownership and return codes. pub fn screen_number_of_screen(screen &Screen) i32 { return C.XScreenNumberOfScreen(screen) } fn C.vx11_XSetErrorHandler(handler voidptr) voidptr // XSetErrorHandler: raw Xlib ownership and return codes. pub fn set_error_handler(handler XErrorHandler) XErrorHandler { return XErrorHandler(C.vx11_XSetErrorHandler(voidptr(handler))) } fn C.vx11_XSetIOErrorHandler(handler voidptr) voidptr // XSetIOErrorHandler: raw Xlib ownership and return codes. pub fn set_io_error_handler(handler XIOErrorHandler) XIOErrorHandler { return XIOErrorHandler(C.vx11_XSetIOErrorHandler(voidptr(handler))) } fn C.vx11_XSetIOErrorExitHandler(arg0 &Display, display voidptr, user_data voidptr) // XSetIOErrorExitHandler: raw Xlib ownership and return codes. pub fn set_io_error_exit_handler(arg0 &Display, display XIOErrorExitHandler, user_data voidptr) { C.vx11_XSetIOErrorExitHandler(arg0, voidptr(display), user_data) } fn C.XListPixmapFormats(display &Display, count_return &i32) &XPixmapFormatValues // XListPixmapFormats: raw Xlib ownership and return codes. pub fn list_pixmap_formats(display &Display, count_return &i32) &XPixmapFormatValues { return C.XListPixmapFormats(display, count_return) } fn C.XListDepths(display &Display, screen_number i32, count_return &i32) &i32 // XListDepths: raw Xlib ownership and return codes. pub fn list_depths(display &Display, screen_number i32, count_return &i32) &i32 { return C.XListDepths(display, screen_number, count_return) } fn C.XReconfigureWMWindow(display &Display, w Window, screen_number i32, mask u32, changes &XWindowChanges) i32 // XReconfigureWMWindow: raw Xlib ownership and return codes. pub fn reconfigure_wm_window(display &Display, w Window, screen_number i32, mask u32, changes &XWindowChanges) i32 { return C.XReconfigureWMWindow(display, w, screen_number, mask, changes) } fn C.XGetWMProtocols(display &Display, w Window, protocols_return &&Atom, count_return &i32) i32 // XGetWMProtocols: raw Xlib ownership and return codes. pub fn get_wm_protocols(display &Display, w Window, protocols_return &&Atom, count_return &i32) i32 { return C.XGetWMProtocols(display, w, protocols_return, count_return) } fn C.XSetWMProtocols(display &Display, w Window, protocols &Atom, count i32) i32 // XSetWMProtocols: raw Xlib ownership and return codes. pub fn set_wm_protocols(display &Display, w Window, protocols &Atom, count i32) i32 { return C.XSetWMProtocols(display, w, protocols, count) } fn C.XIconifyWindow(display &Display, w Window, screen_number i32) i32 // XIconifyWindow: raw Xlib ownership and return codes. pub fn iconify_window(display &Display, w Window, screen_number i32) i32 { return C.XIconifyWindow(display, w, screen_number) } fn C.XWithdrawWindow(display &Display, w Window, screen_number i32) i32 // XWithdrawWindow: raw Xlib ownership and return codes. pub fn withdraw_window(display &Display, w Window, screen_number i32) i32 { return C.XWithdrawWindow(display, w, screen_number) } fn C.XGetCommand(display &Display, w Window, argv_return &&&char, argc_return &i32) i32 // XGetCommand: raw Xlib ownership and return codes. pub fn get_command(display &Display, w Window, argv_return &&&char, argc_return &i32) i32 { return C.XGetCommand(display, w, argv_return, argc_return) } fn C.XGetWMColormapWindows(display &Display, w Window, windows_return &&Window, count_return &i32) i32 // XGetWMColormapWindows: raw Xlib ownership and return codes. pub fn get_wm_colormap_windows(display &Display, w Window, windows_return &&Window, count_return &i32) i32 { return C.XGetWMColormapWindows(display, w, windows_return, count_return) } fn C.XSetWMColormapWindows(display &Display, w Window, colormap_windows &Window, count i32) i32 // XSetWMColormapWindows: raw Xlib ownership and return codes. pub fn set_wm_colormap_windows(display &Display, w Window, colormap_windows &Window, count i32) i32 { return C.XSetWMColormapWindows(display, w, colormap_windows, count) } fn C.XFreeStringList(list &&char) // XFreeStringList: raw Xlib ownership and return codes. pub fn free_string_list(list &&char) { C.XFreeStringList(list) } fn C.XSetTransientForHint(display &Display, w Window, prop_window Window) i32 // XSetTransientForHint: raw Xlib ownership and return codes. pub fn set_transient_for_hint(display &Display, w Window, prop_window Window) i32 { return C.XSetTransientForHint(display, w, prop_window) } fn C.XActivateScreenSaver(display &Display) i32 // XActivateScreenSaver: raw Xlib ownership and return codes. pub fn activate_screen_saver(display &Display) i32 { return C.XActivateScreenSaver(display) } fn C.XAddHost(display &Display, host &XHostAddress) i32 // XAddHost: raw Xlib ownership and return codes. pub fn add_host(display &Display, host &XHostAddress) i32 { return C.XAddHost(display, host) } fn C.XAddHosts(display &Display, hosts &XHostAddress, num_hosts i32) i32 // XAddHosts: raw Xlib ownership and return codes. pub fn add_hosts(display &Display, hosts &XHostAddress, num_hosts i32) i32 { return C.XAddHosts(display, hosts, num_hosts) } fn C.XAddToExtensionList(structure voidptr, ext_data &XExtData) i32 // XAddToExtensionList: raw Xlib ownership and return codes. pub fn add_to_extension_list(structure voidptr, ext_data &XExtData) i32 { return C.XAddToExtensionList(structure, ext_data) } fn C.XAddToSaveSet(display &Display, w Window) i32 // XAddToSaveSet: raw Xlib ownership and return codes. pub fn add_to_save_set(display &Display, w Window) i32 { return C.XAddToSaveSet(display, w) } fn C.XAllocColor(display &Display, colormap Colormap, screen_in_out &XColor) i32 // XAllocColor: raw Xlib ownership and return codes. pub fn alloc_color(display &Display, colormap Colormap, screen_in_out &XColor) i32 { return C.XAllocColor(display, colormap, screen_in_out) } fn C.XAllocColorCells(display &Display, colormap Colormap, contig i32, plane_masks_return &CULong, nplanes u32, pixels_return &CULong, npixels u32) i32 // XAllocColorCells: raw Xlib ownership and return codes. pub fn alloc_color_cells(display &Display, colormap Colormap, contig i32, plane_masks_return &CULong, nplanes u32, pixels_return &CULong, npixels u32) i32 { return C.XAllocColorCells(display, colormap, contig, plane_masks_return, nplanes, pixels_return, npixels) } fn 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 // XAllocColorPlanes: raw Xlib ownership and return codes. pub 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 { return C.XAllocColorPlanes(display, colormap, contig, pixels_return, ncolors, nreds, ngreens, nblues, rmask_return, gmask_return, bmask_return) } fn C.XAllocNamedColor(display &Display, colormap Colormap, color_name &char, screen_def_return &XColor, exact_def_return &XColor) i32 // XAllocNamedColor: raw Xlib ownership and return codes. pub fn alloc_named_color(display &Display, colormap Colormap, color_name &char, screen_def_return &XColor, exact_def_return &XColor) i32 { return C.XAllocNamedColor(display, colormap, color_name, screen_def_return, exact_def_return) } fn C.XAllowEvents(display &Display, event_mode i32, time Time) i32 // XAllowEvents: raw Xlib ownership and return codes. pub fn allow_events(display &Display, event_mode i32, time Time) i32 { return C.XAllowEvents(display, event_mode, time) } fn C.XAutoRepeatOff(display &Display) i32 // XAutoRepeatOff: raw Xlib ownership and return codes. pub fn auto_repeat_off(display &Display) i32 { return C.XAutoRepeatOff(display) } fn C.XAutoRepeatOn(display &Display) i32 // XAutoRepeatOn: raw Xlib ownership and return codes. pub fn auto_repeat_on(display &Display) i32 { return C.XAutoRepeatOn(display) } fn C.XBell(display &Display, percent i32) i32 // XBell: raw Xlib ownership and return codes. pub fn bell(display &Display, percent i32) i32 { return C.XBell(display, percent) } fn C.XBitmapBitOrder(display &Display) i32 // XBitmapBitOrder: raw Xlib ownership and return codes. pub fn bitmap_bit_order(display &Display) i32 { return C.XBitmapBitOrder(display) } fn C.XBitmapPad(display &Display) i32 // XBitmapPad: raw Xlib ownership and return codes. pub fn bitmap_pad(display &Display) i32 { return C.XBitmapPad(display) } fn C.XBitmapUnit(display &Display) i32 // XBitmapUnit: raw Xlib ownership and return codes. pub fn bitmap_unit(display &Display) i32 { return C.XBitmapUnit(display) } fn C.XCellsOfScreen(screen &Screen) i32 // XCellsOfScreen: raw Xlib ownership and return codes. pub fn cells_of_screen(screen &Screen) i32 { return C.XCellsOfScreen(screen) } fn C.XChangeActivePointerGrab(display &Display, event_mask u32, cursor Cursor, time Time) i32 // XChangeActivePointerGrab: raw Xlib ownership and return codes. pub fn change_active_pointer_grab(display &Display, event_mask u32, cursor Cursor, time Time) i32 { return C.XChangeActivePointerGrab(display, event_mask, cursor, time) } fn C.XChangeGC(display &Display, gc GC, valuemask CULong, values &XGCValues) i32 // XChangeGC: raw Xlib ownership and return codes. pub fn change_gc(display &Display, gc GC, valuemask CULong, values &XGCValues) i32 { return C.XChangeGC(display, gc, valuemask, values) } fn C.XChangeKeyboardControl(display &Display, value_mask CULong, values &XKeyboardControl) i32 // XChangeKeyboardControl: raw Xlib ownership and return codes. pub fn change_keyboard_control(display &Display, value_mask CULong, values &XKeyboardControl) i32 { return C.XChangeKeyboardControl(display, value_mask, values) } fn C.XChangeKeyboardMapping(display &Display, first_keycode i32, keysyms_per_keycode i32, keysyms &KeySym, num_codes i32) i32 // XChangeKeyboardMapping: raw Xlib ownership and return codes. pub fn change_keyboard_mapping(display &Display, first_keycode i32, keysyms_per_keycode i32, keysyms &KeySym, num_codes i32) i32 { return C.XChangeKeyboardMapping(display, first_keycode, keysyms_per_keycode, keysyms, num_codes) } fn C.XChangePointerControl(display &Display, do_accel i32, do_threshold i32, accel_numerator i32, accel_denominator i32, threshold i32) i32 // XChangePointerControl: raw Xlib ownership and return codes. pub fn change_pointer_control(display &Display, do_accel i32, do_threshold i32, accel_numerator i32, accel_denominator i32, threshold i32) i32 { return C.XChangePointerControl(display, do_accel, do_threshold, accel_numerator, accel_denominator, threshold) } fn C.XChangeProperty(display &Display, w Window, property Atom, @type Atom, format i32, mode i32, data &u8, nelements i32) i32 // XChangeProperty: raw Xlib ownership and return codes. pub fn change_property(display &Display, w Window, property Atom, @type Atom, format i32, mode i32, data &u8, nelements i32) i32 { return C.XChangeProperty(display, w, property, @type, format, mode, data, nelements) } fn C.XChangeSaveSet(display &Display, w Window, change_mode i32) i32 // XChangeSaveSet: raw Xlib ownership and return codes. pub fn change_save_set(display &Display, w Window, change_mode i32) i32 { return C.XChangeSaveSet(display, w, change_mode) } fn C.XChangeWindowAttributes(display &Display, w Window, valuemask CULong, attributes &XSetWindowAttributes) i32 // XChangeWindowAttributes: raw Xlib ownership and return codes. pub fn change_window_attributes(display &Display, w Window, valuemask CULong, attributes &XSetWindowAttributes) i32 { return C.XChangeWindowAttributes(display, w, valuemask, attributes) } fn C.vx11_XCheckIfEvent(display &Display, event_return &XEvent, arg2 voidptr, arg XPointer) i32 // XCheckIfEvent: raw Xlib ownership and return codes. pub fn check_if_event(display &Display, event_return &XEvent, arg2 fn (&Display, &XEvent, XPointer) i32, arg XPointer) i32 { return C.vx11_XCheckIfEvent(display, event_return, voidptr(arg2), arg) } fn C.XCheckMaskEvent(display &Display, event_mask CLong, event_return &XEvent) i32 // XCheckMaskEvent: raw Xlib ownership and return codes. pub fn check_mask_event(display &Display, event_mask CLong, event_return &XEvent) i32 { return C.XCheckMaskEvent(display, event_mask, event_return) } fn C.XCheckTypedEvent(display &Display, event_type i32, event_return &XEvent) i32 // XCheckTypedEvent: raw Xlib ownership and return codes. pub fn check_typed_event(display &Display, event_type i32, event_return &XEvent) i32 { return C.XCheckTypedEvent(display, event_type, event_return) } fn C.XCheckTypedWindowEvent(display &Display, w Window, event_type i32, event_return &XEvent) i32 // XCheckTypedWindowEvent: raw Xlib ownership and return codes. pub fn check_typed_window_event(display &Display, w Window, event_type i32, event_return &XEvent) i32 { return C.XCheckTypedWindowEvent(display, w, event_type, event_return) } fn C.XCheckWindowEvent(display &Display, w Window, event_mask CLong, event_return &XEvent) i32 // XCheckWindowEvent: raw Xlib ownership and return codes. pub fn check_window_event(display &Display, w Window, event_mask CLong, event_return &XEvent) i32 { return C.XCheckWindowEvent(display, w, event_mask, event_return) } fn C.XCirculateSubwindows(display &Display, w Window, direction i32) i32 // XCirculateSubwindows: raw Xlib ownership and return codes. pub fn circulate_subwindows(display &Display, w Window, direction i32) i32 { return C.XCirculateSubwindows(display, w, direction) } fn C.XCirculateSubwindowsDown(display &Display, w Window) i32 // XCirculateSubwindowsDown: raw Xlib ownership and return codes. pub fn circulate_subwindows_down(display &Display, w Window) i32 { return C.XCirculateSubwindowsDown(display, w) } fn C.XCirculateSubwindowsUp(display &Display, w Window) i32 // XCirculateSubwindowsUp: raw Xlib ownership and return codes. pub fn circulate_subwindows_up(display &Display, w Window) i32 { return C.XCirculateSubwindowsUp(display, w) } fn C.XClearArea(display &Display, w Window, x i32, y i32, width u32, height u32, exposures i32) i32 // XClearArea: raw Xlib ownership and return codes. pub fn clear_area(display &Display, w Window, x i32, y i32, width u32, height u32, exposures i32) i32 { return C.XClearArea(display, w, x, y, width, height, exposures) } fn C.XClearWindow(display &Display, w Window) i32 // XClearWindow: raw Xlib ownership and return codes. pub fn clear_window(display &Display, w Window) i32 { return C.XClearWindow(display, w) } fn C.XCloseDisplay(display &Display) i32 // XCloseDisplay: raw Xlib ownership and return codes. pub fn close_display(display &Display) i32 { return C.XCloseDisplay(display) } fn C.XConfigureWindow(display &Display, w Window, value_mask u32, values &XWindowChanges) i32 // XConfigureWindow: raw Xlib ownership and return codes. pub fn configure_window(display &Display, w Window, value_mask u32, values &XWindowChanges) i32 { return C.XConfigureWindow(display, w, value_mask, values) } fn C.XConnectionNumber(display &Display) i32 // XConnectionNumber: raw Xlib ownership and return codes. pub fn connection_number(display &Display) i32 { return C.XConnectionNumber(display) } fn C.XConvertSelection(display &Display, selection Atom, target Atom, property Atom, requestor Window, time Time) i32 // XConvertSelection: raw Xlib ownership and return codes. pub fn convert_selection(display &Display, selection Atom, target Atom, property Atom, requestor Window, time Time) i32 { return C.XConvertSelection(display, selection, target, property, requestor, time) } fn 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 // XCopyArea: raw Xlib ownership and return codes. pub 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 { return C.XCopyArea(display, src, dest, gc, src_x, src_y, width, height, dest_x, dest_y) } fn C.XCopyGC(display &Display, src GC, valuemask CULong, dest GC) i32 // XCopyGC: raw Xlib ownership and return codes. pub fn copy_gc(display &Display, src GC, valuemask CULong, dest GC) i32 { return C.XCopyGC(display, src, valuemask, dest) } fn 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 // XCopyPlane: raw Xlib ownership and return codes. pub 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 { return C.XCopyPlane(display, src, dest, gc, src_x, src_y, width, height, dest_x, dest_y, plane) } fn C.XDefaultDepth(display &Display, screen_number i32) i32 // XDefaultDepth: raw Xlib ownership and return codes. pub fn default_depth(display &Display, screen_number i32) i32 { return C.XDefaultDepth(display, screen_number) } fn C.XDefaultDepthOfScreen(screen &Screen) i32 // XDefaultDepthOfScreen: raw Xlib ownership and return codes. pub fn default_depth_of_screen(screen &Screen) i32 { return C.XDefaultDepthOfScreen(screen) } fn C.XDefaultScreen(display &Display) i32 // XDefaultScreen: raw Xlib ownership and return codes. pub fn default_screen(display &Display) i32 { return C.XDefaultScreen(display) } fn C.XDefineCursor(display &Display, w Window, cursor Cursor) i32 // XDefineCursor: raw Xlib ownership and return codes. pub fn define_cursor(display &Display, w Window, cursor Cursor) i32 { return C.XDefineCursor(display, w, cursor) } fn C.XDeleteProperty(display &Display, w Window, property Atom) i32 // XDeleteProperty: raw Xlib ownership and return codes. pub fn delete_property(display &Display, w Window, property Atom) i32 { return C.XDeleteProperty(display, w, property) } fn C.XDestroyWindow(display &Display, w Window) i32 // XDestroyWindow: raw Xlib ownership and return codes. pub fn destroy_window(display &Display, w Window) i32 { return C.XDestroyWindow(display, w) } fn C.XDestroySubwindows(display &Display, w Window) i32 // XDestroySubwindows: raw Xlib ownership and return codes. pub fn destroy_subwindows(display &Display, w Window) i32 { return C.XDestroySubwindows(display, w) } fn C.XDoesBackingStore(screen &Screen) i32 // XDoesBackingStore: raw Xlib ownership and return codes. pub fn does_backing_store(screen &Screen) i32 { return C.XDoesBackingStore(screen) } fn C.XDoesSaveUnders(screen &Screen) i32 // XDoesSaveUnders: raw Xlib ownership and return codes. pub fn does_save_unders(screen &Screen) i32 { return C.XDoesSaveUnders(screen) } fn C.XDisableAccessControl(display &Display) i32 // XDisableAccessControl: raw Xlib ownership and return codes. pub fn disable_access_control(display &Display) i32 { return C.XDisableAccessControl(display) } fn C.XDisplayCells(display &Display, screen_number i32) i32 // XDisplayCells: raw Xlib ownership and return codes. pub fn display_cells(display &Display, screen_number i32) i32 { return C.XDisplayCells(display, screen_number) } fn C.XDisplayHeight(display &Display, screen_number i32) i32 // XDisplayHeight: raw Xlib ownership and return codes. pub fn display_height(display &Display, screen_number i32) i32 { return C.XDisplayHeight(display, screen_number) } fn C.XDisplayHeightMM(display &Display, screen_number i32) i32 // XDisplayHeightMM: raw Xlib ownership and return codes. pub fn display_height_mm(display &Display, screen_number i32) i32 { return C.XDisplayHeightMM(display, screen_number) } fn C.XDisplayKeycodes(display &Display, min_keycodes_return &i32, max_keycodes_return &i32) i32 // XDisplayKeycodes: raw Xlib ownership and return codes. pub fn display_keycodes(display &Display, min_keycodes_return &i32, max_keycodes_return &i32) i32 { return C.XDisplayKeycodes(display, min_keycodes_return, max_keycodes_return) } fn C.XDisplayPlanes(display &Display, screen_number i32) i32 // XDisplayPlanes: raw Xlib ownership and return codes. pub fn display_planes(display &Display, screen_number i32) i32 { return C.XDisplayPlanes(display, screen_number) } fn C.XDisplayWidth(display &Display, screen_number i32) i32 // XDisplayWidth: raw Xlib ownership and return codes. pub fn display_width(display &Display, screen_number i32) i32 { return C.XDisplayWidth(display, screen_number) } fn C.XDisplayWidthMM(display &Display, screen_number i32) i32 // XDisplayWidthMM: raw Xlib ownership and return codes. pub fn display_width_mm(display &Display, screen_number i32) i32 { return C.XDisplayWidthMM(display, screen_number) } fn C.XDrawArc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32 // XDrawArc: raw Xlib ownership and return codes. pub fn draw_arc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32 { return C.XDrawArc(display, d, gc, x, y, width, height, angle1, angle2) } fn C.XDrawArcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32 // XDrawArcs: raw Xlib ownership and return codes. pub fn draw_arcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32 { return C.XDrawArcs(display, d, gc, arcs, narcs) } fn C.XDrawImageString(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32 // XDrawImageString: raw Xlib ownership and return codes. pub fn draw_image_string(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32 { return C.XDrawImageString(display, d, gc, x, y, string_arg, length) } fn C.XDrawImageString16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32 // XDrawImageString16: raw Xlib ownership and return codes. pub fn draw_image_string16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32 { return C.XDrawImageString16(display, d, gc, x, y, string_arg, length) } fn C.XDrawLine(display &Display, d Drawable, gc GC, x1 i32, y1 i32, x2 i32, y2 i32) i32 // XDrawLine: raw Xlib ownership and return codes. pub fn draw_line(display &Display, d Drawable, gc GC, x1 i32, y1 i32, x2 i32, y2 i32) i32 { return C.XDrawLine(display, d, gc, x1, y1, x2, y2) } fn C.XDrawLines(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32 // XDrawLines: raw Xlib ownership and return codes. pub fn draw_lines(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32 { return C.XDrawLines(display, d, gc, points, npoints, mode) } fn C.XDrawPoint(display &Display, d Drawable, gc GC, x i32, y i32) i32 // XDrawPoint: raw Xlib ownership and return codes. pub fn draw_point(display &Display, d Drawable, gc GC, x i32, y i32) i32 { return C.XDrawPoint(display, d, gc, x, y) } fn C.XDrawPoints(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32 // XDrawPoints: raw Xlib ownership and return codes. pub fn draw_points(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, mode i32) i32 { return C.XDrawPoints(display, d, gc, points, npoints, mode) } fn C.XDrawRectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32 // XDrawRectangle: raw Xlib ownership and return codes. pub fn draw_rectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32 { return C.XDrawRectangle(display, d, gc, x, y, width, height) } fn C.XDrawRectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32 // XDrawRectangles: raw Xlib ownership and return codes. pub fn draw_rectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32 { return C.XDrawRectangles(display, d, gc, rectangles, nrectangles) } fn C.XDrawSegments(display &Display, d Drawable, gc GC, segments &XSegment, nsegments i32) i32 // XDrawSegments: raw Xlib ownership and return codes. pub fn draw_segments(display &Display, d Drawable, gc GC, segments &XSegment, nsegments i32) i32 { return C.XDrawSegments(display, d, gc, segments, nsegments) } fn C.XDrawString(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32 // XDrawString: raw Xlib ownership and return codes. pub fn draw_string(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &char, length i32) i32 { return C.XDrawString(display, d, gc, x, y, string_arg, length) } fn C.XDrawString16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32 // XDrawString16: raw Xlib ownership and return codes. pub fn draw_string16(display &Display, d Drawable, gc GC, x i32, y i32, string_arg &XChar2b, length i32) i32 { return C.XDrawString16(display, d, gc, x, y, string_arg, length) } fn C.XDrawText(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem, nitems i32) i32 // XDrawText: raw Xlib ownership and return codes. pub fn draw_text(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem, nitems i32) i32 { return C.XDrawText(display, d, gc, x, y, items, nitems) } fn C.XDrawText16(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem16, nitems i32) i32 // XDrawText16: raw Xlib ownership and return codes. pub fn draw_text16(display &Display, d Drawable, gc GC, x i32, y i32, items &XTextItem16, nitems i32) i32 { return C.XDrawText16(display, d, gc, x, y, items, nitems) } fn C.XEnableAccessControl(display &Display) i32 // XEnableAccessControl: raw Xlib ownership and return codes. pub fn enable_access_control(display &Display) i32 { return C.XEnableAccessControl(display) } fn C.XEventsQueued(display &Display, mode i32) i32 // XEventsQueued: raw Xlib ownership and return codes. pub fn events_queued(display &Display, mode i32) i32 { return C.XEventsQueued(display, mode) } fn C.XFetchName(display &Display, w Window, window_name_return &&char) i32 // XFetchName: raw Xlib ownership and return codes. pub fn fetch_name(display &Display, w Window, window_name_return &&char) i32 { return C.XFetchName(display, w, window_name_return) } fn C.XFillArc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32 // XFillArc: raw Xlib ownership and return codes. pub fn fill_arc(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32, angle1 i32, angle2 i32) i32 { return C.XFillArc(display, d, gc, x, y, width, height, angle1, angle2) } fn C.XFillArcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32 // XFillArcs: raw Xlib ownership and return codes. pub fn fill_arcs(display &Display, d Drawable, gc GC, arcs &XArc, narcs i32) i32 { return C.XFillArcs(display, d, gc, arcs, narcs) } fn C.XFillPolygon(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, shape i32, mode i32) i32 // XFillPolygon: raw Xlib ownership and return codes. pub fn fill_polygon(display &Display, d Drawable, gc GC, points &XPoint, npoints i32, shape i32, mode i32) i32 { return C.XFillPolygon(display, d, gc, points, npoints, shape, mode) } fn C.XFillRectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32 // XFillRectangle: raw Xlib ownership and return codes. pub fn fill_rectangle(display &Display, d Drawable, gc GC, x i32, y i32, width u32, height u32) i32 { return C.XFillRectangle(display, d, gc, x, y, width, height) } fn C.XFillRectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32 // XFillRectangles: raw Xlib ownership and return codes. pub fn fill_rectangles(display &Display, d Drawable, gc GC, rectangles &XRectangle, nrectangles i32) i32 { return C.XFillRectangles(display, d, gc, rectangles, nrectangles) } fn C.XFlush(display &Display) i32 // XFlush: raw Xlib ownership and return codes. pub fn flush(display &Display) i32 { return C.XFlush(display) } fn C.XForceScreenSaver(display &Display, mode i32) i32 // XForceScreenSaver: raw Xlib ownership and return codes. pub fn force_screen_saver(display &Display, mode i32) i32 { return C.XForceScreenSaver(display, mode) } fn C.XFree(data voidptr) i32 // XFree: raw Xlib ownership and return codes. pub fn free(data voidptr) i32 { return C.XFree(data) } fn C.XFreeColormap(display &Display, colormap Colormap) i32 // XFreeColormap: raw Xlib ownership and return codes. pub fn free_colormap(display &Display, colormap Colormap) i32 { return C.XFreeColormap(display, colormap) } fn C.XFreeColors(display &Display, colormap Colormap, pixels &CULong, npixels i32, planes CULong) i32 // XFreeColors: raw Xlib ownership and return codes. pub fn free_colors(display &Display, colormap Colormap, pixels &CULong, npixels i32, planes CULong) i32 { return C.XFreeColors(display, colormap, pixels, npixels, planes) } fn C.XFreeCursor(display &Display, cursor Cursor) i32 // XFreeCursor: raw Xlib ownership and return codes. pub fn free_cursor(display &Display, cursor Cursor) i32 { return C.XFreeCursor(display, cursor) } fn C.XFreeExtensionList(list &&char) i32 // XFreeExtensionList: raw Xlib ownership and return codes. pub fn free_extension_list(list &&char) i32 { return C.XFreeExtensionList(list) } fn C.XFreeFont(display &Display, font_struct &XFontStruct) i32 // XFreeFont: raw Xlib ownership and return codes. pub fn free_font(display &Display, font_struct &XFontStruct) i32 { return C.XFreeFont(display, font_struct) } fn C.XFreeFontInfo(names &&char, free_info &XFontStruct, actual_count i32) i32 // XFreeFontInfo: raw Xlib ownership and return codes. pub fn free_font_info(names &&char, free_info &XFontStruct, actual_count i32) i32 { return C.XFreeFontInfo(names, free_info, actual_count) } fn C.XFreeFontNames(list &&char) i32 // XFreeFontNames: raw Xlib ownership and return codes. pub fn free_font_names(list &&char) i32 { return C.XFreeFontNames(list) } fn C.XFreeFontPath(list &&char) i32 // XFreeFontPath: raw Xlib ownership and return codes. pub fn free_font_path(list &&char) i32 { return C.XFreeFontPath(list) } fn C.XFreeGC(display &Display, gc GC) i32 // XFreeGC: raw Xlib ownership and return codes. pub fn free_gc(display &Display, gc GC) i32 { return C.XFreeGC(display, gc) } fn C.XFreeModifiermap(modmap &XModifierKeymap) i32 // XFreeModifiermap: raw Xlib ownership and return codes. pub fn free_modifiermap(modmap &XModifierKeymap) i32 { return C.XFreeModifiermap(modmap) } fn C.XFreePixmap(display &Display, pixmap Pixmap) i32 // XFreePixmap: raw Xlib ownership and return codes. pub fn free_pixmap(display &Display, pixmap Pixmap) i32 { return C.XFreePixmap(display, pixmap) } fn 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 // XGeometry: raw Xlib ownership and return codes. pub 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 { return C.XGeometry(display, screen, position, default_position, bwidth, fwidth, fheight, xadder, yadder, x_return, y_return, width_return, height_return) } fn C.XGetErrorDatabaseText(display &Display, name &char, message &char, default_string &char, buffer_return &char, length i32) i32 // XGetErrorDatabaseText: raw Xlib ownership and return codes. pub fn get_error_database_text(display &Display, name &char, message &char, default_string &char, buffer_return &char, length i32) i32 { return C.XGetErrorDatabaseText(display, name, message, default_string, buffer_return, length) } fn C.XGetErrorText(display &Display, code i32, buffer_return &char, length i32) i32 // XGetErrorText: raw Xlib ownership and return codes. pub fn get_error_text(display &Display, code i32, buffer_return &char, length i32) i32 { return C.XGetErrorText(display, code, buffer_return, length) } fn C.XGetFontProperty(font_struct &XFontStruct, atom Atom, value_return &CULong) i32 // XGetFontProperty: raw Xlib ownership and return codes. pub fn get_font_property(font_struct &XFontStruct, atom Atom, value_return &CULong) i32 { return C.XGetFontProperty(font_struct, atom, value_return) } fn C.XGetGCValues(display &Display, gc GC, valuemask CULong, values_return &XGCValues) i32 // XGetGCValues: raw Xlib ownership and return codes. pub fn get_gc_values(display &Display, gc GC, valuemask CULong, values_return &XGCValues) i32 { return C.XGetGCValues(display, gc, valuemask, values_return) } fn 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 // XGetGeometry: raw Xlib ownership and return codes. pub 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 { return C.XGetGeometry(display, d, root_return, x_return, y_return, width_return, height_return, border_width_return, depth_return) } fn C.XGetIconName(display &Display, w Window, icon_name_return &&char) i32 // XGetIconName: raw Xlib ownership and return codes. pub fn get_icon_name(display &Display, w Window, icon_name_return &&char) i32 { return C.XGetIconName(display, w, icon_name_return) } fn C.XGetInputFocus(display &Display, focus_return &Window, revert_to_return &i32) i32 // XGetInputFocus: raw Xlib ownership and return codes. pub fn get_input_focus(display &Display, focus_return &Window, revert_to_return &i32) i32 { return C.XGetInputFocus(display, focus_return, revert_to_return) } fn C.XGetKeyboardControl(display &Display, values_return &XKeyboardState) i32 // XGetKeyboardControl: raw Xlib ownership and return codes. pub fn get_keyboard_control(display &Display, values_return &XKeyboardState) i32 { return C.XGetKeyboardControl(display, values_return) } fn C.XGetPointerControl(display &Display, accel_numerator_return &i32, accel_denominator_return &i32, threshold_return &i32) i32 // XGetPointerControl: raw Xlib ownership and return codes. pub fn get_pointer_control(display &Display, accel_numerator_return &i32, accel_denominator_return &i32, threshold_return &i32) i32 { return C.XGetPointerControl(display, accel_numerator_return, accel_denominator_return, threshold_return) } fn C.XGetPointerMapping(display &Display, map_return &u8, nmap i32) i32 // XGetPointerMapping: raw Xlib ownership and return codes. pub fn get_pointer_mapping(display &Display, map_return &u8, nmap i32) i32 { return C.XGetPointerMapping(display, map_return, nmap) } fn C.XGetScreenSaver(display &Display, timeout_return &i32, interval_return &i32, prefer_blanking_return &i32, allow_exposures_return &i32) i32 // XGetScreenSaver: raw Xlib ownership and return codes. pub fn get_screen_saver(display &Display, timeout_return &i32, interval_return &i32, prefer_blanking_return &i32, allow_exposures_return &i32) i32 { return C.XGetScreenSaver(display, timeout_return, interval_return, prefer_blanking_return, allow_exposures_return) } fn C.XGetTransientForHint(display &Display, w Window, prop_window_return &Window) i32 // XGetTransientForHint: raw Xlib ownership and return codes. pub fn get_transient_for_hint(display &Display, w Window, prop_window_return &Window) i32 { return C.XGetTransientForHint(display, w, prop_window_return) } fn 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 // XGetWindowProperty: raw Xlib ownership and return codes. pub 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 { 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) } fn C.XGetWindowAttributes(display &Display, w Window, window_attributes_return &XWindowAttributes) i32 // XGetWindowAttributes: raw Xlib ownership and return codes. pub fn get_window_attributes(display &Display, w Window, window_attributes_return &XWindowAttributes) i32 { return C.XGetWindowAttributes(display, w, window_attributes_return) } fn 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 // XGrabButton: raw Xlib ownership and return codes. pub 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 { return C.XGrabButton(display, button, modifiers, grab_window, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor) } fn C.XGrabKey(display &Display, keycode i32, modifiers u32, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32) i32 // XGrabKey: raw Xlib ownership and return codes. pub fn grab_key(display &Display, keycode i32, modifiers u32, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32) i32 { return C.XGrabKey(display, keycode, modifiers, grab_window, owner_events, pointer_mode, keyboard_mode) } fn C.XGrabKeyboard(display &Display, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32, time Time) i32 // XGrabKeyboard: raw Xlib ownership and return codes. pub fn grab_keyboard(display &Display, grab_window Window, owner_events i32, pointer_mode i32, keyboard_mode i32, time Time) i32 { return C.XGrabKeyboard(display, grab_window, owner_events, pointer_mode, keyboard_mode, time) } fn 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 // XGrabPointer: raw Xlib ownership and return codes. pub 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 { return C.XGrabPointer(display, grab_window, owner_events, event_mask, pointer_mode, keyboard_mode, confine_to, cursor, time) } fn C.XGrabServer(display &Display) i32 // XGrabServer: raw Xlib ownership and return codes. pub fn grab_server(display &Display) i32 { return C.XGrabServer(display) } fn C.XHeightMMOfScreen(screen &Screen) i32 // XHeightMMOfScreen: raw Xlib ownership and return codes. pub fn height_mm_of_screen(screen &Screen) i32 { return C.XHeightMMOfScreen(screen) } fn C.XHeightOfScreen(screen &Screen) i32 // XHeightOfScreen: raw Xlib ownership and return codes. pub fn height_of_screen(screen &Screen) i32 { return C.XHeightOfScreen(screen) } fn C.vx11_XIfEvent(display &Display, event_return &XEvent, arg2 voidptr, arg XPointer) i32 // XIfEvent: raw Xlib ownership and return codes. pub fn if_event(display &Display, event_return &XEvent, arg2 fn (&Display, &XEvent, XPointer) i32, arg XPointer) i32 { return C.vx11_XIfEvent(display, event_return, voidptr(arg2), arg) } fn C.XImageByteOrder(display &Display) i32 // XImageByteOrder: raw Xlib ownership and return codes. pub fn image_byte_order(display &Display) i32 { return C.XImageByteOrder(display) } fn C.XInstallColormap(display &Display, colormap Colormap) i32 // XInstallColormap: raw Xlib ownership and return codes. pub fn install_colormap(display &Display, colormap Colormap) i32 { return C.XInstallColormap(display, colormap) } fn C.XKeysymToKeycode(display &Display, keysym KeySym) KeyCode // XKeysymToKeycode: raw Xlib ownership and return codes. pub fn keysym_to_keycode(display &Display, keysym KeySym) KeyCode { return C.XKeysymToKeycode(display, keysym) } fn C.XKillClient(display &Display, resource XID) i32 // XKillClient: raw Xlib ownership and return codes. pub fn kill_client(display &Display, resource XID) i32 { return C.XKillClient(display, resource) } fn C.XLookupColor(display &Display, colormap Colormap, color_name &char, exact_def_return &XColor, screen_def_return &XColor) i32 // XLookupColor: raw Xlib ownership and return codes. pub fn lookup_color(display &Display, colormap Colormap, color_name &char, exact_def_return &XColor, screen_def_return &XColor) i32 { return C.XLookupColor(display, colormap, color_name, exact_def_return, screen_def_return) } fn C.XLowerWindow(display &Display, w Window) i32 // XLowerWindow: raw Xlib ownership and return codes. pub fn lower_window(display &Display, w Window) i32 { return C.XLowerWindow(display, w) } fn C.XMapRaised(display &Display, w Window) i32 // XMapRaised: raw Xlib ownership and return codes. pub fn map_raised(display &Display, w Window) i32 { return C.XMapRaised(display, w) } fn C.XMapSubwindows(display &Display, w Window) i32 // XMapSubwindows: raw Xlib ownership and return codes. pub fn map_subwindows(display &Display, w Window) i32 { return C.XMapSubwindows(display, w) } fn C.XMapWindow(display &Display, w Window) i32 // XMapWindow: raw Xlib ownership and return codes. pub fn map_window(display &Display, w Window) i32 { return C.XMapWindow(display, w) } fn C.XMaskEvent(display &Display, event_mask CLong, event_return &XEvent) i32 // XMaskEvent: raw Xlib ownership and return codes. pub fn mask_event(display &Display, event_mask CLong, event_return &XEvent) i32 { return C.XMaskEvent(display, event_mask, event_return) } fn C.XMaxCmapsOfScreen(screen &Screen) i32 // XMaxCmapsOfScreen: raw Xlib ownership and return codes. pub fn max_cmaps_of_screen(screen &Screen) i32 { return C.XMaxCmapsOfScreen(screen) } fn C.XMinCmapsOfScreen(screen &Screen) i32 // XMinCmapsOfScreen: raw Xlib ownership and return codes. pub fn min_cmaps_of_screen(screen &Screen) i32 { return C.XMinCmapsOfScreen(screen) } fn C.XMoveResizeWindow(display &Display, w Window, x i32, y i32, width u32, height u32) i32 // XMoveResizeWindow: raw Xlib ownership and return codes. pub fn move_resize_window(display &Display, w Window, x i32, y i32, width u32, height u32) i32 { return C.XMoveResizeWindow(display, w, x, y, width, height) } fn C.XMoveWindow(display &Display, w Window, x i32, y i32) i32 // XMoveWindow: raw Xlib ownership and return codes. pub fn move_window(display &Display, w Window, x i32, y i32) i32 { return C.XMoveWindow(display, w, x, y) } fn C.XNextEvent(display &Display, event_return &XEvent) i32 // XNextEvent: raw Xlib ownership and return codes. pub fn next_event(display &Display, event_return &XEvent) i32 { return C.XNextEvent(display, event_return) } fn C.XNoOp(display &Display) i32 // XNoOp: raw Xlib ownership and return codes. pub fn no_op(display &Display) i32 { return C.XNoOp(display) } fn C.XParseColor(display &Display, colormap Colormap, spec &char, exact_def_return &XColor) i32 // XParseColor: raw Xlib ownership and return codes. pub fn parse_color(display &Display, colormap Colormap, spec &char, exact_def_return &XColor) i32 { return C.XParseColor(display, colormap, spec, exact_def_return) } fn C.XParseGeometry(parsestring &char, x_return &i32, y_return &i32, width_return &u32, height_return &u32) i32 // XParseGeometry: raw Xlib ownership and return codes. pub fn parse_geometry(parsestring &char, x_return &i32, y_return &i32, width_return &u32, height_return &u32) i32 { return C.XParseGeometry(parsestring, x_return, y_return, width_return, height_return) } fn C.XPeekEvent(display &Display, event_return &XEvent) i32 // XPeekEvent: raw Xlib ownership and return codes. pub fn peek_event(display &Display, event_return &XEvent) i32 { return C.XPeekEvent(display, event_return) } fn C.vx11_XPeekIfEvent(display &Display, event_return &XEvent, arg2 voidptr, arg XPointer) i32 // XPeekIfEvent: raw Xlib ownership and return codes. pub fn peek_if_event(display &Display, event_return &XEvent, arg2 fn (&Display, &XEvent, XPointer) i32, arg XPointer) i32 { return C.vx11_XPeekIfEvent(display, event_return, voidptr(arg2), arg) } fn C.XPending(display &Display) i32 // XPending: raw Xlib ownership and return codes. pub fn pending(display &Display) i32 { return C.XPending(display) } fn C.XPlanesOfScreen(screen &Screen) i32 // XPlanesOfScreen: raw Xlib ownership and return codes. pub fn planes_of_screen(screen &Screen) i32 { return C.XPlanesOfScreen(screen) } fn C.XProtocolRevision(display &Display) i32 // XProtocolRevision: raw Xlib ownership and return codes. pub fn protocol_revision(display &Display) i32 { return C.XProtocolRevision(display) } fn C.XProtocolVersion(display &Display) i32 // XProtocolVersion: raw Xlib ownership and return codes. pub fn protocol_version(display &Display) i32 { return C.XProtocolVersion(display) } fn C.XPutBackEvent(display &Display, event &XEvent) i32 // XPutBackEvent: raw Xlib ownership and return codes. pub fn put_back_event(display &Display, event &XEvent) i32 { return C.XPutBackEvent(display, event) } fn 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 // XPutImage: raw Xlib ownership and return codes. pub 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 { return C.XPutImage(display, d, gc, image, src_x, src_y, dest_x, dest_y, width, height) } fn C.XQLength(display &Display) i32 // XQLength: raw Xlib ownership and return codes. pub fn q_length(display &Display) i32 { return C.XQLength(display) } fn C.XQueryBestCursor(display &Display, d Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 // XQueryBestCursor: raw Xlib ownership and return codes. pub fn query_best_cursor(display &Display, d Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 { return C.XQueryBestCursor(display, d, width, height, width_return, height_return) } fn C.XQueryBestSize(display &Display, class i32, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 // XQueryBestSize: raw Xlib ownership and return codes. pub fn query_best_size(display &Display, class i32, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 { return C.XQueryBestSize(display, class, which_screen, width, height, width_return, height_return) } fn C.XQueryBestStipple(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 // XQueryBestStipple: raw Xlib ownership and return codes. pub fn query_best_stipple(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 { return C.XQueryBestStipple(display, which_screen, width, height, width_return, height_return) } fn C.XQueryBestTile(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 // XQueryBestTile: raw Xlib ownership and return codes. pub fn query_best_tile(display &Display, which_screen Drawable, width u32, height u32, width_return &u32, height_return &u32) i32 { return C.XQueryBestTile(display, which_screen, width, height, width_return, height_return) } fn C.XQueryColor(display &Display, colormap Colormap, def_in_out &XColor) i32 // XQueryColor: raw Xlib ownership and return codes. pub fn query_color(display &Display, colormap Colormap, def_in_out &XColor) i32 { return C.XQueryColor(display, colormap, def_in_out) } fn C.XQueryColors(display &Display, colormap Colormap, defs_in_out &XColor, ncolors i32) i32 // XQueryColors: raw Xlib ownership and return codes. pub fn query_colors(display &Display, colormap Colormap, defs_in_out &XColor, ncolors i32) i32 { return C.XQueryColors(display, colormap, defs_in_out, ncolors) } fn C.XQueryExtension(display &Display, name &char, major_opcode_return &i32, first_event_return &i32, first_error_return &i32) i32 // XQueryExtension: raw Xlib ownership and return codes. pub fn query_extension(display &Display, name &char, major_opcode_return &i32, first_event_return &i32, first_error_return &i32) i32 { return C.XQueryExtension(display, name, major_opcode_return, first_event_return, first_error_return) } fn C.XQueryKeymap(display &Display, arg1 &char) i32 // XQueryKeymap: raw Xlib ownership and return codes. pub fn query_keymap(display &Display, arg1 &char) i32 { return C.XQueryKeymap(display, arg1) } fn 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 // XQueryPointer: raw Xlib ownership and return codes. pub 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 { return C.XQueryPointer(display, w, root_return, child_return, root_x_return, root_y_return, win_x_return, win_y_return, mask_return) } fn 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 // XQueryTextExtents: raw Xlib ownership and return codes. pub 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 { return C.XQueryTextExtents(display, font_id, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return) } fn 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 // XQueryTextExtents16: raw Xlib ownership and return codes. pub 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 { return C.XQueryTextExtents16(display, font_id, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return) } fn C.XQueryTree(display &Display, w Window, root_return &Window, parent_return &Window, children_return &&Window, nchildren_return &u32) i32 // XQueryTree: raw Xlib ownership and return codes. pub fn query_tree(display &Display, w Window, root_return &Window, parent_return &Window, children_return &&Window, nchildren_return &u32) i32 { return C.XQueryTree(display, w, root_return, parent_return, children_return, nchildren_return) } fn C.XRaiseWindow(display &Display, w Window) i32 // XRaiseWindow: raw Xlib ownership and return codes. pub fn raise_window(display &Display, w Window) i32 { return C.XRaiseWindow(display, w) } fn 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 // XReadBitmapFile: raw Xlib ownership and return codes. pub 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 { return C.XReadBitmapFile(display, d, filename, width_return, height_return, bitmap_return, x_hot_return, y_hot_return) } fn C.XReadBitmapFileData(filename &char, width_return &u32, height_return &u32, data_return &&u8, x_hot_return &i32, y_hot_return &i32) i32 // XReadBitmapFileData: raw Xlib ownership and return codes. pub 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 { return C.XReadBitmapFileData(filename, width_return, height_return, data_return, x_hot_return, y_hot_return) } fn C.XRebindKeysym(display &Display, keysym KeySym, list &KeySym, mod_count i32, string_arg &u8, bytes_string i32) i32 // XRebindKeysym: raw Xlib ownership and return codes. pub fn rebind_keysym(display &Display, keysym KeySym, list &KeySym, mod_count i32, string_arg &u8, bytes_string i32) i32 { return C.XRebindKeysym(display, keysym, list, mod_count, string_arg, bytes_string) } fn C.XRecolorCursor(display &Display, cursor Cursor, foreground_color &XColor, background_color &XColor) i32 // XRecolorCursor: raw Xlib ownership and return codes. pub fn recolor_cursor(display &Display, cursor Cursor, foreground_color &XColor, background_color &XColor) i32 { return C.XRecolorCursor(display, cursor, foreground_color, background_color) } fn C.XRefreshKeyboardMapping(event_map &XMappingEvent) i32 // XRefreshKeyboardMapping: raw Xlib ownership and return codes. pub fn refresh_keyboard_mapping(event_map &XMappingEvent) i32 { return C.XRefreshKeyboardMapping(event_map) } fn C.XRemoveFromSaveSet(display &Display, w Window) i32 // XRemoveFromSaveSet: raw Xlib ownership and return codes. pub fn remove_from_save_set(display &Display, w Window) i32 { return C.XRemoveFromSaveSet(display, w) } fn C.XRemoveHost(display &Display, host &XHostAddress) i32 // XRemoveHost: raw Xlib ownership and return codes. pub fn remove_host(display &Display, host &XHostAddress) i32 { return C.XRemoveHost(display, host) } fn C.XRemoveHosts(display &Display, hosts &XHostAddress, num_hosts i32) i32 // XRemoveHosts: raw Xlib ownership and return codes. pub fn remove_hosts(display &Display, hosts &XHostAddress, num_hosts i32) i32 { return C.XRemoveHosts(display, hosts, num_hosts) } fn C.XReparentWindow(display &Display, w Window, parent Window, x i32, y i32) i32 // XReparentWindow: raw Xlib ownership and return codes. pub fn reparent_window(display &Display, w Window, parent Window, x i32, y i32) i32 { return C.XReparentWindow(display, w, parent, x, y) } fn C.XResetScreenSaver(display &Display) i32 // XResetScreenSaver: raw Xlib ownership and return codes. pub fn reset_screen_saver(display &Display) i32 { return C.XResetScreenSaver(display) } fn C.XResizeWindow(display &Display, w Window, width u32, height u32) i32 // XResizeWindow: raw Xlib ownership and return codes. pub fn resize_window(display &Display, w Window, width u32, height u32) i32 { return C.XResizeWindow(display, w, width, height) } fn C.XRestackWindows(display &Display, windows &Window, nwindows i32) i32 // XRestackWindows: raw Xlib ownership and return codes. pub fn restack_windows(display &Display, windows &Window, nwindows i32) i32 { return C.XRestackWindows(display, windows, nwindows) } fn C.XRotateBuffers(display &Display, rotate i32) i32 // XRotateBuffers: raw Xlib ownership and return codes. pub fn rotate_buffers(display &Display, rotate i32) i32 { return C.XRotateBuffers(display, rotate) } fn C.XRotateWindowProperties(display &Display, w Window, properties &Atom, num_prop i32, npositions i32) i32 // XRotateWindowProperties: raw Xlib ownership and return codes. pub fn rotate_window_properties(display &Display, w Window, properties &Atom, num_prop i32, npositions i32) i32 { return C.XRotateWindowProperties(display, w, properties, num_prop, npositions) } fn C.XScreenCount(display &Display) i32 // XScreenCount: raw Xlib ownership and return codes. pub fn screen_count(display &Display) i32 { return C.XScreenCount(display) } fn C.XSelectInput(display &Display, w Window, event_mask CLong) i32 // XSelectInput: raw Xlib ownership and return codes. pub fn select_input(display &Display, w Window, event_mask CLong) i32 { return C.XSelectInput(display, w, event_mask) } fn C.XSendEvent(display &Display, w Window, propagate i32, event_mask CLong, event_send &XEvent) i32 // XSendEvent: raw Xlib ownership and return codes. pub fn send_event(display &Display, w Window, propagate i32, event_mask CLong, event_send &XEvent) i32 { return C.XSendEvent(display, w, propagate, event_mask, event_send) } fn C.XSetAccessControl(display &Display, mode i32) i32 // XSetAccessControl: raw Xlib ownership and return codes. pub fn set_access_control(display &Display, mode i32) i32 { return C.XSetAccessControl(display, mode) } fn C.XSetArcMode(display &Display, gc GC, arc_mode i32) i32 // XSetArcMode: raw Xlib ownership and return codes. pub fn set_arc_mode(display &Display, gc GC, arc_mode i32) i32 { return C.XSetArcMode(display, gc, arc_mode) } fn C.XSetBackground(display &Display, gc GC, background CULong) i32 // XSetBackground: raw Xlib ownership and return codes. pub fn set_background(display &Display, gc GC, background CULong) i32 { return C.XSetBackground(display, gc, background) } fn C.XSetClipMask(display &Display, gc GC, pixmap Pixmap) i32 // XSetClipMask: raw Xlib ownership and return codes. pub fn set_clip_mask(display &Display, gc GC, pixmap Pixmap) i32 { return C.XSetClipMask(display, gc, pixmap) } fn C.XSetClipOrigin(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32) i32 // XSetClipOrigin: raw Xlib ownership and return codes. pub fn set_clip_origin(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32) i32 { return C.XSetClipOrigin(display, gc, clip_x_origin, clip_y_origin) } fn C.XSetClipRectangles(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32, rectangles &XRectangle, n i32, ordering i32) i32 // XSetClipRectangles: raw Xlib ownership and return codes. pub fn set_clip_rectangles(display &Display, gc GC, clip_x_origin i32, clip_y_origin i32, rectangles &XRectangle, n i32, ordering i32) i32 { return C.XSetClipRectangles(display, gc, clip_x_origin, clip_y_origin, rectangles, n, ordering) } fn C.XSetCloseDownMode(display &Display, close_mode i32) i32 // XSetCloseDownMode: raw Xlib ownership and return codes. pub fn set_close_down_mode(display &Display, close_mode i32) i32 { return C.XSetCloseDownMode(display, close_mode) } fn C.XSetCommand(display &Display, w Window, argv &&char, argc i32) i32 // XSetCommand: raw Xlib ownership and return codes. pub fn set_command(display &Display, w Window, argv &&char, argc i32) i32 { return C.XSetCommand(display, w, argv, argc) } fn C.XSetDashes(display &Display, gc GC, dash_offset i32, dash_list &char, n i32) i32 // XSetDashes: raw Xlib ownership and return codes. pub fn set_dashes(display &Display, gc GC, dash_offset i32, dash_list &char, n i32) i32 { return C.XSetDashes(display, gc, dash_offset, dash_list, n) } fn C.XSetFillRule(display &Display, gc GC, fill_rule i32) i32 // XSetFillRule: raw Xlib ownership and return codes. pub fn set_fill_rule(display &Display, gc GC, fill_rule i32) i32 { return C.XSetFillRule(display, gc, fill_rule) } fn C.XSetFillStyle(display &Display, gc GC, fill_style i32) i32 // XSetFillStyle: raw Xlib ownership and return codes. pub fn set_fill_style(display &Display, gc GC, fill_style i32) i32 { return C.XSetFillStyle(display, gc, fill_style) } fn C.XSetFont(display &Display, gc GC, font Font) i32 // XSetFont: raw Xlib ownership and return codes. pub fn set_font(display &Display, gc GC, font Font) i32 { return C.XSetFont(display, gc, font) } fn C.XSetFontPath(display &Display, directories &&char, ndirs i32) i32 // XSetFontPath: raw Xlib ownership and return codes. pub fn set_font_path(display &Display, directories &&char, ndirs i32) i32 { return C.XSetFontPath(display, directories, ndirs) } fn C.XSetForeground(display &Display, gc GC, foreground CULong) i32 // XSetForeground: raw Xlib ownership and return codes. pub fn set_foreground(display &Display, gc GC, foreground CULong) i32 { return C.XSetForeground(display, gc, foreground) } fn C.XSetFunction(display &Display, gc GC, function i32) i32 // XSetFunction: raw Xlib ownership and return codes. pub fn set_function(display &Display, gc GC, function i32) i32 { return C.XSetFunction(display, gc, function) } fn C.XSetGraphicsExposures(display &Display, gc GC, graphics_exposures i32) i32 // XSetGraphicsExposures: raw Xlib ownership and return codes. pub fn set_graphics_exposures(display &Display, gc GC, graphics_exposures i32) i32 { return C.XSetGraphicsExposures(display, gc, graphics_exposures) } fn C.XSetIconName(display &Display, w Window, icon_name &char) i32 // XSetIconName: raw Xlib ownership and return codes. pub fn set_icon_name(display &Display, w Window, icon_name &char) i32 { return C.XSetIconName(display, w, icon_name) } fn C.XSetInputFocus(display &Display, focus Window, revert_to i32, time Time) i32 // XSetInputFocus: raw Xlib ownership and return codes. pub fn set_input_focus(display &Display, focus Window, revert_to i32, time Time) i32 { return C.XSetInputFocus(display, focus, revert_to, time) } fn C.XSetLineAttributes(display &Display, gc GC, line_width u32, line_style i32, cap_style i32, join_style i32) i32 // XSetLineAttributes: raw Xlib ownership and return codes. pub fn set_line_attributes(display &Display, gc GC, line_width u32, line_style i32, cap_style i32, join_style i32) i32 { return C.XSetLineAttributes(display, gc, line_width, line_style, cap_style, join_style) } fn C.XSetModifierMapping(display &Display, modmap &XModifierKeymap) i32 // XSetModifierMapping: raw Xlib ownership and return codes. pub fn set_modifier_mapping(display &Display, modmap &XModifierKeymap) i32 { return C.XSetModifierMapping(display, modmap) } fn C.XSetPlaneMask(display &Display, gc GC, plane_mask CULong) i32 // XSetPlaneMask: raw Xlib ownership and return codes. pub fn set_plane_mask(display &Display, gc GC, plane_mask CULong) i32 { return C.XSetPlaneMask(display, gc, plane_mask) } fn C.XSetPointerMapping(display &Display, map_arg &u8, nmap i32) i32 // XSetPointerMapping: raw Xlib ownership and return codes. pub fn set_pointer_mapping(display &Display, map_arg &u8, nmap i32) i32 { return C.XSetPointerMapping(display, map_arg, nmap) } fn C.XSetScreenSaver(display &Display, timeout i32, interval i32, prefer_blanking i32, allow_exposures i32) i32 // XSetScreenSaver: raw Xlib ownership and return codes. pub fn set_screen_saver(display &Display, timeout i32, interval i32, prefer_blanking i32, allow_exposures i32) i32 { return C.XSetScreenSaver(display, timeout, interval, prefer_blanking, allow_exposures) } fn C.XSetSelectionOwner(display &Display, selection Atom, owner Window, time Time) i32 // XSetSelectionOwner: raw Xlib ownership and return codes. pub fn set_selection_owner(display &Display, selection Atom, owner Window, time Time) i32 { return C.XSetSelectionOwner(display, selection, owner, time) } fn C.XSetState(display &Display, gc GC, foreground CULong, background CULong, function i32, plane_mask CULong) i32 // XSetState: raw Xlib ownership and return codes. pub fn set_state(display &Display, gc GC, foreground CULong, background CULong, function i32, plane_mask CULong) i32 { return C.XSetState(display, gc, foreground, background, function, plane_mask) } fn C.XSetStipple(display &Display, gc GC, stipple Pixmap) i32 // XSetStipple: raw Xlib ownership and return codes. pub fn set_stipple(display &Display, gc GC, stipple Pixmap) i32 { return C.XSetStipple(display, gc, stipple) } fn C.XSetSubwindowMode(display &Display, gc GC, subwindow_mode i32) i32 // XSetSubwindowMode: raw Xlib ownership and return codes. pub fn set_subwindow_mode(display &Display, gc GC, subwindow_mode i32) i32 { return C.XSetSubwindowMode(display, gc, subwindow_mode) } fn C.XSetTSOrigin(display &Display, gc GC, ts_x_origin i32, ts_y_origin i32) i32 // XSetTSOrigin: raw Xlib ownership and return codes. pub fn set_ts_origin(display &Display, gc GC, ts_x_origin i32, ts_y_origin i32) i32 { return C.XSetTSOrigin(display, gc, ts_x_origin, ts_y_origin) } fn C.XSetTile(display &Display, gc GC, tile Pixmap) i32 // XSetTile: raw Xlib ownership and return codes. pub fn set_tile(display &Display, gc GC, tile Pixmap) i32 { return C.XSetTile(display, gc, tile) } fn C.XSetWindowBackground(display &Display, w Window, background_pixel CULong) i32 // XSetWindowBackground: raw Xlib ownership and return codes. pub fn set_window_background(display &Display, w Window, background_pixel CULong) i32 { return C.XSetWindowBackground(display, w, background_pixel) } fn C.XSetWindowBackgroundPixmap(display &Display, w Window, background_pixmap Pixmap) i32 // XSetWindowBackgroundPixmap: raw Xlib ownership and return codes. pub fn set_window_background_pixmap(display &Display, w Window, background_pixmap Pixmap) i32 { return C.XSetWindowBackgroundPixmap(display, w, background_pixmap) } fn C.XSetWindowBorder(display &Display, w Window, border_pixel CULong) i32 // XSetWindowBorder: raw Xlib ownership and return codes. pub fn set_window_border(display &Display, w Window, border_pixel CULong) i32 { return C.XSetWindowBorder(display, w, border_pixel) } fn C.XSetWindowBorderPixmap(display &Display, w Window, border_pixmap Pixmap) i32 // XSetWindowBorderPixmap: raw Xlib ownership and return codes. pub fn set_window_border_pixmap(display &Display, w Window, border_pixmap Pixmap) i32 { return C.XSetWindowBorderPixmap(display, w, border_pixmap) } fn C.XSetWindowBorderWidth(display &Display, w Window, width u32) i32 // XSetWindowBorderWidth: raw Xlib ownership and return codes. pub fn set_window_border_width(display &Display, w Window, width u32) i32 { return C.XSetWindowBorderWidth(display, w, width) } fn C.XSetWindowColormap(display &Display, w Window, colormap Colormap) i32 // XSetWindowColormap: raw Xlib ownership and return codes. pub fn set_window_colormap(display &Display, w Window, colormap Colormap) i32 { return C.XSetWindowColormap(display, w, colormap) } fn C.XStoreBuffer(display &Display, bytes &char, nbytes i32, buffer i32) i32 // XStoreBuffer: raw Xlib ownership and return codes. pub fn store_buffer(display &Display, bytes &char, nbytes i32, buffer i32) i32 { return C.XStoreBuffer(display, bytes, nbytes, buffer) } fn C.XStoreBytes(display &Display, bytes &char, nbytes i32) i32 // XStoreBytes: raw Xlib ownership and return codes. pub fn store_bytes(display &Display, bytes &char, nbytes i32) i32 { return C.XStoreBytes(display, bytes, nbytes) } fn C.XStoreColor(display &Display, colormap Colormap, color &XColor) i32 // XStoreColor: raw Xlib ownership and return codes. pub fn store_color(display &Display, colormap Colormap, color &XColor) i32 { return C.XStoreColor(display, colormap, color) } fn C.XStoreColors(display &Display, colormap Colormap, color &XColor, ncolors i32) i32 // XStoreColors: raw Xlib ownership and return codes. pub fn store_colors(display &Display, colormap Colormap, color &XColor, ncolors i32) i32 { return C.XStoreColors(display, colormap, color, ncolors) } fn C.XStoreName(display &Display, w Window, window_name &char) i32 // XStoreName: raw Xlib ownership and return codes. pub fn store_name(display &Display, w Window, window_name &char) i32 { return C.XStoreName(display, w, window_name) } fn C.XStoreNamedColor(display &Display, colormap Colormap, color &char, pixel CULong, flags i32) i32 // XStoreNamedColor: raw Xlib ownership and return codes. pub fn store_named_color(display &Display, colormap Colormap, color &char, pixel CULong, flags i32) i32 { return C.XStoreNamedColor(display, colormap, color, pixel, flags) } fn C.XSync(display &Display, discard i32) i32 // XSync: raw Xlib ownership and return codes. pub fn sync(display &Display, discard i32) i32 { return C.XSync(display, discard) } fn 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 // XTextExtents: raw Xlib ownership and return codes. pub 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 { return C.XTextExtents(font_struct, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return) } fn 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 // XTextExtents16: raw Xlib ownership and return codes. pub 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 { return C.XTextExtents16(font_struct, string_arg, nchars, direction_return, font_ascent_return, font_descent_return, overall_return) } fn C.XTextWidth(font_struct &XFontStruct, string_arg &char, count i32) i32 // XTextWidth: raw Xlib ownership and return codes. pub fn text_width(font_struct &XFontStruct, string_arg &char, count i32) i32 { return C.XTextWidth(font_struct, string_arg, count) } fn C.XTextWidth16(font_struct &XFontStruct, string_arg &XChar2b, count i32) i32 // XTextWidth16: raw Xlib ownership and return codes. pub fn text_width16(font_struct &XFontStruct, string_arg &XChar2b, count i32) i32 { return C.XTextWidth16(font_struct, string_arg, count) } fn 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 // XTranslateCoordinates: raw Xlib ownership and return codes. pub 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 { return C.XTranslateCoordinates(display, src_w, dest_w, src_x, src_y, dest_x_return, dest_y_return, child_return) } fn C.XUndefineCursor(display &Display, w Window) i32 // XUndefineCursor: raw Xlib ownership and return codes. pub fn undefine_cursor(display &Display, w Window) i32 { return C.XUndefineCursor(display, w) } fn C.XUngrabButton(display &Display, button u32, modifiers u32, grab_window Window) i32 // XUngrabButton: raw Xlib ownership and return codes. pub fn ungrab_button(display &Display, button u32, modifiers u32, grab_window Window) i32 { return C.XUngrabButton(display, button, modifiers, grab_window) } fn C.XUngrabKey(display &Display, keycode i32, modifiers u32, grab_window Window) i32 // XUngrabKey: raw Xlib ownership and return codes. pub fn ungrab_key(display &Display, keycode i32, modifiers u32, grab_window Window) i32 { return C.XUngrabKey(display, keycode, modifiers, grab_window) } fn C.XUngrabKeyboard(display &Display, time Time) i32 // XUngrabKeyboard: raw Xlib ownership and return codes. pub fn ungrab_keyboard(display &Display, time Time) i32 { return C.XUngrabKeyboard(display, time) } fn C.XUngrabPointer(display &Display, time Time) i32 // XUngrabPointer: raw Xlib ownership and return codes. pub fn ungrab_pointer(display &Display, time Time) i32 { return C.XUngrabPointer(display, time) } fn C.XUngrabServer(display &Display) i32 // XUngrabServer: raw Xlib ownership and return codes. pub fn ungrab_server(display &Display) i32 { return C.XUngrabServer(display) } fn C.XUninstallColormap(display &Display, colormap Colormap) i32 // XUninstallColormap: raw Xlib ownership and return codes. pub fn uninstall_colormap(display &Display, colormap Colormap) i32 { return C.XUninstallColormap(display, colormap) } fn C.XUnloadFont(display &Display, font Font) i32 // XUnloadFont: raw Xlib ownership and return codes. pub fn unload_font(display &Display, font Font) i32 { return C.XUnloadFont(display, font) } fn C.XUnmapSubwindows(display &Display, w Window) i32 // XUnmapSubwindows: raw Xlib ownership and return codes. pub fn unmap_subwindows(display &Display, w Window) i32 { return C.XUnmapSubwindows(display, w) } fn C.XUnmapWindow(display &Display, w Window) i32 // XUnmapWindow: raw Xlib ownership and return codes. pub fn unmap_window(display &Display, w Window) i32 { return C.XUnmapWindow(display, w) } fn C.XVendorRelease(display &Display) i32 // XVendorRelease: raw Xlib ownership and return codes. pub fn vendor_release(display &Display) i32 { return C.XVendorRelease(display) } fn 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 // XWarpPointer: raw Xlib ownership and return codes. pub 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 { return C.XWarpPointer(display, src_w, dest_w, src_x, src_y, src_width, src_height, dest_x, dest_y) } fn C.XWidthMMOfScreen(screen &Screen) i32 // XWidthMMOfScreen: raw Xlib ownership and return codes. pub fn width_mm_of_screen(screen &Screen) i32 { return C.XWidthMMOfScreen(screen) } fn C.XWidthOfScreen(screen &Screen) i32 // XWidthOfScreen: raw Xlib ownership and return codes. pub fn width_of_screen(screen &Screen) i32 { return C.XWidthOfScreen(screen) } fn C.XWindowEvent(display &Display, w Window, event_mask CLong, event_return &XEvent) i32 // XWindowEvent: raw Xlib ownership and return codes. pub fn window_event(display &Display, w Window, event_mask CLong, event_return &XEvent) i32 { return C.XWindowEvent(display, w, event_mask, event_return) } fn C.XWriteBitmapFile(display &Display, filename &char, bitmap Pixmap, width u32, height u32, x_hot i32, y_hot i32) i32 // XWriteBitmapFile: raw Xlib ownership and return codes. pub fn write_bitmap_file(display &Display, filename &char, bitmap Pixmap, width u32, height u32, x_hot i32, y_hot i32) i32 { return C.XWriteBitmapFile(display, filename, bitmap, width, height, x_hot, y_hot) } fn C.XSupportsLocale() i32 // XSupportsLocale: raw Xlib ownership and return codes. pub fn supports_locale() i32 { return C.XSupportsLocale() } fn C.XSetLocaleModifiers(modifier_list &char) &char // XSetLocaleModifiers: raw Xlib ownership and return codes. pub fn set_locale_modifiers(modifier_list &char) &char { return C.XSetLocaleModifiers(modifier_list) } fn C.XOpenOM(display &Display, rdb voidptr, res_name &char, res_class &char) XOM // XOpenOM: raw Xlib ownership and return codes. pub fn open_om(display &Display, rdb voidptr, res_name &char, res_class &char) XOM { return C.XOpenOM(display, rdb, res_name, res_class) } fn C.XCloseOM(om XOM) i32 // XCloseOM: raw Xlib ownership and return codes. pub fn close_om(om XOM) i32 { return C.XCloseOM(om) } fn C.vx11_XSetOMValues(om XOM, args &voidptr, count i32) &char // XSetOMValues: alternating name/value pointers, without a trailing null. pub fn set_om_values(om XOM, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XSetOMValues(om, args.data, i32(args.len)) } fn C.vx11_XGetOMValues(om XOM, args &voidptr, count i32) &char // XGetOMValues: alternating name/value pointers, without a trailing null. pub fn get_om_values(om XOM, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XGetOMValues(om, args.data, i32(args.len)) } fn C.XDisplayOfOM(om XOM) &Display // XDisplayOfOM: raw Xlib ownership and return codes. pub fn display_of_om(om XOM) &Display { return C.XDisplayOfOM(om) } fn C.XLocaleOfOM(om XOM) &char // XLocaleOfOM: raw Xlib ownership and return codes. pub fn locale_of_om(om XOM) &char { return C.XLocaleOfOM(om) } fn C.vx11_XCreateOC(om XOM, args &voidptr, count i32) XOC // XCreateOC: alternating name/value pointers, without a trailing null. pub fn create_oc(om XOM, args []voidptr) !XOC { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XCreateOC(om, args.data, i32(args.len)) } fn C.XDestroyOC(oc XOC) // XDestroyOC: raw Xlib ownership and return codes. pub fn destroy_oc(oc XOC) { C.XDestroyOC(oc) } fn C.XOMOfOC(oc XOC) XOM // XOMOfOC: raw Xlib ownership and return codes. pub fn om_of_oc(oc XOC) XOM { return C.XOMOfOC(oc) } fn C.vx11_XSetOCValues(oc XOC, args &voidptr, count i32) &char // XSetOCValues: alternating name/value pointers, without a trailing null. pub fn set_oc_values(oc XOC, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XSetOCValues(oc, args.data, i32(args.len)) } fn C.vx11_XGetOCValues(oc XOC, args &voidptr, count i32) &char // XGetOCValues: alternating name/value pointers, without a trailing null. pub fn get_oc_values(oc XOC, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XGetOCValues(oc, args.data, i32(args.len)) } fn C.XCreateFontSet(display &Display, base_font_name_list &char, missing_charset_list &&&char, missing_charset_count &i32, def_string &&char) XFontSet // XCreateFontSet: raw Xlib ownership and return codes. pub fn create_font_set(display &Display, base_font_name_list &char, missing_charset_list &&&char, missing_charset_count &i32, def_string &&char) XFontSet { return C.XCreateFontSet(display, base_font_name_list, missing_charset_list, missing_charset_count, def_string) } fn C.XFreeFontSet(display &Display, font_set XFontSet) // XFreeFontSet: raw Xlib ownership and return codes. pub fn free_font_set(display &Display, font_set XFontSet) { C.XFreeFontSet(display, font_set) } fn C.XFontsOfFontSet(font_set XFontSet, font_struct_list &&&XFontStruct, font_name_list &&&char) i32 // XFontsOfFontSet: raw Xlib ownership and return codes. pub fn fonts_of_font_set(font_set XFontSet, font_struct_list &&&XFontStruct, font_name_list &&&char) i32 { return C.XFontsOfFontSet(font_set, font_struct_list, font_name_list) } fn C.XBaseFontNameListOfFontSet(font_set XFontSet) &char // XBaseFontNameListOfFontSet: raw Xlib ownership and return codes. pub fn base_font_name_list_of_font_set(font_set XFontSet) &char { return C.XBaseFontNameListOfFontSet(font_set) } fn C.XLocaleOfFontSet(font_set XFontSet) &char // XLocaleOfFontSet: raw Xlib ownership and return codes. pub fn locale_of_font_set(font_set XFontSet) &char { return C.XLocaleOfFontSet(font_set) } fn C.XContextDependentDrawing(font_set XFontSet) i32 // XContextDependentDrawing: raw Xlib ownership and return codes. pub fn context_dependent_drawing(font_set XFontSet) i32 { return C.XContextDependentDrawing(font_set) } fn C.XDirectionalDependentDrawing(font_set XFontSet) i32 // XDirectionalDependentDrawing: raw Xlib ownership and return codes. pub fn directional_dependent_drawing(font_set XFontSet) i32 { return C.XDirectionalDependentDrawing(font_set) } fn C.XContextualDrawing(font_set XFontSet) i32 // XContextualDrawing: raw Xlib ownership and return codes. pub fn contextual_drawing(font_set XFontSet) i32 { return C.XContextualDrawing(font_set) } fn C.XExtentsOfFontSet(font_set XFontSet) &XFontSetExtents // XExtentsOfFontSet: raw Xlib ownership and return codes. pub fn extents_of_font_set(font_set XFontSet) &XFontSetExtents { return C.XExtentsOfFontSet(font_set) } fn C.XmbTextEscapement(font_set XFontSet, text &char, bytes_text i32) i32 // XmbTextEscapement: raw Xlib ownership and return codes. pub fn mb_text_escapement(font_set XFontSet, text &char, bytes_text i32) i32 { return C.XmbTextEscapement(font_set, text, bytes_text) } fn C.XwcTextEscapement(font_set XFontSet, text &i32, num_wchars i32) i32 // XwcTextEscapement: raw Xlib ownership and return codes. pub fn wc_text_escapement(font_set XFontSet, text &i32, num_wchars i32) i32 { return C.XwcTextEscapement(font_set, text, num_wchars) } fn C.Xutf8TextEscapement(font_set XFontSet, text &char, bytes_text i32) i32 // Xutf8TextEscapement: raw Xlib ownership and return codes. pub fn utf8_text_escapement(font_set XFontSet, text &char, bytes_text i32) i32 { return C.Xutf8TextEscapement(font_set, text, bytes_text) } fn C.XmbTextExtents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 // XmbTextExtents: raw Xlib ownership and return codes. pub fn mb_text_extents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 { return C.XmbTextExtents(font_set, text, bytes_text, overall_ink_return, overall_logical_return) } fn C.XwcTextExtents(font_set XFontSet, text &i32, num_wchars i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 // XwcTextExtents: raw Xlib ownership and return codes. pub fn wc_text_extents(font_set XFontSet, text &i32, num_wchars i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 { return C.XwcTextExtents(font_set, text, num_wchars, overall_ink_return, overall_logical_return) } fn C.Xutf8TextExtents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 // Xutf8TextExtents: raw Xlib ownership and return codes. pub fn utf8_text_extents(font_set XFontSet, text &char, bytes_text i32, overall_ink_return &XRectangle, overall_logical_return &XRectangle) i32 { return C.Xutf8TextExtents(font_set, text, bytes_text, overall_ink_return, overall_logical_return) } fn 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 // XmbTextPerCharExtents: raw Xlib ownership and return codes. pub 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 { return C.XmbTextPerCharExtents(font_set, text, bytes_text, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, overall_ink_return, overall_logical_return) } fn 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 // XwcTextPerCharExtents: raw Xlib ownership and return codes. pub 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 { return C.XwcTextPerCharExtents(font_set, text, num_wchars, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, overall_ink_return, overall_logical_return) } fn 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 // Xutf8TextPerCharExtents: raw Xlib ownership and return codes. pub 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 { return C.Xutf8TextPerCharExtents(font_set, text, bytes_text, ink_extents_buffer, logical_extents_buffer, buffer_size, num_chars, overall_ink_return, overall_logical_return) } fn C.XmbDrawText(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32) // XmbDrawText: raw Xlib ownership and return codes. pub fn mb_draw_text(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32) { C.XmbDrawText(display, d, gc, x, y, text_items, nitems) } fn C.XwcDrawText(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XwcTextItem, nitems i32) // XwcDrawText: raw Xlib ownership and return codes. pub fn wc_draw_text(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XwcTextItem, nitems i32) { C.XwcDrawText(display, d, gc, x, y, text_items, nitems) } fn C.Xutf8DrawText(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32) // Xutf8DrawText: raw Xlib ownership and return codes. pub fn utf8_draw_text(display &Display, d Drawable, gc GC, x i32, y i32, text_items &XmbTextItem, nitems i32) { C.Xutf8DrawText(display, d, gc, x, y, text_items, nitems) } fn C.XmbDrawString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) // XmbDrawString: raw Xlib ownership and return codes. pub fn mb_draw_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) { C.XmbDrawString(display, d, font_set, gc, x, y, text, bytes_text) } fn C.XwcDrawString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32) // XwcDrawString: raw Xlib ownership and return codes. pub fn wc_draw_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32) { C.XwcDrawString(display, d, font_set, gc, x, y, text, num_wchars) } fn C.Xutf8DrawString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) // Xutf8DrawString: raw Xlib ownership and return codes. pub fn utf8_draw_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) { C.Xutf8DrawString(display, d, font_set, gc, x, y, text, bytes_text) } fn C.XmbDrawImageString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) // XmbDrawImageString: raw Xlib ownership and return codes. pub fn mb_draw_image_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) { C.XmbDrawImageString(display, d, font_set, gc, x, y, text, bytes_text) } fn C.XwcDrawImageString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32) // XwcDrawImageString: raw Xlib ownership and return codes. pub fn wc_draw_image_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &i32, num_wchars i32) { C.XwcDrawImageString(display, d, font_set, gc, x, y, text, num_wchars) } fn C.Xutf8DrawImageString(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) // Xutf8DrawImageString: raw Xlib ownership and return codes. pub fn utf8_draw_image_string(display &Display, d Drawable, font_set XFontSet, gc GC, x i32, y i32, text &char, bytes_text i32) { C.Xutf8DrawImageString(display, d, font_set, gc, x, y, text, bytes_text) } fn C.XOpenIM(dpy &Display, rdb voidptr, res_name &char, res_class &char) XIM // XOpenIM: raw Xlib ownership and return codes. pub fn open_im(dpy &Display, rdb voidptr, res_name &char, res_class &char) XIM { return C.XOpenIM(dpy, rdb, res_name, res_class) } fn C.XCloseIM(im XIM) i32 // XCloseIM: raw Xlib ownership and return codes. pub fn close_im(im XIM) i32 { return C.XCloseIM(im) } fn C.vx11_XGetIMValues(im XIM, args &voidptr, count i32) &char // XGetIMValues: alternating name/value pointers, without a trailing null. pub fn get_im_values(im XIM, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XGetIMValues(im, args.data, i32(args.len)) } fn C.vx11_XSetIMValues(im XIM, args &voidptr, count i32) &char // XSetIMValues: alternating name/value pointers, without a trailing null. pub fn set_im_values(im XIM, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XSetIMValues(im, args.data, i32(args.len)) } fn C.XDisplayOfIM(im XIM) &Display // XDisplayOfIM: raw Xlib ownership and return codes. pub fn display_of_im(im XIM) &Display { return C.XDisplayOfIM(im) } fn C.XLocaleOfIM(im XIM) &char // XLocaleOfIM: raw Xlib ownership and return codes. pub fn locale_of_im(im XIM) &char { return C.XLocaleOfIM(im) } fn C.vx11_XCreateIC(im XIM, args &voidptr, count i32) XIC // XCreateIC: alternating name/value pointers, without a trailing null. pub fn create_ic(im XIM, args []voidptr) !XIC { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XCreateIC(im, args.data, i32(args.len)) } fn C.XDestroyIC(ic XIC) // XDestroyIC: raw Xlib ownership and return codes. pub fn destroy_ic(ic XIC) { C.XDestroyIC(ic) } fn C.XSetICFocus(ic XIC) // XSetICFocus: raw Xlib ownership and return codes. pub fn set_ic_focus(ic XIC) { C.XSetICFocus(ic) } fn C.XUnsetICFocus(ic XIC) // XUnsetICFocus: raw Xlib ownership and return codes. pub fn unset_ic_focus(ic XIC) { C.XUnsetICFocus(ic) } fn C.XwcResetIC(ic XIC) &i32 // XwcResetIC: raw Xlib ownership and return codes. pub fn wc_reset_ic(ic XIC) &i32 { return C.XwcResetIC(ic) } fn C.XmbResetIC(ic XIC) &char // XmbResetIC: raw Xlib ownership and return codes. pub fn mb_reset_ic(ic XIC) &char { return C.XmbResetIC(ic) } fn C.Xutf8ResetIC(ic XIC) &char // Xutf8ResetIC: raw Xlib ownership and return codes. pub fn utf8_reset_ic(ic XIC) &char { return C.Xutf8ResetIC(ic) } fn C.vx11_XSetICValues(ic XIC, args &voidptr, count i32) &char // XSetICValues: alternating name/value pointers, without a trailing null. pub fn set_ic_values(ic XIC, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XSetICValues(ic, args.data, i32(args.len)) } fn C.vx11_XGetICValues(ic XIC, args &voidptr, count i32) &char // XGetICValues: alternating name/value pointers, without a trailing null. pub fn get_ic_values(ic XIC, args []voidptr) !&char { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XGetICValues(ic, args.data, i32(args.len)) } fn C.XIMOfIC(ic XIC) XIM // XIMOfIC: raw Xlib ownership and return codes. pub fn im_of_ic(ic XIC) XIM { return C.XIMOfIC(ic) } fn C.XFilterEvent(event &XEvent, window Window) i32 // XFilterEvent: raw Xlib ownership and return codes. pub fn filter_event(event &XEvent, window Window) i32 { return C.XFilterEvent(event, window) } fn C.XmbLookupString(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32 // XmbLookupString: raw Xlib ownership and return codes. pub fn mb_lookup_string(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32 { return C.XmbLookupString(ic, event, buffer_return, bytes_buffer, keysym_return, status_return) } fn C.XwcLookupString(ic XIC, event &XKeyPressedEvent, buffer_return &i32, wchars_buffer i32, keysym_return &KeySym, status_return &i32) i32 // XwcLookupString: raw Xlib ownership and return codes. pub fn wc_lookup_string(ic XIC, event &XKeyPressedEvent, buffer_return &i32, wchars_buffer i32, keysym_return &KeySym, status_return &i32) i32 { return C.XwcLookupString(ic, event, buffer_return, wchars_buffer, keysym_return, status_return) } fn C.Xutf8LookupString(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32 // Xutf8LookupString: raw Xlib ownership and return codes. pub fn utf8_lookup_string(ic XIC, event &XKeyPressedEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_return &i32) i32 { return C.Xutf8LookupString(ic, event, buffer_return, bytes_buffer, keysym_return, status_return) } fn C.vx11_XVaCreateNestedList(unused i32, args &voidptr, count i32) XVaNestedList // XVaCreateNestedList: alternating name/value pointers, without a trailing null. pub fn va_create_nested_list(unused i32, args []voidptr) !XVaNestedList { if args.len % 2 != 0 || args.len > 32 { return error('expected at most 16 name/value pairs') } return C.vx11_XVaCreateNestedList(unused, args.data, i32(args.len)) } fn C.vx11_XRegisterIMInstantiateCallback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback voidptr, client_data XPointer) i32 // XRegisterIMInstantiateCallback: raw Xlib ownership and return codes. pub fn register_im_instantiate_callback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback XIDProc, client_data XPointer) i32 { return C.vx11_XRegisterIMInstantiateCallback(dpy, rdb, res_name, res_class, voidptr(callback), client_data) } fn C.vx11_XUnregisterIMInstantiateCallback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback voidptr, client_data XPointer) i32 // XUnregisterIMInstantiateCallback: raw Xlib ownership and return codes. pub fn unregister_im_instantiate_callback(dpy &Display, rdb voidptr, res_name &char, res_class &char, callback XIDProc, client_data XPointer) i32 { return C.vx11_XUnregisterIMInstantiateCallback(dpy, rdb, res_name, res_class, voidptr(callback), client_data) } fn C.XInternalConnectionNumbers(dpy &Display, fd_return &&i32, count_return &i32) i32 // XInternalConnectionNumbers: raw Xlib ownership and return codes. pub fn internal_connection_numbers(dpy &Display, fd_return &&i32, count_return &i32) i32 { return C.XInternalConnectionNumbers(dpy, fd_return, count_return) } fn C.XProcessInternalConnection(dpy &Display, fd i32) // XProcessInternalConnection: raw Xlib ownership and return codes. pub fn process_internal_connection(dpy &Display, fd i32) { C.XProcessInternalConnection(dpy, fd) } fn C.vx11_XAddConnectionWatch(dpy &Display, callback voidptr, client_data XPointer) i32 // XAddConnectionWatch: raw Xlib ownership and return codes. pub fn add_connection_watch(dpy &Display, callback XConnectionWatchProc, client_data XPointer) i32 { return C.vx11_XAddConnectionWatch(dpy, voidptr(callback), client_data) } fn C.vx11_XRemoveConnectionWatch(dpy &Display, callback voidptr, client_data XPointer) // XRemoveConnectionWatch: raw Xlib ownership and return codes. pub fn remove_connection_watch(dpy &Display, callback XConnectionWatchProc, client_data XPointer) { C.vx11_XRemoveConnectionWatch(dpy, voidptr(callback), client_data) } fn C.XSetAuthorization(name &char, namelen i32, data &char, datalen i32) // XSetAuthorization: raw Xlib ownership and return codes. pub fn set_authorization(name &char, namelen i32, data &char, datalen i32) { C.XSetAuthorization(name, namelen, data, datalen) } fn C.XGetEventData(dpy &Display, cookie &XGenericEventCookie) i32 // XGetEventData: raw Xlib ownership and return codes. pub fn get_event_data(dpy &Display, cookie &XGenericEventCookie) i32 { return C.XGetEventData(dpy, cookie) } fn C.XFreeEventData(dpy &Display, cookie &XGenericEventCookie) // XFreeEventData: raw Xlib ownership and return codes. pub fn free_event_data(dpy &Display, cookie &XGenericEventCookie) { C.XFreeEventData(dpy, cookie) } fn C.Xpermalloc(size u32) &char // Xpermalloc: raw Xlib ownership and return codes. pub fn permalloc(size u32) &char { return C.Xpermalloc(size) } fn C.XrmStringToQuark(string_arg &char) XrmQuark // XrmStringToQuark: raw Xlib ownership and return codes. pub fn xrm_string_to_quark(string_arg &char) XrmQuark { return C.XrmStringToQuark(string_arg) } fn C.XrmPermStringToQuark(string_arg &char) XrmQuark // XrmPermStringToQuark: raw Xlib ownership and return codes. pub fn xrm_perm_string_to_quark(string_arg &char) XrmQuark { return C.XrmPermStringToQuark(string_arg) } fn C.XrmQuarkToString(quark XrmQuark) XrmString // XrmQuarkToString: raw Xlib ownership and return codes. pub fn xrm_quark_to_string(quark XrmQuark) XrmString { return C.XrmQuarkToString(quark) } fn C.XrmUniqueQuark() XrmQuark // XrmUniqueQuark: raw Xlib ownership and return codes. pub fn xrm_unique_quark() XrmQuark { return C.XrmUniqueQuark() } fn C.XrmStringToQuarkList(string_arg &char, quarks_return XrmQuarkList) // XrmStringToQuarkList: raw Xlib ownership and return codes. pub fn xrm_string_to_quark_list(string_arg &char, quarks_return XrmQuarkList) { C.XrmStringToQuarkList(string_arg, quarks_return) } fn C.XrmStringToBindingQuarkList(string_arg &char, bindings_return XrmBindingList, quarks_return XrmQuarkList) // XrmStringToBindingQuarkList: raw Xlib ownership and return codes. pub fn xrm_string_to_binding_quark_list(string_arg &char, bindings_return XrmBindingList, quarks_return XrmQuarkList) { C.XrmStringToBindingQuarkList(string_arg, bindings_return, quarks_return) } fn C.XrmDestroyDatabase(database XrmDatabase) // XrmDestroyDatabase: raw Xlib ownership and return codes. pub fn xrm_destroy_database(database XrmDatabase) { C.XrmDestroyDatabase(database) } fn C.XrmQPutResource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, @type XrmRepresentation, value &XrmValue) // XrmQPutResource: raw Xlib ownership and return codes. pub fn xrm_q_put_resource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, @type XrmRepresentation, value &XrmValue) { C.XrmQPutResource(database, bindings, quarks, @type, value) } fn C.XrmPutResource(database &XrmDatabase, specifier &char, @type &char, value &XrmValue) // XrmPutResource: raw Xlib ownership and return codes. pub fn xrm_put_resource(database &XrmDatabase, specifier &char, @type &char, value &XrmValue) { C.XrmPutResource(database, specifier, @type, value) } fn C.XrmQPutStringResource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, value &char) // XrmQPutStringResource: raw Xlib ownership and return codes. pub fn xrm_q_put_string_resource(database &XrmDatabase, bindings XrmBindingList, quarks XrmQuarkList, value &char) { C.XrmQPutStringResource(database, bindings, quarks, value) } fn C.XrmPutStringResource(database &XrmDatabase, specifier &char, value &char) // XrmPutStringResource: raw Xlib ownership and return codes. pub fn xrm_put_string_resource(database &XrmDatabase, specifier &char, value &char) { C.XrmPutStringResource(database, specifier, value) } fn C.XrmPutLineResource(database &XrmDatabase, line &char) // XrmPutLineResource: raw Xlib ownership and return codes. pub fn xrm_put_line_resource(database &XrmDatabase, line &char) { C.XrmPutLineResource(database, line) } fn C.XrmQGetResource(database XrmDatabase, quark_name XrmNameList, quark_class XrmClassList, quark_type_return &XrmRepresentation, value_return &XrmValue) i32 // XrmQGetResource: raw Xlib ownership and return codes. pub fn xrm_q_get_resource(database XrmDatabase, quark_name XrmNameList, quark_class XrmClassList, quark_type_return &XrmRepresentation, value_return &XrmValue) i32 { return C.XrmQGetResource(database, quark_name, quark_class, quark_type_return, value_return) } fn C.XrmGetResource(database XrmDatabase, str_name &char, str_class &char, str_type_return &&char, value_return &XrmValue) i32 // XrmGetResource: raw Xlib ownership and return codes. pub fn xrm_get_resource(database XrmDatabase, str_name &char, str_class &char, str_type_return &&char, value_return &XrmValue) i32 { return C.XrmGetResource(database, str_name, str_class, str_type_return, value_return) } fn C.XrmQGetSearchList(database XrmDatabase, names XrmNameList, classes XrmClassList, list_return &XrmHashTable, list_length i32) i32 // XrmQGetSearchList: raw Xlib ownership and return codes. pub fn xrm_q_get_search_list(database XrmDatabase, names XrmNameList, classes XrmClassList, list_return &XrmHashTable, list_length i32) i32 { return C.XrmQGetSearchList(database, names, classes, list_return, list_length) } fn C.XrmQGetSearchResource(list &XrmHashTable, name XrmName, class XrmClass, type_return &XrmRepresentation, value_return &XrmValue) i32 // XrmQGetSearchResource: raw Xlib ownership and return codes. pub fn xrm_q_get_search_resource(list &XrmHashTable, name XrmName, class XrmClass, type_return &XrmRepresentation, value_return &XrmValue) i32 { return C.XrmQGetSearchResource(list, name, class, type_return, value_return) } fn C.XrmSetDatabase(display &Display, database XrmDatabase) // XrmSetDatabase: raw Xlib ownership and return codes. pub fn xrm_set_database(display &Display, database XrmDatabase) { C.XrmSetDatabase(display, database) } fn C.XrmGetDatabase(display &Display) XrmDatabase // XrmGetDatabase: raw Xlib ownership and return codes. pub fn xrm_get_database(display &Display) XrmDatabase { return C.XrmGetDatabase(display) } fn C.XrmGetFileDatabase(filename &char) XrmDatabase // XrmGetFileDatabase: raw Xlib ownership and return codes. pub fn xrm_get_file_database(filename &char) XrmDatabase { return C.XrmGetFileDatabase(filename) } fn C.XrmCombineFileDatabase(filename &char, target &XrmDatabase, override i32) i32 // XrmCombineFileDatabase: raw Xlib ownership and return codes. pub fn xrm_combine_file_database(filename &char, target &XrmDatabase, override i32) i32 { return C.XrmCombineFileDatabase(filename, target, override) } fn C.XrmGetStringDatabase(arg0 &char) XrmDatabase // XrmGetStringDatabase: raw Xlib ownership and return codes. pub fn xrm_get_string_database(arg0 &char) XrmDatabase { return C.XrmGetStringDatabase(arg0) } fn C.XrmPutFileDatabase(database XrmDatabase, filename &char) // XrmPutFileDatabase: raw Xlib ownership and return codes. pub fn xrm_put_file_database(database XrmDatabase, filename &char) { C.XrmPutFileDatabase(database, filename) } fn C.XrmMergeDatabases(source_db XrmDatabase, target_db &XrmDatabase) // XrmMergeDatabases: raw Xlib ownership and return codes. pub fn xrm_merge_databases(source_db XrmDatabase, target_db &XrmDatabase) { C.XrmMergeDatabases(source_db, target_db) } fn C.XrmCombineDatabase(source_db XrmDatabase, target_db &XrmDatabase, override i32) // XrmCombineDatabase: raw Xlib ownership and return codes. pub fn xrm_combine_database(source_db XrmDatabase, target_db &XrmDatabase, override i32) { C.XrmCombineDatabase(source_db, target_db, override) } fn C.vx11_XrmEnumerateDatabase(db XrmDatabase, name_prefix XrmNameList, class_prefix XrmClassList, mode i32, arg4 voidptr, closure XPointer) i32 // XrmEnumerateDatabase: raw Xlib ownership and return codes. pub 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 { return C.vx11_XrmEnumerateDatabase(db, name_prefix, class_prefix, mode, voidptr(arg4), closure) } fn C.XrmLocaleOfDatabase(database XrmDatabase) &char // XrmLocaleOfDatabase: raw Xlib ownership and return codes. pub fn xrm_locale_of_database(database XrmDatabase) &char { return C.XrmLocaleOfDatabase(database) } fn C.XrmParseCommand(database &XrmDatabase, table XrmOptionDescList, table_count i32, name &char, argc_in_out &i32, argv_in_out &&char) // XrmParseCommand: raw Xlib ownership and return codes. pub fn xrm_parse_command(database &XrmDatabase, table XrmOptionDescList, table_count i32, name &char, argc_in_out &i32, argv_in_out &&char) { C.XrmParseCommand(database, table, table_count, name, argc_in_out, argv_in_out) } fn C.XAllocClassHint() &XClassHint // XAllocClassHint: raw Xlib ownership and return codes. pub fn alloc_class_hint() &XClassHint { return C.XAllocClassHint() } fn C.XAllocIconSize() &XIconSize // XAllocIconSize: raw Xlib ownership and return codes. pub fn alloc_icon_size() &XIconSize { return C.XAllocIconSize() } fn C.XAllocSizeHints() &XSizeHints // XAllocSizeHints: raw Xlib ownership and return codes. pub fn alloc_size_hints() &XSizeHints { return C.XAllocSizeHints() } fn C.XAllocStandardColormap() &XStandardColormap // XAllocStandardColormap: raw Xlib ownership and return codes. pub fn alloc_standard_colormap() &XStandardColormap { return C.XAllocStandardColormap() } fn C.XAllocWMHints() &XWMHints // XAllocWMHints: raw Xlib ownership and return codes. pub fn alloc_wm_hints() &XWMHints { return C.XAllocWMHints() } fn C.XClipBox(r Region, rect_return &XRectangle) i32 // XClipBox: raw Xlib ownership and return codes. pub fn clip_box(r Region, rect_return &XRectangle) i32 { return C.XClipBox(r, rect_return) } fn C.XCreateRegion() Region // XCreateRegion: raw Xlib ownership and return codes. pub fn create_region() Region { return C.XCreateRegion() } fn C.XDefaultString() &char // XDefaultString: raw Xlib ownership and return codes. pub fn default_string() &char { return C.XDefaultString() } fn C.XDeleteContext(display &Display, rid XID, context XContext) i32 // XDeleteContext: raw Xlib ownership and return codes. pub fn delete_context(display &Display, rid XID, context XContext) i32 { return C.XDeleteContext(display, rid, context) } fn C.XDestroyRegion(r Region) i32 // XDestroyRegion: raw Xlib ownership and return codes. pub fn destroy_region(r Region) i32 { return C.XDestroyRegion(r) } fn C.XEmptyRegion(r Region) i32 // XEmptyRegion: raw Xlib ownership and return codes. pub fn empty_region(r Region) i32 { return C.XEmptyRegion(r) } fn C.XEqualRegion(r1 Region, r2 Region) i32 // XEqualRegion: raw Xlib ownership and return codes. pub fn equal_region(r1 Region, r2 Region) i32 { return C.XEqualRegion(r1, r2) } fn C.XFindContext(display &Display, rid XID, context XContext, data_return &XPointer) i32 // XFindContext: raw Xlib ownership and return codes. pub fn find_context(display &Display, rid XID, context XContext, data_return &XPointer) i32 { return C.XFindContext(display, rid, context, data_return) } fn C.XGetClassHint(display &Display, w Window, class_hints_return &XClassHint) i32 // XGetClassHint: raw Xlib ownership and return codes. pub fn get_class_hint(display &Display, w Window, class_hints_return &XClassHint) i32 { return C.XGetClassHint(display, w, class_hints_return) } fn C.XGetIconSizes(display &Display, w Window, size_list_return &&XIconSize, count_return &i32) i32 // XGetIconSizes: raw Xlib ownership and return codes. pub fn get_icon_sizes(display &Display, w Window, size_list_return &&XIconSize, count_return &i32) i32 { return C.XGetIconSizes(display, w, size_list_return, count_return) } fn C.XGetNormalHints(display &Display, w Window, hints_return &XSizeHints) i32 // XGetNormalHints: raw Xlib ownership and return codes. pub fn get_normal_hints(display &Display, w Window, hints_return &XSizeHints) i32 { return C.XGetNormalHints(display, w, hints_return) } fn C.XGetRGBColormaps(display &Display, w Window, stdcmap_return &&XStandardColormap, count_return &i32, property Atom) i32 // XGetRGBColormaps: raw Xlib ownership and return codes. pub fn get_rgb_colormaps(display &Display, w Window, stdcmap_return &&XStandardColormap, count_return &i32, property Atom) i32 { return C.XGetRGBColormaps(display, w, stdcmap_return, count_return, property) } fn C.XGetSizeHints(display &Display, w Window, hints_return &XSizeHints, property Atom) i32 // XGetSizeHints: raw Xlib ownership and return codes. pub fn get_size_hints(display &Display, w Window, hints_return &XSizeHints, property Atom) i32 { return C.XGetSizeHints(display, w, hints_return, property) } fn C.XGetStandardColormap(display &Display, w Window, colormap_return &XStandardColormap, property Atom) i32 // XGetStandardColormap: raw Xlib ownership and return codes. pub fn get_standard_colormap(display &Display, w Window, colormap_return &XStandardColormap, property Atom) i32 { return C.XGetStandardColormap(display, w, colormap_return, property) } fn C.XGetTextProperty(display &Display, window Window, text_prop_return &XTextProperty, property Atom) i32 // XGetTextProperty: raw Xlib ownership and return codes. pub fn get_text_property(display &Display, window Window, text_prop_return &XTextProperty, property Atom) i32 { return C.XGetTextProperty(display, window, text_prop_return, property) } fn C.XGetVisualInfo(display &Display, vinfo_mask CLong, vinfo_template &XVisualInfo, nitems_return &i32) &XVisualInfo // XGetVisualInfo: raw Xlib ownership and return codes. pub fn get_visual_info(display &Display, vinfo_mask CLong, vinfo_template &XVisualInfo, nitems_return &i32) &XVisualInfo { return C.XGetVisualInfo(display, vinfo_mask, vinfo_template, nitems_return) } fn C.XGetWMClientMachine(display &Display, w Window, text_prop_return &XTextProperty) i32 // XGetWMClientMachine: raw Xlib ownership and return codes. pub fn get_wm_client_machine(display &Display, w Window, text_prop_return &XTextProperty) i32 { return C.XGetWMClientMachine(display, w, text_prop_return) } fn C.XGetWMHints(display &Display, w Window) &XWMHints // XGetWMHints: raw Xlib ownership and return codes. pub fn get_wm_hints(display &Display, w Window) &XWMHints { return C.XGetWMHints(display, w) } fn C.XGetWMIconName(display &Display, w Window, text_prop_return &XTextProperty) i32 // XGetWMIconName: raw Xlib ownership and return codes. pub fn get_wm_icon_name(display &Display, w Window, text_prop_return &XTextProperty) i32 { return C.XGetWMIconName(display, w, text_prop_return) } fn C.XGetWMName(display &Display, w Window, text_prop_return &XTextProperty) i32 // XGetWMName: raw Xlib ownership and return codes. pub fn get_wm_name(display &Display, w Window, text_prop_return &XTextProperty) i32 { return C.XGetWMName(display, w, text_prop_return) } fn C.XGetWMNormalHints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong) i32 // XGetWMNormalHints: raw Xlib ownership and return codes. pub fn get_wm_normal_hints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong) i32 { return C.XGetWMNormalHints(display, w, hints_return, supplied_return) } fn C.XGetWMSizeHints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong, property Atom) i32 // XGetWMSizeHints: raw Xlib ownership and return codes. pub fn get_wm_size_hints(display &Display, w Window, hints_return &XSizeHints, supplied_return &CLong, property Atom) i32 { return C.XGetWMSizeHints(display, w, hints_return, supplied_return, property) } fn C.XGetZoomHints(display &Display, w Window, zhints_return &XSizeHints) i32 // XGetZoomHints: raw Xlib ownership and return codes. pub fn get_zoom_hints(display &Display, w Window, zhints_return &XSizeHints) i32 { return C.XGetZoomHints(display, w, zhints_return) } fn C.XIntersectRegion(sra Region, srb Region, dr_return Region) i32 // XIntersectRegion: raw Xlib ownership and return codes. pub fn intersect_region(sra Region, srb Region, dr_return Region) i32 { return C.XIntersectRegion(sra, srb, dr_return) } fn C.XConvertCase(sym KeySym, lower &KeySym, upper &KeySym) // XConvertCase: raw Xlib ownership and return codes. pub fn convert_case(sym KeySym, lower &KeySym, upper &KeySym) { C.XConvertCase(sym, lower, upper) } fn C.XLookupString(event_struct &XKeyEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_in_out &XComposeStatus) i32 // XLookupString: raw Xlib ownership and return codes. pub fn lookup_string(event_struct &XKeyEvent, buffer_return &char, bytes_buffer i32, keysym_return &KeySym, status_in_out &XComposeStatus) i32 { return C.XLookupString(event_struct, buffer_return, bytes_buffer, keysym_return, status_in_out) } fn C.XMatchVisualInfo(display &Display, screen i32, depth i32, class i32, vinfo_return &XVisualInfo) i32 // XMatchVisualInfo: raw Xlib ownership and return codes. pub fn match_visual_info(display &Display, screen i32, depth i32, class i32, vinfo_return &XVisualInfo) i32 { return C.XMatchVisualInfo(display, screen, depth, class, vinfo_return) } fn C.XOffsetRegion(r Region, dx i32, dy i32) i32 // XOffsetRegion: raw Xlib ownership and return codes. pub fn offset_region(r Region, dx i32, dy i32) i32 { return C.XOffsetRegion(r, dx, dy) } fn C.XPointInRegion(r Region, x i32, y i32) i32 // XPointInRegion: raw Xlib ownership and return codes. pub fn point_in_region(r Region, x i32, y i32) i32 { return C.XPointInRegion(r, x, y) } fn C.XPolygonRegion(points &XPoint, n i32, fill_rule i32) Region // XPolygonRegion: raw Xlib ownership and return codes. pub fn polygon_region(points &XPoint, n i32, fill_rule i32) Region { return C.XPolygonRegion(points, n, fill_rule) } fn C.XRectInRegion(r Region, x i32, y i32, width u32, height u32) i32 // XRectInRegion: raw Xlib ownership and return codes. pub fn rect_in_region(r Region, x i32, y i32, width u32, height u32) i32 { return C.XRectInRegion(r, x, y, width, height) } fn C.XSaveContext(display &Display, rid XID, context XContext, data &char) i32 // XSaveContext: raw Xlib ownership and return codes. pub fn save_context(display &Display, rid XID, context XContext, data &char) i32 { return C.XSaveContext(display, rid, context, data) } fn C.XSetClassHint(display &Display, w Window, class_hints &XClassHint) i32 // XSetClassHint: raw Xlib ownership and return codes. pub fn set_class_hint(display &Display, w Window, class_hints &XClassHint) i32 { return C.XSetClassHint(display, w, class_hints) } fn C.XSetIconSizes(display &Display, w Window, size_list &XIconSize, count i32) i32 // XSetIconSizes: raw Xlib ownership and return codes. pub fn set_icon_sizes(display &Display, w Window, size_list &XIconSize, count i32) i32 { return C.XSetIconSizes(display, w, size_list, count) } fn C.XSetNormalHints(display &Display, w Window, hints &XSizeHints) i32 // XSetNormalHints: raw Xlib ownership and return codes. pub fn set_normal_hints(display &Display, w Window, hints &XSizeHints) i32 { return C.XSetNormalHints(display, w, hints) } fn C.XSetRGBColormaps(display &Display, w Window, stdcmaps &XStandardColormap, count i32, property Atom) // XSetRGBColormaps: raw Xlib ownership and return codes. pub fn set_rgb_colormaps(display &Display, w Window, stdcmaps &XStandardColormap, count i32, property Atom) { C.XSetRGBColormaps(display, w, stdcmaps, count, property) } fn C.XSetSizeHints(display &Display, w Window, hints &XSizeHints, property Atom) i32 // XSetSizeHints: raw Xlib ownership and return codes. pub fn set_size_hints(display &Display, w Window, hints &XSizeHints, property Atom) i32 { return C.XSetSizeHints(display, w, hints, property) } fn C.XSetStandardProperties(display &Display, w Window, window_name &char, icon_name &char, icon_pixmap Pixmap, argv &&char, argc i32, hints &XSizeHints) i32 // XSetStandardProperties: raw Xlib ownership and return codes. pub fn set_standard_properties(display &Display, w Window, window_name &char, icon_name &char, icon_pixmap Pixmap, argv &&char, argc i32, hints &XSizeHints) i32 { return C.XSetStandardProperties(display, w, window_name, icon_name, icon_pixmap, argv, argc, hints) } fn C.XSetTextProperty(display &Display, w Window, text_prop &XTextProperty, property Atom) // XSetTextProperty: raw Xlib ownership and return codes. pub fn set_text_property(display &Display, w Window, text_prop &XTextProperty, property Atom) { C.XSetTextProperty(display, w, text_prop, property) } fn C.XSetWMClientMachine(display &Display, w Window, text_prop &XTextProperty) // XSetWMClientMachine: raw Xlib ownership and return codes. pub fn set_wm_client_machine(display &Display, w Window, text_prop &XTextProperty) { C.XSetWMClientMachine(display, w, text_prop) } fn C.XSetWMHints(display &Display, w Window, wm_hints &XWMHints) i32 // XSetWMHints: raw Xlib ownership and return codes. pub fn set_wm_hints(display &Display, w Window, wm_hints &XWMHints) i32 { return C.XSetWMHints(display, w, wm_hints) } fn C.XSetWMIconName(display &Display, w Window, text_prop &XTextProperty) // XSetWMIconName: raw Xlib ownership and return codes. pub fn set_wm_icon_name(display &Display, w Window, text_prop &XTextProperty) { C.XSetWMIconName(display, w, text_prop) } fn C.XSetWMName(display &Display, w Window, text_prop &XTextProperty) // XSetWMName: raw Xlib ownership and return codes. pub fn set_wm_name(display &Display, w Window, text_prop &XTextProperty) { C.XSetWMName(display, w, text_prop) } fn C.XSetWMNormalHints(display &Display, w Window, hints &XSizeHints) // XSetWMNormalHints: raw Xlib ownership and return codes. pub fn set_wm_normal_hints(display &Display, w Window, hints &XSizeHints) { C.XSetWMNormalHints(display, w, hints) } fn 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) // XSetWMProperties: raw Xlib ownership and return codes. pub 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) { C.XSetWMProperties(display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints) } fn 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) // XmbSetWMProperties: raw Xlib ownership and return codes. pub 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) { C.XmbSetWMProperties(display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints) } fn 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) // Xutf8SetWMProperties: raw Xlib ownership and return codes. pub 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) { C.Xutf8SetWMProperties(display, w, window_name, icon_name, argv, argc, normal_hints, wm_hints, class_hints) } fn C.XSetWMSizeHints(display &Display, w Window, hints &XSizeHints, property Atom) // XSetWMSizeHints: raw Xlib ownership and return codes. pub fn set_wm_size_hints(display &Display, w Window, hints &XSizeHints, property Atom) { C.XSetWMSizeHints(display, w, hints, property) } fn C.XSetRegion(display &Display, gc GC, r Region) i32 // XSetRegion: raw Xlib ownership and return codes. pub fn set_region(display &Display, gc GC, r Region) i32 { return C.XSetRegion(display, gc, r) } fn C.XSetStandardColormap(display &Display, w Window, colormap &XStandardColormap, property Atom) // XSetStandardColormap: raw Xlib ownership and return codes. pub fn set_standard_colormap(display &Display, w Window, colormap &XStandardColormap, property Atom) { C.XSetStandardColormap(display, w, colormap, property) } fn C.XSetZoomHints(display &Display, w Window, zhints &XSizeHints) i32 // XSetZoomHints: raw Xlib ownership and return codes. pub fn set_zoom_hints(display &Display, w Window, zhints &XSizeHints) i32 { return C.XSetZoomHints(display, w, zhints) } fn C.XShrinkRegion(r Region, dx i32, dy i32) i32 // XShrinkRegion: raw Xlib ownership and return codes. pub fn shrink_region(r Region, dx i32, dy i32) i32 { return C.XShrinkRegion(r, dx, dy) } fn C.XStringListToTextProperty(list &&char, count i32, text_prop_return &XTextProperty) i32 // XStringListToTextProperty: raw Xlib ownership and return codes. pub fn string_list_to_text_property(list &&char, count i32, text_prop_return &XTextProperty) i32 { return C.XStringListToTextProperty(list, count, text_prop_return) } fn C.XSubtractRegion(sra Region, srb Region, dr_return Region) i32 // XSubtractRegion: raw Xlib ownership and return codes. pub fn subtract_region(sra Region, srb Region, dr_return Region) i32 { return C.XSubtractRegion(sra, srb, dr_return) } fn C.XmbTextListToTextProperty(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 // XmbTextListToTextProperty: raw Xlib ownership and return codes. pub fn mb_text_list_to_text_property(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 { return C.XmbTextListToTextProperty(display, list, count, style, text_prop_return) } fn C.XwcTextListToTextProperty(display &Display, list &&i32, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 // XwcTextListToTextProperty: raw Xlib ownership and return codes. pub fn wc_text_list_to_text_property(display &Display, list &&i32, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 { return C.XwcTextListToTextProperty(display, list, count, style, text_prop_return) } fn C.Xutf8TextListToTextProperty(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 // Xutf8TextListToTextProperty: raw Xlib ownership and return codes. pub fn utf8_text_list_to_text_property(display &Display, list &&char, count i32, style XICCEncodingStyle, text_prop_return &XTextProperty) i32 { return C.Xutf8TextListToTextProperty(display, list, count, style, text_prop_return) } fn C.XwcFreeStringList(list &&i32) // XwcFreeStringList: raw Xlib ownership and return codes. pub fn wc_free_string_list(list &&i32) { C.XwcFreeStringList(list) } fn C.XTextPropertyToStringList(text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 // XTextPropertyToStringList: raw Xlib ownership and return codes. pub fn text_property_to_string_list(text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 { return C.XTextPropertyToStringList(text_prop, list_return, count_return) } fn C.XmbTextPropertyToTextList(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 // XmbTextPropertyToTextList: raw Xlib ownership and return codes. pub fn mb_text_property_to_text_list(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 { return C.XmbTextPropertyToTextList(display, text_prop, list_return, count_return) } fn C.XwcTextPropertyToTextList(display &Display, text_prop &XTextProperty, list_return &&&i32, count_return &i32) i32 // XwcTextPropertyToTextList: raw Xlib ownership and return codes. pub fn wc_text_property_to_text_list(display &Display, text_prop &XTextProperty, list_return &&&i32, count_return &i32) i32 { return C.XwcTextPropertyToTextList(display, text_prop, list_return, count_return) } fn C.Xutf8TextPropertyToTextList(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 // Xutf8TextPropertyToTextList: raw Xlib ownership and return codes. pub fn utf8_text_property_to_text_list(display &Display, text_prop &XTextProperty, list_return &&&char, count_return &i32) i32 { return C.Xutf8TextPropertyToTextList(display, text_prop, list_return, count_return) } fn C.XUnionRectWithRegion(rectangle &XRectangle, src_region Region, dest_region_return Region) i32 // XUnionRectWithRegion: raw Xlib ownership and return codes. pub fn union_rect_with_region(rectangle &XRectangle, src_region Region, dest_region_return Region) i32 { return C.XUnionRectWithRegion(rectangle, src_region, dest_region_return) } fn C.XUnionRegion(sra Region, srb Region, dr_return Region) i32 // XUnionRegion: raw Xlib ownership and return codes. pub fn union_region(sra Region, srb Region, dr_return Region) i32 { return C.XUnionRegion(sra, srb, dr_return) } fn 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 // XWMGeometry: raw Xlib ownership and return codes. pub 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 { return C.XWMGeometry(display, screen_number, user_geometry, default_geometry, border_width, hints, x_return, y_return, width_return, height_return, gravity_return) } fn C.XXorRegion(sra Region, srb Region, dr_return Region) i32 // XXorRegion: raw Xlib ownership and return codes. pub fn xor_region(sra Region, srb Region, dr_return Region) i32 { return C.XXorRegion(sra, srb, dr_return) } fn C.XkbIgnoreExtension(ignore i32) i32 // XkbIgnoreExtension: raw Xlib ownership and return codes. pub fn xkb_ignore_extension(ignore i32) i32 { return C.XkbIgnoreExtension(ignore) } fn C.XkbOpenDisplay(name &char, ev_rtrn &i32, err_rtrn &i32, major_rtrn &i32, minor_rtrn &i32, reason &i32) &Display // XkbOpenDisplay: raw Xlib ownership and return codes. pub fn xkb_open_display(name &char, ev_rtrn &i32, err_rtrn &i32, major_rtrn &i32, minor_rtrn &i32, reason &i32) &Display { return C.XkbOpenDisplay(name, ev_rtrn, err_rtrn, major_rtrn, minor_rtrn, reason) } fn C.XkbQueryExtension(dpy &Display, opcode_return &i32, event_base_return &i32, error_base_return &i32, major_rtrn &i32, minor_rtrn &i32) i32 // XkbQueryExtension: raw Xlib ownership and return codes. pub fn xkb_query_extension(dpy &Display, opcode_return &i32, event_base_return &i32, error_base_return &i32, major_rtrn &i32, minor_rtrn &i32) i32 { return C.XkbQueryExtension(dpy, opcode_return, event_base_return, error_base_return, major_rtrn, minor_rtrn) } fn C.XkbUseExtension(dpy &Display, major_rtrn &i32, minor_rtrn &i32) i32 // XkbUseExtension: raw Xlib ownership and return codes. pub fn xkb_use_extension(dpy &Display, major_rtrn &i32, minor_rtrn &i32) i32 { return C.XkbUseExtension(dpy, major_rtrn, minor_rtrn) } fn C.XkbLibraryVersion(lib_major_rtrn &i32, lib_minor_rtrn &i32) i32 // XkbLibraryVersion: raw Xlib ownership and return codes. pub fn xkb_library_version(lib_major_rtrn &i32, lib_minor_rtrn &i32) i32 { return C.XkbLibraryVersion(lib_major_rtrn, lib_minor_rtrn) } fn C.XkbSetXlibControls(dpy &Display, affect u32, values u32) u32 // XkbSetXlibControls: raw Xlib ownership and return codes. pub fn xkb_set_xlib_controls(dpy &Display, affect u32, values u32) u32 { return C.XkbSetXlibControls(dpy, affect, values) } fn C.XkbGetXlibControls(dpy &Display) u32 // XkbGetXlibControls: raw Xlib ownership and return codes. pub fn xkb_get_xlib_controls(dpy &Display) u32 { return C.XkbGetXlibControls(dpy) } fn C.XkbXlibControlsImplemented() u32 // XkbXlibControlsImplemented: raw Xlib ownership and return codes. pub fn xkb_xlib_controls_implemented() u32 { return C.XkbXlibControlsImplemented() } fn C.vx11_XkbSetAtomFuncs(get_atom voidptr, get_name voidptr) // XkbSetAtomFuncs: raw Xlib ownership and return codes. pub fn xkb_set_atom_funcs(get_atom XkbInternAtomFunc, get_name XkbGetAtomNameFunc) { C.vx11_XkbSetAtomFuncs(voidptr(get_atom), voidptr(get_name)) } fn C.XkbKeycodeToKeysym(dpy &Display, kc KeyCode, group i32, level i32) KeySym // XkbKeycodeToKeysym: raw Xlib ownership and return codes. pub fn xkb_keycode_to_keysym(dpy &Display, kc KeyCode, group i32, level i32) KeySym { return C.XkbKeycodeToKeysym(dpy, kc, group, level) } fn C.XkbKeysymToModifiers(dpy &Display, ks KeySym) u32 // XkbKeysymToModifiers: raw Xlib ownership and return codes. pub fn xkb_keysym_to_modifiers(dpy &Display, ks KeySym) u32 { return C.XkbKeysymToModifiers(dpy, ks) } fn C.XkbLookupKeySym(dpy &Display, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32 // XkbLookupKeySym: raw Xlib ownership and return codes. pub fn xkb_lookup_key_sym(dpy &Display, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32 { return C.XkbLookupKeySym(dpy, keycode, modifiers, modifiers_return, keysym_return) } fn C.XkbLookupKeyBinding(dpy &Display, sym_rtrn KeySym, mods u32, buffer &char, nbytes i32, extra_rtrn &i32) i32 // XkbLookupKeyBinding: raw Xlib ownership and return codes. pub fn xkb_lookup_key_binding(dpy &Display, sym_rtrn KeySym, mods u32, buffer &char, nbytes i32, extra_rtrn &i32) i32 { return C.XkbLookupKeyBinding(dpy, sym_rtrn, mods, buffer, nbytes, extra_rtrn) } fn C.XkbTranslateKeyCode(xkb XkbDescPtr, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32 // XkbTranslateKeyCode: raw Xlib ownership and return codes. pub fn xkb_translate_key_code(xkb XkbDescPtr, keycode KeyCode, modifiers u32, modifiers_return &u32, keysym_return &KeySym) i32 { return C.XkbTranslateKeyCode(xkb, keycode, modifiers, modifiers_return, keysym_return) } fn C.XkbTranslateKeySym(dpy &Display, sym_return &KeySym, modifiers u32, buffer &char, nbytes i32, extra_rtrn &i32) i32 // XkbTranslateKeySym: raw Xlib ownership and return codes. pub fn xkb_translate_key_sym(dpy &Display, sym_return &KeySym, modifiers u32, buffer &char, nbytes i32, extra_rtrn &i32) i32 { return C.XkbTranslateKeySym(dpy, sym_return, modifiers, buffer, nbytes, extra_rtrn) } fn C.XkbSetAutoRepeatRate(dpy &Display, device_spec u32, delay u32, interval u32) i32 // XkbSetAutoRepeatRate: raw Xlib ownership and return codes. pub fn xkb_set_auto_repeat_rate(dpy &Display, device_spec u32, delay u32, interval u32) i32 { return C.XkbSetAutoRepeatRate(dpy, device_spec, delay, interval) } fn C.XkbGetAutoRepeatRate(dpy &Display, device_spec u32, delay_rtrn &u32, interval_rtrn &u32) i32 // XkbGetAutoRepeatRate: raw Xlib ownership and return codes. pub fn xkb_get_auto_repeat_rate(dpy &Display, device_spec u32, delay_rtrn &u32, interval_rtrn &u32) i32 { return C.XkbGetAutoRepeatRate(dpy, device_spec, delay_rtrn, interval_rtrn) } fn C.XkbChangeEnabledControls(dpy &Display, device_spec u32, affect u32, values u32) i32 // XkbChangeEnabledControls: raw Xlib ownership and return codes. pub fn xkb_change_enabled_controls(dpy &Display, device_spec u32, affect u32, values u32) i32 { return C.XkbChangeEnabledControls(dpy, device_spec, affect, values) } fn C.XkbDeviceBell(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32 // XkbDeviceBell: raw Xlib ownership and return codes. pub fn xkb_device_bell(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32 { return C.XkbDeviceBell(dpy, win, device_spec, bell_class, bell_id, percent, name) } fn C.XkbForceDeviceBell(dpy &Display, device_spec i32, bell_class i32, bell_id i32, percent i32) i32 // XkbForceDeviceBell: raw Xlib ownership and return codes. pub fn xkb_force_device_bell(dpy &Display, device_spec i32, bell_class i32, bell_id i32, percent i32) i32 { return C.XkbForceDeviceBell(dpy, device_spec, bell_class, bell_id, percent) } fn C.XkbDeviceBellEvent(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32 // XkbDeviceBellEvent: raw Xlib ownership and return codes. pub fn xkb_device_bell_event(dpy &Display, win Window, device_spec i32, bell_class i32, bell_id i32, percent i32, name Atom) i32 { return C.XkbDeviceBellEvent(dpy, win, device_spec, bell_class, bell_id, percent, name) } fn C.XkbBell(dpy &Display, win Window, percent i32, name Atom) i32 // XkbBell: raw Xlib ownership and return codes. pub fn xkb_bell(dpy &Display, win Window, percent i32, name Atom) i32 { return C.XkbBell(dpy, win, percent, name) } fn C.XkbForceBell(dpy &Display, percent i32) i32 // XkbForceBell: raw Xlib ownership and return codes. pub fn xkb_force_bell(dpy &Display, percent i32) i32 { return C.XkbForceBell(dpy, percent) } fn C.XkbBellEvent(dpy &Display, win Window, percent i32, name Atom) i32 // XkbBellEvent: raw Xlib ownership and return codes. pub fn xkb_bell_event(dpy &Display, win Window, percent i32, name Atom) i32 { return C.XkbBellEvent(dpy, win, percent, name) } fn C.XkbSelectEvents(dpy &Display, device_id u32, affect u32, values u32) i32 // XkbSelectEvents: raw Xlib ownership and return codes. pub fn xkb_select_events(dpy &Display, device_id u32, affect u32, values u32) i32 { return C.XkbSelectEvents(dpy, device_id, affect, values) } fn C.XkbSelectEventDetails(dpy &Display, device_id u32, event_type u32, affect CULong, details CULong) i32 // XkbSelectEventDetails: raw Xlib ownership and return codes. pub fn xkb_select_event_details(dpy &Display, device_id u32, event_type u32, affect CULong, details CULong) i32 { return C.XkbSelectEventDetails(dpy, device_id, event_type, affect, details) } fn C.XkbNoteMapChanges(old XkbMapChangesPtr, new &XkbMapNotifyEvent, wanted u32) // XkbNoteMapChanges: raw Xlib ownership and return codes. pub fn xkb_note_map_changes(old XkbMapChangesPtr, new &XkbMapNotifyEvent, wanted u32) { C.XkbNoteMapChanges(old, new, wanted) } fn C.XkbNoteNameChanges(old XkbNameChangesPtr, new &XkbNamesNotifyEvent, wanted u32) // XkbNoteNameChanges: raw Xlib ownership and return codes. pub fn xkb_note_name_changes(old XkbNameChangesPtr, new &XkbNamesNotifyEvent, wanted u32) { C.XkbNoteNameChanges(old, new, wanted) } fn C.XkbGetIndicatorState(dpy &Display, device_spec u32, p_state_rtrn &u32) i32 // XkbGetIndicatorState: raw Xlib ownership and return codes. pub fn xkb_get_indicator_state(dpy &Display, device_spec u32, p_state_rtrn &u32) i32 { return C.XkbGetIndicatorState(dpy, device_spec, p_state_rtrn) } fn C.XkbGetDeviceIndicatorState(dpy &Display, device_spec u32, led_class u32, led_id u32, p_state_rtrn &u32) i32 // XkbGetDeviceIndicatorState: raw Xlib ownership and return codes. pub fn xkb_get_device_indicator_state(dpy &Display, device_spec u32, led_class u32, led_id u32, p_state_rtrn &u32) i32 { return C.XkbGetDeviceIndicatorState(dpy, device_spec, led_class, led_id, p_state_rtrn) } fn C.XkbGetIndicatorMap(dpy &Display, which CULong, desc XkbDescPtr) i32 // XkbGetIndicatorMap: raw Xlib ownership and return codes. pub fn xkb_get_indicator_map(dpy &Display, which CULong, desc XkbDescPtr) i32 { return C.XkbGetIndicatorMap(dpy, which, desc) } fn C.XkbSetIndicatorMap(dpy &Display, which CULong, desc XkbDescPtr) i32 // XkbSetIndicatorMap: raw Xlib ownership and return codes. pub fn xkb_set_indicator_map(dpy &Display, which CULong, desc XkbDescPtr) i32 { return C.XkbSetIndicatorMap(dpy, which, desc) } fn C.XkbGetNamedIndicator(dpy &Display, name Atom, p_ndx_rtrn &i32, p_state_rtrn &i32, p_map_rtrn XkbIndicatorMapPtr, p_real_rtrn &i32) i32 // XkbGetNamedIndicator: raw Xlib ownership and return codes. pub 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 { return C.XkbGetNamedIndicator(dpy, name, p_ndx_rtrn, p_state_rtrn, p_map_rtrn, p_real_rtrn) } fn 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 // XkbGetNamedDeviceIndicator: raw Xlib ownership and return codes. pub 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 { return C.XkbGetNamedDeviceIndicator(dpy, device_spec, led_class, led_id, name, p_ndx_rtrn, p_state_rtrn, p_map_rtrn, p_real_rtrn) } fn C.XkbSetNamedIndicator(dpy &Display, name Atom, change_state i32, state i32, create_new_map i32, p_map XkbIndicatorMapPtr) i32 // XkbSetNamedIndicator: raw Xlib ownership and return codes. pub fn xkb_set_named_indicator(dpy &Display, name Atom, change_state i32, state i32, create_new_map i32, p_map XkbIndicatorMapPtr) i32 { return C.XkbSetNamedIndicator(dpy, name, change_state, state, create_new_map, p_map) } fn 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 // XkbSetNamedDeviceIndicator: raw Xlib ownership and return codes. pub 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 { return C.XkbSetNamedDeviceIndicator(dpy, device_spec, led_class, led_id, name, change_state, state, create_new_map, p_map) } fn C.XkbLockModifiers(dpy &Display, device_spec u32, affect u32, values u32) i32 // XkbLockModifiers: raw Xlib ownership and return codes. pub fn xkb_lock_modifiers(dpy &Display, device_spec u32, affect u32, values u32) i32 { return C.XkbLockModifiers(dpy, device_spec, affect, values) } fn C.XkbLatchModifiers(dpy &Display, device_spec u32, affect u32, values u32) i32 // XkbLatchModifiers: raw Xlib ownership and return codes. pub fn xkb_latch_modifiers(dpy &Display, device_spec u32, affect u32, values u32) i32 { return C.XkbLatchModifiers(dpy, device_spec, affect, values) } fn C.XkbLockGroup(dpy &Display, device_spec u32, group u32) i32 // XkbLockGroup: raw Xlib ownership and return codes. pub fn xkb_lock_group(dpy &Display, device_spec u32, group u32) i32 { return C.XkbLockGroup(dpy, device_spec, group) } fn C.XkbLatchGroup(dpy &Display, device_spec u32, group u32) i32 // XkbLatchGroup: raw Xlib ownership and return codes. pub fn xkb_latch_group(dpy &Display, device_spec u32, group u32) i32 { return C.XkbLatchGroup(dpy, device_spec, group) } fn C.XkbSetServerInternalMods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32 // XkbSetServerInternalMods: raw Xlib ownership and return codes. pub fn xkb_set_server_internal_mods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32 { return C.XkbSetServerInternalMods(dpy, device_spec, affect_real, real_values, affect_virtual, virtual_values) } fn C.XkbSetIgnoreLockMods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32 // XkbSetIgnoreLockMods: raw Xlib ownership and return codes. pub fn xkb_set_ignore_lock_mods(dpy &Display, device_spec u32, affect_real u32, real_values u32, affect_virtual u32, virtual_values u32) i32 { return C.XkbSetIgnoreLockMods(dpy, device_spec, affect_real, real_values, affect_virtual, virtual_values) } fn C.XkbVirtualModsToReal(xkb XkbDescPtr, virtual_mask u32, mask_rtrn &u32) i32 // XkbVirtualModsToReal: raw Xlib ownership and return codes. pub fn xkb_virtual_mods_to_real(xkb XkbDescPtr, virtual_mask u32, mask_rtrn &u32) i32 { return C.XkbVirtualModsToReal(xkb, virtual_mask, mask_rtrn) } fn C.XkbComputeEffectiveMap(xkb XkbDescPtr, @type XkbKeyTypePtr, map_rtrn &u8) i32 // XkbComputeEffectiveMap: raw Xlib ownership and return codes. pub fn xkb_compute_effective_map(xkb XkbDescPtr, @type XkbKeyTypePtr, map_rtrn &u8) i32 { return C.XkbComputeEffectiveMap(xkb, @type, map_rtrn) } fn C.XkbInitCanonicalKeyTypes(xkb XkbDescPtr, which u32, keypad_v_mod i32) i32 // XkbInitCanonicalKeyTypes: raw Xlib ownership and return codes. pub fn xkb_init_canonical_key_types(xkb XkbDescPtr, which u32, keypad_v_mod i32) i32 { return C.XkbInitCanonicalKeyTypes(xkb, which, keypad_v_mod) } fn C.XkbAllocKeyboard() XkbDescPtr // XkbAllocKeyboard: raw Xlib ownership and return codes. pub fn xkb_alloc_keyboard() XkbDescPtr { return C.XkbAllocKeyboard() } fn C.XkbFreeKeyboard(xkb XkbDescPtr, which u32, free_desc i32) // XkbFreeKeyboard: raw Xlib ownership and return codes. pub fn xkb_free_keyboard(xkb XkbDescPtr, which u32, free_desc i32) { C.XkbFreeKeyboard(xkb, which, free_desc) } fn C.XkbAllocClientMap(xkb XkbDescPtr, which u32, n_types u32) i32 // XkbAllocClientMap: raw Xlib ownership and return codes. pub fn xkb_alloc_client_map(xkb XkbDescPtr, which u32, n_types u32) i32 { return C.XkbAllocClientMap(xkb, which, n_types) } fn C.XkbAllocServerMap(xkb XkbDescPtr, which u32, n_actions u32) i32 // XkbAllocServerMap: raw Xlib ownership and return codes. pub fn xkb_alloc_server_map(xkb XkbDescPtr, which u32, n_actions u32) i32 { return C.XkbAllocServerMap(xkb, which, n_actions) } fn C.XkbFreeClientMap(xkb XkbDescPtr, what u32, free_map i32) // XkbFreeClientMap: raw Xlib ownership and return codes. pub fn xkb_free_client_map(xkb XkbDescPtr, what u32, free_map i32) { C.XkbFreeClientMap(xkb, what, free_map) } fn C.XkbFreeServerMap(xkb XkbDescPtr, what u32, free_map i32) // XkbFreeServerMap: raw Xlib ownership and return codes. pub fn xkb_free_server_map(xkb XkbDescPtr, what u32, free_map i32) { C.XkbFreeServerMap(xkb, what, free_map) } fn C.XkbAddKeyType(xkb XkbDescPtr, name Atom, map_count i32, want_preserve i32, num_lvls i32) XkbKeyTypePtr // XkbAddKeyType: raw Xlib ownership and return codes. pub fn xkb_add_key_type(xkb XkbDescPtr, name Atom, map_count i32, want_preserve i32, num_lvls i32) XkbKeyTypePtr { return C.XkbAddKeyType(xkb, name, map_count, want_preserve, num_lvls) } fn C.XkbAllocIndicatorMaps(xkb XkbDescPtr) i32 // XkbAllocIndicatorMaps: raw Xlib ownership and return codes. pub fn xkb_alloc_indicator_maps(xkb XkbDescPtr) i32 { return C.XkbAllocIndicatorMaps(xkb) } fn C.XkbFreeIndicatorMaps(xkb XkbDescPtr) // XkbFreeIndicatorMaps: raw Xlib ownership and return codes. pub fn xkb_free_indicator_maps(xkb XkbDescPtr) { C.XkbFreeIndicatorMaps(xkb) } fn C.XkbGetMap(dpy &Display, which u32, device_spec u32) XkbDescPtr // XkbGetMap: raw Xlib ownership and return codes. pub fn xkb_get_map(dpy &Display, which u32, device_spec u32) XkbDescPtr { return C.XkbGetMap(dpy, which, device_spec) } fn C.XkbGetUpdatedMap(dpy &Display, which u32, desc XkbDescPtr) i32 // XkbGetUpdatedMap: raw Xlib ownership and return codes. pub fn xkb_get_updated_map(dpy &Display, which u32, desc XkbDescPtr) i32 { return C.XkbGetUpdatedMap(dpy, which, desc) } fn C.XkbGetMapChanges(dpy &Display, xkb XkbDescPtr, changes XkbMapChangesPtr) i32 // XkbGetMapChanges: raw Xlib ownership and return codes. pub fn xkb_get_map_changes(dpy &Display, xkb XkbDescPtr, changes XkbMapChangesPtr) i32 { return C.XkbGetMapChanges(dpy, xkb, changes) } fn C.XkbRefreshKeyboardMapping(event &XkbMapNotifyEvent) i32 // XkbRefreshKeyboardMapping: raw Xlib ownership and return codes. pub fn xkb_refresh_keyboard_mapping(event &XkbMapNotifyEvent) i32 { return C.XkbRefreshKeyboardMapping(event) } fn C.XkbGetKeyTypes(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 // XkbGetKeyTypes: raw Xlib ownership and return codes. pub fn xkb_get_key_types(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 { return C.XkbGetKeyTypes(dpy, first, num, xkb) } fn C.XkbGetKeySyms(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 // XkbGetKeySyms: raw Xlib ownership and return codes. pub fn xkb_get_key_syms(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 { return C.XkbGetKeySyms(dpy, first, num, xkb) } fn C.XkbGetKeyActions(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 // XkbGetKeyActions: raw Xlib ownership and return codes. pub fn xkb_get_key_actions(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 { return C.XkbGetKeyActions(dpy, first, num, xkb) } fn C.XkbGetKeyBehaviors(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 // XkbGetKeyBehaviors: raw Xlib ownership and return codes. pub fn xkb_get_key_behaviors(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 { return C.XkbGetKeyBehaviors(dpy, first_key, n_keys, desc) } fn C.XkbGetVirtualMods(dpy &Display, which u32, desc XkbDescPtr) i32 // XkbGetVirtualMods: raw Xlib ownership and return codes. pub fn xkb_get_virtual_mods(dpy &Display, which u32, desc XkbDescPtr) i32 { return C.XkbGetVirtualMods(dpy, which, desc) } fn C.XkbGetKeyExplicitComponents(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 // XkbGetKeyExplicitComponents: raw Xlib ownership and return codes. pub fn xkb_get_key_explicit_components(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 { return C.XkbGetKeyExplicitComponents(dpy, first_key, n_keys, desc) } fn C.XkbGetKeyModifierMap(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 // XkbGetKeyModifierMap: raw Xlib ownership and return codes. pub fn xkb_get_key_modifier_map(dpy &Display, first_key u32, n_keys u32, desc XkbDescPtr) i32 { return C.XkbGetKeyModifierMap(dpy, first_key, n_keys, desc) } fn C.XkbGetKeyVirtualModMap(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 // XkbGetKeyVirtualModMap: raw Xlib ownership and return codes. pub fn xkb_get_key_virtual_mod_map(dpy &Display, first u32, num u32, xkb XkbDescPtr) i32 { return C.XkbGetKeyVirtualModMap(dpy, first, num, xkb) } fn C.XkbAllocControls(xkb XkbDescPtr, which u32) i32 // XkbAllocControls: raw Xlib ownership and return codes. pub fn xkb_alloc_controls(xkb XkbDescPtr, which u32) i32 { return C.XkbAllocControls(xkb, which) } fn C.XkbFreeControls(xkb XkbDescPtr, which u32, free_map i32) // XkbFreeControls: raw Xlib ownership and return codes. pub fn xkb_free_controls(xkb XkbDescPtr, which u32, free_map i32) { C.XkbFreeControls(xkb, which, free_map) } fn C.XkbGetControls(dpy &Display, which CULong, desc XkbDescPtr) i32 // XkbGetControls: raw Xlib ownership and return codes. pub fn xkb_get_controls(dpy &Display, which CULong, desc XkbDescPtr) i32 { return C.XkbGetControls(dpy, which, desc) } fn C.XkbSetControls(dpy &Display, which CULong, desc XkbDescPtr) i32 // XkbSetControls: raw Xlib ownership and return codes. pub fn xkb_set_controls(dpy &Display, which CULong, desc XkbDescPtr) i32 { return C.XkbSetControls(dpy, which, desc) } fn C.XkbNoteControlsChanges(old XkbControlsChangesPtr, new &XkbControlsNotifyEvent, wanted u32) // XkbNoteControlsChanges: raw Xlib ownership and return codes. pub fn xkb_note_controls_changes(old XkbControlsChangesPtr, new &XkbControlsNotifyEvent, wanted u32) { C.XkbNoteControlsChanges(old, new, wanted) } fn C.XkbAllocCompatMap(xkb XkbDescPtr, which u32, n_interpret u32) i32 // XkbAllocCompatMap: raw Xlib ownership and return codes. pub fn xkb_alloc_compat_map(xkb XkbDescPtr, which u32, n_interpret u32) i32 { return C.XkbAllocCompatMap(xkb, which, n_interpret) } fn C.XkbFreeCompatMap(xkb XkbDescPtr, which u32, free_map i32) // XkbFreeCompatMap: raw Xlib ownership and return codes. pub fn xkb_free_compat_map(xkb XkbDescPtr, which u32, free_map i32) { C.XkbFreeCompatMap(xkb, which, free_map) } fn C.XkbGetCompatMap(dpy &Display, which u32, xkb XkbDescPtr) i32 // XkbGetCompatMap: raw Xlib ownership and return codes. pub fn xkb_get_compat_map(dpy &Display, which u32, xkb XkbDescPtr) i32 { return C.XkbGetCompatMap(dpy, which, xkb) } fn C.XkbSetCompatMap(dpy &Display, which u32, xkb XkbDescPtr, update_actions i32) i32 // XkbSetCompatMap: raw Xlib ownership and return codes. pub fn xkb_set_compat_map(dpy &Display, which u32, xkb XkbDescPtr, update_actions i32) i32 { return C.XkbSetCompatMap(dpy, which, xkb, update_actions) } fn C.XkbAddSymInterpret(xkb XkbDescPtr, si XkbSymInterpretPtr, update_map i32, changes XkbChangesPtr) XkbSymInterpretPtr // XkbAddSymInterpret: raw Xlib ownership and return codes. pub fn xkb_add_sym_interpret(xkb XkbDescPtr, si XkbSymInterpretPtr, update_map i32, changes XkbChangesPtr) XkbSymInterpretPtr { return C.XkbAddSymInterpret(xkb, si, update_map, changes) } fn C.XkbAllocNames(xkb XkbDescPtr, which u32, n_total_rg i32, n_total_aliases i32) i32 // XkbAllocNames: raw Xlib ownership and return codes. pub fn xkb_alloc_names(xkb XkbDescPtr, which u32, n_total_rg i32, n_total_aliases i32) i32 { return C.XkbAllocNames(xkb, which, n_total_rg, n_total_aliases) } fn C.XkbGetNames(dpy &Display, which u32, desc XkbDescPtr) i32 // XkbGetNames: raw Xlib ownership and return codes. pub fn xkb_get_names(dpy &Display, which u32, desc XkbDescPtr) i32 { return C.XkbGetNames(dpy, which, desc) } fn C.XkbSetNames(dpy &Display, which u32, first_type u32, n_types u32, desc XkbDescPtr) i32 // XkbSetNames: raw Xlib ownership and return codes. pub fn xkb_set_names(dpy &Display, which u32, first_type u32, n_types u32, desc XkbDescPtr) i32 { return C.XkbSetNames(dpy, which, first_type, n_types, desc) } fn C.XkbChangeNames(dpy &Display, xkb XkbDescPtr, changes XkbNameChangesPtr) i32 // XkbChangeNames: raw Xlib ownership and return codes. pub fn xkb_change_names(dpy &Display, xkb XkbDescPtr, changes XkbNameChangesPtr) i32 { return C.XkbChangeNames(dpy, xkb, changes) } fn C.XkbFreeNames(xkb XkbDescPtr, which u32, free_map i32) // XkbFreeNames: raw Xlib ownership and return codes. pub fn xkb_free_names(xkb XkbDescPtr, which u32, free_map i32) { C.XkbFreeNames(xkb, which, free_map) } fn C.XkbGetState(dpy &Display, device_spec u32, rtrn_state XkbStatePtr) i32 // XkbGetState: raw Xlib ownership and return codes. pub fn xkb_get_state(dpy &Display, device_spec u32, rtrn_state XkbStatePtr) i32 { return C.XkbGetState(dpy, device_spec, rtrn_state) } fn C.XkbSetMap(dpy &Display, which u32, desc XkbDescPtr) i32 // XkbSetMap: raw Xlib ownership and return codes. pub fn xkb_set_map(dpy &Display, which u32, desc XkbDescPtr) i32 { return C.XkbSetMap(dpy, which, desc) } fn C.XkbChangeMap(dpy &Display, desc XkbDescPtr, changes XkbMapChangesPtr) i32 // XkbChangeMap: raw Xlib ownership and return codes. pub fn xkb_change_map(dpy &Display, desc XkbDescPtr, changes XkbMapChangesPtr) i32 { return C.XkbChangeMap(dpy, desc, changes) } fn C.XkbSetDetectableAutoRepeat(dpy &Display, detectable i32, supported &i32) i32 // XkbSetDetectableAutoRepeat: raw Xlib ownership and return codes. pub fn xkb_set_detectable_auto_repeat(dpy &Display, detectable i32, supported &i32) i32 { return C.XkbSetDetectableAutoRepeat(dpy, detectable, supported) } fn C.XkbGetDetectableAutoRepeat(dpy &Display, supported &i32) i32 // XkbGetDetectableAutoRepeat: raw Xlib ownership and return codes. pub fn xkb_get_detectable_auto_repeat(dpy &Display, supported &i32) i32 { return C.XkbGetDetectableAutoRepeat(dpy, supported) } fn C.XkbSetAutoResetControls(dpy &Display, changes u32, auto_ctrls &u32, auto_values &u32) i32 // XkbSetAutoResetControls: raw Xlib ownership and return codes. pub fn xkb_set_auto_reset_controls(dpy &Display, changes u32, auto_ctrls &u32, auto_values &u32) i32 { return C.XkbSetAutoResetControls(dpy, changes, auto_ctrls, auto_values) } fn C.XkbGetAutoResetControls(dpy &Display, auto_ctrls &u32, auto_ctrl_values &u32) i32 // XkbGetAutoResetControls: raw Xlib ownership and return codes. pub fn xkb_get_auto_reset_controls(dpy &Display, auto_ctrls &u32, auto_ctrl_values &u32) i32 { return C.XkbGetAutoResetControls(dpy, auto_ctrls, auto_ctrl_values) } fn C.XkbSetPerClientControls(dpy &Display, change u32, values &u32) i32 // XkbSetPerClientControls: raw Xlib ownership and return codes. pub fn xkb_set_per_client_controls(dpy &Display, change u32, values &u32) i32 { return C.XkbSetPerClientControls(dpy, change, values) } fn C.XkbGetPerClientControls(dpy &Display, ctrls &u32) i32 // XkbGetPerClientControls: raw Xlib ownership and return codes. pub fn xkb_get_per_client_controls(dpy &Display, ctrls &u32) i32 { return C.XkbGetPerClientControls(dpy, ctrls) } fn C.XkbCopyKeyType(from XkbKeyTypePtr, into XkbKeyTypePtr) i32 // XkbCopyKeyType: raw Xlib ownership and return codes. pub fn xkb_copy_key_type(from XkbKeyTypePtr, into XkbKeyTypePtr) i32 { return C.XkbCopyKeyType(from, into) } fn C.XkbCopyKeyTypes(from XkbKeyTypePtr, into XkbKeyTypePtr, num_types i32) i32 // XkbCopyKeyTypes: raw Xlib ownership and return codes. pub fn xkb_copy_key_types(from XkbKeyTypePtr, into XkbKeyTypePtr, num_types i32) i32 { return C.XkbCopyKeyTypes(from, into, num_types) } fn C.XkbResizeKeyType(xkb XkbDescPtr, type_ndx i32, map_count i32, want_preserve i32, new_num_lvls i32) i32 // XkbResizeKeyType: raw Xlib ownership and return codes. pub fn xkb_resize_key_type(xkb XkbDescPtr, type_ndx i32, map_count i32, want_preserve i32, new_num_lvls i32) i32 { return C.XkbResizeKeyType(xkb, type_ndx, map_count, want_preserve, new_num_lvls) } fn C.XkbResizeKeySyms(desc XkbDescPtr, for_key i32, syms_needed i32) &KeySym // XkbResizeKeySyms: raw Xlib ownership and return codes. pub fn xkb_resize_key_syms(desc XkbDescPtr, for_key i32, syms_needed i32) &KeySym { return C.XkbResizeKeySyms(desc, for_key, syms_needed) } fn C.XkbResizeKeyActions(desc XkbDescPtr, for_key i32, acts_needed i32) &XkbAction // XkbResizeKeyActions: raw Xlib ownership and return codes. pub fn xkb_resize_key_actions(desc XkbDescPtr, for_key i32, acts_needed i32) &XkbAction { return C.XkbResizeKeyActions(desc, for_key, acts_needed) } fn C.XkbChangeTypesOfKey(xkb XkbDescPtr, key i32, num_groups i32, groups u32, new_types &i32, p_changes XkbMapChangesPtr) i32 // XkbChangeTypesOfKey: raw Xlib ownership and return codes. pub fn xkb_change_types_of_key(xkb XkbDescPtr, key i32, num_groups i32, groups u32, new_types &i32, p_changes XkbMapChangesPtr) i32 { return C.XkbChangeTypesOfKey(xkb, key, num_groups, groups, new_types, p_changes) } fn C.XkbChangeKeycodeRange(xkb XkbDescPtr, min_kc i32, max_kc i32, changes XkbChangesPtr) i32 // XkbChangeKeycodeRange: raw Xlib ownership and return codes. pub fn xkb_change_keycode_range(xkb XkbDescPtr, min_kc i32, max_kc i32, changes XkbChangesPtr) i32 { return C.XkbChangeKeycodeRange(xkb, min_kc, max_kc, changes) } fn C.XkbListComponents(dpy &Display, device_spec u32, ptrns XkbComponentNamesPtr, max_inout &i32) XkbComponentListPtr // XkbListComponents: raw Xlib ownership and return codes. pub fn xkb_list_components(dpy &Display, device_spec u32, ptrns XkbComponentNamesPtr, max_inout &i32) XkbComponentListPtr { return C.XkbListComponents(dpy, device_spec, ptrns, max_inout) } fn C.XkbFreeComponentList(list XkbComponentListPtr) // XkbFreeComponentList: raw Xlib ownership and return codes. pub fn xkb_free_component_list(list XkbComponentListPtr) { C.XkbFreeComponentList(list) } fn C.XkbGetKeyboard(dpy &Display, which u32, device_spec u32) XkbDescPtr // XkbGetKeyboard: raw Xlib ownership and return codes. pub fn xkb_get_keyboard(dpy &Display, which u32, device_spec u32) XkbDescPtr { return C.XkbGetKeyboard(dpy, which, device_spec) } fn C.XkbGetKeyboardByName(dpy &Display, device_spec u32, names XkbComponentNamesPtr, want u32, need u32, load i32) XkbDescPtr // XkbGetKeyboardByName: raw Xlib ownership and return codes. pub fn xkb_get_keyboard_by_name(dpy &Display, device_spec u32, names XkbComponentNamesPtr, want u32, need u32, load i32) XkbDescPtr { return C.XkbGetKeyboardByName(dpy, device_spec, names, want, need, load) } fn C.XkbKeyTypesForCoreSymbols(xkb XkbDescPtr, map_width i32, core_syms &KeySym, protected u32, types_inout &i32, arg5 &KeySym) i32 // XkbKeyTypesForCoreSymbols: raw Xlib ownership and return codes. pub fn xkb_key_types_for_core_symbols(xkb XkbDescPtr, map_width i32, core_syms &KeySym, protected u32, types_inout &i32, arg5 &KeySym) i32 { return C.XkbKeyTypesForCoreSymbols(xkb, map_width, core_syms, protected, types_inout, arg5) } fn C.XkbApplyCompatMapToKey(xkb XkbDescPtr, key KeyCode, arg2 XkbChangesPtr) i32 // XkbApplyCompatMapToKey: raw Xlib ownership and return codes. pub fn xkb_apply_compat_map_to_key(xkb XkbDescPtr, key KeyCode, arg2 XkbChangesPtr) i32 { return C.XkbApplyCompatMapToKey(xkb, key, arg2) } fn C.XkbUpdateMapFromCore(xkb XkbDescPtr, first_key KeyCode, num_keys i32, map_width i32, core_keysyms &KeySym, arg5 XkbChangesPtr) i32 // XkbUpdateMapFromCore: raw Xlib ownership and return codes. pub fn xkb_update_map_from_core(xkb XkbDescPtr, first_key KeyCode, num_keys i32, map_width i32, core_keysyms &KeySym, arg5 XkbChangesPtr) i32 { return C.XkbUpdateMapFromCore(xkb, first_key, num_keys, map_width, core_keysyms, arg5) } fn C.XkbAddDeviceLedInfo(devi XkbDeviceInfoPtr, led_class u32, led_id u32) XkbDeviceLedInfoPtr // XkbAddDeviceLedInfo: raw Xlib ownership and return codes. pub fn xkb_add_device_led_info(devi XkbDeviceInfoPtr, led_class u32, led_id u32) XkbDeviceLedInfoPtr { return C.XkbAddDeviceLedInfo(devi, led_class, led_id) } fn C.XkbResizeDeviceButtonActions(devi XkbDeviceInfoPtr, new_total u32) i32 // XkbResizeDeviceButtonActions: raw Xlib ownership and return codes. pub fn xkb_resize_device_button_actions(devi XkbDeviceInfoPtr, new_total u32) i32 { return C.XkbResizeDeviceButtonActions(devi, new_total) } fn C.XkbAllocDeviceInfo(device_spec u32, n_buttons u32, sz_leds u32) XkbDeviceInfoPtr // XkbAllocDeviceInfo: raw Xlib ownership and return codes. pub fn xkb_alloc_device_info(device_spec u32, n_buttons u32, sz_leds u32) XkbDeviceInfoPtr { return C.XkbAllocDeviceInfo(device_spec, n_buttons, sz_leds) } fn C.XkbFreeDeviceInfo(devi XkbDeviceInfoPtr, which u32, free_dev_i i32) // XkbFreeDeviceInfo: raw Xlib ownership and return codes. pub fn xkb_free_device_info(devi XkbDeviceInfoPtr, which u32, free_dev_i i32) { C.XkbFreeDeviceInfo(devi, which, free_dev_i) } fn C.XkbNoteDeviceChanges(old XkbDeviceChangesPtr, new &XkbExtensionDeviceNotifyEvent, wanted u32) // XkbNoteDeviceChanges: raw Xlib ownership and return codes. pub fn xkb_note_device_changes(old XkbDeviceChangesPtr, new &XkbExtensionDeviceNotifyEvent, wanted u32) { C.XkbNoteDeviceChanges(old, new, wanted) } fn C.XkbGetDeviceInfo(dpy &Display, which u32, device_spec u32, led_class u32, led_id u32) XkbDeviceInfoPtr // XkbGetDeviceInfo: raw Xlib ownership and return codes. pub fn xkb_get_device_info(dpy &Display, which u32, device_spec u32, led_class u32, led_id u32) XkbDeviceInfoPtr { return C.XkbGetDeviceInfo(dpy, which, device_spec, led_class, led_id) } fn C.XkbGetDeviceInfoChanges(dpy &Display, devi XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32 // XkbGetDeviceInfoChanges: raw Xlib ownership and return codes. pub fn xkb_get_device_info_changes(dpy &Display, devi XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32 { return C.XkbGetDeviceInfoChanges(dpy, devi, changes) } fn C.XkbGetDeviceButtonActions(dpy &Display, devi XkbDeviceInfoPtr, all i32, first u32, n_btns u32) i32 // XkbGetDeviceButtonActions: raw Xlib ownership and return codes. pub fn xkb_get_device_button_actions(dpy &Display, devi XkbDeviceInfoPtr, all i32, first u32, n_btns u32) i32 { return C.XkbGetDeviceButtonActions(dpy, devi, all, first, n_btns) } fn C.XkbGetDeviceLedInfo(dpy &Display, devi XkbDeviceInfoPtr, arg2 u32, arg3 u32, arg4 u32) i32 // XkbGetDeviceLedInfo: raw Xlib ownership and return codes. pub fn xkb_get_device_led_info(dpy &Display, devi XkbDeviceInfoPtr, arg2 u32, arg3 u32, arg4 u32) i32 { return C.XkbGetDeviceLedInfo(dpy, devi, arg2, arg3, arg4) } fn C.XkbSetDeviceInfo(dpy &Display, which u32, devi XkbDeviceInfoPtr) i32 // XkbSetDeviceInfo: raw Xlib ownership and return codes. pub fn xkb_set_device_info(dpy &Display, which u32, devi XkbDeviceInfoPtr) i32 { return C.XkbSetDeviceInfo(dpy, which, devi) } fn C.XkbChangeDeviceInfo(dpy &Display, desc XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32 // XkbChangeDeviceInfo: raw Xlib ownership and return codes. pub fn xkb_change_device_info(dpy &Display, desc XkbDeviceInfoPtr, changes XkbDeviceChangesPtr) i32 { return C.XkbChangeDeviceInfo(dpy, desc, changes) } fn C.XkbSetDeviceLedInfo(dpy &Display, devi XkbDeviceInfoPtr, led_class u32, led_id u32, which u32) i32 // XkbSetDeviceLedInfo: raw Xlib ownership and return codes. pub fn xkb_set_device_led_info(dpy &Display, devi XkbDeviceInfoPtr, led_class u32, led_id u32, which u32) i32 { return C.XkbSetDeviceLedInfo(dpy, devi, led_class, led_id, which) } fn C.XkbSetDeviceButtonActions(dpy &Display, devi XkbDeviceInfoPtr, first u32, n_btns u32) i32 // XkbSetDeviceButtonActions: raw Xlib ownership and return codes. pub fn xkb_set_device_button_actions(dpy &Display, devi XkbDeviceInfoPtr, first u32, n_btns u32) i32 { return C.XkbSetDeviceButtonActions(dpy, devi, first, n_btns) } fn C.XkbToControl(c_arg char) char // XkbToControl: raw Xlib ownership and return codes. pub fn xkb_to_control(c_arg char) char { return C.XkbToControl(c_arg) } fn C.XkbSetDebuggingFlags(dpy &Display, mask u32, flags u32, msg &char, ctrls_mask u32, ctrls u32, rtrn_flags &u32, rtrn_ctrls &u32) i32 // XkbSetDebuggingFlags: raw Xlib ownership and return codes. pub 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 { return C.XkbSetDebuggingFlags(dpy, mask, flags, msg, ctrls_mask, ctrls, rtrn_flags, rtrn_ctrls) } fn C.XkbApplyVirtualModChanges(xkb XkbDescPtr, changed u32, changes XkbChangesPtr) i32 // XkbApplyVirtualModChanges: raw Xlib ownership and return codes. pub fn xkb_apply_virtual_mod_changes(xkb XkbDescPtr, changed u32, changes XkbChangesPtr) i32 { return C.XkbApplyVirtualModChanges(xkb, changed, changes) } fn C.XkbUpdateActionVirtualMods(xkb XkbDescPtr, act &XkbAction, changed u32) i32 // XkbUpdateActionVirtualMods: raw Xlib ownership and return codes. pub fn xkb_update_action_virtual_mods(xkb XkbDescPtr, act &XkbAction, changed u32) i32 { return C.XkbUpdateActionVirtualMods(xkb, act, changed) } fn C.XkbUpdateKeyTypeVirtualMods(xkb XkbDescPtr, @type XkbKeyTypePtr, changed u32, changes XkbChangesPtr) // XkbUpdateKeyTypeVirtualMods: raw Xlib ownership and return codes. pub fn xkb_update_key_type_virtual_mods(xkb XkbDescPtr, @type XkbKeyTypePtr, changed u32, changes XkbChangesPtr) { C.XkbUpdateKeyTypeVirtualMods(xkb, @type, changed, changes) }