1 /* 2 * This file generated automatically from randr.xml by c-client.xsl using XSLT. 3 * Edit at your peril. 4 */ 5 6 /** 7 * @defgroup XCB_RandR_API XCB RandR API 8 * @brief RandR XCB Protocol Implementation. 9 * @{ 10 **/ 11 12 13 module std.c.linux.X11.xcb.randr; 14 15 import std.c.linux.X11.xcb.xcb; 16 import std.c.linux.X11.xcb.xproto; 17 18 const int XCB_RANDR_MAJOR_VERSION =1; 19 const int XCB_RANDR_MINOR_VERSION =1; 20 21 extern(C) extern xcb_extension_t xcb_randr_id; 22 23 enum :int{ 24 XCB_RANDR_ROTATION_ROTATE_0 = 1, 25 XCB_RANDR_ROTATION_ROTATE_90 = 2, 26 XCB_RANDR_ROTATION_ROTATE_180 = 4, 27 XCB_RANDR_ROTATION_ROTATE_270 = 8, 28 XCB_RANDR_ROTATION_REFLECT_X = 16, 29 XCB_RANDR_ROTATION_REFLECT_Y = 32 30 }; 31 32 /** 33 * @brief xcb_randr_screen_size_t 34 **/ 35 struct xcb_randr_screen_size_t { 36 short width; /**< */ 37 short height; /**< */ 38 short mwidth; /**< */ 39 short mheight; /**< */ 40 } ; 41 42 /** 43 * @brief xcb_randr_screen_size_iterator_t 44 **/ 45 struct xcb_randr_screen_size_iterator_t { 46 xcb_randr_screen_size_t *data; /**< */ 47 int rem; /**< */ 48 int index; /**< */ 49 } ; 50 51 /** 52 * @brief xcb_randr_refresh_rates_t 53 **/ 54 struct xcb_randr_refresh_rates_t { 55 ushort nRates; /**< */ 56 } ; 57 58 /** 59 * @brief xcb_randr_refresh_rates_iterator_t 60 **/ 61 struct xcb_randr_refresh_rates_iterator_t { 62 xcb_randr_refresh_rates_t *data; /**< */ 63 int rem; /**< */ 64 int index; /**< */ 65 } ; 66 67 /** 68 * @brief xcb_randr_query_version_cookie_t 69 **/ 70 struct xcb_randr_query_version_cookie_t { 71 uint sequence; /**< */ 72 } ; 73 74 /** Opcode for xcb_randr_query_version. */ 75 const uint XCB_RANDR_QUERY_VERSION = 0; 76 77 /** 78 * @brief xcb_randr_query_version_request_t 79 **/ 80 struct xcb_randr_query_version_request_t { 81 ubyte major_opcode; /**< */ 82 ubyte minor_opcode; /**< */ 83 ushort length; /**< */ 84 uint major_version; /**< */ 85 uint minor_version; /**< */ 86 } ; 87 88 /** 89 * @brief xcb_randr_query_version_reply_t 90 **/ 91 struct xcb_randr_query_version_reply_t { 92 ubyte response_type; /**< */ 93 ubyte pad0; /**< */ 94 ushort sequence; /**< */ 95 uint length; /**< */ 96 uint major_version; /**< */ 97 uint minor_version; /**< */ 98 ubyte pad1[16]; /**< */ 99 } ; 100 101 /** 102 * @brief xcb_randr_set_screen_config_cookie_t 103 **/ 104 struct xcb_randr_set_screen_config_cookie_t { 105 uint sequence; /**< */ 106 } ; 107 108 /** Opcode for xcb_randr_set_screen_config. */ 109 const uint XCB_RANDR_SET_SCREEN_CONFIG = 2; 110 111 /** 112 * @brief xcb_randr_set_screen_config_request_t 113 **/ 114 struct xcb_randr_set_screen_config_request_t { 115 ubyte major_opcode; /**< */ 116 ubyte minor_opcode; /**< */ 117 ushort length; /**< */ 118 xcb_drawable_t drawable; /**< */ 119 xcb_timestamp_t timestamp; /**< */ 120 xcb_timestamp_t config_timestamp; /**< */ 121 ushort sizeID; /**< */ 122 short rotation; /**< */ 123 ushort rate; /**< */ 124 ubyte pad0[2]; /**< */ 125 } ; 126 127 /** 128 * @brief xcb_randr_set_screen_config_reply_t 129 **/ 130 struct xcb_randr_set_screen_config_reply_t { 131 ubyte response_type; /**< */ 132 ubyte status; /**< */ 133 ushort sequence; /**< */ 134 uint length; /**< */ 135 xcb_timestamp_t new_timestamp; /**< */ 136 xcb_timestamp_t config_timestamp; /**< */ 137 xcb_window_t root; /**< */ 138 ushort subpixel_order; /**< */ 139 ubyte pad0[10]; /**< */ 140 } ; 141 142 enum :int{ 143 XCB_RANDR_SET_CONFIG_SUCCESS = 0, 144 XCB_RANDR_SET_CONFIG_INVALID_CONFIG_TIME = 1, 145 XCB_RANDR_SET_CONFIG_INVALID_TIME = 2, 146 XCB_RANDR_SET_CONFIG_FAILED = 3 147 }; 148 149 /** Opcode for xcb_randr_select_input. */ 150 const uint XCB_RANDR_SELECT_INPUT = 4; 151 152 /** 153 * @brief xcb_randr_select_input_request_t 154 **/ 155 struct xcb_randr_select_input_request_t { 156 ubyte major_opcode; /**< */ 157 ubyte minor_opcode; /**< */ 158 ushort length; /**< */ 159 xcb_window_t window; /**< */ 160 ushort enable; /**< */ 161 ubyte pad0[2]; /**< */ 162 } ; 163 164 /** 165 * @brief xcb_randr_get_screen_info_cookie_t 166 **/ 167 struct xcb_randr_get_screen_info_cookie_t { 168 uint sequence; /**< */ 169 } ; 170 171 /** Opcode for xcb_randr_get_screen_info. */ 172 const uint XCB_RANDR_GET_SCREEN_INFO = 5; 173 174 /** 175 * @brief xcb_randr_get_screen_info_request_t 176 **/ 177 struct xcb_randr_get_screen_info_request_t { 178 ubyte major_opcode; /**< */ 179 ubyte minor_opcode; /**< */ 180 ushort length; /**< */ 181 xcb_window_t window; /**< */ 182 } ; 183 184 /** 185 * @brief xcb_randr_get_screen_info_reply_t 186 **/ 187 struct xcb_randr_get_screen_info_reply_t { 188 ubyte response_type; /**< */ 189 ubyte rotations; /**< */ 190 ushort sequence; /**< */ 191 uint length; /**< */ 192 xcb_window_t root; /**< */ 193 xcb_timestamp_t timestamp; /**< */ 194 xcb_timestamp_t config_timestamp; /**< */ 195 ushort nSizes; /**< */ 196 ushort sizeID; /**< */ 197 short rotation; /**< */ 198 ushort rate; /**< */ 199 ushort nInfo; /**< */ 200 ubyte pad0[2]; /**< */ 201 } ; 202 203 enum :int{ 204 XCB_RANDR_SM_SCREEN_CHANGE_NOTIFY = 1 205 }; 206 207 /** Opcode for xcb_randr_screen_change_notify. */ 208 const uint XCB_RANDR_SCREEN_CHANGE_NOTIFY = 0; 209 210 /** 211 * @brief xcb_randr_screen_change_notify_event_t 212 **/ 213 struct xcb_randr_screen_change_notify_event_t { 214 ubyte response_type; /**< */ 215 ubyte rotation; /**< */ 216 ushort sequence; /**< */ 217 xcb_timestamp_t timestamp; /**< */ 218 xcb_timestamp_t config_timestamp; /**< */ 219 xcb_window_t root; /**< */ 220 xcb_window_t request_window; /**< */ 221 ushort sizeID; /**< */ 222 ushort subpixel_order; /**< */ 223 short width; /**< */ 224 short height; /**< */ 225 short mwidth; /**< */ 226 short mheight; /**< */ 227 } ; 228 229 230 /***************************************************************************** 231 ** 232 ** void xcb_randr_screen_size_next 233 ** 234 ** @param xcb_randr_screen_size_iterator_t *i 235 ** @returns void 236 ** 237 *****************************************************************************/ 238 239 extern(C) void 240 xcb_randr_screen_size_next (xcb_randr_screen_size_iterator_t *i /**< */); 241 242 243 /***************************************************************************** 244 ** 245 ** xcb_generic_iterator_t xcb_randr_screen_size_end 246 ** 247 ** @param xcb_randr_screen_size_iterator_t i 248 ** @returns xcb_generic_iterator_t 249 ** 250 *****************************************************************************/ 251 252 extern(C) xcb_generic_iterator_t 253 xcb_randr_screen_size_end (xcb_randr_screen_size_iterator_t i /**< */); 254 255 256 /***************************************************************************** 257 ** 258 ** ushort * xcb_randr_refresh_rates_rates 259 ** 260 ** @param /+const+/ xcb_randr_refresh_rates_t *R 261 ** @returns ushort * 262 ** 263 *****************************************************************************/ 264 265 extern(C) ushort * 266 xcb_randr_refresh_rates_rates (/+const+/ xcb_randr_refresh_rates_t *R /**< */); 267 268 269 /***************************************************************************** 270 ** 271 ** int xcb_randr_refresh_rates_rates_length 272 ** 273 ** @param /+const+/ xcb_randr_refresh_rates_t *R 274 ** @returns int 275 ** 276 *****************************************************************************/ 277 278 extern(C) int 279 xcb_randr_refresh_rates_rates_length (/+const+/ xcb_randr_refresh_rates_t *R /**< */); 280 281 282 /***************************************************************************** 283 ** 284 ** xcb_generic_iterator_t xcb_randr_refresh_rates_rates_end 285 ** 286 ** @param /+const+/ xcb_randr_refresh_rates_t *R 287 ** @returns xcb_generic_iterator_t 288 ** 289 *****************************************************************************/ 290 291 extern(C) xcb_generic_iterator_t 292 xcb_randr_refresh_rates_rates_end (/+const+/ xcb_randr_refresh_rates_t *R /**< */); 293 294 295 /***************************************************************************** 296 ** 297 ** void xcb_randr_refresh_rates_next 298 ** 299 ** @param xcb_randr_refresh_rates_iterator_t *i 300 ** @returns void 301 ** 302 *****************************************************************************/ 303 304 extern(C) void 305 xcb_randr_refresh_rates_next (xcb_randr_refresh_rates_iterator_t *i /**< */); 306 307 308 /***************************************************************************** 309 ** 310 ** xcb_generic_iterator_t xcb_randr_refresh_rates_end 311 ** 312 ** @param xcb_randr_refresh_rates_iterator_t i 313 ** @returns xcb_generic_iterator_t 314 ** 315 *****************************************************************************/ 316 317 extern(C) xcb_generic_iterator_t 318 xcb_randr_refresh_rates_end (xcb_randr_refresh_rates_iterator_t i /**< */); 319 320 321 /***************************************************************************** 322 ** 323 ** xcb_randr_query_version_cookie_t xcb_randr_query_version 324 ** 325 ** @param xcb_connection_t *c 326 ** @param uint major_version 327 ** @param uint minor_version 328 ** @returns xcb_randr_query_version_cookie_t 329 ** 330 *****************************************************************************/ 331 332 extern(C) xcb_randr_query_version_cookie_t 333 xcb_randr_query_version (xcb_connection_t *c /**< */, 334 uint major_version /**< */, 335 uint minor_version /**< */); 336 337 338 /***************************************************************************** 339 ** 340 ** xcb_randr_query_version_cookie_t xcb_randr_query_version_unchecked 341 ** 342 ** @param xcb_connection_t *c 343 ** @param uint major_version 344 ** @param uint minor_version 345 ** @returns xcb_randr_query_version_cookie_t 346 ** 347 *****************************************************************************/ 348 349 extern(C) xcb_randr_query_version_cookie_t 350 xcb_randr_query_version_unchecked (xcb_connection_t *c /**< */, 351 uint major_version /**< */, 352 uint minor_version /**< */); 353 354 355 /***************************************************************************** 356 ** 357 ** xcb_randr_query_version_reply_t * xcb_randr_query_version_reply 358 ** 359 ** @param xcb_connection_t *c 360 ** @param xcb_randr_query_version_cookie_t cookie 361 ** @param xcb_generic_error_t **e 362 ** @returns xcb_randr_query_version_reply_t * 363 ** 364 *****************************************************************************/ 365 366 extern(C) xcb_randr_query_version_reply_t * 367 xcb_randr_query_version_reply (xcb_connection_t *c /**< */, 368 xcb_randr_query_version_cookie_t cookie /**< */, 369 xcb_generic_error_t **e /**< */); 370 371 372 /***************************************************************************** 373 ** 374 ** xcb_randr_set_screen_config_cookie_t xcb_randr_set_screen_config 375 ** 376 ** @param xcb_connection_t *c 377 ** @param xcb_drawable_t drawable 378 ** @param xcb_timestamp_t timestamp 379 ** @param xcb_timestamp_t config_timestamp 380 ** @param ushort sizeID 381 ** @param short rotation 382 ** @param ushort rate 383 ** @returns xcb_randr_set_screen_config_cookie_t 384 ** 385 *****************************************************************************/ 386 387 extern(C) xcb_randr_set_screen_config_cookie_t 388 xcb_randr_set_screen_config (xcb_connection_t *c /**< */, 389 xcb_drawable_t drawable /**< */, 390 xcb_timestamp_t timestamp /**< */, 391 xcb_timestamp_t config_timestamp /**< */, 392 ushort sizeID /**< */, 393 short rotation /**< */, 394 ushort rate /**< */); 395 396 397 /***************************************************************************** 398 ** 399 ** xcb_randr_set_screen_config_cookie_t xcb_randr_set_screen_config_unchecked 400 ** 401 ** @param xcb_connection_t *c 402 ** @param xcb_drawable_t drawable 403 ** @param xcb_timestamp_t timestamp 404 ** @param xcb_timestamp_t config_timestamp 405 ** @param ushort sizeID 406 ** @param short rotation 407 ** @param ushort rate 408 ** @returns xcb_randr_set_screen_config_cookie_t 409 ** 410 *****************************************************************************/ 411 412 extern(C) xcb_randr_set_screen_config_cookie_t 413 xcb_randr_set_screen_config_unchecked (xcb_connection_t *c /**< */, 414 xcb_drawable_t drawable /**< */, 415 xcb_timestamp_t timestamp /**< */, 416 xcb_timestamp_t config_timestamp /**< */, 417 ushort sizeID /**< */, 418 short rotation /**< */, 419 ushort rate /**< */); 420 421 422 /***************************************************************************** 423 ** 424 ** xcb_randr_set_screen_config_reply_t * xcb_randr_set_screen_config_reply 425 ** 426 ** @param xcb_connection_t *c 427 ** @param xcb_randr_set_screen_config_cookie_t cookie 428 ** @param xcb_generic_error_t **e 429 ** @returns xcb_randr_set_screen_config_reply_t * 430 ** 431 *****************************************************************************/ 432 433 extern(C) xcb_randr_set_screen_config_reply_t * 434 xcb_randr_set_screen_config_reply (xcb_connection_t *c /**< */, 435 xcb_randr_set_screen_config_cookie_t cookie /**< */, 436 xcb_generic_error_t **e /**< */); 437 438 439 /***************************************************************************** 440 ** 441 ** xcb_void_cookie_t xcb_randr_select_input_checked 442 ** 443 ** @param xcb_connection_t *c 444 ** @param xcb_window_t window 445 ** @param ushort enable 446 ** @returns xcb_void_cookie_t 447 ** 448 *****************************************************************************/ 449 450 extern(C) xcb_void_cookie_t 451 xcb_randr_select_input_checked (xcb_connection_t *c /**< */, 452 xcb_window_t window /**< */, 453 ushort enable /**< */); 454 455 456 /***************************************************************************** 457 ** 458 ** xcb_void_cookie_t xcb_randr_select_input 459 ** 460 ** @param xcb_connection_t *c 461 ** @param xcb_window_t window 462 ** @param ushort enable 463 ** @returns xcb_void_cookie_t 464 ** 465 *****************************************************************************/ 466 467 extern(C) xcb_void_cookie_t 468 xcb_randr_select_input (xcb_connection_t *c /**< */, 469 xcb_window_t window /**< */, 470 ushort enable /**< */); 471 472 473 /***************************************************************************** 474 ** 475 ** xcb_randr_get_screen_info_cookie_t xcb_randr_get_screen_info 476 ** 477 ** @param xcb_connection_t *c 478 ** @param xcb_window_t window 479 ** @returns xcb_randr_get_screen_info_cookie_t 480 ** 481 *****************************************************************************/ 482 483 extern(C) xcb_randr_get_screen_info_cookie_t 484 xcb_randr_get_screen_info (xcb_connection_t *c /**< */, 485 xcb_window_t window /**< */); 486 487 488 /***************************************************************************** 489 ** 490 ** xcb_randr_get_screen_info_cookie_t xcb_randr_get_screen_info_unchecked 491 ** 492 ** @param xcb_connection_t *c 493 ** @param xcb_window_t window 494 ** @returns xcb_randr_get_screen_info_cookie_t 495 ** 496 *****************************************************************************/ 497 498 extern(C) xcb_randr_get_screen_info_cookie_t 499 xcb_randr_get_screen_info_unchecked (xcb_connection_t *c /**< */, 500 xcb_window_t window /**< */); 501 502 503 /***************************************************************************** 504 ** 505 ** xcb_randr_screen_size_t * xcb_randr_get_screen_info_sizes 506 ** 507 ** @param /+const+/ xcb_randr_get_screen_info_reply_t *R 508 ** @returns xcb_randr_screen_size_t * 509 ** 510 *****************************************************************************/ 511 512 extern(C) xcb_randr_screen_size_t * 513 xcb_randr_get_screen_info_sizes (/+const+/ xcb_randr_get_screen_info_reply_t *R /**< */); 514 515 516 /***************************************************************************** 517 ** 518 ** int xcb_randr_get_screen_info_sizes_length 519 ** 520 ** @param /+const+/ xcb_randr_get_screen_info_reply_t *R 521 ** @returns int 522 ** 523 *****************************************************************************/ 524 525 extern(C) int 526 xcb_randr_get_screen_info_sizes_length (/+const+/ xcb_randr_get_screen_info_reply_t *R /**< */); 527 528 529 /***************************************************************************** 530 ** 531 ** xcb_randr_screen_size_iterator_t xcb_randr_get_screen_info_sizes_iterator 532 ** 533 ** @param /+const+/ xcb_randr_get_screen_info_reply_t *R 534 ** @returns xcb_randr_screen_size_iterator_t 535 ** 536 *****************************************************************************/ 537 538 extern(C) xcb_randr_screen_size_iterator_t 539 xcb_randr_get_screen_info_sizes_iterator (/+const+/ xcb_randr_get_screen_info_reply_t *R /**< */); 540 541 542 /***************************************************************************** 543 ** 544 ** int xcb_randr_get_screen_info_rates_length 545 ** 546 ** @param /+const+/ xcb_randr_get_screen_info_reply_t *R 547 ** @returns int 548 ** 549 *****************************************************************************/ 550 551 extern(C) int 552 xcb_randr_get_screen_info_rates_length (/+const+/ xcb_randr_get_screen_info_reply_t *R /**< */); 553 554 555 /***************************************************************************** 556 ** 557 ** xcb_randr_refresh_rates_iterator_t xcb_randr_get_screen_info_rates_iterator 558 ** 559 ** @param /+const+/ xcb_randr_get_screen_info_reply_t *R 560 ** @returns xcb_randr_refresh_rates_iterator_t 561 ** 562 *****************************************************************************/ 563 564 extern(C) xcb_randr_refresh_rates_iterator_t 565 xcb_randr_get_screen_info_rates_iterator (/+const+/ xcb_randr_get_screen_info_reply_t *R /**< */); 566 567 568 /***************************************************************************** 569 ** 570 ** xcb_randr_get_screen_info_reply_t * xcb_randr_get_screen_info_reply 571 ** 572 ** @param xcb_connection_t *c 573 ** @param xcb_randr_get_screen_info_cookie_t cookie 574 ** @param xcb_generic_error_t **e 575 ** @returns xcb_randr_get_screen_info_reply_t * 576 ** 577 *****************************************************************************/ 578 579 extern(C) xcb_randr_get_screen_info_reply_t * 580 xcb_randr_get_screen_info_reply (xcb_connection_t *c /**< */, 581 xcb_randr_get_screen_info_cookie_t cookie /**< */, 582 xcb_generic_error_t **e /**< */); 583 584 585 586 /** 587 * @} 588 */