| 1 | // Generated from the installed X11 headers. |
| 2 | module vx11 |
| 3 | |
| 4 | pub type AfterFunction = fn (&Display) i32 |
| 5 | |
| 6 | pub type XID = CULong |
| 7 | |
| 8 | pub type Mask = CULong |
| 9 | |
| 10 | pub type Atom = CULong |
| 11 | |
| 12 | pub type VisualID = CULong |
| 13 | |
| 14 | pub type Time = CULong |
| 15 | |
| 16 | pub type Window = XID |
| 17 | |
| 18 | pub type Drawable = XID |
| 19 | |
| 20 | pub type Font = XID |
| 21 | |
| 22 | pub type Pixmap = XID |
| 23 | |
| 24 | pub type Cursor = XID |
| 25 | |
| 26 | pub type Colormap = XID |
| 27 | |
| 28 | pub type GContext = XID |
| 29 | |
| 30 | pub type KeySym = XID |
| 31 | |
| 32 | pub type KeyCode = u8 |
| 33 | |
| 34 | pub type XPointer = &char |
| 35 | |
| 36 | @[typedef] |
| 37 | pub struct C.XExtData { |
| 38 | pub mut: |
| 39 | number i32 |
| 40 | next &XExtData |
| 41 | free_private fn (&XExtData) i32 |
| 42 | private_data XPointer |
| 43 | } |
| 44 | |
| 45 | pub type XExtData = C.XExtData |
| 46 | |
| 47 | @[typedef] |
| 48 | pub struct C.XExtCodes { |
| 49 | pub mut: |
| 50 | extension i32 |
| 51 | major_opcode i32 |
| 52 | first_event i32 |
| 53 | first_error i32 |
| 54 | } |
| 55 | |
| 56 | pub type XExtCodes = C.XExtCodes |
| 57 | |
| 58 | @[typedef] |
| 59 | pub struct C.XPixmapFormatValues { |
| 60 | pub mut: |
| 61 | depth i32 |
| 62 | bits_per_pixel i32 |
| 63 | scanline_pad i32 |
| 64 | } |
| 65 | |
| 66 | pub type XPixmapFormatValues = C.XPixmapFormatValues |
| 67 | |
| 68 | @[typedef] |
| 69 | pub struct C.XGCValues { |
| 70 | pub mut: |
| 71 | function i32 |
| 72 | plane_mask CULong |
| 73 | foreground CULong |
| 74 | background CULong |
| 75 | line_width i32 |
| 76 | line_style i32 |
| 77 | cap_style i32 |
| 78 | join_style i32 |
| 79 | fill_style i32 |
| 80 | fill_rule i32 |
| 81 | arc_mode i32 |
| 82 | tile Pixmap |
| 83 | stipple Pixmap |
| 84 | ts_x_origin i32 |
| 85 | ts_y_origin i32 |
| 86 | font Font |
| 87 | subwindow_mode i32 |
| 88 | graphics_exposures i32 |
| 89 | clip_x_origin i32 |
| 90 | clip_y_origin i32 |
| 91 | clip_mask Pixmap |
| 92 | dash_offset i32 |
| 93 | dashes char |
| 94 | } |
| 95 | |
| 96 | pub type XGCValues = C.XGCValues |
| 97 | |
| 98 | pub type GC = voidptr |
| 99 | |
| 100 | @[typedef] |
| 101 | pub struct C.Visual { |
| 102 | pub mut: |
| 103 | ext_data &XExtData |
| 104 | visualid VisualID |
| 105 | class i32 |
| 106 | red_mask CULong |
| 107 | green_mask CULong |
| 108 | blue_mask CULong |
| 109 | bits_per_rgb i32 |
| 110 | map_entries i32 |
| 111 | } |
| 112 | |
| 113 | pub type Visual = C.Visual |
| 114 | |
| 115 | @[typedef] |
| 116 | pub struct C.Depth { |
| 117 | pub mut: |
| 118 | depth i32 |
| 119 | nvisuals i32 |
| 120 | visuals &Visual |
| 121 | } |
| 122 | |
| 123 | pub type Depth = C.Depth |
| 124 | |
| 125 | @[typedef] |
| 126 | pub struct C.Screen { |
| 127 | pub mut: |
| 128 | ext_data &XExtData |
| 129 | display &Display |
| 130 | root Window |
| 131 | width i32 |
| 132 | height i32 |
| 133 | mwidth i32 |
| 134 | mheight i32 |
| 135 | ndepths i32 |
| 136 | depths &Depth |
| 137 | root_depth i32 |
| 138 | root_visual &Visual |
| 139 | default_gc GC |
| 140 | cmap Colormap |
| 141 | white_pixel CULong |
| 142 | black_pixel CULong |
| 143 | max_maps i32 |
| 144 | min_maps i32 |
| 145 | backing_store i32 |
| 146 | save_unders i32 |
| 147 | root_input_mask CLong |
| 148 | } |
| 149 | |
| 150 | pub type Screen = C.Screen |
| 151 | |
| 152 | @[typedef] |
| 153 | pub struct C.ScreenFormat { |
| 154 | pub mut: |
| 155 | ext_data &XExtData |
| 156 | depth i32 |
| 157 | bits_per_pixel i32 |
| 158 | scanline_pad i32 |
| 159 | } |
| 160 | |
| 161 | pub type ScreenFormat = C.ScreenFormat |
| 162 | |
| 163 | @[typedef] |
| 164 | pub struct C.XSetWindowAttributes { |
| 165 | pub mut: |
| 166 | background_pixmap Pixmap |
| 167 | background_pixel CULong |
| 168 | border_pixmap Pixmap |
| 169 | border_pixel CULong |
| 170 | bit_gravity i32 |
| 171 | win_gravity i32 |
| 172 | backing_store i32 |
| 173 | backing_planes CULong |
| 174 | backing_pixel CULong |
| 175 | save_under i32 |
| 176 | event_mask CLong |
| 177 | do_not_propagate_mask CLong |
| 178 | override_redirect i32 |
| 179 | colormap Colormap |
| 180 | cursor Cursor |
| 181 | } |
| 182 | |
| 183 | pub type XSetWindowAttributes = C.XSetWindowAttributes |
| 184 | |
| 185 | @[typedef] |
| 186 | pub struct C.XWindowAttributes { |
| 187 | pub mut: |
| 188 | x i32 |
| 189 | y i32 |
| 190 | width i32 |
| 191 | height i32 |
| 192 | border_width i32 |
| 193 | depth i32 |
| 194 | visual &Visual |
| 195 | root Window |
| 196 | class i32 |
| 197 | bit_gravity i32 |
| 198 | win_gravity i32 |
| 199 | backing_store i32 |
| 200 | backing_planes CULong |
| 201 | backing_pixel CULong |
| 202 | save_under i32 |
| 203 | colormap Colormap |
| 204 | map_installed i32 |
| 205 | map_state i32 |
| 206 | all_event_masks CLong |
| 207 | your_event_mask CLong |
| 208 | do_not_propagate_mask CLong |
| 209 | override_redirect i32 |
| 210 | screen &Screen |
| 211 | } |
| 212 | |
| 213 | pub type XWindowAttributes = C.XWindowAttributes |
| 214 | |
| 215 | @[typedef] |
| 216 | pub struct C.XHostAddress { |
| 217 | pub mut: |
| 218 | family i32 |
| 219 | length i32 |
| 220 | address &char |
| 221 | } |
| 222 | |
| 223 | pub type XHostAddress = C.XHostAddress |
| 224 | |
| 225 | @[typedef] |
| 226 | pub struct C.XServerInterpretedAddress { |
| 227 | pub mut: |
| 228 | typelength i32 |
| 229 | valuelength i32 |
| 230 | @type &char |
| 231 | value &char |
| 232 | } |
| 233 | |
| 234 | pub type XServerInterpretedAddress = C.XServerInterpretedAddress |
| 235 | |
| 236 | @[typedef] |
| 237 | pub struct C.XImage_f { |
| 238 | pub mut: |
| 239 | create_image fn (&Display, &Visual, u32, i32, i32, &char, u32, u32, i32, i32) &XImage |
| 240 | destroy_image fn (&XImage) i32 |
| 241 | get_pixel fn (&XImage, i32, i32) CULong |
| 242 | put_pixel fn (&XImage, i32, i32, CULong) i32 |
| 243 | sub_image fn (&XImage, i32, i32, u32, u32) &XImage |
| 244 | add_pixel fn (&XImage, CLong) i32 |
| 245 | } |
| 246 | |
| 247 | pub type XImage_f = C.XImage_f |
| 248 | |
| 249 | @[typedef] |
| 250 | pub struct C.XImage { |
| 251 | pub mut: |
| 252 | width i32 |
| 253 | height i32 |
| 254 | xoffset i32 |
| 255 | format i32 |
| 256 | data &char |
| 257 | byte_order i32 |
| 258 | bitmap_unit i32 |
| 259 | bitmap_bit_order i32 |
| 260 | bitmap_pad i32 |
| 261 | depth i32 |
| 262 | bytes_per_line i32 |
| 263 | bits_per_pixel i32 |
| 264 | red_mask CULong |
| 265 | green_mask CULong |
| 266 | blue_mask CULong |
| 267 | obdata XPointer |
| 268 | f XImage_f |
| 269 | } |
| 270 | |
| 271 | pub type XImage = C.XImage |
| 272 | |
| 273 | @[typedef] |
| 274 | pub struct C.XWindowChanges { |
| 275 | pub mut: |
| 276 | x i32 |
| 277 | y i32 |
| 278 | width i32 |
| 279 | height i32 |
| 280 | border_width i32 |
| 281 | sibling Window |
| 282 | stack_mode i32 |
| 283 | } |
| 284 | |
| 285 | pub type XWindowChanges = C.XWindowChanges |
| 286 | |
| 287 | @[typedef] |
| 288 | pub struct C.XColor { |
| 289 | pub mut: |
| 290 | pixel CULong |
| 291 | red u16 |
| 292 | green u16 |
| 293 | blue u16 |
| 294 | flags char |
| 295 | pad char |
| 296 | } |
| 297 | |
| 298 | pub type XColor = C.XColor |
| 299 | |
| 300 | @[typedef] |
| 301 | pub struct C.XSegment { |
| 302 | pub mut: |
| 303 | x1 i16 |
| 304 | y1 i16 |
| 305 | x2 i16 |
| 306 | y2 i16 |
| 307 | } |
| 308 | |
| 309 | pub type XSegment = C.XSegment |
| 310 | |
| 311 | @[typedef] |
| 312 | pub struct C.XPoint { |
| 313 | pub mut: |
| 314 | x i16 |
| 315 | y i16 |
| 316 | } |
| 317 | |
| 318 | pub type XPoint = C.XPoint |
| 319 | |
| 320 | @[typedef] |
| 321 | pub struct C.XRectangle { |
| 322 | pub mut: |
| 323 | x i16 |
| 324 | y i16 |
| 325 | width u16 |
| 326 | height u16 |
| 327 | } |
| 328 | |
| 329 | pub type XRectangle = C.XRectangle |
| 330 | |
| 331 | @[typedef] |
| 332 | pub struct C.XArc { |
| 333 | pub mut: |
| 334 | x i16 |
| 335 | y i16 |
| 336 | width u16 |
| 337 | height u16 |
| 338 | angle1 i16 |
| 339 | angle2 i16 |
| 340 | } |
| 341 | |
| 342 | pub type XArc = C.XArc |
| 343 | |
| 344 | @[typedef] |
| 345 | pub struct C.XKeyboardControl { |
| 346 | pub mut: |
| 347 | key_click_percent i32 |
| 348 | bell_percent i32 |
| 349 | bell_pitch i32 |
| 350 | bell_duration i32 |
| 351 | led i32 |
| 352 | led_mode i32 |
| 353 | key i32 |
| 354 | auto_repeat_mode i32 |
| 355 | } |
| 356 | |
| 357 | pub type XKeyboardControl = C.XKeyboardControl |
| 358 | |
| 359 | @[typedef] |
| 360 | pub struct C.XKeyboardState { |
| 361 | pub mut: |
| 362 | key_click_percent i32 |
| 363 | bell_percent i32 |
| 364 | bell_pitch u32 |
| 365 | bell_duration u32 |
| 366 | led_mask CULong |
| 367 | global_auto_repeat i32 |
| 368 | auto_repeats [32]char |
| 369 | } |
| 370 | |
| 371 | pub type XKeyboardState = C.XKeyboardState |
| 372 | |
| 373 | @[typedef] |
| 374 | pub struct C.XTimeCoord { |
| 375 | pub mut: |
| 376 | time Time |
| 377 | x i16 |
| 378 | y i16 |
| 379 | } |
| 380 | |
| 381 | pub type XTimeCoord = C.XTimeCoord |
| 382 | |
| 383 | @[typedef] |
| 384 | pub struct C.XModifierKeymap { |
| 385 | pub mut: |
| 386 | max_keypermod i32 |
| 387 | modifiermap &KeyCode |
| 388 | } |
| 389 | |
| 390 | pub type XModifierKeymap = C.XModifierKeymap |
| 391 | |
| 392 | @[typedef] |
| 393 | pub struct C.Display { |
| 394 | } |
| 395 | |
| 396 | pub type Display = C.Display |
| 397 | |
| 398 | @[typedef] |
| 399 | pub struct C.XKeyEvent { |
| 400 | pub mut: |
| 401 | @type i32 |
| 402 | serial CULong |
| 403 | send_event i32 |
| 404 | display &Display |
| 405 | window Window |
| 406 | root Window |
| 407 | subwindow Window |
| 408 | time Time |
| 409 | x i32 |
| 410 | y i32 |
| 411 | x_root i32 |
| 412 | y_root i32 |
| 413 | state u32 |
| 414 | keycode u32 |
| 415 | same_screen i32 |
| 416 | } |
| 417 | |
| 418 | pub type XKeyEvent = C.XKeyEvent |
| 419 | |
| 420 | pub type XKeyPressedEvent = XKeyEvent |
| 421 | |
| 422 | pub type XKeyReleasedEvent = XKeyEvent |
| 423 | |
| 424 | @[typedef] |
| 425 | pub struct C.XButtonEvent { |
| 426 | pub mut: |
| 427 | @type i32 |
| 428 | serial CULong |
| 429 | send_event i32 |
| 430 | display &Display |
| 431 | window Window |
| 432 | root Window |
| 433 | subwindow Window |
| 434 | time Time |
| 435 | x i32 |
| 436 | y i32 |
| 437 | x_root i32 |
| 438 | y_root i32 |
| 439 | state u32 |
| 440 | button u32 |
| 441 | same_screen i32 |
| 442 | } |
| 443 | |
| 444 | pub type XButtonEvent = C.XButtonEvent |
| 445 | |
| 446 | pub type XButtonPressedEvent = XButtonEvent |
| 447 | |
| 448 | pub type XButtonReleasedEvent = XButtonEvent |
| 449 | |
| 450 | @[typedef] |
| 451 | pub struct C.XMotionEvent { |
| 452 | pub mut: |
| 453 | @type i32 |
| 454 | serial CULong |
| 455 | send_event i32 |
| 456 | display &Display |
| 457 | window Window |
| 458 | root Window |
| 459 | subwindow Window |
| 460 | time Time |
| 461 | x i32 |
| 462 | y i32 |
| 463 | x_root i32 |
| 464 | y_root i32 |
| 465 | state u32 |
| 466 | is_hint char |
| 467 | same_screen i32 |
| 468 | } |
| 469 | |
| 470 | pub type XMotionEvent = C.XMotionEvent |
| 471 | |
| 472 | pub type XPointerMovedEvent = XMotionEvent |
| 473 | |
| 474 | @[typedef] |
| 475 | pub struct C.XCrossingEvent { |
| 476 | pub mut: |
| 477 | @type i32 |
| 478 | serial CULong |
| 479 | send_event i32 |
| 480 | display &Display |
| 481 | window Window |
| 482 | root Window |
| 483 | subwindow Window |
| 484 | time Time |
| 485 | x i32 |
| 486 | y i32 |
| 487 | x_root i32 |
| 488 | y_root i32 |
| 489 | mode i32 |
| 490 | detail i32 |
| 491 | same_screen i32 |
| 492 | focus i32 |
| 493 | state u32 |
| 494 | } |
| 495 | |
| 496 | pub type XCrossingEvent = C.XCrossingEvent |
| 497 | |
| 498 | pub type XEnterWindowEvent = XCrossingEvent |
| 499 | |
| 500 | pub type XLeaveWindowEvent = XCrossingEvent |
| 501 | |
| 502 | @[typedef] |
| 503 | pub struct C.XFocusChangeEvent { |
| 504 | pub mut: |
| 505 | @type i32 |
| 506 | serial CULong |
| 507 | send_event i32 |
| 508 | display &Display |
| 509 | window Window |
| 510 | mode i32 |
| 511 | detail i32 |
| 512 | } |
| 513 | |
| 514 | pub type XFocusChangeEvent = C.XFocusChangeEvent |
| 515 | |
| 516 | pub type XFocusInEvent = XFocusChangeEvent |
| 517 | |
| 518 | pub type XFocusOutEvent = XFocusChangeEvent |
| 519 | |
| 520 | @[typedef] |
| 521 | pub struct C.XKeymapEvent { |
| 522 | pub mut: |
| 523 | @type i32 |
| 524 | serial CULong |
| 525 | send_event i32 |
| 526 | display &Display |
| 527 | window Window |
| 528 | key_vector [32]char |
| 529 | } |
| 530 | |
| 531 | pub type XKeymapEvent = C.XKeymapEvent |
| 532 | |
| 533 | @[typedef] |
| 534 | pub struct C.XExposeEvent { |
| 535 | pub mut: |
| 536 | @type i32 |
| 537 | serial CULong |
| 538 | send_event i32 |
| 539 | display &Display |
| 540 | window Window |
| 541 | x i32 |
| 542 | y i32 |
| 543 | width i32 |
| 544 | height i32 |
| 545 | count i32 |
| 546 | } |
| 547 | |
| 548 | pub type XExposeEvent = C.XExposeEvent |
| 549 | |
| 550 | @[typedef] |
| 551 | pub struct C.XGraphicsExposeEvent { |
| 552 | pub mut: |
| 553 | @type i32 |
| 554 | serial CULong |
| 555 | send_event i32 |
| 556 | display &Display |
| 557 | drawable Drawable |
| 558 | x i32 |
| 559 | y i32 |
| 560 | width i32 |
| 561 | height i32 |
| 562 | count i32 |
| 563 | major_code i32 |
| 564 | minor_code i32 |
| 565 | } |
| 566 | |
| 567 | pub type XGraphicsExposeEvent = C.XGraphicsExposeEvent |
| 568 | |
| 569 | @[typedef] |
| 570 | pub struct C.XNoExposeEvent { |
| 571 | pub mut: |
| 572 | @type i32 |
| 573 | serial CULong |
| 574 | send_event i32 |
| 575 | display &Display |
| 576 | drawable Drawable |
| 577 | major_code i32 |
| 578 | minor_code i32 |
| 579 | } |
| 580 | |
| 581 | pub type XNoExposeEvent = C.XNoExposeEvent |
| 582 | |
| 583 | @[typedef] |
| 584 | pub struct C.XVisibilityEvent { |
| 585 | pub mut: |
| 586 | @type i32 |
| 587 | serial CULong |
| 588 | send_event i32 |
| 589 | display &Display |
| 590 | window Window |
| 591 | state i32 |
| 592 | } |
| 593 | |
| 594 | pub type XVisibilityEvent = C.XVisibilityEvent |
| 595 | |
| 596 | @[typedef] |
| 597 | pub struct C.XCreateWindowEvent { |
| 598 | pub mut: |
| 599 | @type i32 |
| 600 | serial CULong |
| 601 | send_event i32 |
| 602 | display &Display |
| 603 | parent Window |
| 604 | window Window |
| 605 | x i32 |
| 606 | y i32 |
| 607 | width i32 |
| 608 | height i32 |
| 609 | border_width i32 |
| 610 | override_redirect i32 |
| 611 | } |
| 612 | |
| 613 | pub type XCreateWindowEvent = C.XCreateWindowEvent |
| 614 | |
| 615 | @[typedef] |
| 616 | pub struct C.XDestroyWindowEvent { |
| 617 | pub mut: |
| 618 | @type i32 |
| 619 | serial CULong |
| 620 | send_event i32 |
| 621 | display &Display |
| 622 | event Window |
| 623 | window Window |
| 624 | } |
| 625 | |
| 626 | pub type XDestroyWindowEvent = C.XDestroyWindowEvent |
| 627 | |
| 628 | @[typedef] |
| 629 | pub struct C.XUnmapEvent { |
| 630 | pub mut: |
| 631 | @type i32 |
| 632 | serial CULong |
| 633 | send_event i32 |
| 634 | display &Display |
| 635 | event Window |
| 636 | window Window |
| 637 | from_configure i32 |
| 638 | } |
| 639 | |
| 640 | pub type XUnmapEvent = C.XUnmapEvent |
| 641 | |
| 642 | @[typedef] |
| 643 | pub struct C.XMapEvent { |
| 644 | pub mut: |
| 645 | @type i32 |
| 646 | serial CULong |
| 647 | send_event i32 |
| 648 | display &Display |
| 649 | event Window |
| 650 | window Window |
| 651 | override_redirect i32 |
| 652 | } |
| 653 | |
| 654 | pub type XMapEvent = C.XMapEvent |
| 655 | |
| 656 | @[typedef] |
| 657 | pub struct C.XMapRequestEvent { |
| 658 | pub mut: |
| 659 | @type i32 |
| 660 | serial CULong |
| 661 | send_event i32 |
| 662 | display &Display |
| 663 | parent Window |
| 664 | window Window |
| 665 | } |
| 666 | |
| 667 | pub type XMapRequestEvent = C.XMapRequestEvent |
| 668 | |
| 669 | @[typedef] |
| 670 | pub struct C.XReparentEvent { |
| 671 | pub mut: |
| 672 | @type i32 |
| 673 | serial CULong |
| 674 | send_event i32 |
| 675 | display &Display |
| 676 | event Window |
| 677 | window Window |
| 678 | parent Window |
| 679 | x i32 |
| 680 | y i32 |
| 681 | override_redirect i32 |
| 682 | } |
| 683 | |
| 684 | pub type XReparentEvent = C.XReparentEvent |
| 685 | |
| 686 | @[typedef] |
| 687 | pub struct C.XConfigureEvent { |
| 688 | pub mut: |
| 689 | @type i32 |
| 690 | serial CULong |
| 691 | send_event i32 |
| 692 | display &Display |
| 693 | event Window |
| 694 | window Window |
| 695 | x i32 |
| 696 | y i32 |
| 697 | width i32 |
| 698 | height i32 |
| 699 | border_width i32 |
| 700 | above Window |
| 701 | override_redirect i32 |
| 702 | } |
| 703 | |
| 704 | pub type XConfigureEvent = C.XConfigureEvent |
| 705 | |
| 706 | @[typedef] |
| 707 | pub struct C.XGravityEvent { |
| 708 | pub mut: |
| 709 | @type i32 |
| 710 | serial CULong |
| 711 | send_event i32 |
| 712 | display &Display |
| 713 | event Window |
| 714 | window Window |
| 715 | x i32 |
| 716 | y i32 |
| 717 | } |
| 718 | |
| 719 | pub type XGravityEvent = C.XGravityEvent |
| 720 | |
| 721 | @[typedef] |
| 722 | pub struct C.XResizeRequestEvent { |
| 723 | pub mut: |
| 724 | @type i32 |
| 725 | serial CULong |
| 726 | send_event i32 |
| 727 | display &Display |
| 728 | window Window |
| 729 | width i32 |
| 730 | height i32 |
| 731 | } |
| 732 | |
| 733 | pub type XResizeRequestEvent = C.XResizeRequestEvent |
| 734 | |
| 735 | @[typedef] |
| 736 | pub struct C.XConfigureRequestEvent { |
| 737 | pub mut: |
| 738 | @type i32 |
| 739 | serial CULong |
| 740 | send_event i32 |
| 741 | display &Display |
| 742 | parent Window |
| 743 | window Window |
| 744 | x i32 |
| 745 | y i32 |
| 746 | width i32 |
| 747 | height i32 |
| 748 | border_width i32 |
| 749 | above Window |
| 750 | detail i32 |
| 751 | value_mask CULong |
| 752 | } |
| 753 | |
| 754 | pub type XConfigureRequestEvent = C.XConfigureRequestEvent |
| 755 | |
| 756 | @[typedef] |
| 757 | pub struct C.XCirculateEvent { |
| 758 | pub mut: |
| 759 | @type i32 |
| 760 | serial CULong |
| 761 | send_event i32 |
| 762 | display &Display |
| 763 | event Window |
| 764 | window Window |
| 765 | place i32 |
| 766 | } |
| 767 | |
| 768 | pub type XCirculateEvent = C.XCirculateEvent |
| 769 | |
| 770 | @[typedef] |
| 771 | pub struct C.XCirculateRequestEvent { |
| 772 | pub mut: |
| 773 | @type i32 |
| 774 | serial CULong |
| 775 | send_event i32 |
| 776 | display &Display |
| 777 | parent Window |
| 778 | window Window |
| 779 | place i32 |
| 780 | } |
| 781 | |
| 782 | pub type XCirculateRequestEvent = C.XCirculateRequestEvent |
| 783 | |
| 784 | @[typedef] |
| 785 | pub struct C.XPropertyEvent { |
| 786 | pub mut: |
| 787 | @type i32 |
| 788 | serial CULong |
| 789 | send_event i32 |
| 790 | display &Display |
| 791 | window Window |
| 792 | atom Atom |
| 793 | time Time |
| 794 | state i32 |
| 795 | } |
| 796 | |
| 797 | pub type XPropertyEvent = C.XPropertyEvent |
| 798 | |
| 799 | @[typedef] |
| 800 | pub struct C.XSelectionClearEvent { |
| 801 | pub mut: |
| 802 | @type i32 |
| 803 | serial CULong |
| 804 | send_event i32 |
| 805 | display &Display |
| 806 | window Window |
| 807 | selection Atom |
| 808 | time Time |
| 809 | } |
| 810 | |
| 811 | pub type XSelectionClearEvent = C.XSelectionClearEvent |
| 812 | |
| 813 | @[typedef] |
| 814 | pub struct C.XSelectionRequestEvent { |
| 815 | pub mut: |
| 816 | @type i32 |
| 817 | serial CULong |
| 818 | send_event i32 |
| 819 | display &Display |
| 820 | owner Window |
| 821 | requestor Window |
| 822 | selection Atom |
| 823 | target Atom |
| 824 | property Atom |
| 825 | time Time |
| 826 | } |
| 827 | |
| 828 | pub type XSelectionRequestEvent = C.XSelectionRequestEvent |
| 829 | |
| 830 | @[typedef] |
| 831 | pub struct C.XSelectionEvent { |
| 832 | pub mut: |
| 833 | @type i32 |
| 834 | serial CULong |
| 835 | send_event i32 |
| 836 | display &Display |
| 837 | requestor Window |
| 838 | selection Atom |
| 839 | target Atom |
| 840 | property Atom |
| 841 | time Time |
| 842 | } |
| 843 | |
| 844 | pub type XSelectionEvent = C.XSelectionEvent |
| 845 | |
| 846 | @[typedef] |
| 847 | pub struct C.XColormapEvent { |
| 848 | pub mut: |
| 849 | @type i32 |
| 850 | serial CULong |
| 851 | send_event i32 |
| 852 | display &Display |
| 853 | window Window |
| 854 | colormap Colormap |
| 855 | new i32 |
| 856 | state i32 |
| 857 | } |
| 858 | |
| 859 | pub type XColormapEvent = C.XColormapEvent |
| 860 | |
| 861 | @[typedef] |
| 862 | pub union C.XClientMessageEvent_data { |
| 863 | pub mut: |
| 864 | b [20]char |
| 865 | s [10]i16 |
| 866 | l [5]CLong |
| 867 | } |
| 868 | |
| 869 | pub type XClientMessageEvent_data = C.XClientMessageEvent_data |
| 870 | |
| 871 | @[typedef] |
| 872 | pub struct C.XClientMessageEvent { |
| 873 | pub mut: |
| 874 | @type i32 |
| 875 | serial CULong |
| 876 | send_event i32 |
| 877 | display &Display |
| 878 | window Window |
| 879 | message_type Atom |
| 880 | format i32 |
| 881 | data XClientMessageEvent_data |
| 882 | } |
| 883 | |
| 884 | pub type XClientMessageEvent = C.XClientMessageEvent |
| 885 | |
| 886 | @[typedef] |
| 887 | pub struct C.XMappingEvent { |
| 888 | pub mut: |
| 889 | @type i32 |
| 890 | serial CULong |
| 891 | send_event i32 |
| 892 | display &Display |
| 893 | window Window |
| 894 | request i32 |
| 895 | first_keycode i32 |
| 896 | count i32 |
| 897 | } |
| 898 | |
| 899 | pub type XMappingEvent = C.XMappingEvent |
| 900 | |
| 901 | @[typedef] |
| 902 | pub struct C.XErrorEvent { |
| 903 | pub mut: |
| 904 | @type i32 |
| 905 | display &Display |
| 906 | resourceid XID |
| 907 | serial CULong |
| 908 | error_code u8 |
| 909 | request_code u8 |
| 910 | minor_code u8 |
| 911 | } |
| 912 | |
| 913 | pub type XErrorEvent = C.XErrorEvent |
| 914 | |
| 915 | @[typedef] |
| 916 | pub struct C.XAnyEvent { |
| 917 | pub mut: |
| 918 | @type i32 |
| 919 | serial CULong |
| 920 | send_event i32 |
| 921 | display &Display |
| 922 | window Window |
| 923 | } |
| 924 | |
| 925 | pub type XAnyEvent = C.XAnyEvent |
| 926 | |
| 927 | @[typedef] |
| 928 | pub struct C.XGenericEvent { |
| 929 | pub mut: |
| 930 | @type i32 |
| 931 | serial CULong |
| 932 | send_event i32 |
| 933 | display &Display |
| 934 | extension i32 |
| 935 | evtype i32 |
| 936 | } |
| 937 | |
| 938 | pub type XGenericEvent = C.XGenericEvent |
| 939 | |
| 940 | @[typedef] |
| 941 | pub struct C.XGenericEventCookie { |
| 942 | pub mut: |
| 943 | @type i32 |
| 944 | serial CULong |
| 945 | send_event i32 |
| 946 | display &Display |
| 947 | extension i32 |
| 948 | evtype i32 |
| 949 | cookie u32 |
| 950 | data voidptr |
| 951 | } |
| 952 | |
| 953 | pub type XGenericEventCookie = C.XGenericEventCookie |
| 954 | |
| 955 | @[typedef] |
| 956 | pub union C.XEvent { |
| 957 | pub mut: |
| 958 | @type i32 |
| 959 | xany XAnyEvent |
| 960 | xkey XKeyEvent |
| 961 | xbutton XButtonEvent |
| 962 | xmotion XMotionEvent |
| 963 | xcrossing XCrossingEvent |
| 964 | xfocus XFocusChangeEvent |
| 965 | xexpose XExposeEvent |
| 966 | xgraphicsexpose XGraphicsExposeEvent |
| 967 | xnoexpose XNoExposeEvent |
| 968 | xvisibility XVisibilityEvent |
| 969 | xcreatewindow XCreateWindowEvent |
| 970 | xdestroywindow XDestroyWindowEvent |
| 971 | xunmap XUnmapEvent |
| 972 | xmap XMapEvent |
| 973 | xmaprequest XMapRequestEvent |
| 974 | xreparent XReparentEvent |
| 975 | xconfigure XConfigureEvent |
| 976 | xgravity XGravityEvent |
| 977 | xresizerequest XResizeRequestEvent |
| 978 | xconfigurerequest XConfigureRequestEvent |
| 979 | xcirculate XCirculateEvent |
| 980 | xcirculaterequest XCirculateRequestEvent |
| 981 | xproperty XPropertyEvent |
| 982 | xselectionclear XSelectionClearEvent |
| 983 | xselectionrequest XSelectionRequestEvent |
| 984 | xselection XSelectionEvent |
| 985 | xcolormap XColormapEvent |
| 986 | xclient XClientMessageEvent |
| 987 | xmapping XMappingEvent |
| 988 | xerror XErrorEvent |
| 989 | xkeymap XKeymapEvent |
| 990 | xgeneric XGenericEvent |
| 991 | xcookie XGenericEventCookie |
| 992 | pad [24]CLong |
| 993 | } |
| 994 | |
| 995 | pub type XEvent = C.XEvent |
| 996 | |
| 997 | @[typedef] |
| 998 | pub struct C.XCharStruct { |
| 999 | pub mut: |
| 1000 | lbearing i16 |
| 1001 | rbearing i16 |
| 1002 | width i16 |
| 1003 | ascent i16 |
| 1004 | descent i16 |
| 1005 | attributes u16 |
| 1006 | } |
| 1007 | |
| 1008 | pub type XCharStruct = C.XCharStruct |
| 1009 | |
| 1010 | @[typedef] |
| 1011 | pub struct C.XFontProp { |
| 1012 | pub mut: |
| 1013 | name Atom |
| 1014 | card32 CULong |
| 1015 | } |
| 1016 | |
| 1017 | pub type XFontProp = C.XFontProp |
| 1018 | |
| 1019 | @[typedef] |
| 1020 | pub struct C.XFontStruct { |
| 1021 | pub mut: |
| 1022 | ext_data &XExtData |
| 1023 | fid Font |
| 1024 | direction u32 |
| 1025 | min_char_or_byte2 u32 |
| 1026 | max_char_or_byte2 u32 |
| 1027 | min_byte1 u32 |
| 1028 | max_byte1 u32 |
| 1029 | all_chars_exist i32 |
| 1030 | default_char u32 |
| 1031 | n_properties i32 |
| 1032 | properties &XFontProp |
| 1033 | min_bounds XCharStruct |
| 1034 | max_bounds XCharStruct |
| 1035 | per_char &XCharStruct |
| 1036 | ascent i32 |
| 1037 | descent i32 |
| 1038 | } |
| 1039 | |
| 1040 | pub type XFontStruct = C.XFontStruct |
| 1041 | |
| 1042 | @[typedef] |
| 1043 | pub struct C.XTextItem { |
| 1044 | pub mut: |
| 1045 | chars &char |
| 1046 | nchars i32 |
| 1047 | delta i32 |
| 1048 | font Font |
| 1049 | } |
| 1050 | |
| 1051 | pub type XTextItem = C.XTextItem |
| 1052 | |
| 1053 | @[typedef] |
| 1054 | pub struct C.XChar2b { |
| 1055 | pub mut: |
| 1056 | byte1 u8 |
| 1057 | byte2 u8 |
| 1058 | } |
| 1059 | |
| 1060 | pub type XChar2b = C.XChar2b |
| 1061 | |
| 1062 | @[typedef] |
| 1063 | pub struct C.XTextItem16 { |
| 1064 | pub mut: |
| 1065 | chars &XChar2b |
| 1066 | nchars i32 |
| 1067 | delta i32 |
| 1068 | font Font |
| 1069 | } |
| 1070 | |
| 1071 | pub type XTextItem16 = C.XTextItem16 |
| 1072 | |
| 1073 | @[typedef] |
| 1074 | pub union C.XEDataObject { |
| 1075 | pub mut: |
| 1076 | display &Display |
| 1077 | gc GC |
| 1078 | visual &Visual |
| 1079 | screen &Screen |
| 1080 | pixmap_format &ScreenFormat |
| 1081 | font &XFontStruct |
| 1082 | } |
| 1083 | |
| 1084 | pub type XEDataObject = C.XEDataObject |
| 1085 | |
| 1086 | @[typedef] |
| 1087 | pub struct C.XFontSetExtents { |
| 1088 | pub mut: |
| 1089 | max_ink_extent XRectangle |
| 1090 | max_logical_extent XRectangle |
| 1091 | } |
| 1092 | |
| 1093 | pub type XFontSetExtents = C.XFontSetExtents |
| 1094 | |
| 1095 | pub type XOM = voidptr |
| 1096 | |
| 1097 | pub type XOC = voidptr |
| 1098 | |
| 1099 | pub type XFontSet = voidptr |
| 1100 | |
| 1101 | @[typedef] |
| 1102 | pub struct C.XmbTextItem { |
| 1103 | pub mut: |
| 1104 | chars &char |
| 1105 | nchars i32 |
| 1106 | delta i32 |
| 1107 | font_set XFontSet |
| 1108 | } |
| 1109 | |
| 1110 | pub type XmbTextItem = C.XmbTextItem |
| 1111 | |
| 1112 | @[typedef] |
| 1113 | pub struct C.XwcTextItem { |
| 1114 | pub mut: |
| 1115 | chars &i32 |
| 1116 | nchars i32 |
| 1117 | delta i32 |
| 1118 | font_set XFontSet |
| 1119 | } |
| 1120 | |
| 1121 | pub type XwcTextItem = C.XwcTextItem |
| 1122 | |
| 1123 | @[typedef] |
| 1124 | pub struct C.XOMCharSetList { |
| 1125 | pub mut: |
| 1126 | charset_count i32 |
| 1127 | charset_list &&char |
| 1128 | } |
| 1129 | |
| 1130 | pub type XOMCharSetList = C.XOMCharSetList |
| 1131 | |
| 1132 | pub type XOrientation = i32 |
| 1133 | |
| 1134 | @[typedef] |
| 1135 | pub struct C.XOMOrientation { |
| 1136 | pub mut: |
| 1137 | num_orientation i32 |
| 1138 | orientation &XOrientation |
| 1139 | } |
| 1140 | |
| 1141 | pub type XOMOrientation = C.XOMOrientation |
| 1142 | |
| 1143 | @[typedef] |
| 1144 | pub struct C.XOMFontInfo { |
| 1145 | pub mut: |
| 1146 | num_font i32 |
| 1147 | font_struct_list &&XFontStruct |
| 1148 | font_name_list &&char |
| 1149 | } |
| 1150 | |
| 1151 | pub type XOMFontInfo = C.XOMFontInfo |
| 1152 | |
| 1153 | pub type XIM = voidptr |
| 1154 | |
| 1155 | pub type XIC = voidptr |
| 1156 | |
| 1157 | pub type XIMProc = fn (XIM, XPointer, XPointer) |
| 1158 | |
| 1159 | pub type XICProc = fn (XIC, XPointer, XPointer) i32 |
| 1160 | |
| 1161 | pub type XIDProc = fn (&Display, XPointer, XPointer) |
| 1162 | |
| 1163 | pub type XIMStyle = CULong |
| 1164 | |
| 1165 | @[typedef] |
| 1166 | pub struct C.XIMStyles { |
| 1167 | pub mut: |
| 1168 | count_styles u16 |
| 1169 | supported_styles &XIMStyle |
| 1170 | } |
| 1171 | |
| 1172 | pub type XIMStyles = C.XIMStyles |
| 1173 | |
| 1174 | pub type XVaNestedList = voidptr |
| 1175 | |
| 1176 | @[typedef] |
| 1177 | pub struct C.XIMCallback { |
| 1178 | pub mut: |
| 1179 | client_data XPointer |
| 1180 | callback XIMProc |
| 1181 | } |
| 1182 | |
| 1183 | pub type XIMCallback = C.XIMCallback |
| 1184 | |
| 1185 | @[typedef] |
| 1186 | pub struct C.XICCallback { |
| 1187 | pub mut: |
| 1188 | client_data XPointer |
| 1189 | callback XICProc |
| 1190 | } |
| 1191 | |
| 1192 | pub type XICCallback = C.XICCallback |
| 1193 | |
| 1194 | pub type XIMFeedback = CULong |
| 1195 | |
| 1196 | @[typedef] |
| 1197 | pub union C.XIMText_string { |
| 1198 | pub mut: |
| 1199 | multi_byte &char |
| 1200 | wide_char &i32 |
| 1201 | } |
| 1202 | |
| 1203 | pub type XIMText_string = C.XIMText_string |
| 1204 | |
| 1205 | @[typedef] |
| 1206 | pub struct C.XIMText { |
| 1207 | pub mut: |
| 1208 | length u16 |
| 1209 | feedback &XIMFeedback |
| 1210 | encoding_is_wchar i32 |
| 1211 | string XIMText_string |
| 1212 | } |
| 1213 | |
| 1214 | pub type XIMText = C.XIMText |
| 1215 | |
| 1216 | pub type XIMPreeditState = CULong |
| 1217 | |
| 1218 | @[typedef] |
| 1219 | pub struct C.XIMPreeditStateNotifyCallbackStruct { |
| 1220 | pub mut: |
| 1221 | state XIMPreeditState |
| 1222 | } |
| 1223 | |
| 1224 | pub type XIMPreeditStateNotifyCallbackStruct = C.XIMPreeditStateNotifyCallbackStruct |
| 1225 | |
| 1226 | pub type XIMResetState = CULong |
| 1227 | |
| 1228 | pub type XIMStringConversionFeedback = CULong |
| 1229 | |
| 1230 | @[typedef] |
| 1231 | pub union C.XIMStringConversionText_string { |
| 1232 | pub mut: |
| 1233 | mbs &char |
| 1234 | wcs &i32 |
| 1235 | } |
| 1236 | |
| 1237 | pub type XIMStringConversionText_string = C.XIMStringConversionText_string |
| 1238 | |
| 1239 | @[typedef] |
| 1240 | pub struct C.XIMStringConversionText { |
| 1241 | pub mut: |
| 1242 | length u16 |
| 1243 | feedback &XIMStringConversionFeedback |
| 1244 | encoding_is_wchar i32 |
| 1245 | string XIMStringConversionText_string |
| 1246 | } |
| 1247 | |
| 1248 | pub type XIMStringConversionText = C.XIMStringConversionText |
| 1249 | |
| 1250 | pub type XIMStringConversionPosition = u16 |
| 1251 | |
| 1252 | pub type XIMStringConversionType = u16 |
| 1253 | |
| 1254 | pub type XIMStringConversionOperation = u16 |
| 1255 | |
| 1256 | pub type XIMCaretDirection = i32 |
| 1257 | |
| 1258 | @[typedef] |
| 1259 | pub struct C.XIMStringConversionCallbackStruct { |
| 1260 | pub mut: |
| 1261 | position XIMStringConversionPosition |
| 1262 | direction XIMCaretDirection |
| 1263 | operation XIMStringConversionOperation |
| 1264 | factor u16 |
| 1265 | text &XIMStringConversionText |
| 1266 | } |
| 1267 | |
| 1268 | pub type XIMStringConversionCallbackStruct = C.XIMStringConversionCallbackStruct |
| 1269 | |
| 1270 | @[typedef] |
| 1271 | pub struct C.XIMPreeditDrawCallbackStruct { |
| 1272 | pub mut: |
| 1273 | caret i32 |
| 1274 | chg_first i32 |
| 1275 | chg_length i32 |
| 1276 | text &XIMText |
| 1277 | } |
| 1278 | |
| 1279 | pub type XIMPreeditDrawCallbackStruct = C.XIMPreeditDrawCallbackStruct |
| 1280 | |
| 1281 | pub type XIMCaretStyle = i32 |
| 1282 | |
| 1283 | @[typedef] |
| 1284 | pub struct C.XIMPreeditCaretCallbackStruct { |
| 1285 | pub mut: |
| 1286 | position i32 |
| 1287 | direction XIMCaretDirection |
| 1288 | style XIMCaretStyle |
| 1289 | } |
| 1290 | |
| 1291 | pub type XIMPreeditCaretCallbackStruct = C.XIMPreeditCaretCallbackStruct |
| 1292 | |
| 1293 | pub type XIMStatusDataType = i32 |
| 1294 | |
| 1295 | @[typedef] |
| 1296 | pub union C.XIMStatusDrawCallbackStruct_data { |
| 1297 | pub mut: |
| 1298 | text &XIMText |
| 1299 | bitmap Pixmap |
| 1300 | } |
| 1301 | |
| 1302 | pub type XIMStatusDrawCallbackStruct_data = C.XIMStatusDrawCallbackStruct_data |
| 1303 | |
| 1304 | @[typedef] |
| 1305 | pub struct C.XIMStatusDrawCallbackStruct { |
| 1306 | pub mut: |
| 1307 | @type XIMStatusDataType |
| 1308 | data XIMStatusDrawCallbackStruct_data |
| 1309 | } |
| 1310 | |
| 1311 | pub type XIMStatusDrawCallbackStruct = C.XIMStatusDrawCallbackStruct |
| 1312 | |
| 1313 | @[typedef] |
| 1314 | pub struct C.XIMHotKeyTrigger { |
| 1315 | pub mut: |
| 1316 | keysym KeySym |
| 1317 | modifier i32 |
| 1318 | modifier_mask i32 |
| 1319 | } |
| 1320 | |
| 1321 | pub type XIMHotKeyTrigger = C.XIMHotKeyTrigger |
| 1322 | |
| 1323 | @[typedef] |
| 1324 | pub struct C.XIMHotKeyTriggers { |
| 1325 | pub mut: |
| 1326 | num_hot_key i32 |
| 1327 | key &XIMHotKeyTrigger |
| 1328 | } |
| 1329 | |
| 1330 | pub type XIMHotKeyTriggers = C.XIMHotKeyTriggers |
| 1331 | |
| 1332 | pub type XIMHotKeyState = CULong |
| 1333 | |
| 1334 | @[typedef] |
| 1335 | pub struct C.XIMValuesList { |
| 1336 | pub mut: |
| 1337 | count_values u16 |
| 1338 | supported_values &&char |
| 1339 | } |
| 1340 | |
| 1341 | pub type XIMValuesList = C.XIMValuesList |
| 1342 | |
| 1343 | pub type XErrorHandler = fn (&Display, &XErrorEvent) i32 |
| 1344 | |
| 1345 | pub type XIOErrorHandler = fn (&Display) i32 |
| 1346 | |
| 1347 | pub type XIOErrorExitHandler = fn (&Display, voidptr) |
| 1348 | |
| 1349 | pub type XConnectionWatchProc = fn (&Display, XPointer, i32, i32, &XPointer) |
| 1350 | |
| 1351 | pub type XrmQuark = i32 |
| 1352 | |
| 1353 | pub type XrmQuarkList = &i32 |
| 1354 | |
| 1355 | pub type XrmString = &char |
| 1356 | |
| 1357 | pub type XrmBinding = i32 |
| 1358 | |
| 1359 | pub type XrmBindingList = &i32 |
| 1360 | |
| 1361 | pub type XrmName = XrmQuark |
| 1362 | |
| 1363 | pub type XrmNameList = XrmQuarkList |
| 1364 | |
| 1365 | pub type XrmClass = XrmQuark |
| 1366 | |
| 1367 | pub type XrmClassList = XrmQuarkList |
| 1368 | |
| 1369 | pub type XrmRepresentation = XrmQuark |
| 1370 | |
| 1371 | @[typedef] |
| 1372 | pub struct C.XrmValue { |
| 1373 | pub mut: |
| 1374 | size u32 |
| 1375 | addr XPointer |
| 1376 | } |
| 1377 | |
| 1378 | pub type XrmValue = C.XrmValue |
| 1379 | |
| 1380 | pub type XrmValuePtr = &XrmValue |
| 1381 | |
| 1382 | pub type XrmHashBucket = voidptr |
| 1383 | |
| 1384 | pub type XrmHashTable = &XrmHashBucket |
| 1385 | |
| 1386 | pub type XrmSearchList = &XrmHashTable |
| 1387 | |
| 1388 | pub type XrmDatabase = voidptr |
| 1389 | |
| 1390 | pub type XrmOptionKind = i32 |
| 1391 | |
| 1392 | @[typedef] |
| 1393 | pub struct C.XrmOptionDescRec { |
| 1394 | pub mut: |
| 1395 | option &char |
| 1396 | specifier &char |
| 1397 | argKind XrmOptionKind |
| 1398 | value XPointer |
| 1399 | } |
| 1400 | |
| 1401 | pub type XrmOptionDescRec = C.XrmOptionDescRec |
| 1402 | |
| 1403 | pub type XrmOptionDescList = &XrmOptionDescRec |
| 1404 | |
| 1405 | @[typedef] |
| 1406 | pub struct C.XSizeHints_min_aspect { |
| 1407 | pub mut: |
| 1408 | x i32 |
| 1409 | y i32 |
| 1410 | } |
| 1411 | |
| 1412 | pub type XSizeHints_min_aspect = C.XSizeHints_min_aspect |
| 1413 | |
| 1414 | @[typedef] |
| 1415 | pub struct C.XSizeHints { |
| 1416 | pub mut: |
| 1417 | flags CLong |
| 1418 | x i32 |
| 1419 | y i32 |
| 1420 | width i32 |
| 1421 | height i32 |
| 1422 | min_width i32 |
| 1423 | min_height i32 |
| 1424 | max_width i32 |
| 1425 | max_height i32 |
| 1426 | width_inc i32 |
| 1427 | height_inc i32 |
| 1428 | min_aspect XSizeHints_min_aspect |
| 1429 | max_aspect XSizeHints_min_aspect |
| 1430 | base_width i32 |
| 1431 | base_height i32 |
| 1432 | win_gravity i32 |
| 1433 | } |
| 1434 | |
| 1435 | pub type XSizeHints = C.XSizeHints |
| 1436 | |
| 1437 | @[typedef] |
| 1438 | pub struct C.XWMHints { |
| 1439 | pub mut: |
| 1440 | flags CLong |
| 1441 | input i32 |
| 1442 | initial_state i32 |
| 1443 | icon_pixmap Pixmap |
| 1444 | icon_window Window |
| 1445 | icon_x i32 |
| 1446 | icon_y i32 |
| 1447 | icon_mask Pixmap |
| 1448 | window_group XID |
| 1449 | } |
| 1450 | |
| 1451 | pub type XWMHints = C.XWMHints |
| 1452 | |
| 1453 | @[typedef] |
| 1454 | pub struct C.XTextProperty { |
| 1455 | pub mut: |
| 1456 | value &u8 |
| 1457 | encoding Atom |
| 1458 | format i32 |
| 1459 | nitems CULong |
| 1460 | } |
| 1461 | |
| 1462 | pub type XTextProperty = C.XTextProperty |
| 1463 | |
| 1464 | pub type XICCEncodingStyle = i32 |
| 1465 | |
| 1466 | @[typedef] |
| 1467 | pub struct C.XIconSize { |
| 1468 | pub mut: |
| 1469 | min_width i32 |
| 1470 | min_height i32 |
| 1471 | max_width i32 |
| 1472 | max_height i32 |
| 1473 | width_inc i32 |
| 1474 | height_inc i32 |
| 1475 | } |
| 1476 | |
| 1477 | pub type XIconSize = C.XIconSize |
| 1478 | |
| 1479 | @[typedef] |
| 1480 | pub struct C.XClassHint { |
| 1481 | pub mut: |
| 1482 | res_name &char |
| 1483 | res_class &char |
| 1484 | } |
| 1485 | |
| 1486 | pub type XClassHint = C.XClassHint |
| 1487 | |
| 1488 | @[typedef] |
| 1489 | pub struct C.XComposeStatus { |
| 1490 | pub mut: |
| 1491 | compose_ptr XPointer |
| 1492 | chars_matched i32 |
| 1493 | } |
| 1494 | |
| 1495 | pub type XComposeStatus = C.XComposeStatus |
| 1496 | |
| 1497 | pub type Region = voidptr |
| 1498 | |
| 1499 | @[typedef] |
| 1500 | pub struct C.XVisualInfo { |
| 1501 | pub mut: |
| 1502 | visual &Visual |
| 1503 | visualid VisualID |
| 1504 | screen i32 |
| 1505 | depth i32 |
| 1506 | class i32 |
| 1507 | red_mask CULong |
| 1508 | green_mask CULong |
| 1509 | blue_mask CULong |
| 1510 | colormap_size i32 |
| 1511 | bits_per_rgb i32 |
| 1512 | } |
| 1513 | |
| 1514 | pub type XVisualInfo = C.XVisualInfo |
| 1515 | |
| 1516 | @[typedef] |
| 1517 | pub struct C.XStandardColormap { |
| 1518 | pub mut: |
| 1519 | colormap Colormap |
| 1520 | red_max CULong |
| 1521 | red_mult CULong |
| 1522 | green_max CULong |
| 1523 | green_mult CULong |
| 1524 | blue_max CULong |
| 1525 | blue_mult CULong |
| 1526 | base_pixel CULong |
| 1527 | visualid VisualID |
| 1528 | killid XID |
| 1529 | } |
| 1530 | |
| 1531 | pub type XStandardColormap = C.XStandardColormap |
| 1532 | |
| 1533 | pub type XContext = i32 |
| 1534 | |
| 1535 | @[typedef] |
| 1536 | pub struct C.XkbStateRec { |
| 1537 | pub mut: |
| 1538 | group u8 |
| 1539 | locked_group u8 |
| 1540 | base_group u16 |
| 1541 | latched_group u16 |
| 1542 | mods u8 |
| 1543 | base_mods u8 |
| 1544 | latched_mods u8 |
| 1545 | locked_mods u8 |
| 1546 | compat_state u8 |
| 1547 | grab_mods u8 |
| 1548 | compat_grab_mods u8 |
| 1549 | lookup_mods u8 |
| 1550 | compat_lookup_mods u8 |
| 1551 | ptr_buttons u16 |
| 1552 | } |
| 1553 | |
| 1554 | pub type XkbStateRec = C.XkbStateRec |
| 1555 | |
| 1556 | pub type XkbStatePtr = &XkbStateRec |
| 1557 | |
| 1558 | @[typedef] |
| 1559 | pub struct C.XkbModsRec { |
| 1560 | pub mut: |
| 1561 | mask u8 |
| 1562 | real_mods u8 |
| 1563 | vmods u16 |
| 1564 | } |
| 1565 | |
| 1566 | pub type XkbModsRec = C.XkbModsRec |
| 1567 | |
| 1568 | pub type XkbModsPtr = &XkbModsRec |
| 1569 | |
| 1570 | @[typedef] |
| 1571 | pub struct C.XkbKTMapEntryRec { |
| 1572 | pub mut: |
| 1573 | active i32 |
| 1574 | level u8 |
| 1575 | mods XkbModsRec |
| 1576 | } |
| 1577 | |
| 1578 | pub type XkbKTMapEntryRec = C.XkbKTMapEntryRec |
| 1579 | |
| 1580 | pub type XkbKTMapEntryPtr = &XkbKTMapEntryRec |
| 1581 | |
| 1582 | @[typedef] |
| 1583 | pub struct C.XkbKeyTypeRec { |
| 1584 | pub mut: |
| 1585 | mods XkbModsRec |
| 1586 | num_levels u8 |
| 1587 | map_count u8 |
| 1588 | map XkbKTMapEntryPtr |
| 1589 | preserve XkbModsPtr |
| 1590 | name Atom |
| 1591 | level_names &Atom |
| 1592 | } |
| 1593 | |
| 1594 | pub type XkbKeyTypeRec = C.XkbKeyTypeRec |
| 1595 | |
| 1596 | pub type XkbKeyTypePtr = &XkbKeyTypeRec |
| 1597 | |
| 1598 | @[typedef] |
| 1599 | pub struct C.XkbBehavior { |
| 1600 | pub mut: |
| 1601 | @type u8 |
| 1602 | data u8 |
| 1603 | } |
| 1604 | |
| 1605 | pub type XkbBehavior = C.XkbBehavior |
| 1606 | |
| 1607 | @[typedef] |
| 1608 | pub struct C.XkbAnyAction { |
| 1609 | pub mut: |
| 1610 | @type u8 |
| 1611 | data [7]u8 |
| 1612 | } |
| 1613 | |
| 1614 | pub type XkbAnyAction = C.XkbAnyAction |
| 1615 | |
| 1616 | @[typedef] |
| 1617 | pub struct C.XkbModAction { |
| 1618 | pub mut: |
| 1619 | @type u8 |
| 1620 | flags u8 |
| 1621 | mask u8 |
| 1622 | real_mods u8 |
| 1623 | vmods1 u8 |
| 1624 | vmods2 u8 |
| 1625 | } |
| 1626 | |
| 1627 | pub type XkbModAction = C.XkbModAction |
| 1628 | |
| 1629 | @[typedef] |
| 1630 | pub struct C.XkbGroupAction { |
| 1631 | pub mut: |
| 1632 | @type u8 |
| 1633 | flags u8 |
| 1634 | group_XXX char |
| 1635 | } |
| 1636 | |
| 1637 | pub type XkbGroupAction = C.XkbGroupAction |
| 1638 | |
| 1639 | @[typedef] |
| 1640 | pub struct C.XkbISOAction { |
| 1641 | pub mut: |
| 1642 | @type u8 |
| 1643 | flags u8 |
| 1644 | mask u8 |
| 1645 | real_mods u8 |
| 1646 | group_XXX char |
| 1647 | affect u8 |
| 1648 | vmods1 u8 |
| 1649 | vmods2 u8 |
| 1650 | } |
| 1651 | |
| 1652 | pub type XkbISOAction = C.XkbISOAction |
| 1653 | |
| 1654 | @[typedef] |
| 1655 | pub struct C.XkbPtrAction { |
| 1656 | pub mut: |
| 1657 | @type u8 |
| 1658 | flags u8 |
| 1659 | high_XXX u8 |
| 1660 | low_XXX u8 |
| 1661 | high_YYY u8 |
| 1662 | low_YYY u8 |
| 1663 | } |
| 1664 | |
| 1665 | pub type XkbPtrAction = C.XkbPtrAction |
| 1666 | |
| 1667 | @[typedef] |
| 1668 | pub struct C.XkbPtrBtnAction { |
| 1669 | pub mut: |
| 1670 | @type u8 |
| 1671 | flags u8 |
| 1672 | count u8 |
| 1673 | button u8 |
| 1674 | } |
| 1675 | |
| 1676 | pub type XkbPtrBtnAction = C.XkbPtrBtnAction |
| 1677 | |
| 1678 | @[typedef] |
| 1679 | pub struct C.XkbPtrDfltAction { |
| 1680 | pub mut: |
| 1681 | @type u8 |
| 1682 | flags u8 |
| 1683 | affect u8 |
| 1684 | valueXXX char |
| 1685 | } |
| 1686 | |
| 1687 | pub type XkbPtrDfltAction = C.XkbPtrDfltAction |
| 1688 | |
| 1689 | @[typedef] |
| 1690 | pub struct C.XkbSwitchScreenAction { |
| 1691 | pub mut: |
| 1692 | @type u8 |
| 1693 | flags u8 |
| 1694 | screenXXX char |
| 1695 | } |
| 1696 | |
| 1697 | pub type XkbSwitchScreenAction = C.XkbSwitchScreenAction |
| 1698 | |
| 1699 | @[typedef] |
| 1700 | pub struct C.XkbCtrlsAction { |
| 1701 | pub mut: |
| 1702 | @type u8 |
| 1703 | flags u8 |
| 1704 | ctrls3 u8 |
| 1705 | ctrls2 u8 |
| 1706 | ctrls1 u8 |
| 1707 | ctrls0 u8 |
| 1708 | } |
| 1709 | |
| 1710 | pub type XkbCtrlsAction = C.XkbCtrlsAction |
| 1711 | |
| 1712 | @[typedef] |
| 1713 | pub struct C.XkbMessageAction { |
| 1714 | pub mut: |
| 1715 | @type u8 |
| 1716 | flags u8 |
| 1717 | message [6]u8 |
| 1718 | } |
| 1719 | |
| 1720 | pub type XkbMessageAction = C.XkbMessageAction |
| 1721 | |
| 1722 | @[typedef] |
| 1723 | pub struct C.XkbRedirectKeyAction { |
| 1724 | pub mut: |
| 1725 | @type u8 |
| 1726 | new_key u8 |
| 1727 | mods_mask u8 |
| 1728 | mods u8 |
| 1729 | vmods_mask0 u8 |
| 1730 | vmods_mask1 u8 |
| 1731 | vmods0 u8 |
| 1732 | vmods1 u8 |
| 1733 | } |
| 1734 | |
| 1735 | pub type XkbRedirectKeyAction = C.XkbRedirectKeyAction |
| 1736 | |
| 1737 | @[typedef] |
| 1738 | pub struct C.XkbDeviceBtnAction { |
| 1739 | pub mut: |
| 1740 | @type u8 |
| 1741 | flags u8 |
| 1742 | count u8 |
| 1743 | button u8 |
| 1744 | device u8 |
| 1745 | } |
| 1746 | |
| 1747 | pub type XkbDeviceBtnAction = C.XkbDeviceBtnAction |
| 1748 | |
| 1749 | @[typedef] |
| 1750 | pub struct C.XkbDeviceValuatorAction { |
| 1751 | pub mut: |
| 1752 | @type u8 |
| 1753 | device u8 |
| 1754 | v1_what u8 |
| 1755 | v1_ndx u8 |
| 1756 | v1_value u8 |
| 1757 | v2_what u8 |
| 1758 | v2_ndx u8 |
| 1759 | v2_value u8 |
| 1760 | } |
| 1761 | |
| 1762 | pub type XkbDeviceValuatorAction = C.XkbDeviceValuatorAction |
| 1763 | |
| 1764 | @[typedef] |
| 1765 | pub union C.XkbAction { |
| 1766 | pub mut: |
| 1767 | any XkbAnyAction |
| 1768 | mods XkbModAction |
| 1769 | group XkbGroupAction |
| 1770 | iso XkbISOAction |
| 1771 | ptr XkbPtrAction |
| 1772 | btn XkbPtrBtnAction |
| 1773 | dflt XkbPtrDfltAction |
| 1774 | screen XkbSwitchScreenAction |
| 1775 | ctrls XkbCtrlsAction |
| 1776 | msg XkbMessageAction |
| 1777 | redirect XkbRedirectKeyAction |
| 1778 | devbtn XkbDeviceBtnAction |
| 1779 | devval XkbDeviceValuatorAction |
| 1780 | @type u8 |
| 1781 | } |
| 1782 | |
| 1783 | pub type XkbAction = C.XkbAction |
| 1784 | |
| 1785 | @[typedef] |
| 1786 | pub struct C.XkbControlsRec { |
| 1787 | pub mut: |
| 1788 | mk_dflt_btn u8 |
| 1789 | num_groups u8 |
| 1790 | groups_wrap u8 |
| 1791 | internal XkbModsRec |
| 1792 | ignore_lock XkbModsRec |
| 1793 | enabled_ctrls u32 |
| 1794 | repeat_delay u16 |
| 1795 | repeat_interval u16 |
| 1796 | slow_keys_delay u16 |
| 1797 | debounce_delay u16 |
| 1798 | mk_delay u16 |
| 1799 | mk_interval u16 |
| 1800 | mk_time_to_max u16 |
| 1801 | mk_max_speed u16 |
| 1802 | mk_curve i16 |
| 1803 | ax_options u16 |
| 1804 | ax_timeout u16 |
| 1805 | axt_opts_mask u16 |
| 1806 | axt_opts_values u16 |
| 1807 | axt_ctrls_mask u32 |
| 1808 | axt_ctrls_values u32 |
| 1809 | per_key_repeat [32]u8 |
| 1810 | } |
| 1811 | |
| 1812 | pub type XkbControlsRec = C.XkbControlsRec |
| 1813 | |
| 1814 | pub type XkbControlsPtr = &XkbControlsRec |
| 1815 | |
| 1816 | @[typedef] |
| 1817 | pub struct C.XkbServerMapRec { |
| 1818 | pub mut: |
| 1819 | num_acts u16 |
| 1820 | size_acts u16 |
| 1821 | acts &XkbAction |
| 1822 | behaviors &XkbBehavior |
| 1823 | key_acts &u16 |
| 1824 | explicit &u8 |
| 1825 | vmods [16]u8 |
| 1826 | vmodmap &u16 |
| 1827 | } |
| 1828 | |
| 1829 | pub type XkbServerMapRec = C.XkbServerMapRec |
| 1830 | |
| 1831 | pub type XkbServerMapPtr = &XkbServerMapRec |
| 1832 | |
| 1833 | @[typedef] |
| 1834 | pub struct C.XkbSymMapRec { |
| 1835 | pub mut: |
| 1836 | kt_index [4]u8 |
| 1837 | group_info u8 |
| 1838 | width u8 |
| 1839 | offset u16 |
| 1840 | } |
| 1841 | |
| 1842 | pub type XkbSymMapRec = C.XkbSymMapRec |
| 1843 | |
| 1844 | pub type XkbSymMapPtr = &XkbSymMapRec |
| 1845 | |
| 1846 | @[typedef] |
| 1847 | pub struct C.XkbClientMapRec { |
| 1848 | pub mut: |
| 1849 | size_types u8 |
| 1850 | num_types u8 |
| 1851 | types XkbKeyTypePtr |
| 1852 | size_syms u16 |
| 1853 | num_syms u16 |
| 1854 | syms &KeySym |
| 1855 | key_sym_map XkbSymMapPtr |
| 1856 | modmap &u8 |
| 1857 | } |
| 1858 | |
| 1859 | pub type XkbClientMapRec = C.XkbClientMapRec |
| 1860 | |
| 1861 | pub type XkbClientMapPtr = &XkbClientMapRec |
| 1862 | |
| 1863 | @[typedef] |
| 1864 | pub struct C.XkbSymInterpretRec { |
| 1865 | pub mut: |
| 1866 | sym KeySym |
| 1867 | flags u8 |
| 1868 | @match u8 |
| 1869 | mods u8 |
| 1870 | virtual_mod u8 |
| 1871 | act XkbAnyAction |
| 1872 | } |
| 1873 | |
| 1874 | pub type XkbSymInterpretRec = C.XkbSymInterpretRec |
| 1875 | |
| 1876 | pub type XkbSymInterpretPtr = &XkbSymInterpretRec |
| 1877 | |
| 1878 | @[typedef] |
| 1879 | pub struct C.XkbCompatMapRec { |
| 1880 | pub mut: |
| 1881 | sym_interpret XkbSymInterpretPtr |
| 1882 | groups [4]XkbModsRec |
| 1883 | num_si u16 |
| 1884 | size_si u16 |
| 1885 | } |
| 1886 | |
| 1887 | pub type XkbCompatMapRec = C.XkbCompatMapRec |
| 1888 | |
| 1889 | pub type XkbCompatMapPtr = &XkbCompatMapRec |
| 1890 | |
| 1891 | @[typedef] |
| 1892 | pub struct C.XkbIndicatorMapRec { |
| 1893 | pub mut: |
| 1894 | flags u8 |
| 1895 | which_groups u8 |
| 1896 | groups u8 |
| 1897 | which_mods u8 |
| 1898 | mods XkbModsRec |
| 1899 | ctrls u32 |
| 1900 | } |
| 1901 | |
| 1902 | pub type XkbIndicatorMapRec = C.XkbIndicatorMapRec |
| 1903 | |
| 1904 | pub type XkbIndicatorMapPtr = &XkbIndicatorMapRec |
| 1905 | |
| 1906 | @[typedef] |
| 1907 | pub struct C.XkbIndicatorRec { |
| 1908 | pub mut: |
| 1909 | phys_indicators CULong |
| 1910 | maps [32]XkbIndicatorMapRec |
| 1911 | } |
| 1912 | |
| 1913 | pub type XkbIndicatorRec = C.XkbIndicatorRec |
| 1914 | |
| 1915 | pub type XkbIndicatorPtr = &XkbIndicatorRec |
| 1916 | |
| 1917 | @[typedef] |
| 1918 | pub struct C.XkbKeyNameRec { |
| 1919 | pub mut: |
| 1920 | name [4]char |
| 1921 | } |
| 1922 | |
| 1923 | pub type XkbKeyNameRec = C.XkbKeyNameRec |
| 1924 | |
| 1925 | pub type XkbKeyNamePtr = &XkbKeyNameRec |
| 1926 | |
| 1927 | @[typedef] |
| 1928 | pub struct C.XkbKeyAliasRec { |
| 1929 | pub mut: |
| 1930 | real [4]char |
| 1931 | alias [4]char |
| 1932 | } |
| 1933 | |
| 1934 | pub type XkbKeyAliasRec = C.XkbKeyAliasRec |
| 1935 | |
| 1936 | pub type XkbKeyAliasPtr = &XkbKeyAliasRec |
| 1937 | |
| 1938 | @[typedef] |
| 1939 | pub struct C.XkbNamesRec { |
| 1940 | pub mut: |
| 1941 | keycodes Atom |
| 1942 | geometry Atom |
| 1943 | symbols Atom |
| 1944 | types Atom |
| 1945 | compat Atom |
| 1946 | vmods [16]Atom |
| 1947 | indicators [32]Atom |
| 1948 | groups [4]Atom |
| 1949 | keys XkbKeyNamePtr |
| 1950 | key_aliases XkbKeyAliasPtr |
| 1951 | radio_groups &Atom |
| 1952 | phys_symbols Atom |
| 1953 | num_keys u8 |
| 1954 | num_key_aliases u8 |
| 1955 | num_rg u16 |
| 1956 | } |
| 1957 | |
| 1958 | pub type XkbNamesRec = C.XkbNamesRec |
| 1959 | |
| 1960 | pub type XkbNamesPtr = &XkbNamesRec |
| 1961 | |
| 1962 | pub type XkbGeometryPtr = voidptr |
| 1963 | |
| 1964 | @[typedef] |
| 1965 | pub struct C.XkbDescRec { |
| 1966 | pub mut: |
| 1967 | dpy &Display |
| 1968 | flags u16 |
| 1969 | device_spec u16 |
| 1970 | min_key_code KeyCode |
| 1971 | max_key_code KeyCode |
| 1972 | ctrls XkbControlsPtr |
| 1973 | server XkbServerMapPtr |
| 1974 | map XkbClientMapPtr |
| 1975 | indicators XkbIndicatorPtr |
| 1976 | names XkbNamesPtr |
| 1977 | compat XkbCompatMapPtr |
| 1978 | geom XkbGeometryPtr |
| 1979 | } |
| 1980 | |
| 1981 | pub type XkbDescRec = C.XkbDescRec |
| 1982 | |
| 1983 | pub type XkbDescPtr = &XkbDescRec |
| 1984 | |
| 1985 | @[typedef] |
| 1986 | pub struct C.XkbMapChangesRec { |
| 1987 | pub mut: |
| 1988 | changed u16 |
| 1989 | min_key_code KeyCode |
| 1990 | max_key_code KeyCode |
| 1991 | first_type u8 |
| 1992 | num_types u8 |
| 1993 | first_key_sym KeyCode |
| 1994 | num_key_syms u8 |
| 1995 | first_key_act KeyCode |
| 1996 | num_key_acts u8 |
| 1997 | first_key_behavior KeyCode |
| 1998 | num_key_behaviors u8 |
| 1999 | first_key_explicit KeyCode |
| 2000 | num_key_explicit u8 |
| 2001 | first_modmap_key KeyCode |
| 2002 | num_modmap_keys u8 |
| 2003 | first_vmodmap_key KeyCode |
| 2004 | num_vmodmap_keys u8 |
| 2005 | pad u8 |
| 2006 | vmods u16 |
| 2007 | } |
| 2008 | |
| 2009 | pub type XkbMapChangesRec = C.XkbMapChangesRec |
| 2010 | |
| 2011 | pub type XkbMapChangesPtr = &XkbMapChangesRec |
| 2012 | |
| 2013 | @[typedef] |
| 2014 | pub struct C.XkbControlsChangesRec { |
| 2015 | pub mut: |
| 2016 | changed_ctrls u32 |
| 2017 | enabled_ctrls_changes u32 |
| 2018 | num_groups_changed i32 |
| 2019 | } |
| 2020 | |
| 2021 | pub type XkbControlsChangesRec = C.XkbControlsChangesRec |
| 2022 | |
| 2023 | pub type XkbControlsChangesPtr = &XkbControlsChangesRec |
| 2024 | |
| 2025 | @[typedef] |
| 2026 | pub struct C.XkbIndicatorChangesRec { |
| 2027 | pub mut: |
| 2028 | state_changes u32 |
| 2029 | map_changes u32 |
| 2030 | } |
| 2031 | |
| 2032 | pub type XkbIndicatorChangesRec = C.XkbIndicatorChangesRec |
| 2033 | |
| 2034 | pub type XkbIndicatorChangesPtr = &XkbIndicatorChangesRec |
| 2035 | |
| 2036 | @[typedef] |
| 2037 | pub struct C.XkbNameChangesRec { |
| 2038 | pub mut: |
| 2039 | changed u32 |
| 2040 | first_type u8 |
| 2041 | num_types u8 |
| 2042 | first_lvl u8 |
| 2043 | num_lvls u8 |
| 2044 | num_aliases u8 |
| 2045 | num_rg u8 |
| 2046 | first_key u8 |
| 2047 | num_keys u8 |
| 2048 | changed_vmods u16 |
| 2049 | changed_indicators CULong |
| 2050 | changed_groups u8 |
| 2051 | } |
| 2052 | |
| 2053 | pub type XkbNameChangesRec = C.XkbNameChangesRec |
| 2054 | |
| 2055 | pub type XkbNameChangesPtr = &XkbNameChangesRec |
| 2056 | |
| 2057 | @[typedef] |
| 2058 | pub struct C.XkbCompatChangesRec { |
| 2059 | pub mut: |
| 2060 | changed_groups u8 |
| 2061 | first_si u16 |
| 2062 | num_si u16 |
| 2063 | } |
| 2064 | |
| 2065 | pub type XkbCompatChangesRec = C.XkbCompatChangesRec |
| 2066 | |
| 2067 | pub type XkbCompatChangesPtr = &XkbCompatChangesRec |
| 2068 | |
| 2069 | @[typedef] |
| 2070 | pub struct C.XkbChangesRec { |
| 2071 | pub mut: |
| 2072 | device_spec u16 |
| 2073 | state_changes u16 |
| 2074 | map XkbMapChangesRec |
| 2075 | ctrls XkbControlsChangesRec |
| 2076 | indicators XkbIndicatorChangesRec |
| 2077 | names XkbNameChangesRec |
| 2078 | compat XkbCompatChangesRec |
| 2079 | } |
| 2080 | |
| 2081 | pub type XkbChangesRec = C.XkbChangesRec |
| 2082 | |
| 2083 | pub type XkbChangesPtr = &XkbChangesRec |
| 2084 | |
| 2085 | @[typedef] |
| 2086 | pub struct C.XkbComponentNamesRec { |
| 2087 | pub mut: |
| 2088 | keymap &char |
| 2089 | keycodes &char |
| 2090 | types &char |
| 2091 | compat &char |
| 2092 | symbols &char |
| 2093 | geometry &char |
| 2094 | } |
| 2095 | |
| 2096 | pub type XkbComponentNamesRec = C.XkbComponentNamesRec |
| 2097 | |
| 2098 | pub type XkbComponentNamesPtr = &XkbComponentNamesRec |
| 2099 | |
| 2100 | @[typedef] |
| 2101 | pub struct C.XkbComponentNameRec { |
| 2102 | pub mut: |
| 2103 | flags u16 |
| 2104 | name &char |
| 2105 | } |
| 2106 | |
| 2107 | pub type XkbComponentNameRec = C.XkbComponentNameRec |
| 2108 | |
| 2109 | pub type XkbComponentNamePtr = &XkbComponentNameRec |
| 2110 | |
| 2111 | @[typedef] |
| 2112 | pub struct C.XkbComponentListRec { |
| 2113 | pub mut: |
| 2114 | num_keymaps i32 |
| 2115 | num_keycodes i32 |
| 2116 | num_types i32 |
| 2117 | num_compat i32 |
| 2118 | num_symbols i32 |
| 2119 | num_geometry i32 |
| 2120 | keymaps XkbComponentNamePtr |
| 2121 | keycodes XkbComponentNamePtr |
| 2122 | types XkbComponentNamePtr |
| 2123 | compat XkbComponentNamePtr |
| 2124 | symbols XkbComponentNamePtr |
| 2125 | geometry XkbComponentNamePtr |
| 2126 | } |
| 2127 | |
| 2128 | pub type XkbComponentListRec = C.XkbComponentListRec |
| 2129 | |
| 2130 | pub type XkbComponentListPtr = &XkbComponentListRec |
| 2131 | |
| 2132 | @[typedef] |
| 2133 | pub struct C.XkbDeviceLedInfoRec { |
| 2134 | pub mut: |
| 2135 | led_class u16 |
| 2136 | led_id u16 |
| 2137 | phys_indicators u32 |
| 2138 | maps_present u32 |
| 2139 | names_present u32 |
| 2140 | state u32 |
| 2141 | names [32]Atom |
| 2142 | maps [32]XkbIndicatorMapRec |
| 2143 | } |
| 2144 | |
| 2145 | pub type XkbDeviceLedInfoRec = C.XkbDeviceLedInfoRec |
| 2146 | |
| 2147 | pub type XkbDeviceLedInfoPtr = &XkbDeviceLedInfoRec |
| 2148 | |
| 2149 | @[typedef] |
| 2150 | pub struct C.XkbDeviceInfoRec { |
| 2151 | pub mut: |
| 2152 | name &char |
| 2153 | @type Atom |
| 2154 | device_spec u16 |
| 2155 | has_own_state i32 |
| 2156 | supported u16 |
| 2157 | unsupported u16 |
| 2158 | num_btns u16 |
| 2159 | btn_acts &XkbAction |
| 2160 | sz_leds u16 |
| 2161 | num_leds u16 |
| 2162 | dflt_kbd_fb u16 |
| 2163 | dflt_led_fb u16 |
| 2164 | leds XkbDeviceLedInfoPtr |
| 2165 | } |
| 2166 | |
| 2167 | pub type XkbDeviceInfoRec = C.XkbDeviceInfoRec |
| 2168 | |
| 2169 | pub type XkbDeviceInfoPtr = &XkbDeviceInfoRec |
| 2170 | |
| 2171 | @[typedef] |
| 2172 | pub struct C.XkbDeviceLedChangesRec { |
| 2173 | pub mut: |
| 2174 | led_class u16 |
| 2175 | led_id u16 |
| 2176 | defined u32 |
| 2177 | next &XkbDeviceLedChangesRec |
| 2178 | } |
| 2179 | |
| 2180 | pub type XkbDeviceLedChangesRec = C.XkbDeviceLedChangesRec |
| 2181 | |
| 2182 | pub type XkbDeviceLedChangesPtr = &XkbDeviceLedChangesRec |
| 2183 | |
| 2184 | @[typedef] |
| 2185 | pub struct C.XkbDeviceChangesRec { |
| 2186 | pub mut: |
| 2187 | changed u32 |
| 2188 | first_btn u16 |
| 2189 | num_btns u16 |
| 2190 | leds XkbDeviceLedChangesRec |
| 2191 | } |
| 2192 | |
| 2193 | pub type XkbDeviceChangesRec = C.XkbDeviceChangesRec |
| 2194 | |
| 2195 | pub type XkbDeviceChangesPtr = &XkbDeviceChangesRec |
| 2196 | |
| 2197 | @[typedef] |
| 2198 | pub struct C.XkbAnyEvent { |
| 2199 | pub mut: |
| 2200 | @type i32 |
| 2201 | serial CULong |
| 2202 | send_event i32 |
| 2203 | display &Display |
| 2204 | time Time |
| 2205 | xkb_type i32 |
| 2206 | device u32 |
| 2207 | } |
| 2208 | |
| 2209 | pub type XkbAnyEvent = C.XkbAnyEvent |
| 2210 | |
| 2211 | @[typedef] |
| 2212 | pub struct C.XkbNewKeyboardNotifyEvent { |
| 2213 | pub mut: |
| 2214 | @type i32 |
| 2215 | serial CULong |
| 2216 | send_event i32 |
| 2217 | display &Display |
| 2218 | time Time |
| 2219 | xkb_type i32 |
| 2220 | device i32 |
| 2221 | old_device i32 |
| 2222 | min_key_code i32 |
| 2223 | max_key_code i32 |
| 2224 | old_min_key_code i32 |
| 2225 | old_max_key_code i32 |
| 2226 | changed u32 |
| 2227 | req_major char |
| 2228 | req_minor char |
| 2229 | } |
| 2230 | |
| 2231 | pub type XkbNewKeyboardNotifyEvent = C.XkbNewKeyboardNotifyEvent |
| 2232 | |
| 2233 | @[typedef] |
| 2234 | pub struct C.XkbMapNotifyEvent { |
| 2235 | pub mut: |
| 2236 | @type i32 |
| 2237 | serial CULong |
| 2238 | send_event i32 |
| 2239 | display &Display |
| 2240 | time Time |
| 2241 | xkb_type i32 |
| 2242 | device i32 |
| 2243 | changed u32 |
| 2244 | flags u32 |
| 2245 | first_type i32 |
| 2246 | num_types i32 |
| 2247 | min_key_code KeyCode |
| 2248 | max_key_code KeyCode |
| 2249 | first_key_sym KeyCode |
| 2250 | first_key_act KeyCode |
| 2251 | first_key_behavior KeyCode |
| 2252 | first_key_explicit KeyCode |
| 2253 | first_modmap_key KeyCode |
| 2254 | first_vmodmap_key KeyCode |
| 2255 | num_key_syms i32 |
| 2256 | num_key_acts i32 |
| 2257 | num_key_behaviors i32 |
| 2258 | num_key_explicit i32 |
| 2259 | num_modmap_keys i32 |
| 2260 | num_vmodmap_keys i32 |
| 2261 | vmods u32 |
| 2262 | } |
| 2263 | |
| 2264 | pub type XkbMapNotifyEvent = C.XkbMapNotifyEvent |
| 2265 | |
| 2266 | @[typedef] |
| 2267 | pub struct C.XkbStateNotifyEvent { |
| 2268 | pub mut: |
| 2269 | @type i32 |
| 2270 | serial CULong |
| 2271 | send_event i32 |
| 2272 | display &Display |
| 2273 | time Time |
| 2274 | xkb_type i32 |
| 2275 | device i32 |
| 2276 | changed u32 |
| 2277 | group i32 |
| 2278 | base_group i32 |
| 2279 | latched_group i32 |
| 2280 | locked_group i32 |
| 2281 | mods u32 |
| 2282 | base_mods u32 |
| 2283 | latched_mods u32 |
| 2284 | locked_mods u32 |
| 2285 | compat_state i32 |
| 2286 | grab_mods u8 |
| 2287 | compat_grab_mods u8 |
| 2288 | lookup_mods u8 |
| 2289 | compat_lookup_mods u8 |
| 2290 | ptr_buttons i32 |
| 2291 | keycode KeyCode |
| 2292 | event_type char |
| 2293 | req_major char |
| 2294 | req_minor char |
| 2295 | } |
| 2296 | |
| 2297 | pub type XkbStateNotifyEvent = C.XkbStateNotifyEvent |
| 2298 | |
| 2299 | @[typedef] |
| 2300 | pub struct C.XkbControlsNotifyEvent { |
| 2301 | pub mut: |
| 2302 | @type i32 |
| 2303 | serial CULong |
| 2304 | send_event i32 |
| 2305 | display &Display |
| 2306 | time Time |
| 2307 | xkb_type i32 |
| 2308 | device i32 |
| 2309 | changed_ctrls u32 |
| 2310 | enabled_ctrls u32 |
| 2311 | enabled_ctrl_changes u32 |
| 2312 | num_groups i32 |
| 2313 | keycode KeyCode |
| 2314 | event_type char |
| 2315 | req_major char |
| 2316 | req_minor char |
| 2317 | } |
| 2318 | |
| 2319 | pub type XkbControlsNotifyEvent = C.XkbControlsNotifyEvent |
| 2320 | |
| 2321 | @[typedef] |
| 2322 | pub struct C.XkbIndicatorNotifyEvent { |
| 2323 | pub mut: |
| 2324 | @type i32 |
| 2325 | serial CULong |
| 2326 | send_event i32 |
| 2327 | display &Display |
| 2328 | time Time |
| 2329 | xkb_type i32 |
| 2330 | device i32 |
| 2331 | changed u32 |
| 2332 | state u32 |
| 2333 | } |
| 2334 | |
| 2335 | pub type XkbIndicatorNotifyEvent = C.XkbIndicatorNotifyEvent |
| 2336 | |
| 2337 | @[typedef] |
| 2338 | pub struct C.XkbNamesNotifyEvent { |
| 2339 | pub mut: |
| 2340 | @type i32 |
| 2341 | serial CULong |
| 2342 | send_event i32 |
| 2343 | display &Display |
| 2344 | time Time |
| 2345 | xkb_type i32 |
| 2346 | device i32 |
| 2347 | changed u32 |
| 2348 | first_type i32 |
| 2349 | num_types i32 |
| 2350 | first_lvl i32 |
| 2351 | num_lvls i32 |
| 2352 | num_aliases i32 |
| 2353 | num_radio_groups i32 |
| 2354 | changed_vmods u32 |
| 2355 | changed_groups u32 |
| 2356 | changed_indicators u32 |
| 2357 | first_key i32 |
| 2358 | num_keys i32 |
| 2359 | } |
| 2360 | |
| 2361 | pub type XkbNamesNotifyEvent = C.XkbNamesNotifyEvent |
| 2362 | |
| 2363 | @[typedef] |
| 2364 | pub struct C.XkbCompatMapNotifyEvent { |
| 2365 | pub mut: |
| 2366 | @type i32 |
| 2367 | serial CULong |
| 2368 | send_event i32 |
| 2369 | display &Display |
| 2370 | time Time |
| 2371 | xkb_type i32 |
| 2372 | device i32 |
| 2373 | changed_groups u32 |
| 2374 | first_si i32 |
| 2375 | num_si i32 |
| 2376 | num_total_si i32 |
| 2377 | } |
| 2378 | |
| 2379 | pub type XkbCompatMapNotifyEvent = C.XkbCompatMapNotifyEvent |
| 2380 | |
| 2381 | @[typedef] |
| 2382 | pub struct C.XkbBellNotifyEvent { |
| 2383 | pub mut: |
| 2384 | @type i32 |
| 2385 | serial CULong |
| 2386 | send_event i32 |
| 2387 | display &Display |
| 2388 | time Time |
| 2389 | xkb_type i32 |
| 2390 | device i32 |
| 2391 | percent i32 |
| 2392 | pitch i32 |
| 2393 | duration i32 |
| 2394 | bell_class i32 |
| 2395 | bell_id i32 |
| 2396 | name Atom |
| 2397 | window Window |
| 2398 | event_only i32 |
| 2399 | } |
| 2400 | |
| 2401 | pub type XkbBellNotifyEvent = C.XkbBellNotifyEvent |
| 2402 | |
| 2403 | @[typedef] |
| 2404 | pub struct C.XkbActionMessageEvent { |
| 2405 | pub mut: |
| 2406 | @type i32 |
| 2407 | serial CULong |
| 2408 | send_event i32 |
| 2409 | display &Display |
| 2410 | time Time |
| 2411 | xkb_type i32 |
| 2412 | device i32 |
| 2413 | keycode KeyCode |
| 2414 | press i32 |
| 2415 | key_event_follows i32 |
| 2416 | group i32 |
| 2417 | mods u32 |
| 2418 | message [7]char |
| 2419 | } |
| 2420 | |
| 2421 | pub type XkbActionMessageEvent = C.XkbActionMessageEvent |
| 2422 | |
| 2423 | @[typedef] |
| 2424 | pub struct C.XkbAccessXNotifyEvent { |
| 2425 | pub mut: |
| 2426 | @type i32 |
| 2427 | serial CULong |
| 2428 | send_event i32 |
| 2429 | display &Display |
| 2430 | time Time |
| 2431 | xkb_type i32 |
| 2432 | device i32 |
| 2433 | detail i32 |
| 2434 | keycode i32 |
| 2435 | sk_delay i32 |
| 2436 | debounce_delay i32 |
| 2437 | } |
| 2438 | |
| 2439 | pub type XkbAccessXNotifyEvent = C.XkbAccessXNotifyEvent |
| 2440 | |
| 2441 | @[typedef] |
| 2442 | pub struct C.XkbExtensionDeviceNotifyEvent { |
| 2443 | pub mut: |
| 2444 | @type i32 |
| 2445 | serial CULong |
| 2446 | send_event i32 |
| 2447 | display &Display |
| 2448 | time Time |
| 2449 | xkb_type i32 |
| 2450 | device i32 |
| 2451 | reason u32 |
| 2452 | supported u32 |
| 2453 | unsupported u32 |
| 2454 | first_btn i32 |
| 2455 | num_btns i32 |
| 2456 | leds_defined u32 |
| 2457 | led_state u32 |
| 2458 | led_class i32 |
| 2459 | led_id i32 |
| 2460 | } |
| 2461 | |
| 2462 | pub type XkbExtensionDeviceNotifyEvent = C.XkbExtensionDeviceNotifyEvent |
| 2463 | |
| 2464 | @[typedef] |
| 2465 | pub union C.XkbEvent { |
| 2466 | pub mut: |
| 2467 | @type i32 |
| 2468 | any XkbAnyEvent |
| 2469 | new_kbd XkbNewKeyboardNotifyEvent |
| 2470 | map XkbMapNotifyEvent |
| 2471 | state XkbStateNotifyEvent |
| 2472 | ctrls XkbControlsNotifyEvent |
| 2473 | indicators XkbIndicatorNotifyEvent |
| 2474 | names XkbNamesNotifyEvent |
| 2475 | compat XkbCompatMapNotifyEvent |
| 2476 | bell XkbBellNotifyEvent |
| 2477 | message XkbActionMessageEvent |
| 2478 | accessx XkbAccessXNotifyEvent |
| 2479 | device XkbExtensionDeviceNotifyEvent |
| 2480 | core XEvent |
| 2481 | } |
| 2482 | |
| 2483 | pub type XkbEvent = C.XkbEvent |
| 2484 | |
| 2485 | @[typedef] |
| 2486 | pub struct C.XkbKbdDpyStateRec { |
| 2487 | } |
| 2488 | |
| 2489 | pub type XkbKbdDpyStateRec = C.XkbKbdDpyStateRec |
| 2490 | |
| 2491 | pub type XkbKbdDpyStatePtr = &XkbKbdDpyStateRec |
| 2492 | |
| 2493 | pub type XkbInternAtomFunc = fn (&Display, &char, i32) Atom |
| 2494 | |
| 2495 | pub type XkbGetAtomNameFunc = fn (&Display, Atom) &char |
| 2496 | |