File indexing completed on 2025-01-18 10:14:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef __XINERAMA_H
0013 #define __XINERAMA_H
0014
0015 #include "xcb.h"
0016 #include "xproto.h"
0017
0018 #ifdef __cplusplus
0019 extern "C" {
0020 #endif
0021
0022 #define XCB_XINERAMA_MAJOR_VERSION 1
0023 #define XCB_XINERAMA_MINOR_VERSION 1
0024
0025 extern xcb_extension_t xcb_xinerama_id;
0026
0027
0028
0029
0030 typedef struct xcb_xinerama_screen_info_t {
0031 int16_t x_org;
0032 int16_t y_org;
0033 uint16_t width;
0034 uint16_t height;
0035 } xcb_xinerama_screen_info_t;
0036
0037
0038
0039
0040 typedef struct xcb_xinerama_screen_info_iterator_t {
0041 xcb_xinerama_screen_info_t *data;
0042 int rem;
0043 int index;
0044 } xcb_xinerama_screen_info_iterator_t;
0045
0046
0047
0048
0049 typedef struct xcb_xinerama_query_version_cookie_t {
0050 unsigned int sequence;
0051 } xcb_xinerama_query_version_cookie_t;
0052
0053
0054 #define XCB_XINERAMA_QUERY_VERSION 0
0055
0056
0057
0058
0059 typedef struct xcb_xinerama_query_version_request_t {
0060 uint8_t major_opcode;
0061 uint8_t minor_opcode;
0062 uint16_t length;
0063 uint8_t major;
0064 uint8_t minor;
0065 } xcb_xinerama_query_version_request_t;
0066
0067
0068
0069
0070 typedef struct xcb_xinerama_query_version_reply_t {
0071 uint8_t response_type;
0072 uint8_t pad0;
0073 uint16_t sequence;
0074 uint32_t length;
0075 uint16_t major;
0076 uint16_t minor;
0077 } xcb_xinerama_query_version_reply_t;
0078
0079
0080
0081
0082 typedef struct xcb_xinerama_get_state_cookie_t {
0083 unsigned int sequence;
0084 } xcb_xinerama_get_state_cookie_t;
0085
0086
0087 #define XCB_XINERAMA_GET_STATE 1
0088
0089
0090
0091
0092 typedef struct xcb_xinerama_get_state_request_t {
0093 uint8_t major_opcode;
0094 uint8_t minor_opcode;
0095 uint16_t length;
0096 xcb_window_t window;
0097 } xcb_xinerama_get_state_request_t;
0098
0099
0100
0101
0102 typedef struct xcb_xinerama_get_state_reply_t {
0103 uint8_t response_type;
0104 uint8_t state;
0105 uint16_t sequence;
0106 uint32_t length;
0107 xcb_window_t window;
0108 } xcb_xinerama_get_state_reply_t;
0109
0110
0111
0112
0113 typedef struct xcb_xinerama_get_screen_count_cookie_t {
0114 unsigned int sequence;
0115 } xcb_xinerama_get_screen_count_cookie_t;
0116
0117
0118 #define XCB_XINERAMA_GET_SCREEN_COUNT 2
0119
0120
0121
0122
0123 typedef struct xcb_xinerama_get_screen_count_request_t {
0124 uint8_t major_opcode;
0125 uint8_t minor_opcode;
0126 uint16_t length;
0127 xcb_window_t window;
0128 } xcb_xinerama_get_screen_count_request_t;
0129
0130
0131
0132
0133 typedef struct xcb_xinerama_get_screen_count_reply_t {
0134 uint8_t response_type;
0135 uint8_t screen_count;
0136 uint16_t sequence;
0137 uint32_t length;
0138 xcb_window_t window;
0139 } xcb_xinerama_get_screen_count_reply_t;
0140
0141
0142
0143
0144 typedef struct xcb_xinerama_get_screen_size_cookie_t {
0145 unsigned int sequence;
0146 } xcb_xinerama_get_screen_size_cookie_t;
0147
0148
0149 #define XCB_XINERAMA_GET_SCREEN_SIZE 3
0150
0151
0152
0153
0154 typedef struct xcb_xinerama_get_screen_size_request_t {
0155 uint8_t major_opcode;
0156 uint8_t minor_opcode;
0157 uint16_t length;
0158 xcb_window_t window;
0159 uint32_t screen;
0160 } xcb_xinerama_get_screen_size_request_t;
0161
0162
0163
0164
0165 typedef struct xcb_xinerama_get_screen_size_reply_t {
0166 uint8_t response_type;
0167 uint8_t pad0;
0168 uint16_t sequence;
0169 uint32_t length;
0170 uint32_t width;
0171 uint32_t height;
0172 xcb_window_t window;
0173 uint32_t screen;
0174 } xcb_xinerama_get_screen_size_reply_t;
0175
0176
0177
0178
0179 typedef struct xcb_xinerama_is_active_cookie_t {
0180 unsigned int sequence;
0181 } xcb_xinerama_is_active_cookie_t;
0182
0183
0184 #define XCB_XINERAMA_IS_ACTIVE 4
0185
0186
0187
0188
0189 typedef struct xcb_xinerama_is_active_request_t {
0190 uint8_t major_opcode;
0191 uint8_t minor_opcode;
0192 uint16_t length;
0193 } xcb_xinerama_is_active_request_t;
0194
0195
0196
0197
0198 typedef struct xcb_xinerama_is_active_reply_t {
0199 uint8_t response_type;
0200 uint8_t pad0;
0201 uint16_t sequence;
0202 uint32_t length;
0203 uint32_t state;
0204 } xcb_xinerama_is_active_reply_t;
0205
0206
0207
0208
0209 typedef struct xcb_xinerama_query_screens_cookie_t {
0210 unsigned int sequence;
0211 } xcb_xinerama_query_screens_cookie_t;
0212
0213
0214 #define XCB_XINERAMA_QUERY_SCREENS 5
0215
0216
0217
0218
0219 typedef struct xcb_xinerama_query_screens_request_t {
0220 uint8_t major_opcode;
0221 uint8_t minor_opcode;
0222 uint16_t length;
0223 } xcb_xinerama_query_screens_request_t;
0224
0225
0226
0227
0228 typedef struct xcb_xinerama_query_screens_reply_t {
0229 uint8_t response_type;
0230 uint8_t pad0;
0231 uint16_t sequence;
0232 uint32_t length;
0233 uint32_t number;
0234 uint8_t pad1[20];
0235 } xcb_xinerama_query_screens_reply_t;
0236
0237
0238
0239
0240
0241
0242
0243
0244
0245 void
0246 xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i);
0247
0248
0249
0250
0251
0252
0253
0254
0255
0256
0257 xcb_generic_iterator_t
0258 xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i);
0259
0260
0261
0262
0263
0264
0265
0266
0267
0268 xcb_xinerama_query_version_cookie_t
0269 xcb_xinerama_query_version (xcb_connection_t *c,
0270 uint8_t major,
0271 uint8_t minor);
0272
0273
0274
0275
0276
0277
0278
0279
0280
0281
0282
0283
0284 xcb_xinerama_query_version_cookie_t
0285 xcb_xinerama_query_version_unchecked (xcb_connection_t *c,
0286 uint8_t major,
0287 uint8_t minor);
0288
0289
0290
0291
0292
0293
0294
0295
0296
0297
0298
0299
0300
0301
0302
0303 xcb_xinerama_query_version_reply_t *
0304 xcb_xinerama_query_version_reply (xcb_connection_t *c,
0305 xcb_xinerama_query_version_cookie_t cookie ,
0306 xcb_generic_error_t **e);
0307
0308
0309
0310
0311
0312
0313
0314
0315
0316 xcb_xinerama_get_state_cookie_t
0317 xcb_xinerama_get_state (xcb_connection_t *c,
0318 xcb_window_t window);
0319
0320
0321
0322
0323
0324
0325
0326
0327
0328
0329
0330
0331 xcb_xinerama_get_state_cookie_t
0332 xcb_xinerama_get_state_unchecked (xcb_connection_t *c,
0333 xcb_window_t window);
0334
0335
0336
0337
0338
0339
0340
0341
0342
0343
0344
0345
0346
0347
0348
0349 xcb_xinerama_get_state_reply_t *
0350 xcb_xinerama_get_state_reply (xcb_connection_t *c,
0351 xcb_xinerama_get_state_cookie_t cookie ,
0352 xcb_generic_error_t **e);
0353
0354
0355
0356
0357
0358
0359
0360
0361
0362 xcb_xinerama_get_screen_count_cookie_t
0363 xcb_xinerama_get_screen_count (xcb_connection_t *c,
0364 xcb_window_t window);
0365
0366
0367
0368
0369
0370
0371
0372
0373
0374
0375
0376
0377 xcb_xinerama_get_screen_count_cookie_t
0378 xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c,
0379 xcb_window_t window);
0380
0381
0382
0383
0384
0385
0386
0387
0388
0389
0390
0391
0392
0393
0394
0395 xcb_xinerama_get_screen_count_reply_t *
0396 xcb_xinerama_get_screen_count_reply (xcb_connection_t *c,
0397 xcb_xinerama_get_screen_count_cookie_t cookie ,
0398 xcb_generic_error_t **e);
0399
0400
0401
0402
0403
0404
0405
0406
0407
0408 xcb_xinerama_get_screen_size_cookie_t
0409 xcb_xinerama_get_screen_size (xcb_connection_t *c,
0410 xcb_window_t window,
0411 uint32_t screen);
0412
0413
0414
0415
0416
0417
0418
0419
0420
0421
0422
0423
0424 xcb_xinerama_get_screen_size_cookie_t
0425 xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c,
0426 xcb_window_t window,
0427 uint32_t screen);
0428
0429
0430
0431
0432
0433
0434
0435
0436
0437
0438
0439
0440
0441
0442
0443 xcb_xinerama_get_screen_size_reply_t *
0444 xcb_xinerama_get_screen_size_reply (xcb_connection_t *c,
0445 xcb_xinerama_get_screen_size_cookie_t cookie ,
0446 xcb_generic_error_t **e);
0447
0448
0449
0450
0451
0452
0453
0454
0455
0456 xcb_xinerama_is_active_cookie_t
0457 xcb_xinerama_is_active (xcb_connection_t *c);
0458
0459
0460
0461
0462
0463
0464
0465
0466
0467
0468
0469
0470 xcb_xinerama_is_active_cookie_t
0471 xcb_xinerama_is_active_unchecked (xcb_connection_t *c);
0472
0473
0474
0475
0476
0477
0478
0479
0480
0481
0482
0483
0484
0485
0486
0487 xcb_xinerama_is_active_reply_t *
0488 xcb_xinerama_is_active_reply (xcb_connection_t *c,
0489 xcb_xinerama_is_active_cookie_t cookie ,
0490 xcb_generic_error_t **e);
0491
0492 int
0493 xcb_xinerama_query_screens_sizeof (const void *_buffer);
0494
0495
0496
0497
0498
0499
0500
0501
0502
0503 xcb_xinerama_query_screens_cookie_t
0504 xcb_xinerama_query_screens (xcb_connection_t *c);
0505
0506
0507
0508
0509
0510
0511
0512
0513
0514
0515
0516
0517 xcb_xinerama_query_screens_cookie_t
0518 xcb_xinerama_query_screens_unchecked (xcb_connection_t *c);
0519
0520 xcb_xinerama_screen_info_t *
0521 xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R);
0522
0523 int
0524 xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R);
0525
0526 xcb_xinerama_screen_info_iterator_t
0527 xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R);
0528
0529
0530
0531
0532
0533
0534
0535
0536
0537
0538
0539
0540
0541
0542
0543 xcb_xinerama_query_screens_reply_t *
0544 xcb_xinerama_query_screens_reply (xcb_connection_t *c,
0545 xcb_xinerama_query_screens_cookie_t cookie ,
0546 xcb_generic_error_t **e);
0547
0548
0549 #ifdef __cplusplus
0550 }
0551 #endif
0552
0553 #endif
0554
0555
0556
0557