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