1 /* 2 * This file generated automatically from xprint.xml by d_client.py. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_XPrint_API XCB XPrint API 8 * @brief XPrint XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 module xcb.xprint; 13 14 import xcb.xcb; 15 import xcb.xproto; 16 17 extern (C): 18 19 enum int XCB_XPRINT_MAJOR_VERSION = 1; 20 enum int XCB_XPRINT_MINOR_VERSION = 0; 21 22 extern (C) __gshared extern xcb_extension_t xcb_x_print_id; 23 24 alias xcb_x_print_string8_t = char; 25 26 /** 27 * @brief xcb_x_print_string8_iterator_t 28 **/ 29 struct xcb_x_print_string8_iterator_t { 30 xcb_x_print_string8_t* data; /**< */ 31 int rem; /**< */ 32 int index; /**< */ 33 } 34 35 /** 36 * @brief xcb_x_print_printer_t 37 **/ 38 struct xcb_x_print_printer_t { 39 uint nameLen; /**< */ 40 uint descLen; /**< */ 41 } 42 43 /** 44 * @brief xcb_x_print_printer_iterator_t 45 **/ 46 struct xcb_x_print_printer_iterator_t { 47 xcb_x_print_printer_t* data; /**< */ 48 int rem; /**< */ 49 int index; /**< */ 50 } 51 52 alias xcb_x_print_pcontext_t = uint; 53 54 /** 55 * @brief xcb_x_print_pcontext_iterator_t 56 **/ 57 struct xcb_x_print_pcontext_iterator_t { 58 xcb_x_print_pcontext_t* data; /**< */ 59 int rem; /**< */ 60 int index; /**< */ 61 } 62 63 enum xcb_x_print_get_doc_t { 64 XCB_X_PRINT_GET_DOC_FINISHED = 0, 65 XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = 1 66 } 67 68 alias XCB_X_PRINT_GET_DOC_FINISHED = xcb_x_print_get_doc_t.XCB_X_PRINT_GET_DOC_FINISHED; 69 alias XCB_X_PRINT_GET_DOC_SECOND_CONSUMER = xcb_x_print_get_doc_t.XCB_X_PRINT_GET_DOC_SECOND_CONSUMER; 70 71 enum xcb_x_print_ev_mask_t { 72 XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = 0, 73 XCB_X_PRINT_EV_MASK_PRINT_MASK = 1, 74 XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = 2 75 } 76 77 alias XCB_X_PRINT_EV_MASK_NO_EVENT_MASK = xcb_x_print_ev_mask_t.XCB_X_PRINT_EV_MASK_NO_EVENT_MASK; 78 alias XCB_X_PRINT_EV_MASK_PRINT_MASK = xcb_x_print_ev_mask_t.XCB_X_PRINT_EV_MASK_PRINT_MASK; 79 alias XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK = xcb_x_print_ev_mask_t.XCB_X_PRINT_EV_MASK_ATTRIBUTE_MASK; 80 81 enum xcb_x_print_detail_t { 82 XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = 1, 83 XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = 2, 84 XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = 3, 85 XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = 4, 86 XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = 5, 87 XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = 6 88 } 89 90 alias XCB_X_PRINT_DETAIL_START_JOB_NOTIFY = xcb_x_print_detail_t.XCB_X_PRINT_DETAIL_START_JOB_NOTIFY; 91 alias XCB_X_PRINT_DETAIL_END_JOB_NOTIFY = xcb_x_print_detail_t.XCB_X_PRINT_DETAIL_END_JOB_NOTIFY; 92 alias XCB_X_PRINT_DETAIL_START_DOC_NOTIFY = xcb_x_print_detail_t.XCB_X_PRINT_DETAIL_START_DOC_NOTIFY; 93 alias XCB_X_PRINT_DETAIL_END_DOC_NOTIFY = xcb_x_print_detail_t.XCB_X_PRINT_DETAIL_END_DOC_NOTIFY; 94 alias XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY = xcb_x_print_detail_t.XCB_X_PRINT_DETAIL_START_PAGE_NOTIFY; 95 alias XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY = xcb_x_print_detail_t.XCB_X_PRINT_DETAIL_END_PAGE_NOTIFY; 96 97 enum xcb_x_print_attr_t { 98 XCB_X_PRINT_ATTR_JOB_ATTR = 1, 99 XCB_X_PRINT_ATTR_DOC_ATTR = 2, 100 XCB_X_PRINT_ATTR_PAGE_ATTR = 3, 101 XCB_X_PRINT_ATTR_PRINTER_ATTR = 4, 102 XCB_X_PRINT_ATTR_SERVER_ATTR = 5, 103 XCB_X_PRINT_ATTR_MEDIUM_ATTR = 6, 104 XCB_X_PRINT_ATTR_SPOOLER_ATTR = 7 105 } 106 107 alias XCB_X_PRINT_ATTR_JOB_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_JOB_ATTR; 108 alias XCB_X_PRINT_ATTR_DOC_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_DOC_ATTR; 109 alias XCB_X_PRINT_ATTR_PAGE_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_PAGE_ATTR; 110 alias XCB_X_PRINT_ATTR_PRINTER_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_PRINTER_ATTR; 111 alias XCB_X_PRINT_ATTR_SERVER_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_SERVER_ATTR; 112 alias XCB_X_PRINT_ATTR_MEDIUM_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_MEDIUM_ATTR; 113 alias XCB_X_PRINT_ATTR_SPOOLER_ATTR = xcb_x_print_attr_t.XCB_X_PRINT_ATTR_SPOOLER_ATTR; 114 115 /** 116 * @brief xcb_x_print_print_query_version_cookie_t 117 **/ 118 struct xcb_x_print_print_query_version_cookie_t { 119 uint sequence; /**< */ 120 } 121 122 /** Opcode for xcb_x_print_print_query_version. */ 123 enum XCB_X_PRINT_PRINT_QUERY_VERSION = 0; 124 125 /** 126 * @brief xcb_x_print_print_query_version_request_t 127 **/ 128 struct xcb_x_print_print_query_version_request_t { 129 ubyte major_opcode; /**< */ 130 ubyte minor_opcode; /**< */ 131 ushort length; /**< */ 132 } 133 134 /** 135 * @brief xcb_x_print_print_query_version_reply_t 136 **/ 137 struct xcb_x_print_print_query_version_reply_t { 138 ubyte response_type; /**< */ 139 ubyte pad0; /**< */ 140 ushort sequence; /**< */ 141 uint length; /**< */ 142 ushort major_version; /**< */ 143 ushort minor_version; /**< */ 144 } 145 146 /** 147 * @brief xcb_x_print_print_get_printer_list_cookie_t 148 **/ 149 struct xcb_x_print_print_get_printer_list_cookie_t { 150 uint sequence; /**< */ 151 } 152 153 /** Opcode for xcb_x_print_print_get_printer_list. */ 154 enum XCB_X_PRINT_PRINT_GET_PRINTER_LIST = 1; 155 156 /** 157 * @brief xcb_x_print_print_get_printer_list_request_t 158 **/ 159 struct xcb_x_print_print_get_printer_list_request_t { 160 ubyte major_opcode; /**< */ 161 ubyte minor_opcode; /**< */ 162 ushort length; /**< */ 163 uint printerNameLen; /**< */ 164 uint localeLen; /**< */ 165 } 166 167 /** 168 * @brief xcb_x_print_print_get_printer_list_reply_t 169 **/ 170 struct xcb_x_print_print_get_printer_list_reply_t { 171 ubyte response_type; /**< */ 172 ubyte pad0; /**< */ 173 ushort sequence; /**< */ 174 uint length; /**< */ 175 uint listCount; /**< */ 176 ubyte[20] pad1; /**< */ 177 } 178 179 /** Opcode for xcb_x_print_print_rehash_printer_list. */ 180 enum XCB_X_PRINT_PRINT_REHASH_PRINTER_LIST = 20; 181 182 /** 183 * @brief xcb_x_print_print_rehash_printer_list_request_t 184 **/ 185 struct xcb_x_print_print_rehash_printer_list_request_t { 186 ubyte major_opcode; /**< */ 187 ubyte minor_opcode; /**< */ 188 ushort length; /**< */ 189 } 190 191 /** Opcode for xcb_x_print_create_context. */ 192 enum XCB_X_PRINT_CREATE_CONTEXT = 2; 193 194 /** 195 * @brief xcb_x_print_create_context_request_t 196 **/ 197 struct xcb_x_print_create_context_request_t { 198 ubyte major_opcode; /**< */ 199 ubyte minor_opcode; /**< */ 200 ushort length; /**< */ 201 uint context_id; /**< */ 202 uint printerNameLen; /**< */ 203 uint localeLen; /**< */ 204 } 205 206 /** Opcode for xcb_x_print_print_set_context. */ 207 enum XCB_X_PRINT_PRINT_SET_CONTEXT = 3; 208 209 /** 210 * @brief xcb_x_print_print_set_context_request_t 211 **/ 212 struct xcb_x_print_print_set_context_request_t { 213 ubyte major_opcode; /**< */ 214 ubyte minor_opcode; /**< */ 215 ushort length; /**< */ 216 uint context; /**< */ 217 } 218 219 /** 220 * @brief xcb_x_print_print_get_context_cookie_t 221 **/ 222 struct xcb_x_print_print_get_context_cookie_t { 223 uint sequence; /**< */ 224 } 225 226 /** Opcode for xcb_x_print_print_get_context. */ 227 enum XCB_X_PRINT_PRINT_GET_CONTEXT = 4; 228 229 /** 230 * @brief xcb_x_print_print_get_context_request_t 231 **/ 232 struct xcb_x_print_print_get_context_request_t { 233 ubyte major_opcode; /**< */ 234 ubyte minor_opcode; /**< */ 235 ushort length; /**< */ 236 } 237 238 /** 239 * @brief xcb_x_print_print_get_context_reply_t 240 **/ 241 struct xcb_x_print_print_get_context_reply_t { 242 ubyte response_type; /**< */ 243 ubyte pad0; /**< */ 244 ushort sequence; /**< */ 245 uint length; /**< */ 246 uint context; /**< */ 247 } 248 249 /** Opcode for xcb_x_print_print_destroy_context. */ 250 enum XCB_X_PRINT_PRINT_DESTROY_CONTEXT = 5; 251 252 /** 253 * @brief xcb_x_print_print_destroy_context_request_t 254 **/ 255 struct xcb_x_print_print_destroy_context_request_t { 256 ubyte major_opcode; /**< */ 257 ubyte minor_opcode; /**< */ 258 ushort length; /**< */ 259 uint context; /**< */ 260 } 261 262 /** 263 * @brief xcb_x_print_print_get_screen_of_context_cookie_t 264 **/ 265 struct xcb_x_print_print_get_screen_of_context_cookie_t { 266 uint sequence; /**< */ 267 } 268 269 /** Opcode for xcb_x_print_print_get_screen_of_context. */ 270 enum XCB_X_PRINT_PRINT_GET_SCREEN_OF_CONTEXT = 6; 271 272 /** 273 * @brief xcb_x_print_print_get_screen_of_context_request_t 274 **/ 275 struct xcb_x_print_print_get_screen_of_context_request_t { 276 ubyte major_opcode; /**< */ 277 ubyte minor_opcode; /**< */ 278 ushort length; /**< */ 279 } 280 281 /** 282 * @brief xcb_x_print_print_get_screen_of_context_reply_t 283 **/ 284 struct xcb_x_print_print_get_screen_of_context_reply_t { 285 ubyte response_type; /**< */ 286 ubyte pad0; /**< */ 287 ushort sequence; /**< */ 288 uint length; /**< */ 289 xcb_window_t root; /**< */ 290 } 291 292 /** Opcode for xcb_x_print_print_start_job. */ 293 enum XCB_X_PRINT_PRINT_START_JOB = 7; 294 295 /** 296 * @brief xcb_x_print_print_start_job_request_t 297 **/ 298 struct xcb_x_print_print_start_job_request_t { 299 ubyte major_opcode; /**< */ 300 ubyte minor_opcode; /**< */ 301 ushort length; /**< */ 302 ubyte output_mode; /**< */ 303 } 304 305 /** Opcode for xcb_x_print_print_end_job. */ 306 enum XCB_X_PRINT_PRINT_END_JOB = 8; 307 308 /** 309 * @brief xcb_x_print_print_end_job_request_t 310 **/ 311 struct xcb_x_print_print_end_job_request_t { 312 ubyte major_opcode; /**< */ 313 ubyte minor_opcode; /**< */ 314 ushort length; /**< */ 315 ubyte cancel; /**< */ 316 } 317 318 /** Opcode for xcb_x_print_print_start_doc. */ 319 enum XCB_X_PRINT_PRINT_START_DOC = 9; 320 321 /** 322 * @brief xcb_x_print_print_start_doc_request_t 323 **/ 324 struct xcb_x_print_print_start_doc_request_t { 325 ubyte major_opcode; /**< */ 326 ubyte minor_opcode; /**< */ 327 ushort length; /**< */ 328 ubyte driver_mode; /**< */ 329 } 330 331 /** Opcode for xcb_x_print_print_end_doc. */ 332 enum XCB_X_PRINT_PRINT_END_DOC = 10; 333 334 /** 335 * @brief xcb_x_print_print_end_doc_request_t 336 **/ 337 struct xcb_x_print_print_end_doc_request_t { 338 ubyte major_opcode; /**< */ 339 ubyte minor_opcode; /**< */ 340 ushort length; /**< */ 341 ubyte cancel; /**< */ 342 } 343 344 /** Opcode for xcb_x_print_print_put_document_data. */ 345 enum XCB_X_PRINT_PRINT_PUT_DOCUMENT_DATA = 11; 346 347 /** 348 * @brief xcb_x_print_print_put_document_data_request_t 349 **/ 350 struct xcb_x_print_print_put_document_data_request_t { 351 ubyte major_opcode; /**< */ 352 ubyte minor_opcode; /**< */ 353 ushort length; /**< */ 354 xcb_drawable_t drawable; /**< */ 355 uint len_data; /**< */ 356 ushort len_fmt; /**< */ 357 ushort len_options; /**< */ 358 } 359 360 /** 361 * @brief xcb_x_print_print_get_document_data_cookie_t 362 **/ 363 struct xcb_x_print_print_get_document_data_cookie_t { 364 uint sequence; /**< */ 365 } 366 367 /** Opcode for xcb_x_print_print_get_document_data. */ 368 enum XCB_X_PRINT_PRINT_GET_DOCUMENT_DATA = 12; 369 370 /** 371 * @brief xcb_x_print_print_get_document_data_request_t 372 **/ 373 struct xcb_x_print_print_get_document_data_request_t { 374 ubyte major_opcode; /**< */ 375 ubyte minor_opcode; /**< */ 376 ushort length; /**< */ 377 xcb_x_print_pcontext_t context; /**< */ 378 uint max_bytes; /**< */ 379 } 380 381 /** 382 * @brief xcb_x_print_print_get_document_data_reply_t 383 **/ 384 struct xcb_x_print_print_get_document_data_reply_t { 385 ubyte response_type; /**< */ 386 ubyte pad0; /**< */ 387 ushort sequence; /**< */ 388 uint length; /**< */ 389 uint status_code; /**< */ 390 uint finished_flag; /**< */ 391 uint dataLen; /**< */ 392 ubyte[12] pad1; /**< */ 393 } 394 395 /** Opcode for xcb_x_print_print_start_page. */ 396 enum XCB_X_PRINT_PRINT_START_PAGE = 13; 397 398 /** 399 * @brief xcb_x_print_print_start_page_request_t 400 **/ 401 struct xcb_x_print_print_start_page_request_t { 402 ubyte major_opcode; /**< */ 403 ubyte minor_opcode; /**< */ 404 ushort length; /**< */ 405 xcb_window_t window; /**< */ 406 } 407 408 /** Opcode for xcb_x_print_print_end_page. */ 409 enum XCB_X_PRINT_PRINT_END_PAGE = 14; 410 411 /** 412 * @brief xcb_x_print_print_end_page_request_t 413 **/ 414 struct xcb_x_print_print_end_page_request_t { 415 ubyte major_opcode; /**< */ 416 ubyte minor_opcode; /**< */ 417 ushort length; /**< */ 418 ubyte cancel; /**< */ 419 ubyte[3] pad0; /**< */ 420 } 421 422 /** Opcode for xcb_x_print_print_select_input. */ 423 enum XCB_X_PRINT_PRINT_SELECT_INPUT = 15; 424 425 /** 426 * @brief xcb_x_print_print_select_input_request_t 427 **/ 428 struct xcb_x_print_print_select_input_request_t { 429 ubyte major_opcode; /**< */ 430 ubyte minor_opcode; /**< */ 431 ushort length; /**< */ 432 xcb_x_print_pcontext_t context; /**< */ 433 uint event_mask; /**< */ 434 } 435 436 /** 437 * @brief xcb_x_print_print_input_selected_cookie_t 438 **/ 439 struct xcb_x_print_print_input_selected_cookie_t { 440 uint sequence; /**< */ 441 } 442 443 /** Opcode for xcb_x_print_print_input_selected. */ 444 enum XCB_X_PRINT_PRINT_INPUT_SELECTED = 16; 445 446 /** 447 * @brief xcb_x_print_print_input_selected_request_t 448 **/ 449 struct xcb_x_print_print_input_selected_request_t { 450 ubyte major_opcode; /**< */ 451 ubyte minor_opcode; /**< */ 452 ushort length; /**< */ 453 xcb_x_print_pcontext_t context; /**< */ 454 } 455 456 /** 457 * @brief xcb_x_print_print_input_selected_reply_t 458 **/ 459 struct xcb_x_print_print_input_selected_reply_t { 460 ubyte response_type; /**< */ 461 ubyte pad0; /**< */ 462 ushort sequence; /**< */ 463 uint length; /**< */ 464 uint event_mask; /**< */ 465 uint all_events_mask; /**< */ 466 } 467 468 /** 469 * @brief xcb_x_print_print_get_attributes_cookie_t 470 **/ 471 struct xcb_x_print_print_get_attributes_cookie_t { 472 uint sequence; /**< */ 473 } 474 475 /** Opcode for xcb_x_print_print_get_attributes. */ 476 enum XCB_X_PRINT_PRINT_GET_ATTRIBUTES = 17; 477 478 /** 479 * @brief xcb_x_print_print_get_attributes_request_t 480 **/ 481 struct xcb_x_print_print_get_attributes_request_t { 482 ubyte major_opcode; /**< */ 483 ubyte minor_opcode; /**< */ 484 ushort length; /**< */ 485 xcb_x_print_pcontext_t context; /**< */ 486 ubyte pool; /**< */ 487 ubyte[3] pad0; /**< */ 488 } 489 490 /** 491 * @brief xcb_x_print_print_get_attributes_reply_t 492 **/ 493 struct xcb_x_print_print_get_attributes_reply_t { 494 ubyte response_type; /**< */ 495 ubyte pad0; /**< */ 496 ushort sequence; /**< */ 497 uint length; /**< */ 498 uint stringLen; /**< */ 499 ubyte[20] pad1; /**< */ 500 } 501 502 /** 503 * @brief xcb_x_print_print_get_one_attributes_cookie_t 504 **/ 505 struct xcb_x_print_print_get_one_attributes_cookie_t { 506 uint sequence; /**< */ 507 } 508 509 /** Opcode for xcb_x_print_print_get_one_attributes. */ 510 enum XCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES = 19; 511 512 /** 513 * @brief xcb_x_print_print_get_one_attributes_request_t 514 **/ 515 struct xcb_x_print_print_get_one_attributes_request_t { 516 ubyte major_opcode; /**< */ 517 ubyte minor_opcode; /**< */ 518 ushort length; /**< */ 519 xcb_x_print_pcontext_t context; /**< */ 520 uint nameLen; /**< */ 521 ubyte pool; /**< */ 522 ubyte[3] pad0; /**< */ 523 } 524 525 /** 526 * @brief xcb_x_print_print_get_one_attributes_reply_t 527 **/ 528 struct xcb_x_print_print_get_one_attributes_reply_t { 529 ubyte response_type; /**< */ 530 ubyte pad0; /**< */ 531 ushort sequence; /**< */ 532 uint length; /**< */ 533 uint valueLen; /**< */ 534 ubyte[20] pad1; /**< */ 535 } 536 537 /** Opcode for xcb_x_print_print_set_attributes. */ 538 enum XCB_X_PRINT_PRINT_SET_ATTRIBUTES = 18; 539 540 /** 541 * @brief xcb_x_print_print_set_attributes_request_t 542 **/ 543 struct xcb_x_print_print_set_attributes_request_t { 544 ubyte major_opcode; /**< */ 545 ubyte minor_opcode; /**< */ 546 ushort length; /**< */ 547 xcb_x_print_pcontext_t context; /**< */ 548 uint stringLen; /**< */ 549 ubyte pool; /**< */ 550 ubyte rule; /**< */ 551 ubyte[2] pad0; /**< */ 552 } 553 554 /** 555 * @brief xcb_x_print_print_get_page_dimensions_cookie_t 556 **/ 557 struct xcb_x_print_print_get_page_dimensions_cookie_t { 558 uint sequence; /**< */ 559 } 560 561 /** Opcode for xcb_x_print_print_get_page_dimensions. */ 562 enum XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS = 21; 563 564 /** 565 * @brief xcb_x_print_print_get_page_dimensions_request_t 566 **/ 567 struct xcb_x_print_print_get_page_dimensions_request_t { 568 ubyte major_opcode; /**< */ 569 ubyte minor_opcode; /**< */ 570 ushort length; /**< */ 571 xcb_x_print_pcontext_t context; /**< */ 572 } 573 574 /** 575 * @brief xcb_x_print_print_get_page_dimensions_reply_t 576 **/ 577 struct xcb_x_print_print_get_page_dimensions_reply_t { 578 ubyte response_type; /**< */ 579 ubyte pad0; /**< */ 580 ushort sequence; /**< */ 581 uint length; /**< */ 582 ushort width; /**< */ 583 ushort height; /**< */ 584 ushort offset_x; /**< */ 585 ushort offset_y; /**< */ 586 ushort reproducible_width; /**< */ 587 ushort reproducible_height; /**< */ 588 } 589 590 /** 591 * @brief xcb_x_print_print_query_screens_cookie_t 592 **/ 593 struct xcb_x_print_print_query_screens_cookie_t { 594 uint sequence; /**< */ 595 } 596 597 /** Opcode for xcb_x_print_print_query_screens. */ 598 enum XCB_X_PRINT_PRINT_QUERY_SCREENS = 22; 599 600 /** 601 * @brief xcb_x_print_print_query_screens_request_t 602 **/ 603 struct xcb_x_print_print_query_screens_request_t { 604 ubyte major_opcode; /**< */ 605 ubyte minor_opcode; /**< */ 606 ushort length; /**< */ 607 } 608 609 /** 610 * @brief xcb_x_print_print_query_screens_reply_t 611 **/ 612 struct xcb_x_print_print_query_screens_reply_t { 613 ubyte response_type; /**< */ 614 ubyte pad0; /**< */ 615 ushort sequence; /**< */ 616 uint length; /**< */ 617 uint listCount; /**< */ 618 ubyte[20] pad1; /**< */ 619 } 620 621 /** 622 * @brief xcb_x_print_print_set_image_resolution_cookie_t 623 **/ 624 struct xcb_x_print_print_set_image_resolution_cookie_t { 625 uint sequence; /**< */ 626 } 627 628 /** Opcode for xcb_x_print_print_set_image_resolution. */ 629 enum XCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION = 23; 630 631 /** 632 * @brief xcb_x_print_print_set_image_resolution_request_t 633 **/ 634 struct xcb_x_print_print_set_image_resolution_request_t { 635 ubyte major_opcode; /**< */ 636 ubyte minor_opcode; /**< */ 637 ushort length; /**< */ 638 xcb_x_print_pcontext_t context; /**< */ 639 ushort image_resolution; /**< */ 640 } 641 642 /** 643 * @brief xcb_x_print_print_set_image_resolution_reply_t 644 **/ 645 struct xcb_x_print_print_set_image_resolution_reply_t { 646 ubyte response_type; /**< */ 647 ubyte status; /**< */ 648 ushort sequence; /**< */ 649 uint length; /**< */ 650 ushort previous_resolutions; /**< */ 651 } 652 653 /** 654 * @brief xcb_x_print_print_get_image_resolution_cookie_t 655 **/ 656 struct xcb_x_print_print_get_image_resolution_cookie_t { 657 uint sequence; /**< */ 658 } 659 660 /** Opcode for xcb_x_print_print_get_image_resolution. */ 661 enum XCB_X_PRINT_PRINT_GET_IMAGE_RESOLUTION = 24; 662 663 /** 664 * @brief xcb_x_print_print_get_image_resolution_request_t 665 **/ 666 struct xcb_x_print_print_get_image_resolution_request_t { 667 ubyte major_opcode; /**< */ 668 ubyte minor_opcode; /**< */ 669 ushort length; /**< */ 670 xcb_x_print_pcontext_t context; /**< */ 671 } 672 673 /** 674 * @brief xcb_x_print_print_get_image_resolution_reply_t 675 **/ 676 struct xcb_x_print_print_get_image_resolution_reply_t { 677 ubyte response_type; /**< */ 678 ubyte pad0; /**< */ 679 ushort sequence; /**< */ 680 uint length; /**< */ 681 ushort image_resolution; /**< */ 682 } 683 684 /** Opcode for xcb_x_print_notify. */ 685 enum XCB_X_PRINT_NOTIFY = 0; 686 687 /** 688 * @brief xcb_x_print_notify_event_t 689 **/ 690 struct xcb_x_print_notify_event_t { 691 ubyte response_type; /**< */ 692 ubyte detail; /**< */ 693 ushort sequence; /**< */ 694 xcb_x_print_pcontext_t context; /**< */ 695 ubyte cancel; /**< */ 696 } 697 698 /** Opcode for xcb_x_print_attribut_notify. */ 699 enum XCB_X_PRINT_ATTRIBUT_NOTIFY = 1; 700 701 /** 702 * @brief xcb_x_print_attribut_notify_event_t 703 **/ 704 struct xcb_x_print_attribut_notify_event_t { 705 ubyte response_type; /**< */ 706 ubyte detail; /**< */ 707 ushort sequence; /**< */ 708 xcb_x_print_pcontext_t context; /**< */ 709 } 710 711 /** Opcode for xcb_x_print_bad_context. */ 712 enum XCB_X_PRINT_BAD_CONTEXT = 0; 713 714 /** 715 * @brief xcb_x_print_bad_context_error_t 716 **/ 717 struct xcb_x_print_bad_context_error_t { 718 ubyte response_type; /**< */ 719 ubyte error_code; /**< */ 720 ushort sequence; /**< */ 721 } 722 723 /** Opcode for xcb_x_print_bad_sequence. */ 724 enum XCB_X_PRINT_BAD_SEQUENCE = 1; 725 726 /** 727 * @brief xcb_x_print_bad_sequence_error_t 728 **/ 729 struct xcb_x_print_bad_sequence_error_t { 730 ubyte response_type; /**< */ 731 ubyte error_code; /**< */ 732 ushort sequence; /**< */ 733 } 734 735 /** 736 * Get the next element of the iterator 737 * @param i Pointer to a xcb_x_print_string8_iterator_t 738 * 739 * Get the next element in the iterator. The member rem is 740 * decreased by one. The member data points to the next 741 * element. The member index is increased by sizeof(xcb_x_print_string8_t) 742 */ 743 void xcb_x_print_string8_next(xcb_x_print_string8_iterator_t* i /**< */ ); 744 745 /** 746 * Return the iterator pointing to the last element 747 * @param i An xcb_x_print_string8_iterator_t 748 * @return The iterator pointing to the last element 749 * 750 * Set the current element in the iterator to the last element. 751 * The member rem is set to 0. The member data points to the 752 * last element. 753 */ 754 xcb_generic_iterator_t xcb_x_print_string8_end(xcb_x_print_string8_iterator_t i /**< */ ); 755 756 int xcb_x_print_printer_serialize(void** _buffer /**< */ , const xcb_x_print_printer_t* _aux /**< */ , const xcb_x_print_string8_t* name /**< */ , 757 const xcb_x_print_string8_t* description /**< */ ); 758 759 int xcb_x_print_printer_unserialize(const void* _buffer /**< */ , xcb_x_print_printer_t** _aux /**< */ ); 760 761 int xcb_x_print_printer_sizeof(const void* _buffer /**< */ ); 762 763 xcb_x_print_string8_t* xcb_x_print_printer_name(const xcb_x_print_printer_t* R /**< */ ); 764 765 int xcb_x_print_printer_name_length(const xcb_x_print_printer_t* R /**< */ ); 766 767 xcb_generic_iterator_t xcb_x_print_printer_name_end(const xcb_x_print_printer_t* R /**< */ ); 768 769 xcb_x_print_string8_t* xcb_x_print_printer_description(const xcb_x_print_printer_t* R /**< */ ); 770 771 int xcb_x_print_printer_description_length(const xcb_x_print_printer_t* R /**< */ ); 772 773 xcb_generic_iterator_t xcb_x_print_printer_description_end(const xcb_x_print_printer_t* R /**< */ ); 774 775 /** 776 * Get the next element of the iterator 777 * @param i Pointer to a xcb_x_print_printer_iterator_t 778 * 779 * Get the next element in the iterator. The member rem is 780 * decreased by one. The member data points to the next 781 * element. The member index is increased by sizeof(xcb_x_print_printer_t) 782 */ 783 void xcb_x_print_printer_next(xcb_x_print_printer_iterator_t* i /**< */ ); 784 785 /** 786 * Return the iterator pointing to the last element 787 * @param i An xcb_x_print_printer_iterator_t 788 * @return The iterator pointing to the last element 789 * 790 * Set the current element in the iterator to the last element. 791 * The member rem is set to 0. The member data points to the 792 * last element. 793 */ 794 xcb_generic_iterator_t xcb_x_print_printer_end(xcb_x_print_printer_iterator_t i /**< */ ); 795 796 /** 797 * Get the next element of the iterator 798 * @param i Pointer to a xcb_x_print_pcontext_iterator_t 799 * 800 * Get the next element in the iterator. The member rem is 801 * decreased by one. The member data points to the next 802 * element. The member index is increased by sizeof(xcb_x_print_pcontext_t) 803 */ 804 void xcb_x_print_pcontext_next(xcb_x_print_pcontext_iterator_t* i /**< */ ); 805 806 /** 807 * Return the iterator pointing to the last element 808 * @param i An xcb_x_print_pcontext_iterator_t 809 * @return The iterator pointing to the last element 810 * 811 * Set the current element in the iterator to the last element. 812 * The member rem is set to 0. The member data points to the 813 * last element. 814 */ 815 xcb_generic_iterator_t xcb_x_print_pcontext_end(xcb_x_print_pcontext_iterator_t i /**< */ ); 816 817 /** 818 * 819 * @param c The connection 820 * @return A cookie 821 * 822 * Delivers a request to the X server. 823 * 824 */ 825 xcb_x_print_print_query_version_cookie_t xcb_x_print_print_query_version(xcb_connection_t* c /**< */ ); 826 827 /** 828 * 829 * @param c The connection 830 * @return A cookie 831 * 832 * Delivers a request to the X server. 833 * 834 * This form can be used only if the request will cause 835 * a reply to be generated. Any returned error will be 836 * placed in the event queue. 837 */ 838 xcb_x_print_print_query_version_cookie_t xcb_x_print_print_query_version_unchecked(xcb_connection_t* c /**< */ ); 839 840 /** 841 * Return the reply 842 * @param c The connection 843 * @param cookie The cookie 844 * @param e The xcb_generic_error_t supplied 845 * 846 * Returns the reply of the request asked by 847 * 848 * The parameter @p e supplied to this function must be NULL if 849 * xcb_x_print_print_query_version_unchecked(). is used. 850 * Otherwise, it stores the error if any. 851 * 852 * The returned value must be freed by the caller using free(). 853 */ 854 xcb_x_print_print_query_version_reply_t* xcb_x_print_print_query_version_reply(xcb_connection_t* c /**< */ , 855 xcb_x_print_print_query_version_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 856 857 int xcb_x_print_print_get_printer_list_sizeof(const void* _buffer /**< */ ); 858 859 /** 860 * 861 * @param c The connection 862 * @return A cookie 863 * 864 * Delivers a request to the X server. 865 * 866 */ 867 xcb_x_print_print_get_printer_list_cookie_t xcb_x_print_print_get_printer_list(xcb_connection_t* c /**< */ , uint printerNameLen /**< */ , 868 uint localeLen /**< */ , const xcb_x_print_string8_t* printer_name /**< */ , const xcb_x_print_string8_t* locale /**< */ ); 869 870 /** 871 * 872 * @param c The connection 873 * @return A cookie 874 * 875 * Delivers a request to the X server. 876 * 877 * This form can be used only if the request will cause 878 * a reply to be generated. Any returned error will be 879 * placed in the event queue. 880 */ 881 xcb_x_print_print_get_printer_list_cookie_t xcb_x_print_print_get_printer_list_unchecked(xcb_connection_t* c /**< */ , 882 uint printerNameLen /**< */ , uint localeLen /**< */ , const xcb_x_print_string8_t* printer_name /**< */ , 883 const xcb_x_print_string8_t* locale /**< */ ); 884 885 int xcb_x_print_print_get_printer_list_printers_length(const xcb_x_print_print_get_printer_list_reply_t* R /**< */ ); 886 887 xcb_x_print_printer_iterator_t xcb_x_print_print_get_printer_list_printers_iterator(const xcb_x_print_print_get_printer_list_reply_t* R /**< */ ); 888 889 /** 890 * Return the reply 891 * @param c The connection 892 * @param cookie The cookie 893 * @param e The xcb_generic_error_t supplied 894 * 895 * Returns the reply of the request asked by 896 * 897 * The parameter @p e supplied to this function must be NULL if 898 * xcb_x_print_print_get_printer_list_unchecked(). is used. 899 * Otherwise, it stores the error if any. 900 * 901 * The returned value must be freed by the caller using free(). 902 */ 903 xcb_x_print_print_get_printer_list_reply_t* xcb_x_print_print_get_printer_list_reply(xcb_connection_t* c /**< */ , 904 xcb_x_print_print_get_printer_list_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 905 906 /** 907 * 908 * @param c The connection 909 * @return A cookie 910 * 911 * Delivers a request to the X server. 912 * 913 * This form can be used only if the request will not cause 914 * a reply to be generated. Any returned error will be 915 * saved for handling by xcb_request_check(). 916 */ 917 xcb_void_cookie_t xcb_x_print_print_rehash_printer_list_checked(xcb_connection_t* c /**< */ ); 918 919 /** 920 * 921 * @param c The connection 922 * @return A cookie 923 * 924 * Delivers a request to the X server. 925 * 926 */ 927 xcb_void_cookie_t xcb_x_print_print_rehash_printer_list(xcb_connection_t* c /**< */ ); 928 929 int xcb_x_print_create_context_sizeof(const void* _buffer /**< */ ); 930 931 /** 932 * 933 * @param c The connection 934 * @return A cookie 935 * 936 * Delivers a request to the X server. 937 * 938 * This form can be used only if the request will not cause 939 * a reply to be generated. Any returned error will be 940 * saved for handling by xcb_request_check(). 941 */ 942 xcb_void_cookie_t xcb_x_print_create_context_checked(xcb_connection_t* c /**< */ , uint context_id /**< */ , uint printerNameLen /**< */ , 943 uint localeLen /**< */ , const xcb_x_print_string8_t* printerName /**< */ , const xcb_x_print_string8_t* locale /**< */ ); 944 945 /** 946 * 947 * @param c The connection 948 * @return A cookie 949 * 950 * Delivers a request to the X server. 951 * 952 */ 953 xcb_void_cookie_t xcb_x_print_create_context(xcb_connection_t* c /**< */ , uint context_id /**< */ , uint printerNameLen /**< */ , uint localeLen /**< */ , 954 const xcb_x_print_string8_t* printerName /**< */ , const xcb_x_print_string8_t* locale /**< */ ); 955 956 /** 957 * 958 * @param c The connection 959 * @return A cookie 960 * 961 * Delivers a request to the X server. 962 * 963 * This form can be used only if the request will not cause 964 * a reply to be generated. Any returned error will be 965 * saved for handling by xcb_request_check(). 966 */ 967 xcb_void_cookie_t xcb_x_print_print_set_context_checked(xcb_connection_t* c /**< */ , uint context /**< */ ); 968 969 /** 970 * 971 * @param c The connection 972 * @return A cookie 973 * 974 * Delivers a request to the X server. 975 * 976 */ 977 xcb_void_cookie_t xcb_x_print_print_set_context(xcb_connection_t* c /**< */ , uint context /**< */ ); 978 979 /** 980 * 981 * @param c The connection 982 * @return A cookie 983 * 984 * Delivers a request to the X server. 985 * 986 */ 987 xcb_x_print_print_get_context_cookie_t xcb_x_print_print_get_context(xcb_connection_t* c /**< */ ); 988 989 /** 990 * 991 * @param c The connection 992 * @return A cookie 993 * 994 * Delivers a request to the X server. 995 * 996 * This form can be used only if the request will cause 997 * a reply to be generated. Any returned error will be 998 * placed in the event queue. 999 */ 1000 xcb_x_print_print_get_context_cookie_t xcb_x_print_print_get_context_unchecked(xcb_connection_t* c /**< */ ); 1001 1002 /** 1003 * Return the reply 1004 * @param c The connection 1005 * @param cookie The cookie 1006 * @param e The xcb_generic_error_t supplied 1007 * 1008 * Returns the reply of the request asked by 1009 * 1010 * The parameter @p e supplied to this function must be NULL if 1011 * xcb_x_print_print_get_context_unchecked(). is used. 1012 * Otherwise, it stores the error if any. 1013 * 1014 * The returned value must be freed by the caller using free(). 1015 */ 1016 xcb_x_print_print_get_context_reply_t* xcb_x_print_print_get_context_reply(xcb_connection_t* c /**< */ , 1017 xcb_x_print_print_get_context_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1018 1019 /** 1020 * 1021 * @param c The connection 1022 * @return A cookie 1023 * 1024 * Delivers a request to the X server. 1025 * 1026 * This form can be used only if the request will not cause 1027 * a reply to be generated. Any returned error will be 1028 * saved for handling by xcb_request_check(). 1029 */ 1030 xcb_void_cookie_t xcb_x_print_print_destroy_context_checked(xcb_connection_t* c /**< */ , uint context /**< */ ); 1031 1032 /** 1033 * 1034 * @param c The connection 1035 * @return A cookie 1036 * 1037 * Delivers a request to the X server. 1038 * 1039 */ 1040 xcb_void_cookie_t xcb_x_print_print_destroy_context(xcb_connection_t* c /**< */ , uint context /**< */ ); 1041 1042 /** 1043 * 1044 * @param c The connection 1045 * @return A cookie 1046 * 1047 * Delivers a request to the X server. 1048 * 1049 */ 1050 xcb_x_print_print_get_screen_of_context_cookie_t xcb_x_print_print_get_screen_of_context(xcb_connection_t* c /**< */ ); 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 cause 1060 * a reply to be generated. Any returned error will be 1061 * placed in the event queue. 1062 */ 1063 xcb_x_print_print_get_screen_of_context_cookie_t xcb_x_print_print_get_screen_of_context_unchecked(xcb_connection_t* c /**< */ ); 1064 1065 /** 1066 * Return the reply 1067 * @param c The connection 1068 * @param cookie The cookie 1069 * @param e The xcb_generic_error_t supplied 1070 * 1071 * Returns the reply of the request asked by 1072 * 1073 * The parameter @p e supplied to this function must be NULL if 1074 * xcb_x_print_print_get_screen_of_context_unchecked(). is used. 1075 * Otherwise, it stores the error if any. 1076 * 1077 * The returned value must be freed by the caller using free(). 1078 */ 1079 xcb_x_print_print_get_screen_of_context_reply_t* xcb_x_print_print_get_screen_of_context_reply(xcb_connection_t* c /**< */ , 1080 xcb_x_print_print_get_screen_of_context_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1081 1082 /** 1083 * 1084 * @param c The connection 1085 * @return A cookie 1086 * 1087 * Delivers a request to the X server. 1088 * 1089 * This form can be used only if the request will not cause 1090 * a reply to be generated. Any returned error will be 1091 * saved for handling by xcb_request_check(). 1092 */ 1093 xcb_void_cookie_t xcb_x_print_print_start_job_checked(xcb_connection_t* c /**< */ , ubyte output_mode /**< */ ); 1094 1095 /** 1096 * 1097 * @param c The connection 1098 * @return A cookie 1099 * 1100 * Delivers a request to the X server. 1101 * 1102 */ 1103 xcb_void_cookie_t xcb_x_print_print_start_job(xcb_connection_t* c /**< */ , ubyte output_mode /**< */ ); 1104 1105 /** 1106 * 1107 * @param c The connection 1108 * @return A cookie 1109 * 1110 * Delivers a request to the X server. 1111 * 1112 * This form can be used only if the request will not cause 1113 * a reply to be generated. Any returned error will be 1114 * saved for handling by xcb_request_check(). 1115 */ 1116 xcb_void_cookie_t xcb_x_print_print_end_job_checked(xcb_connection_t* c /**< */ , ubyte cancel /**< */ ); 1117 1118 /** 1119 * 1120 * @param c The connection 1121 * @return A cookie 1122 * 1123 * Delivers a request to the X server. 1124 * 1125 */ 1126 xcb_void_cookie_t xcb_x_print_print_end_job(xcb_connection_t* c /**< */ , ubyte cancel /**< */ ); 1127 1128 /** 1129 * 1130 * @param c The connection 1131 * @return A cookie 1132 * 1133 * Delivers a request to the X server. 1134 * 1135 * This form can be used only if the request will not cause 1136 * a reply to be generated. Any returned error will be 1137 * saved for handling by xcb_request_check(). 1138 */ 1139 xcb_void_cookie_t xcb_x_print_print_start_doc_checked(xcb_connection_t* c /**< */ , ubyte driver_mode /**< */ ); 1140 1141 /** 1142 * 1143 * @param c The connection 1144 * @return A cookie 1145 * 1146 * Delivers a request to the X server. 1147 * 1148 */ 1149 xcb_void_cookie_t xcb_x_print_print_start_doc(xcb_connection_t* c /**< */ , ubyte driver_mode /**< */ ); 1150 1151 /** 1152 * 1153 * @param c The connection 1154 * @return A cookie 1155 * 1156 * Delivers a request to the X server. 1157 * 1158 * This form can be used only if the request will not cause 1159 * a reply to be generated. Any returned error will be 1160 * saved for handling by xcb_request_check(). 1161 */ 1162 xcb_void_cookie_t xcb_x_print_print_end_doc_checked(xcb_connection_t* c /**< */ , ubyte cancel /**< */ ); 1163 1164 /** 1165 * 1166 * @param c The connection 1167 * @return A cookie 1168 * 1169 * Delivers a request to the X server. 1170 * 1171 */ 1172 xcb_void_cookie_t xcb_x_print_print_end_doc(xcb_connection_t* c /**< */ , ubyte cancel /**< */ ); 1173 1174 int xcb_x_print_print_put_document_data_sizeof(const void* _buffer /**< */ , uint doc_format_len /**< */ , uint options_len /**< */ ); 1175 1176 /** 1177 * 1178 * @param c The connection 1179 * @return A cookie 1180 * 1181 * Delivers a request to the X server. 1182 * 1183 * This form can be used only if the request will not cause 1184 * a reply to be generated. Any returned error will be 1185 * saved for handling by xcb_request_check(). 1186 */ 1187 xcb_void_cookie_t xcb_x_print_print_put_document_data_checked(xcb_connection_t* c /**< */ , xcb_drawable_t drawable /**< */ , uint len_data /**< */ , 1188 ushort len_fmt /**< */ , ushort len_options /**< */ , const ubyte* data /**< */ , uint doc_format_len /**< */ , 1189 const xcb_x_print_string8_t* doc_format /**< */ , uint options_len /**< */ , const xcb_x_print_string8_t* options /**< */ ); 1190 1191 /** 1192 * 1193 * @param c The connection 1194 * @return A cookie 1195 * 1196 * Delivers a request to the X server. 1197 * 1198 */ 1199 xcb_void_cookie_t xcb_x_print_print_put_document_data(xcb_connection_t* c /**< */ , xcb_drawable_t drawable /**< */ , uint len_data /**< */ , 1200 ushort len_fmt /**< */ , ushort len_options /**< */ , const ubyte* data /**< */ , uint doc_format_len /**< */ , 1201 const xcb_x_print_string8_t* doc_format /**< */ , uint options_len /**< */ , const xcb_x_print_string8_t* options /**< */ ); 1202 1203 int xcb_x_print_print_get_document_data_sizeof(const void* _buffer /**< */ ); 1204 1205 /** 1206 * 1207 * @param c The connection 1208 * @return A cookie 1209 * 1210 * Delivers a request to the X server. 1211 * 1212 */ 1213 xcb_x_print_print_get_document_data_cookie_t xcb_x_print_print_get_document_data(xcb_connection_t* c /**< */ , 1214 xcb_x_print_pcontext_t context /**< */ , uint max_bytes /**< */ ); 1215 1216 /** 1217 * 1218 * @param c The connection 1219 * @return A cookie 1220 * 1221 * Delivers a request to the X server. 1222 * 1223 * This form can be used only if the request will cause 1224 * a reply to be generated. Any returned error will be 1225 * placed in the event queue. 1226 */ 1227 xcb_x_print_print_get_document_data_cookie_t xcb_x_print_print_get_document_data_unchecked(xcb_connection_t* c /**< */ , 1228 xcb_x_print_pcontext_t context /**< */ , uint max_bytes /**< */ ); 1229 1230 ubyte* xcb_x_print_print_get_document_data_data(const xcb_x_print_print_get_document_data_reply_t* R /**< */ ); 1231 1232 int xcb_x_print_print_get_document_data_data_length(const xcb_x_print_print_get_document_data_reply_t* R /**< */ ); 1233 1234 xcb_generic_iterator_t xcb_x_print_print_get_document_data_data_end(const xcb_x_print_print_get_document_data_reply_t* R /**< */ ); 1235 1236 /** 1237 * Return the reply 1238 * @param c The connection 1239 * @param cookie The cookie 1240 * @param e The xcb_generic_error_t supplied 1241 * 1242 * Returns the reply of the request asked by 1243 * 1244 * The parameter @p e supplied to this function must be NULL if 1245 * xcb_x_print_print_get_document_data_unchecked(). is used. 1246 * Otherwise, it stores the error if any. 1247 * 1248 * The returned value must be freed by the caller using free(). 1249 */ 1250 xcb_x_print_print_get_document_data_reply_t* xcb_x_print_print_get_document_data_reply(xcb_connection_t* c /**< */ , 1251 xcb_x_print_print_get_document_data_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1252 1253 /** 1254 * 1255 * @param c The connection 1256 * @return A cookie 1257 * 1258 * Delivers a request to the X server. 1259 * 1260 * This form can be used only if the request will not cause 1261 * a reply to be generated. Any returned error will be 1262 * saved for handling by xcb_request_check(). 1263 */ 1264 xcb_void_cookie_t xcb_x_print_print_start_page_checked(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); 1265 1266 /** 1267 * 1268 * @param c The connection 1269 * @return A cookie 1270 * 1271 * Delivers a request to the X server. 1272 * 1273 */ 1274 xcb_void_cookie_t xcb_x_print_print_start_page(xcb_connection_t* c /**< */ , xcb_window_t window /**< */ ); 1275 1276 /** 1277 * 1278 * @param c The connection 1279 * @return A cookie 1280 * 1281 * Delivers a request to the X server. 1282 * 1283 * This form can be used only if the request will not cause 1284 * a reply to be generated. Any returned error will be 1285 * saved for handling by xcb_request_check(). 1286 */ 1287 xcb_void_cookie_t xcb_x_print_print_end_page_checked(xcb_connection_t* c /**< */ , ubyte cancel /**< */ ); 1288 1289 /** 1290 * 1291 * @param c The connection 1292 * @return A cookie 1293 * 1294 * Delivers a request to the X server. 1295 * 1296 */ 1297 xcb_void_cookie_t xcb_x_print_print_end_page(xcb_connection_t* c /**< */ , ubyte cancel /**< */ ); 1298 1299 int xcb_x_print_print_select_input_sizeof(const void* _buffer /**< */ ); 1300 1301 /** 1302 * 1303 * @param c The connection 1304 * @return A cookie 1305 * 1306 * Delivers a request to the X server. 1307 * 1308 * This form can be used only if the request will not cause 1309 * a reply to be generated. Any returned error will be 1310 * saved for handling by xcb_request_check(). 1311 */ 1312 xcb_void_cookie_t xcb_x_print_print_select_input_checked(xcb_connection_t* c /**< */ , xcb_x_print_pcontext_t context /**< */ , 1313 uint event_mask /**< */ , const uint* event_list /**< */ ); 1314 1315 /** 1316 * 1317 * @param c The connection 1318 * @return A cookie 1319 * 1320 * Delivers a request to the X server. 1321 * 1322 */ 1323 xcb_void_cookie_t xcb_x_print_print_select_input(xcb_connection_t* c /**< */ , xcb_x_print_pcontext_t context /**< */ , 1324 uint event_mask /**< */ , const uint* event_list /**< */ ); 1325 1326 int xcb_x_print_print_input_selected_serialize(void** _buffer /**< */ , const xcb_x_print_print_input_selected_reply_t* _aux /**< */ , 1327 const uint* event_list /**< */ , const uint* all_events_list /**< */ ); 1328 1329 int xcb_x_print_print_input_selected_unserialize(const void* _buffer /**< */ , xcb_x_print_print_input_selected_reply_t** _aux /**< */ ); 1330 1331 int xcb_x_print_print_input_selected_sizeof(const void* _buffer /**< */ ); 1332 1333 /** 1334 * 1335 * @param c The connection 1336 * @return A cookie 1337 * 1338 * Delivers a request to the X server. 1339 * 1340 */ 1341 xcb_x_print_print_input_selected_cookie_t xcb_x_print_print_input_selected(xcb_connection_t* c /**< */ , xcb_x_print_pcontext_t context /**< */ ); 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 cause 1351 * a reply to be generated. Any returned error will be 1352 * placed in the event queue. 1353 */ 1354 xcb_x_print_print_input_selected_cookie_t xcb_x_print_print_input_selected_unchecked(xcb_connection_t* c /**< */ , 1355 xcb_x_print_pcontext_t context /**< */ ); 1356 1357 uint* xcb_x_print_print_input_selected_event_list(const xcb_x_print_print_input_selected_reply_t* R /**< */ ); 1358 1359 int xcb_x_print_print_input_selected_event_list_length(const xcb_x_print_print_input_selected_reply_t* R /**< */ ); 1360 1361 xcb_generic_iterator_t xcb_x_print_print_input_selected_event_list_end(const xcb_x_print_print_input_selected_reply_t* R /**< */ ); 1362 1363 uint* xcb_x_print_print_input_selected_all_events_list(const xcb_x_print_print_input_selected_reply_t* R /**< */ ); 1364 1365 int xcb_x_print_print_input_selected_all_events_list_length(const xcb_x_print_print_input_selected_reply_t* R /**< */ ); 1366 1367 xcb_generic_iterator_t xcb_x_print_print_input_selected_all_events_list_end(const xcb_x_print_print_input_selected_reply_t* R /**< */ ); 1368 1369 /** 1370 * Return the reply 1371 * @param c The connection 1372 * @param cookie The cookie 1373 * @param e The xcb_generic_error_t supplied 1374 * 1375 * Returns the reply of the request asked by 1376 * 1377 * The parameter @p e supplied to this function must be NULL if 1378 * xcb_x_print_print_input_selected_unchecked(). is used. 1379 * Otherwise, it stores the error if any. 1380 * 1381 * The returned value must be freed by the caller using free(). 1382 */ 1383 xcb_x_print_print_input_selected_reply_t* xcb_x_print_print_input_selected_reply(xcb_connection_t* c /**< */ , 1384 xcb_x_print_print_input_selected_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1385 1386 int xcb_x_print_print_get_attributes_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_x_print_print_get_attributes_cookie_t xcb_x_print_print_get_attributes(xcb_connection_t* c /**< */ , 1397 xcb_x_print_pcontext_t context /**< */ , ubyte pool /**< */ ); 1398 1399 /** 1400 * 1401 * @param c The connection 1402 * @return A cookie 1403 * 1404 * Delivers a request to the X server. 1405 * 1406 * This form can be used only if the request will cause 1407 * a reply to be generated. Any returned error will be 1408 * placed in the event queue. 1409 */ 1410 xcb_x_print_print_get_attributes_cookie_t xcb_x_print_print_get_attributes_unchecked(xcb_connection_t* c /**< */ , 1411 xcb_x_print_pcontext_t context /**< */ , ubyte pool /**< */ ); 1412 1413 xcb_x_print_string8_t* xcb_x_print_print_get_attributes_attributes(const xcb_x_print_print_get_attributes_reply_t* R /**< */ ); 1414 1415 int xcb_x_print_print_get_attributes_attributes_length(const xcb_x_print_print_get_attributes_reply_t* R /**< */ ); 1416 1417 xcb_generic_iterator_t xcb_x_print_print_get_attributes_attributes_end(const xcb_x_print_print_get_attributes_reply_t* R /**< */ ); 1418 1419 /** 1420 * Return the reply 1421 * @param c The connection 1422 * @param cookie The cookie 1423 * @param e The xcb_generic_error_t supplied 1424 * 1425 * Returns the reply of the request asked by 1426 * 1427 * The parameter @p e supplied to this function must be NULL if 1428 * xcb_x_print_print_get_attributes_unchecked(). is used. 1429 * Otherwise, it stores the error if any. 1430 * 1431 * The returned value must be freed by the caller using free(). 1432 */ 1433 xcb_x_print_print_get_attributes_reply_t* xcb_x_print_print_get_attributes_reply(xcb_connection_t* c /**< */ , 1434 xcb_x_print_print_get_attributes_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1435 1436 int xcb_x_print_print_get_one_attributes_sizeof(const void* _buffer /**< */ ); 1437 1438 /** 1439 * 1440 * @param c The connection 1441 * @return A cookie 1442 * 1443 * Delivers a request to the X server. 1444 * 1445 */ 1446 xcb_x_print_print_get_one_attributes_cookie_t xcb_x_print_print_get_one_attributes(xcb_connection_t* c /**< */ , 1447 xcb_x_print_pcontext_t context /**< */ , uint nameLen /**< */ , ubyte pool /**< */ , const xcb_x_print_string8_t* name /**< */ ); 1448 1449 /** 1450 * 1451 * @param c The connection 1452 * @return A cookie 1453 * 1454 * Delivers a request to the X server. 1455 * 1456 * This form can be used only if the request will cause 1457 * a reply to be generated. Any returned error will be 1458 * placed in the event queue. 1459 */ 1460 xcb_x_print_print_get_one_attributes_cookie_t xcb_x_print_print_get_one_attributes_unchecked(xcb_connection_t* c /**< */ , 1461 xcb_x_print_pcontext_t context /**< */ , uint nameLen /**< */ , ubyte pool /**< */ , const xcb_x_print_string8_t* name /**< */ ); 1462 1463 xcb_x_print_string8_t* xcb_x_print_print_get_one_attributes_value(const xcb_x_print_print_get_one_attributes_reply_t* R /**< */ ); 1464 1465 int xcb_x_print_print_get_one_attributes_value_length(const xcb_x_print_print_get_one_attributes_reply_t* R /**< */ ); 1466 1467 xcb_generic_iterator_t xcb_x_print_print_get_one_attributes_value_end(const xcb_x_print_print_get_one_attributes_reply_t* R /**< */ ); 1468 1469 /** 1470 * Return the reply 1471 * @param c The connection 1472 * @param cookie The cookie 1473 * @param e The xcb_generic_error_t supplied 1474 * 1475 * Returns the reply of the request asked by 1476 * 1477 * The parameter @p e supplied to this function must be NULL if 1478 * xcb_x_print_print_get_one_attributes_unchecked(). is used. 1479 * Otherwise, it stores the error if any. 1480 * 1481 * The returned value must be freed by the caller using free(). 1482 */ 1483 xcb_x_print_print_get_one_attributes_reply_t* xcb_x_print_print_get_one_attributes_reply(xcb_connection_t* c /**< */ , 1484 xcb_x_print_print_get_one_attributes_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1485 1486 int xcb_x_print_print_set_attributes_sizeof(const void* _buffer /**< */ , uint attributes_len /**< */ ); 1487 1488 /** 1489 * 1490 * @param c The connection 1491 * @return A cookie 1492 * 1493 * Delivers a request to the X server. 1494 * 1495 * This form can be used only if the request will not cause 1496 * a reply to be generated. Any returned error will be 1497 * saved for handling by xcb_request_check(). 1498 */ 1499 xcb_void_cookie_t xcb_x_print_print_set_attributes_checked(xcb_connection_t* c /**< */ , xcb_x_print_pcontext_t context /**< */ , 1500 uint stringLen /**< */ , ubyte pool /**< */ , ubyte rule /**< */ , uint attributes_len /**< */ , const xcb_x_print_string8_t* attributes /**< */ ); 1501 1502 /** 1503 * 1504 * @param c The connection 1505 * @return A cookie 1506 * 1507 * Delivers a request to the X server. 1508 * 1509 */ 1510 xcb_void_cookie_t xcb_x_print_print_set_attributes(xcb_connection_t* c /**< */ , xcb_x_print_pcontext_t context /**< */ , uint stringLen /**< */ , 1511 ubyte pool /**< */ , ubyte rule /**< */ , uint attributes_len /**< */ , const xcb_x_print_string8_t* attributes /**< */ ); 1512 1513 /** 1514 * 1515 * @param c The connection 1516 * @return A cookie 1517 * 1518 * Delivers a request to the X server. 1519 * 1520 */ 1521 xcb_x_print_print_get_page_dimensions_cookie_t xcb_x_print_print_get_page_dimensions(xcb_connection_t* c /**< */ , 1522 xcb_x_print_pcontext_t context /**< */ ); 1523 1524 /** 1525 * 1526 * @param c The connection 1527 * @return A cookie 1528 * 1529 * Delivers a request to the X server. 1530 * 1531 * This form can be used only if the request will cause 1532 * a reply to be generated. Any returned error will be 1533 * placed in the event queue. 1534 */ 1535 xcb_x_print_print_get_page_dimensions_cookie_t xcb_x_print_print_get_page_dimensions_unchecked(xcb_connection_t* c /**< */ , 1536 xcb_x_print_pcontext_t context /**< */ ); 1537 1538 /** 1539 * Return the reply 1540 * @param c The connection 1541 * @param cookie The cookie 1542 * @param e The xcb_generic_error_t supplied 1543 * 1544 * Returns the reply of the request asked by 1545 * 1546 * The parameter @p e supplied to this function must be NULL if 1547 * xcb_x_print_print_get_page_dimensions_unchecked(). is used. 1548 * Otherwise, it stores the error if any. 1549 * 1550 * The returned value must be freed by the caller using free(). 1551 */ 1552 xcb_x_print_print_get_page_dimensions_reply_t* xcb_x_print_print_get_page_dimensions_reply(xcb_connection_t* c /**< */ , 1553 xcb_x_print_print_get_page_dimensions_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1554 1555 int xcb_x_print_print_query_screens_sizeof(const void* _buffer /**< */ ); 1556 1557 /** 1558 * 1559 * @param c The connection 1560 * @return A cookie 1561 * 1562 * Delivers a request to the X server. 1563 * 1564 */ 1565 xcb_x_print_print_query_screens_cookie_t xcb_x_print_print_query_screens(xcb_connection_t* c /**< */ ); 1566 1567 /** 1568 * 1569 * @param c The connection 1570 * @return A cookie 1571 * 1572 * Delivers a request to the X server. 1573 * 1574 * This form can be used only if the request will cause 1575 * a reply to be generated. Any returned error will be 1576 * placed in the event queue. 1577 */ 1578 xcb_x_print_print_query_screens_cookie_t xcb_x_print_print_query_screens_unchecked(xcb_connection_t* c /**< */ ); 1579 1580 xcb_window_t* xcb_x_print_print_query_screens_roots(const xcb_x_print_print_query_screens_reply_t* R /**< */ ); 1581 1582 int xcb_x_print_print_query_screens_roots_length(const xcb_x_print_print_query_screens_reply_t* R /**< */ ); 1583 1584 xcb_generic_iterator_t xcb_x_print_print_query_screens_roots_end(const xcb_x_print_print_query_screens_reply_t* R /**< */ ); 1585 1586 /** 1587 * Return the reply 1588 * @param c The connection 1589 * @param cookie The cookie 1590 * @param e The xcb_generic_error_t supplied 1591 * 1592 * Returns the reply of the request asked by 1593 * 1594 * The parameter @p e supplied to this function must be NULL if 1595 * xcb_x_print_print_query_screens_unchecked(). is used. 1596 * Otherwise, it stores the error if any. 1597 * 1598 * The returned value must be freed by the caller using free(). 1599 */ 1600 xcb_x_print_print_query_screens_reply_t* xcb_x_print_print_query_screens_reply(xcb_connection_t* c /**< */ , 1601 xcb_x_print_print_query_screens_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1602 1603 /** 1604 * 1605 * @param c The connection 1606 * @return A cookie 1607 * 1608 * Delivers a request to the X server. 1609 * 1610 */ 1611 xcb_x_print_print_set_image_resolution_cookie_t xcb_x_print_print_set_image_resolution(xcb_connection_t* c /**< */ , 1612 xcb_x_print_pcontext_t context /**< */ , ushort image_resolution /**< */ ); 1613 1614 /** 1615 * 1616 * @param c The connection 1617 * @return A cookie 1618 * 1619 * Delivers a request to the X server. 1620 * 1621 * This form can be used only if the request will cause 1622 * a reply to be generated. Any returned error will be 1623 * placed in the event queue. 1624 */ 1625 xcb_x_print_print_set_image_resolution_cookie_t xcb_x_print_print_set_image_resolution_unchecked(xcb_connection_t* c /**< */ , 1626 xcb_x_print_pcontext_t context /**< */ , ushort image_resolution /**< */ ); 1627 1628 /** 1629 * Return the reply 1630 * @param c The connection 1631 * @param cookie The cookie 1632 * @param e The xcb_generic_error_t supplied 1633 * 1634 * Returns the reply of the request asked by 1635 * 1636 * The parameter @p e supplied to this function must be NULL if 1637 * xcb_x_print_print_set_image_resolution_unchecked(). is used. 1638 * Otherwise, it stores the error if any. 1639 * 1640 * The returned value must be freed by the caller using free(). 1641 */ 1642 xcb_x_print_print_set_image_resolution_reply_t* xcb_x_print_print_set_image_resolution_reply(xcb_connection_t* c /**< */ , 1643 xcb_x_print_print_set_image_resolution_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1644 1645 /** 1646 * 1647 * @param c The connection 1648 * @return A cookie 1649 * 1650 * Delivers a request to the X server. 1651 * 1652 */ 1653 xcb_x_print_print_get_image_resolution_cookie_t xcb_x_print_print_get_image_resolution(xcb_connection_t* c /**< */ , 1654 xcb_x_print_pcontext_t context /**< */ ); 1655 1656 /** 1657 * 1658 * @param c The connection 1659 * @return A cookie 1660 * 1661 * Delivers a request to the X server. 1662 * 1663 * This form can be used only if the request will cause 1664 * a reply to be generated. Any returned error will be 1665 * placed in the event queue. 1666 */ 1667 xcb_x_print_print_get_image_resolution_cookie_t xcb_x_print_print_get_image_resolution_unchecked(xcb_connection_t* c /**< */ , 1668 xcb_x_print_pcontext_t context /**< */ ); 1669 1670 /** 1671 * Return the reply 1672 * @param c The connection 1673 * @param cookie The cookie 1674 * @param e The xcb_generic_error_t supplied 1675 * 1676 * Returns the reply of the request asked by 1677 * 1678 * The parameter @p e supplied to this function must be NULL if 1679 * xcb_x_print_print_get_image_resolution_unchecked(). is used. 1680 * Otherwise, it stores the error if any. 1681 * 1682 * The returned value must be freed by the caller using free(). 1683 */ 1684 xcb_x_print_print_get_image_resolution_reply_t* xcb_x_print_print_get_image_resolution_reply(xcb_connection_t* c /**< */ , 1685 xcb_x_print_print_get_image_resolution_cookie_t cookie /**< */ , xcb_generic_error_t** e /**< */ ); 1686 1687 /** 1688 * @} 1689 */