00001
00002
00003
00004
00005
00012 #ifndef __COMPOSITE_H
00013 #define __COMPOSITE_H
00014
00015 #include "xcb.h"
00016 #include "xproto.h"
00017 #include "xfixes.h"
00018
00019 #define XCB_COMPOSITE_MAJOR_VERSION 0
00020 #define XCB_COMPOSITE_MINOR_VERSION 3
00021
00022 extern xcb_extension_t xcb_composite_id;
00023
00024 typedef enum xcb_composite_redirect_t {
00025 XCB_COMPOSITE_REDIRECT_AUTOMATIC,
00026 XCB_COMPOSITE_REDIRECT_MANUAL
00027 } xcb_composite_redirect_t;
00028
00032 typedef struct xcb_composite_query_version_cookie_t {
00033 unsigned int sequence;
00034 } xcb_composite_query_version_cookie_t;
00035
00037 #define XCB_COMPOSITE_QUERY_VERSION 0
00038
00042 typedef struct xcb_composite_query_version_request_t {
00043 uint8_t major_opcode;
00044 uint8_t minor_opcode;
00045 uint16_t length;
00046 uint32_t client_major_version;
00047 uint32_t client_minor_version;
00048 } xcb_composite_query_version_request_t;
00049
00053 typedef struct xcb_composite_query_version_reply_t {
00054 uint8_t response_type;
00055 uint8_t pad0;
00056 uint16_t sequence;
00057 uint32_t length;
00058 uint32_t major_version;
00059 uint32_t minor_version;
00060 uint8_t pad1[16];
00061 } xcb_composite_query_version_reply_t;
00062
00064 #define XCB_COMPOSITE_REDIRECT_WINDOW 1
00065
00069 typedef struct xcb_composite_redirect_window_request_t {
00070 uint8_t major_opcode;
00071 uint8_t minor_opcode;
00072 uint16_t length;
00073 xcb_window_t window;
00074 uint8_t update;
00075 uint8_t pad0[3];
00076 } xcb_composite_redirect_window_request_t;
00077
00079 #define XCB_COMPOSITE_REDIRECT_SUBWINDOWS 2
00080
00084 typedef struct xcb_composite_redirect_subwindows_request_t {
00085 uint8_t major_opcode;
00086 uint8_t minor_opcode;
00087 uint16_t length;
00088 xcb_window_t window;
00089 uint8_t update;
00090 uint8_t pad0[3];
00091 } xcb_composite_redirect_subwindows_request_t;
00092
00094 #define XCB_COMPOSITE_UNREDIRECT_WINDOW 3
00095
00099 typedef struct xcb_composite_unredirect_window_request_t {
00100 uint8_t major_opcode;
00101 uint8_t minor_opcode;
00102 uint16_t length;
00103 xcb_window_t window;
00104 uint8_t update;
00105 uint8_t pad0[3];
00106 } xcb_composite_unredirect_window_request_t;
00107
00109 #define XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS 4
00110
00114 typedef struct xcb_composite_unredirect_subwindows_request_t {
00115 uint8_t major_opcode;
00116 uint8_t minor_opcode;
00117 uint16_t length;
00118 xcb_window_t window;
00119 uint8_t update;
00120 uint8_t pad0[3];
00121 } xcb_composite_unredirect_subwindows_request_t;
00122
00124 #define XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP 5
00125
00129 typedef struct xcb_composite_create_region_from_border_clip_request_t {
00130 uint8_t major_opcode;
00131 uint8_t minor_opcode;
00132 uint16_t length;
00133 xcb_xfixes_region_t region;
00134 xcb_window_t window;
00135 } xcb_composite_create_region_from_border_clip_request_t;
00136
00138 #define XCB_COMPOSITE_NAME_WINDOW_PIXMAP 6
00139
00143 typedef struct xcb_composite_name_window_pixmap_request_t {
00144 uint8_t major_opcode;
00145 uint8_t minor_opcode;
00146 uint16_t length;
00147 xcb_window_t window;
00148 xcb_pixmap_t pixmap;
00149 } xcb_composite_name_window_pixmap_request_t;
00150
00154 typedef struct xcb_composite_get_overlay_window_cookie_t {
00155 unsigned int sequence;
00156 } xcb_composite_get_overlay_window_cookie_t;
00157
00159 #define XCB_COMPOSITE_GET_OVERLAY_WINDOW 7
00160
00164 typedef struct xcb_composite_get_overlay_window_request_t {
00165 uint8_t major_opcode;
00166 uint8_t minor_opcode;
00167 uint16_t length;
00168 xcb_window_t window;
00169 } xcb_composite_get_overlay_window_request_t;
00170
00174 typedef struct xcb_composite_get_overlay_window_reply_t {
00175 uint8_t response_type;
00176 uint8_t pad0;
00177 uint16_t sequence;
00178 uint32_t length;
00179 xcb_window_t overlay_win;
00180 uint8_t pad1[20];
00181 } xcb_composite_get_overlay_window_reply_t;
00182
00184 #define XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW 8
00185
00189 typedef struct xcb_composite_release_overlay_window_request_t {
00190 uint8_t major_opcode;
00191 uint8_t minor_opcode;
00192 uint16_t length;
00193 xcb_window_t window;
00194 } xcb_composite_release_overlay_window_request_t;
00195
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216 xcb_composite_query_version_cookie_t
00217 xcb_composite_query_version (xcb_connection_t *c ,
00218 uint32_t client_major_version ,
00219 uint32_t client_minor_version );
00220
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
00244 xcb_composite_query_version_cookie_t
00245 xcb_composite_query_version_unchecked (xcb_connection_t *c ,
00246 uint32_t client_major_version ,
00247 uint32_t client_minor_version );
00248
00262
00263
00264
00265
00266
00267
00268
00269
00270
00271
00272
00273 xcb_composite_query_version_reply_t *
00274 xcb_composite_query_version_reply (xcb_connection_t *c ,
00275 xcb_composite_query_version_cookie_t cookie ,
00276 xcb_generic_error_t **e );
00277
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301 xcb_void_cookie_t
00302 xcb_composite_redirect_window_checked (xcb_connection_t *c ,
00303 xcb_window_t window ,
00304 uint8_t update );
00305
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326 xcb_void_cookie_t
00327 xcb_composite_redirect_window (xcb_connection_t *c ,
00328 xcb_window_t window ,
00329 uint8_t update );
00330
00343
00344
00345
00346
00347
00348
00349
00350
00351
00352
00353
00354 xcb_void_cookie_t
00355 xcb_composite_redirect_subwindows_checked (xcb_connection_t *c ,
00356 xcb_window_t window ,
00357 uint8_t update );
00358
00368
00369
00370
00371
00372
00373
00374
00375
00376
00377
00378
00379 xcb_void_cookie_t
00380 xcb_composite_redirect_subwindows (xcb_connection_t *c ,
00381 xcb_window_t window ,
00382 uint8_t update );
00383
00396
00397
00398
00399
00400
00401
00402
00403
00404
00405
00406
00407 xcb_void_cookie_t
00408 xcb_composite_unredirect_window_checked (xcb_connection_t *c ,
00409 xcb_window_t window ,
00410 uint8_t update );
00411
00421
00422
00423
00424
00425
00426
00427
00428
00429
00430
00431
00432 xcb_void_cookie_t
00433 xcb_composite_unredirect_window (xcb_connection_t *c ,
00434 xcb_window_t window ,
00435 uint8_t update );
00436
00449
00450
00451
00452
00453
00454
00455
00456
00457
00458
00459
00460 xcb_void_cookie_t
00461 xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c ,
00462 xcb_window_t window ,
00463 uint8_t update );
00464
00474
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484
00485 xcb_void_cookie_t
00486 xcb_composite_unredirect_subwindows (xcb_connection_t *c ,
00487 xcb_window_t window ,
00488 uint8_t update );
00489
00502
00503
00504
00505
00506
00507
00508
00509
00510
00511
00512
00513 xcb_void_cookie_t
00514 xcb_composite_create_region_from_border_clip_checked (xcb_connection_t *c ,
00515 xcb_xfixes_region_t region ,
00516 xcb_window_t window );
00517
00527
00528
00529
00530
00531
00532
00533
00534
00535
00536
00537
00538 xcb_void_cookie_t
00539 xcb_composite_create_region_from_border_clip (xcb_connection_t *c ,
00540 xcb_xfixes_region_t region ,
00541 xcb_window_t window );
00542
00555
00556
00557
00558
00559
00560
00561
00562
00563
00564
00565
00566 xcb_void_cookie_t
00567 xcb_composite_name_window_pixmap_checked (xcb_connection_t *c ,
00568 xcb_window_t window ,
00569 xcb_pixmap_t pixmap );
00570
00580
00581
00582
00583
00584
00585
00586
00587
00588
00589
00590
00591 xcb_void_cookie_t
00592 xcb_composite_name_window_pixmap (xcb_connection_t *c ,
00593 xcb_window_t window ,
00594 xcb_pixmap_t pixmap );
00595
00605
00606
00607
00608
00609
00610
00611
00612
00613
00614
00615 xcb_composite_get_overlay_window_cookie_t
00616 xcb_composite_get_overlay_window (xcb_connection_t *c ,
00617 xcb_window_t window );
00618
00631
00632
00633
00634
00635
00636
00637
00638
00639
00640
00641 xcb_composite_get_overlay_window_cookie_t
00642 xcb_composite_get_overlay_window_unchecked (xcb_connection_t *c ,
00643 xcb_window_t window );
00644
00658
00659
00660
00661
00662
00663
00664
00665
00666
00667
00668
00669 xcb_composite_get_overlay_window_reply_t *
00670 xcb_composite_get_overlay_window_reply (xcb_connection_t *c ,
00671 xcb_composite_get_overlay_window_cookie_t cookie ,
00672 xcb_generic_error_t **e );
00673
00686
00687
00688
00689
00690
00691
00692
00693
00694
00695
00696 xcb_void_cookie_t
00697 xcb_composite_release_overlay_window_checked (xcb_connection_t *c ,
00698 xcb_window_t window );
00699
00709
00710
00711
00712
00713
00714
00715
00716
00717
00718
00719 xcb_void_cookie_t
00720 xcb_composite_release_overlay_window (xcb_connection_t *c ,
00721 xcb_window_t window );
00722
00723
00724 #endif
00725