1 /* 2 * This file generated automatically from xfixes.xml by d_client.py. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_XFixes_API XCB XFixes API 8 * @brief XFixes XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 module xcb.xfixes; 13 14 import xcb.xcb; 15 import xcb.xproto; 16 import xcb.render; 17 import xcb.shape; 18 19 extern (C): 20 21 enum int XCB_XFIXES_MAJOR_VERSION = 5; 22 enum int XCB_XFIXES_MINOR_VERSION = 0; 23 24 extern (C) __gshared extern xcb_extension_t xcb_xfixes_id; 25 26 /** 27 * @brief xcb_xfixes_query_version_cookie_t 28 **/ 29 struct xcb_xfixes_query_version_cookie_t { 30 uint sequence; /**< */ 31 } 32 33 /** Opcode for xcb_xfixes_query_version. */ 34 enum XCB_XFIXES_QUERY_VERSION = 0; 35 36 /** 37 * @brief xcb_xfixes_query_version_request_t 38 **/ 39 struct xcb_xfixes_query_version_request_t { 40 ubyte major_opcode; /**< */ 41 ubyte minor_opcode; /**< */ 42 ushort length; /**< */ 43 uint client_major_version; /**< */ 44 uint client_minor_version; /**< */ 45 } 46 47 /** 48 * @brief xcb_xfixes_query_version_reply_t 49 **/ 50 struct xcb_xfixes_query_version_reply_t { 51 ubyte response_type; /**< */ 52 ubyte pad0; /**< */ 53 ushort sequence; /**< */ 54 uint length; /**< */ 55 uint major_version; /**< */ 56 uint minor_version; /**< */ 57 ubyte[16] pad1; /**< */ 58 } 59 60 enum xcb_xfixes_save_set_mode_t { 61 XCB_XFIXES_SAVE_SET_MODE_INSERT = 0, 62 XCB_XFIXES_SAVE_SET_MODE_DELETE = 1 63 } 64 65 alias XCB_XFIXES_SAVE_SET_MODE_INSERT = xcb_xfixes_save_set_mode_t.XCB_XFIXES_SAVE_SET_MODE_INSERT; 66 alias XCB_XFIXES_SAVE_SET_MODE_DELETE = xcb_xfixes_save_set_mode_t.XCB_XFIXES_SAVE_SET_MODE_DELETE; 67 68 enum xcb_xfixes_save_set_target_t { 69 XCB_XFIXES_SAVE_SET_TARGET_NEAREST = 0, 70 XCB_XFIXES_SAVE_SET_TARGET_ROOT = 1 71 } 72 73 alias XCB_XFIXES_SAVE_SET_TARGET_NEAREST = xcb_xfixes_save_set_target_t.XCB_XFIXES_SAVE_SET_TARGET_NEAREST; 74 alias XCB_XFIXES_SAVE_SET_TARGET_ROOT = xcb_xfixes_save_set_target_t.XCB_XFIXES_SAVE_SET_TARGET_ROOT; 75 76 enum xcb_xfixes_save_set_mapping_t { 77 XCB_XFIXES_SAVE_SET_MAPPING_MAP = 0, 78 XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = 1 79 } 80 81 alias XCB_XFIXES_SAVE_SET_MAPPING_MAP = xcb_xfixes_save_set_mapping_t.XCB_XFIXES_SAVE_SET_MAPPING_MAP; 82 alias XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = xcb_xfixes_save_set_mapping_t.XCB_XFIXES_SAVE_SET_MAPPING_UNMAP; 83 84 /** Opcode for xcb_xfixes_change_save_set. */ 85 enum XCB_XFIXES_CHANGE_SAVE_SET = 1; 86 87 /** 88 * @brief xcb_xfixes_change_save_set_request_t 89 **/ 90 struct xcb_xfixes_change_save_set_request_t { 91 ubyte major_opcode; /**< */ 92 ubyte minor_opcode; /**< */ 93 ushort length; /**< */ 94 ubyte mode; /**< */ 95 ubyte target; /**< */ 96 ubyte map; /**< */ 97 ubyte pad0; /**< */ 98 xcb_window_t window; /**< */ 99 } 100 101 enum xcb_xfixes_selection_event_t { 102 XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = 0, 103 XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = 1, 104 XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = 2 105 } 106 107 alias XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = xcb_xfixes_selection_event_t.XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER; 108 alias XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = xcb_xfixes_selection_event_t.XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY; 109 alias XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = xcb_xfixes_selection_event_t.XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE; 110 111 enum xcb_xfixes_selection_event_mask_t { 112 XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = 1, 113 XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = 2, 114 XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = 4 115 } 116 117 alias XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = xcb_xfixes_selection_event_mask_t.XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER; 118 alias XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = xcb_xfixes_selection_event_mask_t.XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY; 119 alias XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = xcb_xfixes_selection_event_mask_t.XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE; 120 121 /** Opcode for xcb_xfixes_selection_notify. */ 122 enum XCB_XFIXES_SELECTION_NOTIFY = 0; 123 124 /** 125 * @brief xcb_xfixes_selection_notify_event_t 126 **/ 127 struct xcb_xfixes_selection_notify_event_t { 128 ubyte response_type; /**< */ 129 ubyte subtype; /**< */ 130 ushort sequence; /**< */ 131 xcb_window_t window; /**< */ 132 xcb_window_t owner; /**< */ 133 xcb_atom_t selection; /**< */ 134 xcb_timestamp_t timestamp; /**< */ 135 xcb_timestamp_t selection_timestamp; /**< */ 136 ubyte[8] pad0; /**< */ 137 } 138 139 /** Opcode for xcb_xfixes_select_selection_input. */ 140 enum XCB_XFIXES_SELECT_SELECTION_INPUT = 2; 141 142 /** 143 * @brief xcb_xfixes_select_selection_input_request_t 144 **/ 145 struct xcb_xfixes_select_selection_input_request_t { 146 ubyte major_opcode; /**< */ 147 ubyte minor_opcode; /**< */ 148 ushort length; /**< */ 149 xcb_window_t window; /**< */ 150 xcb_atom_t selection; /**< */ 151 uint event_mask; /**< */ 152 } 153 154 enum xcb_xfixes_cursor_notify_t { 155 XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = 0 156 } 157 158 alias XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = xcb_xfixes_cursor_notify_t.XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR; 159 160 enum xcb_xfixes_cursor_notify_mask_t { 161 XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = 1 162 } 163 164 alias XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = xcb_xfixes_cursor_notify_mask_t.XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR; 165 166 /** Opcode for xcb_xfixes_cursor_notify. */ 167 enum XCB_XFIXES_CURSOR_NOTIFY = 1; 168 169 /** 170 * @brief xcb_xfixes_cursor_notify_event_t 171 **/ 172 struct xcb_xfixes_cursor_notify_event_t { 173 ubyte response_type; /**< */ 174 ubyte subtype; /**< */ 175 ushort sequence; /**< */ 176 xcb_window_t window; /**< */ 177 uint cursor_serial; /**< */ 178 xcb_timestamp_t timestamp; /**< */ 179 xcb_atom_t name; /**< */ 180 ubyte[12] pad0; /**< */ 181 } 182 183 /** Opcode for xcb_xfixes_select_cursor_input. */ 184 enum XCB_XFIXES_SELECT_CURSOR_INPUT = 3; 185 186 /** 187 * @brief xcb_xfixes_select_cursor_input_request_t 188 **/ 189 struct xcb_xfixes_select_cursor_input_request_t { 190 ubyte major_opcode; /**< */ 191 ubyte minor_opcode; /**< */ 192 ushort length; /**< */ 193 xcb_window_t window; /**< */ 194 uint event_mask; /**< */ 195 } 196 197 /** 198 * @brief xcb_xfixes_get_cursor_image_cookie_t 199 **/ 200 struct xcb_xfixes_get_cursor_image_cookie_t { 201 uint sequence; /**< */ 202 } 203 204 /** Opcode for xcb_xfixes_get_cursor_image. */ 205 enum XCB_XFIXES_GET_CURSOR_IMAGE = 4; 206 207 /** 208 * @brief xcb_xfixes_get_cursor_image_request_t 209 **/ 210 struct xcb_xfixes_get_cursor_image_request_t { 211 ubyte major_opcode; /**< */ 212 ubyte minor_opcode; /**< */ 213 ushort length; /**< */ 214 } 215 216 /** 217 * @brief xcb_xfixes_get_cursor_image_reply_t 218 **/ 219 struct xcb_xfixes_get_cursor_image_reply_t { 220 ubyte response_type; /**< */ 221 ubyte pad0; /**< */ 222 ushort sequence; /**< */ 223 uint length; /**< */ 224 short x; /**< */ 225 short y; /**< */ 226 ushort width; /**< */ 227 ushort height; /**< */ 228 ushort xhot; /**< */ 229 ushort yhot; /**< */ 230 uint cursor_serial; /**< */ 231 ubyte[8] pad1; /**< */ 232 } 233 234 alias xcb_xfixes_region_t = uint; 235 236 /** 237 * @brief xcb_xfixes_region_iterator_t 238 **/ 239 struct xcb_xfixes_region_iterator_t { 240 xcb_xfixes_region_t* data; /**< */ 241 int rem; /**< */ 242 int index; /**< */ 243 } 244 245 /** Opcode for xcb_xfixes_bad_region. */ 246 enum XCB_XFIXES_BAD_REGION = 0; 247 248 /** 249 * @brief xcb_xfixes_bad_region_error_t 250 **/ 251 struct xcb_xfixes_bad_region_error_t { 252 ubyte response_type; /**< */ 253 ubyte error_code; /**< */ 254 ushort sequence; /**< */ 255 } 256 257 enum xcb_xfixes_region_enum_t { 258 XCB_XFIXES_REGION_NONE = 0 259 } 260 261 alias XCB_XFIXES_REGION_NONE = xcb_xfixes_region_enum_t.XCB_XFIXES_REGION_NONE; 262 263 /** Opcode for xcb_xfixes_create_region. */ 264 enum XCB_XFIXES_CREATE_REGION = 5; 265 266 /** 267 * @brief xcb_xfixes_create_region_request_t 268 **/ 269 struct xcb_xfixes_create_region_request_t { 270 ubyte major_opcode; /**< */ 271 ubyte minor_opcode; /**< */ 272 ushort length; /**< */ 273 xcb_xfixes_region_t region; /**< */ 274 } 275 276 /** Opcode for xcb_xfixes_create_region_from_bitmap. */ 277 enum XCB_XFIXES_CREATE_REGION_FROM_BITMAP = 6; 278 279 /** 280 * @brief xcb_xfixes_create_region_from_bitmap_request_t 281 **/ 282 struct xcb_xfixes_create_region_from_bitmap_request_t { 283 ubyte major_opcode; /**< */ 284 ubyte minor_opcode; /**< */ 285 ushort length; /**< */ 286 xcb_xfixes_region_t region; /**< */ 287 xcb_pixmap_t bitmap; /**< */ 288 } 289 290 /** Opcode for xcb_xfixes_create_region_from_window. */ 291 enum XCB_XFIXES_CREATE_REGION_FROM_WINDOW = 7; 292 293 /** 294 * @brief xcb_xfixes_create_region_from_window_request_t 295 **/ 296 struct xcb_xfixes_create_region_from_window_request_t { 297 ubyte major_opcode; /**< */ 298 ubyte minor_opcode; /**< */ 299 ushort length; /**< */ 300 xcb_xfixes_region_t region; /**< */ 301 xcb_window_t window; /**< */ 302 xcb_shape_kind_t kind; /**< */ 303 ubyte[3] pad0; /**< */ 304 } 305 306 /** Opcode for xcb_xfixes_create_region_from_gc. */ 307 enum XCB_XFIXES_CREATE_REGION_FROM_GC = 8; 308 309 /** 310 * @brief xcb_xfixes_create_region_from_gc_request_t 311 **/ 312 struct xcb_xfixes_create_region_from_gc_request_t { 313 ubyte major_opcode; /**< */ 314 ubyte minor_opcode; /**< */ 315 ushort length; /**< */ 316 xcb_xfixes_region_t region; /**< */ 317 xcb_gcontext_t gc; /**< */ 318 } 319 320 /** Opcode for xcb_xfixes_create_region_from_picture. */ 321 enum XCB_XFIXES_CREATE_REGION_FROM_PICTURE = 9; 322 323 /** 324 * @brief xcb_xfixes_create_region_from_picture_request_t 325 **/ 326 struct xcb_xfixes_create_region_from_picture_request_t { 327 ubyte major_opcode; /**< */ 328 ubyte minor_opcode; /**< */ 329 ushort length; /**< */ 330 xcb_xfixes_region_t region; /**< */ 331 xcb_render_picture_t picture; /**< */ 332 } 333 334 /** Opcode for xcb_xfixes_destroy_region. */ 335 enum XCB_XFIXES_DESTROY_REGION = 10; 336 337 /** 338 * @brief xcb_xfixes_destroy_region_request_t 339 **/ 340 struct xcb_xfixes_destroy_region_request_t { 341 ubyte major_opcode; /**< */ 342 ubyte minor_opcode; /**< */ 343 ushort length; /**< */ 344 xcb_xfixes_region_t region; /**< */ 345 } 346 347 /** Opcode for xcb_xfixes_set_region. */ 348 enum XCB_XFIXES_SET_REGION = 11; 349 350 /** 351 * @brief xcb_xfixes_set_region_request_t 352 **/ 353 struct xcb_xfixes_set_region_request_t { 354 ubyte major_opcode; /**< */ 355 ubyte minor_opcode; /**< */ 356 ushort length; /**< */ 357 xcb_xfixes_region_t region; /**< */ 358 } 359 360 /** Opcode for xcb_xfixes_copy_region. */ 361 enum XCB_XFIXES_COPY_REGION = 12; 362 363 /** 364 * @brief xcb_xfixes_copy_region_request_t 365 **/ 366 struct xcb_xfixes_copy_region_request_t { 367 ubyte major_opcode; /**< */ 368 ubyte minor_opcode; /**< */ 369 ushort length; /**< */ 370 xcb_xfixes_region_t source; /**< */ 371 xcb_xfixes_region_t destination; /**< */ 372 } 373 374 /** Opcode for xcb_xfixes_union_region. */ 375 enum XCB_XFIXES_UNION_REGION = 13; 376 377 /** 378 * @brief xcb_xfixes_union_region_request_t 379 **/ 380 struct xcb_xfixes_union_region_request_t { 381 ubyte major_opcode; /**< */ 382 ubyte minor_opcode; /**< */ 383 ushort length; /**< */ 384 xcb_xfixes_region_t source1; /**< */ 385 xcb_xfixes_region_t source2; /**< */ 386 xcb_xfixes_region_t destination; /**< */ 387 } 388 389 /** Opcode for xcb_xfixes_intersect_region. */ 390 enum XCB_XFIXES_INTERSECT_REGION = 14; 391 392 /** 393 * @brief xcb_xfixes_intersect_region_request_t 394 **/ 395 struct xcb_xfixes_intersect_region_request_t { 396 ubyte major_opcode; /**< */ 397 ubyte minor_opcode; /**< */ 398 ushort length; /**< */ 399 xcb_xfixes_region_t source1; /**< */ 400 xcb_xfixes_region_t source2; /**< */ 401 xcb_xfixes_region_t destination; /**< */ 402 } 403 404 /** Opcode for xcb_xfixes_subtract_region. */ 405 enum XCB_XFIXES_SUBTRACT_REGION = 15; 406 407 /** 408 * @brief xcb_xfixes_subtract_region_request_t 409 **/ 410 struct xcb_xfixes_subtract_region_request_t { 411 ubyte major_opcode; /**< */ 412 ubyte minor_opcode; /**< */ 413 ushort length; /**< */ 414 xcb_xfixes_region_t source1; /**< */ 415 xcb_xfixes_region_t source2; /**< */ 416 xcb_xfixes_region_t destination; /**< */ 417 } 418 419 /** Opcode for xcb_xfixes_invert_region. */ 420 enum XCB_XFIXES_INVERT_REGION = 16; 421 422 /** 423 * @brief xcb_xfixes_invert_region_request_t 424 **/ 425 struct xcb_xfixes_invert_region_request_t { 426 ubyte major_opcode; /**< */ 427 ubyte minor_opcode; /**< */ 428 ushort length; /**< */ 429 xcb_xfixes_region_t source; /**< */ 430 xcb_rectangle_t bounds; /**< */ 431 xcb_xfixes_region_t destination; /**< */ 432 } 433 434 /** Opcode for xcb_xfixes_translate_region. */ 435 enum XCB_XFIXES_TRANSLATE_REGION = 17; 436 437 /** 438 * @brief xcb_xfixes_translate_region_request_t 439 **/ 440 struct xcb_xfixes_translate_region_request_t { 441 ubyte major_opcode; /**< */ 442 ubyte minor_opcode; /**< */ 443 ushort length; /**< */ 444 xcb_xfixes_region_t region; /**< */ 445 short dx; /**< */ 446 short dy; /**< */ 447 } 448 449 /** Opcode for xcb_xfixes_region_extents. */ 450 enum XCB_XFIXES_REGION_EXTENTS = 18; 451 452 /** 453 * @brief xcb_xfixes_region_extents_request_t 454 **/ 455 struct xcb_xfixes_region_extents_request_t { 456 ubyte major_opcode; /**< */ 457 ubyte minor_opcode; /**< */ 458 ushort length; /**< */ 459 xcb_xfixes_region_t source; /**< */ 460 xcb_xfixes_region_t destination; /**< */ 461 } 462 463 /** 464 * @brief xcb_xfixes_fetch_region_cookie_t 465 **/ 466 struct xcb_xfixes_fetch_region_cookie_t { 467 uint sequence; /**< */ 468 } 469 470 /** Opcode for xcb_xfixes_fetch_region. */ 471 enum XCB_XFIXES_FETCH_REGION = 19; 472 473 /** 474 * @brief xcb_xfixes_fetch_region_request_t 475 **/ 476 struct xcb_xfixes_fetch_region_request_t { 477 ubyte major_opcode; /**< */ 478 ubyte minor_opcode; /**< */ 479 ushort length; /**< */ 480 xcb_xfixes_region_t region; /**< */ 481 } 482 483 /** 484 * @brief xcb_xfixes_fetch_region_reply_t 485 **/ 486 struct xcb_xfixes_fetch_region_reply_t { 487 ubyte response_type; /**< */ 488 ubyte pad0; /**< */ 489 ushort sequence; /**< */ 490 uint length; /**< */ 491 xcb_rectangle_t extents; /**< */ 492 ubyte[16] pad1; /**< */ 493 } 494 495 /** Opcode for xcb_xfixes_set_gc_clip_region. */ 496 enum XCB_XFIXES_SET_GC_CLIP_REGION = 20; 497 498 /** 499 * @brief xcb_xfixes_set_gc_clip_region_request_t 500 **/ 501 struct xcb_xfixes_set_gc_clip_region_request_t { 502 ubyte major_opcode; /**< */ 503 ubyte minor_opcode; /**< */ 504 ushort length; /**< */ 505 xcb_gcontext_t gc; /**< */ 506 xcb_xfixes_region_t region; /**< */ 507 short x_origin; /**< */ 508 short y_origin; /**< */ 509 } 510 511 /** Opcode for xcb_xfixes_set_window_shape_region. */ 512 enum XCB_XFIXES_SET_WINDOW_SHAPE_REGION = 21; 513 514 /** 515 * @brief xcb_xfixes_set_window_shape_region_request_t 516 **/ 517 struct xcb_xfixes_set_window_shape_region_request_t { 518 ubyte major_opcode; /**< */ 519 ubyte minor_opcode; /**< */ 520 ushort length; /**< */ 521 xcb_window_t dest; /**< */ 522 xcb_shape_kind_t dest_kind; /**< */ 523 ubyte[3] pad0; /**< */ 524 short x_offset; /**< */ 525 short y_offset; /**< */ 526 xcb_xfixes_region_t region; /**< */ 527 } 528 529 /** Opcode for xcb_xfixes_set_picture_clip_region. */ 530 enum XCB_XFIXES_SET_PICTURE_CLIP_REGION = 22; 531 532 /** 533 * @brief xcb_xfixes_set_picture_clip_region_request_t 534 **/ 535 struct xcb_xfixes_set_picture_clip_region_request_t { 536 ubyte major_opcode; /**< */ 537 ubyte minor_opcode; /**< */ 538 ushort length; /**< */ 539 xcb_render_picture_t picture; /**< */ 540 xcb_xfixes_region_t region; /**< */ 541 short x_origin; /**< */ 542 short y_origin; /**< */ 543 } 544 545 /** Opcode for xcb_xfixes_set_cursor_name. */ 546 enum XCB_XFIXES_SET_CURSOR_NAME = 23; 547 548 /** 549 * @brief xcb_xfixes_set_cursor_name_request_t 550 **/ 551 struct xcb_xfixes_set_cursor_name_request_t { 552 ubyte major_opcode; /**< */ 553 ubyte minor_opcode; /**< */ 554 ushort length; /**< */ 555 xcb_cursor_t cursor; /**< */ 556 ushort nbytes; /**< */ 557 ubyte[2] pad0; /**< */ 558 } 559 560 /** 561 * @brief xcb_xfixes_get_cursor_name_cookie_t 562 **/ 563 struct xcb_xfixes_get_cursor_name_cookie_t { 564 uint sequence; /**< */ 565 } 566 567 /** Opcode for xcb_xfixes_get_cursor_name. */ 568 enum XCB_XFIXES_GET_CURSOR_NAME = 24; 569 570 /** 571 * @brief xcb_xfixes_get_cursor_name_request_t 572 **/ 573 struct xcb_xfixes_get_cursor_name_request_t { 574 ubyte major_opcode; /**< */ 575 ubyte minor_opcode; /**< */ 576 ushort length; /**< */ 577 xcb_cursor_t cursor; /**< */ 578 } 579 580 /** 581 * @brief xcb_xfixes_get_cursor_name_reply_t 582 **/ 583 struct xcb_xfixes_get_cursor_name_reply_t { 584 ubyte response_type; /**< */ 585 ubyte pad0; /**< */ 586 ushort sequence; /**< */ 587 uint length; /**< */ 588 xcb_atom_t atom; /**< */ 589 ushort nbytes; /**< */ 590 ubyte[18] pad1; /**< */ 591 } 592 593 /** 594 * @brief xcb_xfixes_get_cursor_image_and_name_cookie_t 595 **/ 596 struct xcb_xfixes_get_cursor_image_and_name_cookie_t { 597 uint sequence; /**< */ 598 } 599 600 /** Opcode for xcb_xfixes_get_cursor_image_and_name. */ 601 enum XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME = 25; 602 603 /** 604 * @brief xcb_xfixes_get_cursor_image_and_name_request_t 605 **/ 606 struct xcb_xfixes_get_cursor_image_and_name_request_t { 607 ubyte major_opcode; /**< */ 608 ubyte minor_opcode; /**< */ 609 ushort length; /**< */ 610 } 611 612 /** 613 * @brief xcb_xfixes_get_cursor_image_and_name_reply_t 614 **/ 615 struct xcb_xfixes_get_cursor_image_and_name_reply_t { 616 ubyte response_type; /**< */ 617 ubyte pad0; /**< */ 618 ushort sequence; /**< */ 619 uint length; /**< */ 620 short x; /**< */ 621 short y; /**< */ 622 ushort width; /**< */ 623 ushort height; /**< */ 624 ushort xhot; /**< */ 625 ushort yhot; /**< */ 626 uint cursor_serial; /**< */ 627 xcb_atom_t cursor_atom; /**< */ 628 ushort nbytes; /**< */ 629 ubyte[2] pad1; /**< */ 630 } 631 632 /** Opcode for xcb_xfixes_change_cursor. */ 633 enum XCB_XFIXES_CHANGE_CURSOR = 26; 634 635 /** 636 * @brief xcb_xfixes_change_cursor_request_t 637 **/ 638 struct xcb_xfixes_change_cursor_request_t { 639 ubyte major_opcode; /**< */ 640 ubyte minor_opcode; /**< */ 641 ushort length; /**< */ 642 xcb_cursor_t source; /**< */ 643 xcb_cursor_t destination; /**< */ 644 } 645 646 /** Opcode for xcb_xfixes_change_cursor_by_name. */ 647 enum XCB_XFIXES_CHANGE_CURSOR_BY_NAME = 27; 648 649 /** 650 * @brief xcb_xfixes_change_cursor_by_name_request_t 651 **/ 652 struct xcb_xfixes_change_cursor_by_name_request_t { 653 ubyte major_opcode; /**< */ 654 ubyte minor_opcode; /**< */ 655 ushort length; /**< */ 656 xcb_cursor_t src; /**< */ 657 ushort nbytes; /**< */ 658 ubyte[2] pad0; /**< */ 659 } 660 661 /** Opcode for xcb_xfixes_expand_region. */ 662 enum XCB_XFIXES_EXPAND_REGION = 28; 663 664 /** 665 * @brief xcb_xfixes_expand_region_request_t 666 **/ 667 struct xcb_xfixes_expand_region_request_t { 668 ubyte major_opcode; /**< */ 669 ubyte minor_opcode; /**< */ 670 ushort length; /**< */ 671 xcb_xfixes_region_t source; /**< */ 672 xcb_xfixes_region_t destination; /**< */ 673 ushort left; /**< */ 674 ushort right; /**< */ 675 ushort top; /**< */ 676 ushort bottom; /**< */ 677 } 678 679 /** Opcode for xcb_xfixes_hide_cursor. */ 680 enum XCB_XFIXES_HIDE_CURSOR = 29; 681 682 /** 683 * @brief xcb_xfixes_hide_cursor_request_t 684 **/ 685 struct xcb_xfixes_hide_cursor_request_t { 686 ubyte major_opcode; /**< */ 687 ubyte minor_opcode; /**< */ 688 ushort length; /**< */ 689 xcb_window_t window; /**< */ 690 } 691 692 /** Opcode for xcb_xfixes_show_cursor. */ 693 enum XCB_XFIXES_SHOW_CURSOR = 30; 694 695 /** 696 * @brief xcb_xfixes_show_cursor_request_t 697 **/ 698 struct xcb_xfixes_show_cursor_request_t { 699 ubyte major_opcode; /**< */ 700 ubyte minor_opcode; /**< */ 701 ushort length; /**< */ 702 xcb_window_t window; /**< */ 703 } 704 705 alias xcb_xfixes_barrier_t = uint; 706 707 /** 708 * @brief xcb_xfixes_barrier_iterator_t 709 **/ 710 struct xcb_xfixes_barrier_iterator_t { 711 xcb_xfixes_barrier_t* data; /**< */ 712 int rem; /**< */ 713 int index; /**< */ 714 } 715 716 enum xcb_xfixes_barrier_directions_t { 717 XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = 1, 718 XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = 2, 719 XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = 4, 720 XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = 8 721 } 722 723 alias XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X; 724 alias XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y; 725 alias XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X; 726 alias XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = xcb_xfixes_barrier_directions_t.XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y; 727 728 /** Opcode for xcb_xfixes_create_pointer_barrier. */ 729 enum XCB_XFIXES_CREATE_POINTER_BARRIER = 31; 730 731 /** 732 * @brief xcb_xfixes_create_pointer_barrier_request_t 733 **/ 734 struct xcb_xfixes_create_pointer_barrier_request_t { 735 ubyte major_opcode; /**< */ 736 ubyte minor_opcode; /**< */ 737 ushort length; /**< */ 738 xcb_xfixes_barrier_t barrier; /**< */ 739 xcb_window_t window; /**< */ 740 ushort x1; /**< */ 741 ushort y1; /**< */ 742 ushort x2; /**< */ 743 ushort y2; /**< */ 744 uint directions; /**< */ 745 ubyte[2] pad0; /**< */ 746 ushort num_devices; /**< */ 747 } 748 749 /** Opcode for xcb_xfixes_delete_pointer_barrier. */ 750 enum XCB_XFIXES_DELETE_POINTER_BARRIER = 32; 751 752 /** 753 * @brief xcb_xfixes_delete_pointer_barrier_request_t 754 **/ 755 struct xcb_xfixes_delete_pointer_barrier_request_t { 756 ubyte major_opcode; /**< */ 757 ubyte minor_opcode; /**< */ 758 ushort length; /**< */ 759 xcb_xfixes_barrier_t barrier; /**< */ 760 } 761 762 /** 763 * 764 * @param c The connection 765 * @return A cookie 766 * 767 * Delivers a request to the X server. 768 * 769 */ 770 xcb_xfixes_query_version_cookie_t xcb_xfixes_query_version(xcb_connection_t* c /**< */ , uint client_major_version /**< */ , 771 uint client_minor_version /**< */ ); 772 773 /** 774 * 775 * @param c The connection 776 * @return A cookie 777 * 778 * Delivers a request to the X server. 779 * 780 * This form can be used only if the request will cause 781 * a reply to be generated. Any returned error will be 782 * placed in the event queue. 783 */ 784 xcb_xfixes_query_version_cookie_t xcb_xfixes_query_version_unchecked(xcb_connection_t* c /**< */ , 785 uint client_major_version /**< */ , uint client_minor_version /**< */ ); 786 787 /** 788 * Return the reply 789 * @param c The connection 790 * @param cookie The cookie 791 * @param e The xcb_generic_error_t supplied 792 * 793 * Returns the reply of the request asked by 794 * 795 * The parameter @p e supplied to this function must be NULL if 796 * xcb_xfixes_query_version_unchecked(). is used. 797 * Otherwise, it stores the error if any. 798 * 799 * The returned value must be freed by the caller using free(). 800 */ 801 xcb_xfixes_query_version_reply_t* xcb_xfixes_query_version_reply(xcb_connection_t* c /**< */ , 802 xcb_xfixes_query_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 803 804 /** 805 * 806 * @param c The connection 807 * @return A cookie 808 * 809 * Delivers a request to the X server. 810 * 811 * This form can be used only if the request will not cause 812 * a reply to be generated. Any returned error will be 813 * saved for handling by xcb_request_check(). 814 */ 815 xcb_void_cookie_t xcb_xfixes_change_save_set_checked(xcb_connection_t* c /**< */ , ubyte mode /**< */ , ubyte target /**< */ , 816 ubyte map /**< */ , xcb_window_t window /**< */ ); 817 818 /** 819 * 820 * @param c The connection 821 * @return A cookie 822 * 823 * Delivers a request to the X server. 824 * 825 */ 826 xcb_void_cookie_t xcb_xfixes_change_save_set(xcb_connection_t* c /**< */ , ubyte mode /**< */ , ubyte target /**< */ , 827 ubyte map /**< */ , xcb_window_t window /**< */ ); 828 829 /** 830 * 831 * @param c The connection 832 * @return A cookie 833 * 834 * Delivers a request to the X server. 835 * 836 * This form can be used only if the request will not cause 837 * a reply to be generated. Any returned error will be 838 * saved for handling by xcb_request_check(). 839 */ 840 xcb_void_cookie_t xcb_xfixes_select_selection_input_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , 841 xcb_atom_t selection /**< */ , uint event_mask /**< */ ); 842 843 /** 844 * 845 * @param c The connection 846 * @return A cookie 847 * 848 * Delivers a request to the X server. 849 * 850 */ 851 xcb_void_cookie_t xcb_xfixes_select_selection_input(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , 852 xcb_atom_t selection /**< */ , uint event_mask /**< */ ); 853 854 /** 855 * 856 * @param c The connection 857 * @return A cookie 858 * 859 * Delivers a request to the X server. 860 * 861 * This form can be used only if the request will not cause 862 * a reply to be generated. Any returned error will be 863 * saved for handling by xcb_request_check(). 864 */ 865 xcb_void_cookie_t xcb_xfixes_select_cursor_input_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , uint event_mask /**< */ ); 866 867 /** 868 * 869 * @param c The connection 870 * @return A cookie 871 * 872 * Delivers a request to the X server. 873 * 874 */ 875 xcb_void_cookie_t xcb_xfixes_select_cursor_input(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ , uint event_mask /**< */ ); 876 877 int xcb_xfixes_get_cursor_image_sizeof(const void* _buffer /**< */ ); 878 879 /** 880 * 881 * @param c The connection 882 * @return A cookie 883 * 884 * Delivers a request to the X server. 885 * 886 */ 887 xcb_xfixes_get_cursor_image_cookie_t xcb_xfixes_get_cursor_image(xcb_connection_t* c /**< */ ); 888 889 /** 890 * 891 * @param c The connection 892 * @return A cookie 893 * 894 * Delivers a request to the X server. 895 * 896 * This form can be used only if the request will cause 897 * a reply to be generated. Any returned error will be 898 * placed in the event queue. 899 */ 900 xcb_xfixes_get_cursor_image_cookie_t xcb_xfixes_get_cursor_image_unchecked(xcb_connection_t* c /**< */ ); 901 902 uint* xcb_xfixes_get_cursor_image_cursor_image(const xcb_xfixes_get_cursor_image_reply_t* R /**< */ ); 903 904 int xcb_xfixes_get_cursor_image_cursor_image_length(const xcb_xfixes_get_cursor_image_reply_t* R /**< */ ); 905 906 xcb_generic_iterator_t xcb_xfixes_get_cursor_image_cursor_image_end(const xcb_xfixes_get_cursor_image_reply_t* R /**< */ ); 907 908 /** 909 * Return the reply 910 * @param c The connection 911 * @param cookie The cookie 912 * @param e The xcb_generic_error_t supplied 913 * 914 * Returns the reply of the request asked by 915 * 916 * The parameter @p e supplied to this function must be NULL if 917 * xcb_xfixes_get_cursor_image_unchecked(). is used. 918 * Otherwise, it stores the error if any. 919 * 920 * The returned value must be freed by the caller using free(). 921 */ 922 xcb_xfixes_get_cursor_image_reply_t* xcb_xfixes_get_cursor_image_reply(xcb_connection_t* c /**< */ , 923 xcb_xfixes_get_cursor_image_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 924 925 /** 926 * Get the next element of the iterator 927 * @param i Pointer to a xcb_xfixes_region_iterator_t 928 * 929 * Get the next element in the iterator. The member rem is 930 * decreased by one. The member data points to the next 931 * element. The member index is increased by sizeof(xcb_xfixes_region_t) 932 */ 933 void xcb_xfixes_region_next(xcb_xfixes_region_iterator_t* i /**< */ ); 934 935 /** 936 * Return the iterator pointing to the last element 937 * @param i An xcb_xfixes_region_iterator_t 938 * @return The iterator pointing to the last element 939 * 940 * Set the current element in the iterator to the last element. 941 * The member rem is set to 0. The member data points to the 942 * last element. 943 */ 944 xcb_generic_iterator_t xcb_xfixes_region_end(xcb_xfixes_region_iterator_t i /**< */ ); 945 946 int xcb_xfixes_create_region_sizeof(const void* _buffer /**< */ , uint rectangles_len /**< */ ); 947 948 /** 949 * 950 * @param c The connection 951 * @return A cookie 952 * 953 * Delivers a request to the X server. 954 * 955 * This form can be used only if the request will not cause 956 * a reply to be generated. Any returned error will be 957 * saved for handling by xcb_request_check(). 958 */ 959 xcb_void_cookie_t xcb_xfixes_create_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , 960 const xcb_rectangle_t* rectangles /**< */ ); 961 962 /** 963 * 964 * @param c The connection 965 * @return A cookie 966 * 967 * Delivers a request to the X server. 968 * 969 */ 970 xcb_void_cookie_t xcb_xfixes_create_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , 971 const xcb_rectangle_t* rectangles /**< */ ); 972 973 /** 974 * 975 * @param c The connection 976 * @return A cookie 977 * 978 * Delivers a request to the X server. 979 * 980 * This form can be used only if the request will not cause 981 * a reply to be generated. Any returned error will be 982 * saved for handling by xcb_request_check(). 983 */ 984 xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , 985 xcb_pixmap_t bitmap /**< */ ); 986 987 /** 988 * 989 * @param c The connection 990 * @return A cookie 991 * 992 * Delivers a request to the X server. 993 * 994 */ 995 xcb_void_cookie_t xcb_xfixes_create_region_from_bitmap(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_pixmap_t bitmap /**< */ ); 996 997 /** 998 * 999 * @param c The connection 1000 * @return A cookie 1001 * 1002 * Delivers a request to the X server. 1003 * 1004 * This form can be used only if the request will not cause 1005 * a reply to be generated. Any returned error will be 1006 * saved for handling by xcb_request_check(). 1007 */ 1008 xcb_void_cookie_t xcb_xfixes_create_region_from_window_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , 1009 xcb_window_t window /**< */ , xcb_shape_kind_t kind /**< */ ); 1010 1011 /** 1012 * 1013 * @param c The connection 1014 * @return A cookie 1015 * 1016 * Delivers a request to the X server. 1017 * 1018 */ 1019 xcb_void_cookie_t xcb_xfixes_create_region_from_window(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , 1020 xcb_window_t window /**< */ , xcb_shape_kind_t kind /**< */ ); 1021 1022 /** 1023 * 1024 * @param c The connection 1025 * @return A cookie 1026 * 1027 * Delivers a request to the X server. 1028 * 1029 * This form can be used only if the request will not cause 1030 * a reply to be generated. Any returned error will be 1031 * saved for handling by xcb_request_check(). 1032 */ 1033 xcb_void_cookie_t xcb_xfixes_create_region_from_gc_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , 1034 xcb_gcontext_t gc /**< */ ); 1035 1036 /** 1037 * 1038 * @param c The connection 1039 * @return A cookie 1040 * 1041 * Delivers a request to the X server. 1042 * 1043 */ 1044 xcb_void_cookie_t xcb_xfixes_create_region_from_gc(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , xcb_gcontext_t gc /**< */ ); 1045 1046 /** 1047 * 1048 * @param c The connection 1049 * @return A cookie 1050 * 1051 * Delivers a request to the X server. 1052 * 1053 * This form can be used only if the request will not cause 1054 * a reply to be generated. Any returned error will be 1055 * saved for handling by xcb_request_check(). 1056 */ 1057 xcb_void_cookie_t xcb_xfixes_create_region_from_picture_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , 1058 xcb_render_picture_t picture /**< */ ); 1059 1060 /** 1061 * 1062 * @param c The connection 1063 * @return A cookie 1064 * 1065 * Delivers a request to the X server. 1066 * 1067 */ 1068 xcb_void_cookie_t xcb_xfixes_create_region_from_picture(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , 1069 xcb_render_picture_t picture /**< */ ); 1070 1071 /** 1072 * 1073 * @param c The connection 1074 * @return A cookie 1075 * 1076 * Delivers a request to the X server. 1077 * 1078 * This form can be used only if the request will not cause 1079 * a reply to be generated. Any returned error will be 1080 * saved for handling by xcb_request_check(). 1081 */ 1082 xcb_void_cookie_t xcb_xfixes_destroy_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); 1083 1084 /** 1085 * 1086 * @param c The connection 1087 * @return A cookie 1088 * 1089 * Delivers a request to the X server. 1090 * 1091 */ 1092 xcb_void_cookie_t xcb_xfixes_destroy_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); 1093 1094 int xcb_xfixes_set_region_sizeof(const void* _buffer /**< */ , uint rectangles_len /**< */ ); 1095 1096 /** 1097 * 1098 * @param c The connection 1099 * @return A cookie 1100 * 1101 * Delivers a request to the X server. 1102 * 1103 * This form can be used only if the request will not cause 1104 * a reply to be generated. Any returned error will be 1105 * saved for handling by xcb_request_check(). 1106 */ 1107 xcb_void_cookie_t xcb_xfixes_set_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , 1108 const xcb_rectangle_t* rectangles /**< */ ); 1109 1110 /** 1111 * 1112 * @param c The connection 1113 * @return A cookie 1114 * 1115 * Delivers a request to the X server. 1116 * 1117 */ 1118 xcb_void_cookie_t xcb_xfixes_set_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , uint rectangles_len /**< */ , 1119 const xcb_rectangle_t* rectangles /**< */ ); 1120 1121 /** 1122 * 1123 * @param c The connection 1124 * @return A cookie 1125 * 1126 * Delivers a request to the X server. 1127 * 1128 * This form can be used only if the request will not cause 1129 * a reply to be generated. Any returned error will be 1130 * saved for handling by xcb_request_check(). 1131 */ 1132 xcb_void_cookie_t xcb_xfixes_copy_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , 1133 xcb_xfixes_region_t destination /**< */ ); 1134 1135 /** 1136 * 1137 * @param c The connection 1138 * @return A cookie 1139 * 1140 * Delivers a request to the X server. 1141 * 1142 */ 1143 xcb_void_cookie_t xcb_xfixes_copy_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ ); 1144 1145 /** 1146 * 1147 * @param c The connection 1148 * @return A cookie 1149 * 1150 * Delivers a request to the X server. 1151 * 1152 * This form can be used only if the request will not cause 1153 * a reply to be generated. Any returned error will be 1154 * saved for handling by xcb_request_check(). 1155 */ 1156 xcb_void_cookie_t xcb_xfixes_union_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , 1157 xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); 1158 1159 /** 1160 * 1161 * @param c The connection 1162 * @return A cookie 1163 * 1164 * Delivers a request to the X server. 1165 * 1166 */ 1167 xcb_void_cookie_t xcb_xfixes_union_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , 1168 xcb_xfixes_region_t destination /**< */ ); 1169 1170 /** 1171 * 1172 * @param c The connection 1173 * @return A cookie 1174 * 1175 * Delivers a request to the X server. 1176 * 1177 * This form can be used only if the request will not cause 1178 * a reply to be generated. Any returned error will be 1179 * saved for handling by xcb_request_check(). 1180 */ 1181 xcb_void_cookie_t xcb_xfixes_intersect_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , 1182 xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); 1183 1184 /** 1185 * 1186 * @param c The connection 1187 * @return A cookie 1188 * 1189 * Delivers a request to the X server. 1190 * 1191 */ 1192 xcb_void_cookie_t xcb_xfixes_intersect_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , 1193 xcb_xfixes_region_t destination /**< */ ); 1194 1195 /** 1196 * 1197 * @param c The connection 1198 * @return A cookie 1199 * 1200 * Delivers a request to the X server. 1201 * 1202 * This form can be used only if the request will not cause 1203 * a reply to be generated. Any returned error will be 1204 * saved for handling by xcb_request_check(). 1205 */ 1206 xcb_void_cookie_t xcb_xfixes_subtract_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , 1207 xcb_xfixes_region_t source2 /**< */ , xcb_xfixes_region_t destination /**< */ ); 1208 1209 /** 1210 * 1211 * @param c The connection 1212 * @return A cookie 1213 * 1214 * Delivers a request to the X server. 1215 * 1216 */ 1217 xcb_void_cookie_t xcb_xfixes_subtract_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source1 /**< */ , xcb_xfixes_region_t source2 /**< */ , 1218 xcb_xfixes_region_t destination /**< */ ); 1219 1220 /** 1221 * 1222 * @param c The connection 1223 * @return A cookie 1224 * 1225 * Delivers a request to the X server. 1226 * 1227 * This form can be used only if the request will not cause 1228 * a reply to be generated. Any returned error will be 1229 * saved for handling by xcb_request_check(). 1230 */ 1231 xcb_void_cookie_t xcb_xfixes_invert_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_rectangle_t bounds /**< */ , 1232 xcb_xfixes_region_t destination /**< */ ); 1233 1234 /** 1235 * 1236 * @param c The connection 1237 * @return A cookie 1238 * 1239 * Delivers a request to the X server. 1240 * 1241 */ 1242 xcb_void_cookie_t xcb_xfixes_invert_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_rectangle_t bounds /**< */ , 1243 xcb_xfixes_region_t destination /**< */ ); 1244 1245 /** 1246 * 1247 * @param c The connection 1248 * @return A cookie 1249 * 1250 * Delivers a request to the X server. 1251 * 1252 * This form can be used only if the request will not cause 1253 * a reply to be generated. Any returned error will be 1254 * saved for handling by xcb_request_check(). 1255 */ 1256 xcb_void_cookie_t xcb_xfixes_translate_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , short dx /**< */ , 1257 short dy /**< */ ); 1258 1259 /** 1260 * 1261 * @param c The connection 1262 * @return A cookie 1263 * 1264 * Delivers a request to the X server. 1265 * 1266 */ 1267 xcb_void_cookie_t xcb_xfixes_translate_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ , short dx /**< */ , 1268 short dy /**< */ ); 1269 1270 /** 1271 * 1272 * @param c The connection 1273 * @return A cookie 1274 * 1275 * Delivers a request to the X server. 1276 * 1277 * This form can be used only if the request will not cause 1278 * a reply to be generated. Any returned error will be 1279 * saved for handling by xcb_request_check(). 1280 */ 1281 xcb_void_cookie_t xcb_xfixes_region_extents_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , 1282 xcb_xfixes_region_t destination /**< */ ); 1283 1284 /** 1285 * 1286 * @param c The connection 1287 * @return A cookie 1288 * 1289 * Delivers a request to the X server. 1290 * 1291 */ 1292 xcb_void_cookie_t xcb_xfixes_region_extents(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , 1293 xcb_xfixes_region_t destination /**< */ ); 1294 1295 int xcb_xfixes_fetch_region_sizeof(const void* _buffer /**< */ ); 1296 1297 /** 1298 * 1299 * @param c The connection 1300 * @return A cookie 1301 * 1302 * Delivers a request to the X server. 1303 * 1304 */ 1305 xcb_xfixes_fetch_region_cookie_t xcb_xfixes_fetch_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); 1306 1307 /** 1308 * 1309 * @param c The connection 1310 * @return A cookie 1311 * 1312 * Delivers a request to the X server. 1313 * 1314 * This form can be used only if the request will cause 1315 * a reply to be generated. Any returned error will be 1316 * placed in the event queue. 1317 */ 1318 xcb_xfixes_fetch_region_cookie_t xcb_xfixes_fetch_region_unchecked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t region /**< */ ); 1319 1320 xcb_rectangle_t* xcb_xfixes_fetch_region_rectangles(const xcb_xfixes_fetch_region_reply_t* R /**< */ ); 1321 1322 int xcb_xfixes_fetch_region_rectangles_length(const xcb_xfixes_fetch_region_reply_t* R /**< */ ); 1323 1324 xcb_rectangle_iterator_t xcb_xfixes_fetch_region_rectangles_iterator(const xcb_xfixes_fetch_region_reply_t* R /**< */ ); 1325 1326 /** 1327 * Return the reply 1328 * @param c The connection 1329 * @param cookie The cookie 1330 * @param e The xcb_generic_error_t supplied 1331 * 1332 * Returns the reply of the request asked by 1333 * 1334 * The parameter @p e supplied to this function must be NULL if 1335 * xcb_xfixes_fetch_region_unchecked(). is used. 1336 * Otherwise, it stores the error if any. 1337 * 1338 * The returned value must be freed by the caller using free(). 1339 */ 1340 xcb_xfixes_fetch_region_reply_t* xcb_xfixes_fetch_region_reply(xcb_connection_t* c /**< */ , 1341 xcb_xfixes_fetch_region_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1342 1343 /** 1344 * 1345 * @param c The connection 1346 * @return A cookie 1347 * 1348 * Delivers a request to the X server. 1349 * 1350 * This form can be used only if the request will not cause 1351 * a reply to be generated. Any returned error will be 1352 * saved for handling by xcb_request_check(). 1353 */ 1354 xcb_void_cookie_t xcb_xfixes_set_gc_clip_region_checked(xcb_connection_t* c /**< */ , xcb_gcontext_t gc /**< */ , xcb_xfixes_region_t region /**< */ , 1355 short x_origin /**< */ , short y_origin /**< */ ); 1356 1357 /** 1358 * 1359 * @param c The connection 1360 * @return A cookie 1361 * 1362 * Delivers a request to the X server. 1363 * 1364 */ 1365 xcb_void_cookie_t xcb_xfixes_set_gc_clip_region(xcb_connection_t* c /**< */ , xcb_gcontext_t gc /**< */ , 1366 xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); 1367 1368 /** 1369 * 1370 * @param c The connection 1371 * @return A cookie 1372 * 1373 * Delivers a request to the X server. 1374 * 1375 * This form can be used only if the request will not cause 1376 * a reply to be generated. Any returned error will be 1377 * saved for handling by xcb_request_check(). 1378 */ 1379 xcb_void_cookie_t xcb_xfixes_set_window_shape_region_checked(xcb_connection_t* c /**< */ , xcb_window_t dest /**< */ , 1380 xcb_shape_kind_t dest_kind /**< */ , short x_offset /**< */ , short y_offset /**< */ , xcb_xfixes_region_t region /**< */ ); 1381 1382 /** 1383 * 1384 * @param c The connection 1385 * @return A cookie 1386 * 1387 * Delivers a request to the X server. 1388 * 1389 */ 1390 xcb_void_cookie_t xcb_xfixes_set_window_shape_region(xcb_connection_t* c /**< */ , xcb_window_t dest /**< */ , xcb_shape_kind_t dest_kind /**< */ , 1391 short x_offset /**< */ , short y_offset /**< */ , xcb_xfixes_region_t region /**< */ ); 1392 1393 /** 1394 * 1395 * @param c The connection 1396 * @return A cookie 1397 * 1398 * Delivers a request to the X server. 1399 * 1400 * This form can be used only if the request will not cause 1401 * a reply to be generated. Any returned error will be 1402 * saved for handling by xcb_request_check(). 1403 */ 1404 xcb_void_cookie_t xcb_xfixes_set_picture_clip_region_checked(xcb_connection_t* c /**< */ , xcb_render_picture_t picture /**< */ , 1405 xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); 1406 1407 /** 1408 * 1409 * @param c The connection 1410 * @return A cookie 1411 * 1412 * Delivers a request to the X server. 1413 * 1414 */ 1415 xcb_void_cookie_t xcb_xfixes_set_picture_clip_region(xcb_connection_t* c /**< */ , xcb_render_picture_t picture /**< */ , 1416 xcb_xfixes_region_t region /**< */ , short x_origin /**< */ , short y_origin /**< */ ); 1417 1418 int xcb_xfixes_set_cursor_name_sizeof(const void* _buffer /**< */ ); 1419 1420 /** 1421 * 1422 * @param c The connection 1423 * @return A cookie 1424 * 1425 * Delivers a request to the X server. 1426 * 1427 * This form can be used only if the request will not cause 1428 * a reply to be generated. Any returned error will be 1429 * saved for handling by xcb_request_check(). 1430 */ 1431 xcb_void_cookie_t xcb_xfixes_set_cursor_name_checked(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ , 1432 ushort nbytes /**< */ , const char* name /**< */ ); 1433 1434 /** 1435 * 1436 * @param c The connection 1437 * @return A cookie 1438 * 1439 * Delivers a request to the X server. 1440 * 1441 */ 1442 xcb_void_cookie_t xcb_xfixes_set_cursor_name(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ , ushort nbytes /**< */ , 1443 const char* name /**< */ ); 1444 1445 int xcb_xfixes_get_cursor_name_sizeof(const void* _buffer /**< */ ); 1446 1447 /** 1448 * 1449 * @param c The connection 1450 * @return A cookie 1451 * 1452 * Delivers a request to the X server. 1453 * 1454 */ 1455 xcb_xfixes_get_cursor_name_cookie_t xcb_xfixes_get_cursor_name(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ ); 1456 1457 /** 1458 * 1459 * @param c The connection 1460 * @return A cookie 1461 * 1462 * Delivers a request to the X server. 1463 * 1464 * This form can be used only if the request will cause 1465 * a reply to be generated. Any returned error will be 1466 * placed in the event queue. 1467 */ 1468 xcb_xfixes_get_cursor_name_cookie_t xcb_xfixes_get_cursor_name_unchecked(xcb_connection_t* c /**< */ , xcb_cursor_t cursor /**< */ ); 1469 1470 char* xcb_xfixes_get_cursor_name_name(const xcb_xfixes_get_cursor_name_reply_t* R /**< */ ); 1471 1472 int xcb_xfixes_get_cursor_name_name_length(const xcb_xfixes_get_cursor_name_reply_t* R /**< */ ); 1473 1474 xcb_generic_iterator_t xcb_xfixes_get_cursor_name_name_end(const xcb_xfixes_get_cursor_name_reply_t* R /**< */ ); 1475 1476 /** 1477 * Return the reply 1478 * @param c The connection 1479 * @param cookie The cookie 1480 * @param e The xcb_generic_error_t supplied 1481 * 1482 * Returns the reply of the request asked by 1483 * 1484 * The parameter @p e supplied to this function must be NULL if 1485 * xcb_xfixes_get_cursor_name_unchecked(). is used. 1486 * Otherwise, it stores the error if any. 1487 * 1488 * The returned value must be freed by the caller using free(). 1489 */ 1490 xcb_xfixes_get_cursor_name_reply_t* xcb_xfixes_get_cursor_name_reply(xcb_connection_t* c /**< */ , 1491 xcb_xfixes_get_cursor_name_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1492 1493 int xcb_xfixes_get_cursor_image_and_name_sizeof(const void* _buffer /**< */ ); 1494 1495 /** 1496 * 1497 * @param c The connection 1498 * @return A cookie 1499 * 1500 * Delivers a request to the X server. 1501 * 1502 */ 1503 xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_xfixes_get_cursor_image_and_name(xcb_connection_t* c /**< */ ); 1504 1505 /** 1506 * 1507 * @param c The connection 1508 * @return A cookie 1509 * 1510 * Delivers a request to the X server. 1511 * 1512 * This form can be used only if the request will cause 1513 * a reply to be generated. Any returned error will be 1514 * placed in the event queue. 1515 */ 1516 xcb_xfixes_get_cursor_image_and_name_cookie_t xcb_xfixes_get_cursor_image_and_name_unchecked(xcb_connection_t* c /**< */ ); 1517 1518 char* xcb_xfixes_get_cursor_image_and_name_name(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); 1519 1520 int xcb_xfixes_get_cursor_image_and_name_name_length(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); 1521 1522 xcb_generic_iterator_t xcb_xfixes_get_cursor_image_and_name_name_end(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); 1523 1524 uint* xcb_xfixes_get_cursor_image_and_name_cursor_image(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); 1525 1526 int xcb_xfixes_get_cursor_image_and_name_cursor_image_length(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); 1527 1528 xcb_generic_iterator_t xcb_xfixes_get_cursor_image_and_name_cursor_image_end(const xcb_xfixes_get_cursor_image_and_name_reply_t* R /**< */ ); 1529 1530 /** 1531 * Return the reply 1532 * @param c The connection 1533 * @param cookie The cookie 1534 * @param e The xcb_generic_error_t supplied 1535 * 1536 * Returns the reply of the request asked by 1537 * 1538 * The parameter @p e supplied to this function must be NULL if 1539 * xcb_xfixes_get_cursor_image_and_name_unchecked(). is used. 1540 * Otherwise, it stores the error if any. 1541 * 1542 * The returned value must be freed by the caller using free(). 1543 */ 1544 xcb_xfixes_get_cursor_image_and_name_reply_t* xcb_xfixes_get_cursor_image_and_name_reply(xcb_connection_t* c /**< */ , 1545 xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1546 1547 /** 1548 * 1549 * @param c The connection 1550 * @return A cookie 1551 * 1552 * Delivers a request to the X server. 1553 * 1554 * This form can be used only if the request will not cause 1555 * a reply to be generated. Any returned error will be 1556 * saved for handling by xcb_request_check(). 1557 */ 1558 xcb_void_cookie_t xcb_xfixes_change_cursor_checked(xcb_connection_t* c /**< */ , xcb_cursor_t source /**< */ , xcb_cursor_t destination /**< */ ); 1559 1560 /** 1561 * 1562 * @param c The connection 1563 * @return A cookie 1564 * 1565 * Delivers a request to the X server. 1566 * 1567 */ 1568 xcb_void_cookie_t xcb_xfixes_change_cursor(xcb_connection_t* c /**< */ , xcb_cursor_t source /**< */ , xcb_cursor_t destination /**< */ ); 1569 1570 int xcb_xfixes_change_cursor_by_name_sizeof(const void* _buffer /**< */ ); 1571 1572 /** 1573 * 1574 * @param c The connection 1575 * @return A cookie 1576 * 1577 * Delivers a request to the X server. 1578 * 1579 * This form can be used only if the request will not cause 1580 * a reply to be generated. Any returned error will be 1581 * saved for handling by xcb_request_check(). 1582 */ 1583 xcb_void_cookie_t xcb_xfixes_change_cursor_by_name_checked(xcb_connection_t* c /**< */ , xcb_cursor_t src /**< */ , 1584 ushort nbytes /**< */ , const char* name /**< */ ); 1585 1586 /** 1587 * 1588 * @param c The connection 1589 * @return A cookie 1590 * 1591 * Delivers a request to the X server. 1592 * 1593 */ 1594 xcb_void_cookie_t xcb_xfixes_change_cursor_by_name(xcb_connection_t* c /**< */ , xcb_cursor_t src /**< */ , ushort nbytes /**< */ , 1595 const char* name /**< */ ); 1596 1597 /** 1598 * 1599 * @param c The connection 1600 * @return A cookie 1601 * 1602 * Delivers a request to the X server. 1603 * 1604 * This form can be used only if the request will not cause 1605 * a reply to be generated. Any returned error will be 1606 * saved for handling by xcb_request_check(). 1607 */ 1608 xcb_void_cookie_t xcb_xfixes_expand_region_checked(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , 1609 xcb_xfixes_region_t destination /**< */ , ushort left /**< */ , ushort right /**< */ , ushort top /**< */ , ushort bottom /**< */ ); 1610 1611 /** 1612 * 1613 * @param c The connection 1614 * @return A cookie 1615 * 1616 * Delivers a request to the X server. 1617 * 1618 */ 1619 xcb_void_cookie_t xcb_xfixes_expand_region(xcb_connection_t* c /**< */ , xcb_xfixes_region_t source /**< */ , xcb_xfixes_region_t destination /**< */ , 1620 ushort left /**< */ , ushort right /**< */ , ushort top /**< */ , ushort bottom /**< */ ); 1621 1622 /** 1623 * 1624 * @param c The connection 1625 * @return A cookie 1626 * 1627 * Delivers a request to the X server. 1628 * 1629 * This form can be used only if the request will not cause 1630 * a reply to be generated. Any returned error will be 1631 * saved for handling by xcb_request_check(). 1632 */ 1633 xcb_void_cookie_t xcb_xfixes_hide_cursor_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); 1634 1635 /** 1636 * 1637 * @param c The connection 1638 * @return A cookie 1639 * 1640 * Delivers a request to the X server. 1641 * 1642 */ 1643 xcb_void_cookie_t xcb_xfixes_hide_cursor(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); 1644 1645 /** 1646 * 1647 * @param c The connection 1648 * @return A cookie 1649 * 1650 * Delivers a request to the X server. 1651 * 1652 * This form can be used only if the request will not cause 1653 * a reply to be generated. Any returned error will be 1654 * saved for handling by xcb_request_check(). 1655 */ 1656 xcb_void_cookie_t xcb_xfixes_show_cursor_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); 1657 1658 /** 1659 * 1660 * @param c The connection 1661 * @return A cookie 1662 * 1663 * Delivers a request to the X server. 1664 * 1665 */ 1666 xcb_void_cookie_t xcb_xfixes_show_cursor(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); 1667 1668 /** 1669 * Get the next element of the iterator 1670 * @param i Pointer to a xcb_xfixes_barrier_iterator_t 1671 * 1672 * Get the next element in the iterator. The member rem is 1673 * decreased by one. The member data points to the next 1674 * element. The member index is increased by sizeof(xcb_xfixes_barrier_t) 1675 */ 1676 void xcb_xfixes_barrier_next(xcb_xfixes_barrier_iterator_t* i /**< */ ); 1677 1678 /** 1679 * Return the iterator pointing to the last element 1680 * @param i An xcb_xfixes_barrier_iterator_t 1681 * @return The iterator pointing to the last element 1682 * 1683 * Set the current element in the iterator to the last element. 1684 * The member rem is set to 0. The member data points to the 1685 * last element. 1686 */ 1687 xcb_generic_iterator_t xcb_xfixes_barrier_end(xcb_xfixes_barrier_iterator_t i /**< */ ); 1688 1689 int xcb_xfixes_create_pointer_barrier_sizeof(const void* _buffer /**< */ ); 1690 1691 /** 1692 * 1693 * @param c The connection 1694 * @return A cookie 1695 * 1696 * Delivers a request to the X server. 1697 * 1698 * This form can be used only if the request will not cause 1699 * a reply to be generated. Any returned error will be 1700 * saved for handling by xcb_request_check(). 1701 */ 1702 xcb_void_cookie_t xcb_xfixes_create_pointer_barrier_checked(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ , 1703 xcb_window_t window /**< */ , ushort x1 /**< */ , ushort y1 /**< */ , ushort x2 /**< */ , ushort y2 /**< */ , uint directions /**< */ , 1704 ushort num_devices /**< */ , const ushort* devices /**< */ ); 1705 1706 /** 1707 * 1708 * @param c The connection 1709 * @return A cookie 1710 * 1711 * Delivers a request to the X server. 1712 * 1713 */ 1714 xcb_void_cookie_t xcb_xfixes_create_pointer_barrier(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ , xcb_window_t window /**< */ , 1715 ushort x1 /**< */ , ushort y1 /**< */ , ushort x2 /**< */ , ushort y2 /**< */ , uint directions /**< */ , 1716 ushort num_devices /**< */ , const ushort* devices /**< */ ); 1717 1718 /** 1719 * 1720 * @param c The connection 1721 * @return A cookie 1722 * 1723 * Delivers a request to the X server. 1724 * 1725 * This form can be used only if the request will not cause 1726 * a reply to be generated. Any returned error will be 1727 * saved for handling by xcb_request_check(). 1728 */ 1729 xcb_void_cookie_t xcb_xfixes_delete_pointer_barrier_checked(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ ); 1730 1731 /** 1732 * 1733 * @param c The connection 1734 * @return A cookie 1735 * 1736 * Delivers a request to the X server. 1737 * 1738 */ 1739 xcb_void_cookie_t xcb_xfixes_delete_pointer_barrier(xcb_connection_t* c /**< */ , xcb_xfixes_barrier_t barrier /**< */ ); 1740 1741 /** 1742 * @} 1743 */