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 xcb_screen_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 xcb_screen_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
00342
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353 xcb_xinerama_query_version_reply_t *
00354 xcb_xinerama_query_version_reply (xcb_connection_t *c ,
00355 xcb_xinerama_query_version_cookie_t cookie ,
00356 xcb_generic_error_t **e );
00357
00367
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377 xcb_xinerama_get_state_cookie_t
00378 xcb_xinerama_get_state (xcb_connection_t *c ,
00379 xcb_window_t window );
00380
00393
00394
00395
00396
00397
00398
00399
00400
00401
00402
00403 xcb_xinerama_get_state_cookie_t
00404 xcb_xinerama_get_state_unchecked (xcb_connection_t *c ,
00405 xcb_window_t window );
00406
00420
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431 xcb_xinerama_get_state_reply_t *
00432 xcb_xinerama_get_state_reply (xcb_connection_t *c ,
00433 xcb_xinerama_get_state_cookie_t cookie ,
00434 xcb_generic_error_t **e );
00435
00445
00446
00447
00448
00449
00450
00451
00452
00453
00454
00455 xcb_xinerama_get_screen_count_cookie_t
00456 xcb_xinerama_get_screen_count (xcb_connection_t *c ,
00457 xcb_window_t window );
00458
00471
00472
00473
00474
00475
00476
00477
00478
00479
00480
00481 xcb_xinerama_get_screen_count_cookie_t
00482 xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c ,
00483 xcb_window_t window );
00484
00498
00499
00500
00501
00502
00503
00504
00505
00506
00507
00508
00509 xcb_xinerama_get_screen_count_reply_t *
00510 xcb_xinerama_get_screen_count_reply (xcb_connection_t *c ,
00511 xcb_xinerama_get_screen_count_cookie_t cookie ,
00512 xcb_generic_error_t **e );
00513
00523
00524
00525
00526
00527
00528
00529
00530
00531
00532
00533
00534 xcb_xinerama_get_screen_size_cookie_t
00535 xcb_xinerama_get_screen_size (xcb_connection_t *c ,
00536 xcb_window_t window ,
00537 xcb_screen_t screen );
00538
00551
00552
00553
00554
00555
00556
00557
00558
00559
00560
00561
00562 xcb_xinerama_get_screen_size_cookie_t
00563 xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c ,
00564 xcb_window_t window ,
00565 xcb_screen_t screen );
00566
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591 xcb_xinerama_get_screen_size_reply_t *
00592 xcb_xinerama_get_screen_size_reply (xcb_connection_t *c ,
00593 xcb_xinerama_get_screen_size_cookie_t cookie ,
00594 xcb_generic_error_t **e );
00595
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614 xcb_xinerama_is_active_cookie_t
00615 xcb_xinerama_is_active (xcb_connection_t *c );
00616
00629
00630
00631
00632
00633
00634
00635
00636
00637
00638 xcb_xinerama_is_active_cookie_t
00639 xcb_xinerama_is_active_unchecked (xcb_connection_t *c );
00640
00654
00655
00656
00657
00658
00659
00660
00661
00662
00663
00664
00665 xcb_xinerama_is_active_reply_t *
00666 xcb_xinerama_is_active_reply (xcb_connection_t *c ,
00667 xcb_xinerama_is_active_cookie_t cookie ,
00668 xcb_generic_error_t **e );
00669
00679
00680
00681
00682
00683
00684
00685
00686
00687
00688 xcb_xinerama_query_screens_cookie_t
00689 xcb_xinerama_query_screens (xcb_connection_t *c );
00690
00703
00704
00705
00706
00707
00708
00709
00710
00711
00712 xcb_xinerama_query_screens_cookie_t
00713 xcb_xinerama_query_screens_unchecked (xcb_connection_t *c );
00714
00715
00716
00717
00718
00719
00720
00721
00722
00723
00724
00725 xcb_xinerama_screen_info_t *
00726 xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R );
00727
00728
00729
00730
00731
00732
00733
00734
00735
00736
00737
00738 int
00739 xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R );
00740
00741
00742
00743
00744
00745
00746
00747
00748
00749
00750
00751 xcb_xinerama_screen_info_iterator_t
00752 xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R );
00753
00767
00768
00769
00770
00771
00772
00773
00774
00775
00776
00777
00778 xcb_xinerama_query_screens_reply_t *
00779 xcb_xinerama_query_screens_reply (xcb_connection_t *c ,
00780 xcb_xinerama_query_screens_cookie_t cookie ,
00781 xcb_generic_error_t **e );
00782
00783
00784 #endif
00785