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