00001
00002
00003
00004
00005
00012 #ifndef __XINERAMA_H
00013 #define __XINERAMA_H
00014
00015 #include "xcb.h"
00016 #include "xproto.h"
00017
00018 #define XCB_XINERAMA_MAJOR_VERSION 1
00019 #define XCB_XINERAMA_MINOR_VERSION 1
00020
00021 extern xcb_extension_t xcb_xinerama_id;
00022
00026 typedef struct xcb_xinerama_screen_info_t {
00027 int16_t x_org;
00028 int16_t y_org;
00029 uint16_t width;
00030 uint16_t height;
00031 } xcb_xinerama_screen_info_t;
00032
00036 typedef struct xcb_xinerama_screen_info_iterator_t {
00037 xcb_xinerama_screen_info_t *data;
00038 int rem;
00039 int index;
00040 } xcb_xinerama_screen_info_iterator_t;
00041
00045 typedef struct xcb_xinerama_query_version_cookie_t {
00046 unsigned int sequence;
00047 } xcb_xinerama_query_version_cookie_t;
00048
00050 #define XCB_XINERAMA_QUERY_VERSION 0
00051
00055 typedef struct xcb_xinerama_query_version_request_t {
00056 uint8_t major_opcode;
00057 uint8_t minor_opcode;
00058 uint16_t length;
00059 uint8_t major;
00060 uint8_t minor;
00061 } xcb_xinerama_query_version_request_t;
00062
00066 typedef struct xcb_xinerama_query_version_reply_t {
00067 uint8_t response_type;
00068 uint8_t pad0;
00069 uint16_t sequence;
00070 uint32_t length;
00071 uint16_t major;
00072 uint16_t minor;
00073 } xcb_xinerama_query_version_reply_t;
00074
00078 typedef struct xcb_xinerama_get_state_cookie_t {
00079 unsigned int sequence;
00080 } xcb_xinerama_get_state_cookie_t;
00081
00083 #define XCB_XINERAMA_GET_STATE 1
00084
00088 typedef struct xcb_xinerama_get_state_request_t {
00089 uint8_t major_opcode;
00090 uint8_t minor_opcode;
00091 uint16_t length;
00092 xcb_window_t window;
00093 } xcb_xinerama_get_state_request_t;
00094
00098 typedef struct xcb_xinerama_get_state_reply_t {
00099 uint8_t response_type;
00100 uint8_t state;
00101 uint16_t sequence;
00102 uint32_t length;
00103 xcb_window_t window;
00104 } xcb_xinerama_get_state_reply_t;
00105
00109 typedef struct xcb_xinerama_get_screen_count_cookie_t {
00110 unsigned int sequence;
00111 } xcb_xinerama_get_screen_count_cookie_t;
00112
00114 #define XCB_XINERAMA_GET_SCREEN_COUNT 2
00115
00119 typedef struct xcb_xinerama_get_screen_count_request_t {
00120 uint8_t major_opcode;
00121 uint8_t minor_opcode;
00122 uint16_t length;
00123 xcb_window_t window;
00124 } xcb_xinerama_get_screen_count_request_t;
00125
00129 typedef struct xcb_xinerama_get_screen_count_reply_t {
00130 uint8_t response_type;
00131 uint8_t screen_count;
00132 uint16_t sequence;
00133 uint32_t length;
00134 xcb_window_t window;
00135 } xcb_xinerama_get_screen_count_reply_t;
00136
00140 typedef struct xcb_xinerama_get_screen_size_cookie_t {
00141 unsigned int sequence;
00142 } xcb_xinerama_get_screen_size_cookie_t;
00143
00145 #define XCB_XINERAMA_GET_SCREEN_SIZE 3
00146
00150 typedef struct xcb_xinerama_get_screen_size_request_t {
00151 uint8_t major_opcode;
00152 uint8_t minor_opcode;
00153 uint16_t length;
00154 xcb_window_t window;
00155 uint32_t screen;
00156 } xcb_xinerama_get_screen_size_request_t;
00157
00161 typedef struct xcb_xinerama_get_screen_size_reply_t {
00162 uint8_t response_type;
00163 uint8_t pad0;
00164 uint16_t sequence;
00165 uint32_t length;
00166 uint32_t width;
00167 uint32_t height;
00168 xcb_window_t window;
00169 uint32_t screen;
00170 } xcb_xinerama_get_screen_size_reply_t;
00171
00175 typedef struct xcb_xinerama_is_active_cookie_t {
00176 unsigned int sequence;
00177 } xcb_xinerama_is_active_cookie_t;
00178
00180 #define XCB_XINERAMA_IS_ACTIVE 4
00181
00185 typedef struct xcb_xinerama_is_active_request_t {
00186 uint8_t major_opcode;
00187 uint8_t minor_opcode;
00188 uint16_t length;
00189 } xcb_xinerama_is_active_request_t;
00190
00194 typedef struct xcb_xinerama_is_active_reply_t {
00195 uint8_t response_type;
00196 uint8_t pad0;
00197 uint16_t sequence;
00198 uint32_t length;
00199 uint32_t state;
00200 } xcb_xinerama_is_active_reply_t;
00201
00205 typedef struct xcb_xinerama_query_screens_cookie_t {
00206 unsigned int sequence;
00207 } xcb_xinerama_query_screens_cookie_t;
00208
00210 #define XCB_XINERAMA_QUERY_SCREENS 5
00211
00215 typedef struct xcb_xinerama_query_screens_request_t {
00216 uint8_t major_opcode;
00217 uint8_t minor_opcode;
00218 uint16_t length;
00219 } xcb_xinerama_query_screens_request_t;
00220
00224 typedef struct xcb_xinerama_query_screens_reply_t {
00225 uint8_t response_type;
00226 uint8_t pad0;
00227 uint16_t sequence;
00228 uint32_t length;
00229 uint32_t number;
00230 uint8_t pad1[20];
00231 } xcb_xinerama_query_screens_reply_t;
00232
00242
00243
00244
00245
00246
00247
00248
00249
00250
00251 void
00252 xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i );
00253
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273 xcb_generic_iterator_t
00274 xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i );
00275
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296 xcb_xinerama_query_version_cookie_t
00297 xcb_xinerama_query_version (xcb_connection_t *c ,
00298 uint8_t major ,
00299 uint8_t minor );
00300
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324 xcb_xinerama_query_version_cookie_t
00325 xcb_xinerama_query_version_unchecked (xcb_connection_t *c ,
00326 uint8_t major ,
00327 uint8_t minor );
00328
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354
00355 xcb_xinerama_query_version_reply_t *
00356 xcb_xinerama_query_version_reply (xcb_connection_t *c ,
00357 xcb_xinerama_query_version_cookie_t cookie ,
00358 xcb_generic_error_t **e );
00359
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379 xcb_xinerama_get_state_cookie_t
00380 xcb_xinerama_get_state (xcb_connection_t *c ,
00381 xcb_window_t window );
00382
00395
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405 xcb_xinerama_get_state_cookie_t
00406 xcb_xinerama_get_state_unchecked (xcb_connection_t *c ,
00407 xcb_window_t window );
00408
00424
00425
00426
00427
00428
00429
00430
00431
00432
00433
00434
00435 xcb_xinerama_get_state_reply_t *
00436 xcb_xinerama_get_state_reply (xcb_connection_t *c ,
00437 xcb_xinerama_get_state_cookie_t cookie ,
00438 xcb_generic_error_t **e );
00439
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00459 xcb_xinerama_get_screen_count_cookie_t
00460 xcb_xinerama_get_screen_count (xcb_connection_t *c ,
00461 xcb_window_t window );
00462
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485 xcb_xinerama_get_screen_count_cookie_t
00486 xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c ,
00487 xcb_window_t window );
00488
00504
00505
00506
00507
00508
00509
00510
00511
00512
00513
00514
00515 xcb_xinerama_get_screen_count_reply_t *
00516 xcb_xinerama_get_screen_count_reply (xcb_connection_t *c ,
00517 xcb_xinerama_get_screen_count_cookie_t cookie ,
00518 xcb_generic_error_t **e );
00519
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538
00539
00540 xcb_xinerama_get_screen_size_cookie_t
00541 xcb_xinerama_get_screen_size (xcb_connection_t *c ,
00542 xcb_window_t window ,
00543 uint32_t screen );
00544
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566
00567
00568 xcb_xinerama_get_screen_size_cookie_t
00569 xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c ,
00570 xcb_window_t window ,
00571 uint32_t screen );
00572
00588
00589
00590
00591
00592
00593
00594
00595
00596
00597
00598
00599 xcb_xinerama_get_screen_size_reply_t *
00600 xcb_xinerama_get_screen_size_reply (xcb_connection_t *c ,
00601 xcb_xinerama_get_screen_size_cookie_t cookie ,
00602 xcb_generic_error_t **e );
00603
00613
00614
00615
00616
00617
00618
00619
00620
00621
00622 xcb_xinerama_is_active_cookie_t
00623 xcb_xinerama_is_active (xcb_connection_t *c );
00624
00637
00638
00639
00640
00641
00642
00643
00644
00645
00646 xcb_xinerama_is_active_cookie_t
00647 xcb_xinerama_is_active_unchecked (xcb_connection_t *c );
00648
00664
00665
00666
00667
00668
00669
00670
00671
00672
00673
00674
00675 xcb_xinerama_is_active_reply_t *
00676 xcb_xinerama_is_active_reply (xcb_connection_t *c ,
00677 xcb_xinerama_is_active_cookie_t cookie ,
00678 xcb_generic_error_t **e );
00679
00689
00690
00691
00692
00693
00694
00695
00696
00697
00698 xcb_xinerama_query_screens_cookie_t
00699 xcb_xinerama_query_screens (xcb_connection_t *c );
00700
00713
00714
00715
00716
00717
00718
00719
00720
00721
00722 xcb_xinerama_query_screens_cookie_t
00723 xcb_xinerama_query_screens_unchecked (xcb_connection_t *c );
00724
00725
00726
00727
00728
00729
00730
00731
00732
00733
00734
00735 xcb_xinerama_screen_info_t *
00736 xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R );
00737
00738
00739
00740
00741
00742
00743
00744
00745
00746
00747
00748 int
00749 xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R );
00750
00751
00752
00753
00754
00755
00756
00757
00758
00759
00760
00761 xcb_xinerama_screen_info_iterator_t
00762 xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R );
00763
00779
00780
00781
00782
00783
00784
00785
00786
00787
00788
00789
00790 xcb_xinerama_query_screens_reply_t *
00791 xcb_xinerama_query_screens_reply (xcb_connection_t *c ,
00792 xcb_xinerama_query_screens_cookie_t cookie ,
00793 xcb_generic_error_t **e );
00794
00795
00796 #endif
00797