00001
00002
00003
00004
00005
00012 #ifndef __XPROTO_H
00013 #define __XPROTO_H
00014
00015 #include "xcb.h"
00016
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020
00024 typedef struct xcb_char2b_t {
00025 uint8_t byte1;
00026 uint8_t byte2;
00027 } xcb_char2b_t;
00028
00032 typedef struct xcb_char2b_iterator_t {
00033 xcb_char2b_t *data;
00034 int rem;
00035 int index;
00036 } xcb_char2b_iterator_t;
00037
00038 typedef uint32_t xcb_window_t;
00039
00043 typedef struct xcb_window_iterator_t {
00044 xcb_window_t *data;
00045 int rem;
00046 int index;
00047 } xcb_window_iterator_t;
00048
00049 typedef uint32_t xcb_pixmap_t;
00050
00054 typedef struct xcb_pixmap_iterator_t {
00055 xcb_pixmap_t *data;
00056 int rem;
00057 int index;
00058 } xcb_pixmap_iterator_t;
00059
00060 typedef uint32_t xcb_cursor_t;
00061
00065 typedef struct xcb_cursor_iterator_t {
00066 xcb_cursor_t *data;
00067 int rem;
00068 int index;
00069 } xcb_cursor_iterator_t;
00070
00071 typedef uint32_t xcb_font_t;
00072
00076 typedef struct xcb_font_iterator_t {
00077 xcb_font_t *data;
00078 int rem;
00079 int index;
00080 } xcb_font_iterator_t;
00081
00082 typedef uint32_t xcb_gcontext_t;
00083
00087 typedef struct xcb_gcontext_iterator_t {
00088 xcb_gcontext_t *data;
00089 int rem;
00090 int index;
00091 } xcb_gcontext_iterator_t;
00092
00093 typedef uint32_t xcb_colormap_t;
00094
00098 typedef struct xcb_colormap_iterator_t {
00099 xcb_colormap_t *data;
00100 int rem;
00101 int index;
00102 } xcb_colormap_iterator_t;
00103
00104 typedef uint32_t xcb_atom_t;
00105
00109 typedef struct xcb_atom_iterator_t {
00110 xcb_atom_t *data;
00111 int rem;
00112 int index;
00113 } xcb_atom_iterator_t;
00114
00115 typedef uint32_t xcb_drawable_t;
00116
00120 typedef struct xcb_drawable_iterator_t {
00121 xcb_drawable_t *data;
00122 int rem;
00123 int index;
00124 } xcb_drawable_iterator_t;
00125
00126 typedef uint32_t xcb_fontable_t;
00127
00131 typedef struct xcb_fontable_iterator_t {
00132 xcb_fontable_t *data;
00133 int rem;
00134 int index;
00135 } xcb_fontable_iterator_t;
00136
00137 typedef uint32_t xcb_visualid_t;
00138
00142 typedef struct xcb_visualid_iterator_t {
00143 xcb_visualid_t *data;
00144 int rem;
00145 int index;
00146 } xcb_visualid_iterator_t;
00147
00148 typedef uint32_t xcb_timestamp_t;
00149
00153 typedef struct xcb_timestamp_iterator_t {
00154 xcb_timestamp_t *data;
00155 int rem;
00156 int index;
00157 } xcb_timestamp_iterator_t;
00158
00159 typedef uint32_t xcb_keysym_t;
00160
00164 typedef struct xcb_keysym_iterator_t {
00165 xcb_keysym_t *data;
00166 int rem;
00167 int index;
00168 } xcb_keysym_iterator_t;
00169
00170 typedef uint8_t xcb_keycode_t;
00171
00175 typedef struct xcb_keycode_iterator_t {
00176 xcb_keycode_t *data;
00177 int rem;
00178 int index;
00179 } xcb_keycode_iterator_t;
00180
00181 typedef uint8_t xcb_button_t;
00182
00186 typedef struct xcb_button_iterator_t {
00187 xcb_button_t *data;
00188 int rem;
00189 int index;
00190 } xcb_button_iterator_t;
00191
00195 typedef struct xcb_point_t {
00196 int16_t x;
00197 int16_t y;
00198 } xcb_point_t;
00199
00203 typedef struct xcb_point_iterator_t {
00204 xcb_point_t *data;
00205 int rem;
00206 int index;
00207 } xcb_point_iterator_t;
00208
00212 typedef struct xcb_rectangle_t {
00213 int16_t x;
00214 int16_t y;
00215 uint16_t width;
00216 uint16_t height;
00217 } xcb_rectangle_t;
00218
00222 typedef struct xcb_rectangle_iterator_t {
00223 xcb_rectangle_t *data;
00224 int rem;
00225 int index;
00226 } xcb_rectangle_iterator_t;
00227
00231 typedef struct xcb_arc_t {
00232 int16_t x;
00233 int16_t y;
00234 uint16_t width;
00235 uint16_t height;
00236 int16_t angle1;
00237 int16_t angle2;
00238 } xcb_arc_t;
00239
00243 typedef struct xcb_arc_iterator_t {
00244 xcb_arc_t *data;
00245 int rem;
00246 int index;
00247 } xcb_arc_iterator_t;
00248
00252 typedef struct xcb_format_t {
00253 uint8_t depth;
00254 uint8_t bits_per_pixel;
00255 uint8_t scanline_pad;
00256 uint8_t pad0[5];
00257 } xcb_format_t;
00258
00262 typedef struct xcb_format_iterator_t {
00263 xcb_format_t *data;
00264 int rem;
00265 int index;
00266 } xcb_format_iterator_t;
00267
00268 typedef enum xcb_visual_class_t {
00269 XCB_VISUAL_CLASS_STATIC_GRAY = 0,
00270 XCB_VISUAL_CLASS_GRAY_SCALE = 1,
00271 XCB_VISUAL_CLASS_STATIC_COLOR = 2,
00272 XCB_VISUAL_CLASS_PSEUDO_COLOR = 3,
00273 XCB_VISUAL_CLASS_TRUE_COLOR = 4,
00274 XCB_VISUAL_CLASS_DIRECT_COLOR = 5
00275 } xcb_visual_class_t;
00276
00280 typedef struct xcb_visualtype_t {
00281 xcb_visualid_t visual_id;
00282 uint8_t _class;
00283 uint8_t bits_per_rgb_value;
00284 uint16_t colormap_entries;
00285 uint32_t red_mask;
00286 uint32_t green_mask;
00287 uint32_t blue_mask;
00288 uint8_t pad0[4];
00289 } xcb_visualtype_t;
00290
00294 typedef struct xcb_visualtype_iterator_t {
00295 xcb_visualtype_t *data;
00296 int rem;
00297 int index;
00298 } xcb_visualtype_iterator_t;
00299
00303 typedef struct xcb_depth_t {
00304 uint8_t depth;
00305 uint8_t pad0;
00306 uint16_t visuals_len;
00307 uint8_t pad1[4];
00308 } xcb_depth_t;
00309
00313 typedef struct xcb_depth_iterator_t {
00314 xcb_depth_t *data;
00315 int rem;
00316 int index;
00317 } xcb_depth_iterator_t;
00318
00319 typedef enum xcb_event_mask_t {
00320 XCB_EVENT_MASK_NO_EVENT = 0,
00321 XCB_EVENT_MASK_KEY_PRESS = 1,
00322 XCB_EVENT_MASK_KEY_RELEASE = 2,
00323 XCB_EVENT_MASK_BUTTON_PRESS = 4,
00324 XCB_EVENT_MASK_BUTTON_RELEASE = 8,
00325 XCB_EVENT_MASK_ENTER_WINDOW = 16,
00326 XCB_EVENT_MASK_LEAVE_WINDOW = 32,
00327 XCB_EVENT_MASK_POINTER_MOTION = 64,
00328 XCB_EVENT_MASK_POINTER_MOTION_HINT = 128,
00329 XCB_EVENT_MASK_BUTTON_1_MOTION = 256,
00330 XCB_EVENT_MASK_BUTTON_2_MOTION = 512,
00331 XCB_EVENT_MASK_BUTTON_3_MOTION = 1024,
00332 XCB_EVENT_MASK_BUTTON_4_MOTION = 2048,
00333 XCB_EVENT_MASK_BUTTON_5_MOTION = 4096,
00334 XCB_EVENT_MASK_BUTTON_MOTION = 8192,
00335 XCB_EVENT_MASK_KEYMAP_STATE = 16384,
00336 XCB_EVENT_MASK_EXPOSURE = 32768,
00337 XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536,
00338 XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072,
00339 XCB_EVENT_MASK_RESIZE_REDIRECT = 262144,
00340 XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288,
00341 XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576,
00342 XCB_EVENT_MASK_FOCUS_CHANGE = 2097152,
00343 XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304,
00344 XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608,
00345 XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216
00346 } xcb_event_mask_t;
00347
00348 typedef enum xcb_backing_store_t {
00349 XCB_BACKING_STORE_NOT_USEFUL = 0,
00350 XCB_BACKING_STORE_WHEN_MAPPED = 1,
00351 XCB_BACKING_STORE_ALWAYS = 2
00352 } xcb_backing_store_t;
00353
00357 typedef struct xcb_screen_t {
00358 xcb_window_t root;
00359 xcb_colormap_t default_colormap;
00360 uint32_t white_pixel;
00361 uint32_t black_pixel;
00362 uint32_t current_input_masks;
00363 uint16_t width_in_pixels;
00364 uint16_t height_in_pixels;
00365 uint16_t width_in_millimeters;
00366 uint16_t height_in_millimeters;
00367 uint16_t min_installed_maps;
00368 uint16_t max_installed_maps;
00369 xcb_visualid_t root_visual;
00370 uint8_t backing_stores;
00371 uint8_t save_unders;
00372 uint8_t root_depth;
00373 uint8_t allowed_depths_len;
00374 } xcb_screen_t;
00375
00379 typedef struct xcb_screen_iterator_t {
00380 xcb_screen_t *data;
00381 int rem;
00382 int index;
00383 } xcb_screen_iterator_t;
00384
00388 typedef struct xcb_setup_request_t {
00389 uint8_t byte_order;
00390 uint8_t pad0;
00391 uint16_t protocol_major_version;
00392 uint16_t protocol_minor_version;
00393 uint16_t authorization_protocol_name_len;
00394 uint16_t authorization_protocol_data_len;
00395 uint8_t pad1[2];
00396 } xcb_setup_request_t;
00397
00401 typedef struct xcb_setup_request_iterator_t {
00402 xcb_setup_request_t *data;
00403 int rem;
00404 int index;
00405 } xcb_setup_request_iterator_t;
00406
00410 typedef struct xcb_setup_failed_t {
00411 uint8_t status;
00412 uint8_t reason_len;
00413 uint16_t protocol_major_version;
00414 uint16_t protocol_minor_version;
00415 uint16_t length;
00416 } xcb_setup_failed_t;
00417
00421 typedef struct xcb_setup_failed_iterator_t {
00422 xcb_setup_failed_t *data;
00423 int rem;
00424 int index;
00425 } xcb_setup_failed_iterator_t;
00426
00430 typedef struct xcb_setup_authenticate_t {
00431 uint8_t status;
00432 uint8_t pad0[5];
00433 uint16_t length;
00434 } xcb_setup_authenticate_t;
00435
00439 typedef struct xcb_setup_authenticate_iterator_t {
00440 xcb_setup_authenticate_t *data;
00441 int rem;
00442 int index;
00443 } xcb_setup_authenticate_iterator_t;
00444
00445 typedef enum xcb_image_order_t {
00446 XCB_IMAGE_ORDER_LSB_FIRST = 0,
00447 XCB_IMAGE_ORDER_MSB_FIRST = 1
00448 } xcb_image_order_t;
00449
00453 typedef struct xcb_setup_t {
00454 uint8_t status;
00455 uint8_t pad0;
00456 uint16_t protocol_major_version;
00457 uint16_t protocol_minor_version;
00458 uint16_t length;
00459 uint32_t release_number;
00460 uint32_t resource_id_base;
00461 uint32_t resource_id_mask;
00462 uint32_t motion_buffer_size;
00463 uint16_t vendor_len;
00464 uint16_t maximum_request_length;
00465 uint8_t roots_len;
00466 uint8_t pixmap_formats_len;
00467 uint8_t image_byte_order;
00468 uint8_t bitmap_format_bit_order;
00469 uint8_t bitmap_format_scanline_unit;
00470 uint8_t bitmap_format_scanline_pad;
00471 xcb_keycode_t min_keycode;
00472 xcb_keycode_t max_keycode;
00473 uint8_t pad1[4];
00474 } xcb_setup_t;
00475
00479 typedef struct xcb_setup_iterator_t {
00480 xcb_setup_t *data;
00481 int rem;
00482 int index;
00483 } xcb_setup_iterator_t;
00484
00485 typedef enum xcb_mod_mask_t {
00486 XCB_MOD_MASK_SHIFT = 1,
00487 XCB_MOD_MASK_LOCK = 2,
00488 XCB_MOD_MASK_CONTROL = 4,
00489 XCB_MOD_MASK_1 = 8,
00490 XCB_MOD_MASK_2 = 16,
00491 XCB_MOD_MASK_3 = 32,
00492 XCB_MOD_MASK_4 = 64,
00493 XCB_MOD_MASK_5 = 128,
00494 XCB_MOD_MASK_ANY = 32768
00495 } xcb_mod_mask_t;
00496
00497 typedef enum xcb_key_but_mask_t {
00498 XCB_KEY_BUT_MASK_SHIFT = 1,
00499 XCB_KEY_BUT_MASK_LOCK = 2,
00500 XCB_KEY_BUT_MASK_CONTROL = 4,
00501 XCB_KEY_BUT_MASK_MOD_1 = 8,
00502 XCB_KEY_BUT_MASK_MOD_2 = 16,
00503 XCB_KEY_BUT_MASK_MOD_3 = 32,
00504 XCB_KEY_BUT_MASK_MOD_4 = 64,
00505 XCB_KEY_BUT_MASK_MOD_5 = 128,
00506 XCB_KEY_BUT_MASK_BUTTON_1 = 256,
00507 XCB_KEY_BUT_MASK_BUTTON_2 = 512,
00508 XCB_KEY_BUT_MASK_BUTTON_3 = 1024,
00509 XCB_KEY_BUT_MASK_BUTTON_4 = 2048,
00510 XCB_KEY_BUT_MASK_BUTTON_5 = 4096
00511 } xcb_key_but_mask_t;
00512
00513 typedef enum xcb_window_enum_t {
00514 XCB_WINDOW_NONE = 0
00515 } xcb_window_enum_t;
00516
00518 #define XCB_KEY_PRESS 2
00519
00523 typedef struct xcb_key_press_event_t {
00524 uint8_t response_type;
00525 xcb_keycode_t detail;
00526 uint16_t sequence;
00527 xcb_timestamp_t time;
00528 xcb_window_t root;
00529 xcb_window_t event;
00530 xcb_window_t child;
00531 int16_t root_x;
00532 int16_t root_y;
00533 int16_t event_x;
00534 int16_t event_y;
00535 uint16_t state;
00536 uint8_t same_screen;
00537 uint8_t pad0;
00538 } xcb_key_press_event_t;
00539
00541 #define XCB_KEY_RELEASE 3
00542
00543 typedef xcb_key_press_event_t xcb_key_release_event_t;
00544
00545 typedef enum xcb_button_mask_t {
00546 XCB_BUTTON_MASK_1 = 256,
00547 XCB_BUTTON_MASK_2 = 512,
00548 XCB_BUTTON_MASK_3 = 1024,
00549 XCB_BUTTON_MASK_4 = 2048,
00550 XCB_BUTTON_MASK_5 = 4096,
00551 XCB_BUTTON_MASK_ANY = 32768
00552 } xcb_button_mask_t;
00553
00555 #define XCB_BUTTON_PRESS 4
00556
00560 typedef struct xcb_button_press_event_t {
00561 uint8_t response_type;
00562 xcb_button_t detail;
00563 uint16_t sequence;
00564 xcb_timestamp_t time;
00565 xcb_window_t root;
00566 xcb_window_t event;
00567 xcb_window_t child;
00568 int16_t root_x;
00569 int16_t root_y;
00570 int16_t event_x;
00571 int16_t event_y;
00572 uint16_t state;
00573 uint8_t same_screen;
00574 uint8_t pad0;
00575 } xcb_button_press_event_t;
00576
00578 #define XCB_BUTTON_RELEASE 5
00579
00580 typedef xcb_button_press_event_t xcb_button_release_event_t;
00581
00582 typedef enum xcb_motion_t {
00583 XCB_MOTION_NORMAL = 0,
00584 XCB_MOTION_HINT = 1
00585 } xcb_motion_t;
00586
00588 #define XCB_MOTION_NOTIFY 6
00589
00593 typedef struct xcb_motion_notify_event_t {
00594 uint8_t response_type;
00595 uint8_t detail;
00596 uint16_t sequence;
00597 xcb_timestamp_t time;
00598 xcb_window_t root;
00599 xcb_window_t event;
00600 xcb_window_t child;
00601 int16_t root_x;
00602 int16_t root_y;
00603 int16_t event_x;
00604 int16_t event_y;
00605 uint16_t state;
00606 uint8_t same_screen;
00607 uint8_t pad0;
00608 } xcb_motion_notify_event_t;
00609
00610 typedef enum xcb_notify_detail_t {
00611 XCB_NOTIFY_DETAIL_ANCESTOR = 0,
00612 XCB_NOTIFY_DETAIL_VIRTUAL = 1,
00613 XCB_NOTIFY_DETAIL_INFERIOR = 2,
00614 XCB_NOTIFY_DETAIL_NONLINEAR = 3,
00615 XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4,
00616 XCB_NOTIFY_DETAIL_POINTER = 5,
00617 XCB_NOTIFY_DETAIL_POINTER_ROOT = 6,
00618 XCB_NOTIFY_DETAIL_NONE = 7
00619 } xcb_notify_detail_t;
00620
00621 typedef enum xcb_notify_mode_t {
00622 XCB_NOTIFY_MODE_NORMAL = 0,
00623 XCB_NOTIFY_MODE_GRAB = 1,
00624 XCB_NOTIFY_MODE_UNGRAB = 2,
00625 XCB_NOTIFY_MODE_WHILE_GRABBED = 3
00626 } xcb_notify_mode_t;
00627
00629 #define XCB_ENTER_NOTIFY 7
00630
00634 typedef struct xcb_enter_notify_event_t {
00635 uint8_t response_type;
00636 uint8_t detail;
00637 uint16_t sequence;
00638 xcb_timestamp_t time;
00639 xcb_window_t root;
00640 xcb_window_t event;
00641 xcb_window_t child;
00642 int16_t root_x;
00643 int16_t root_y;
00644 int16_t event_x;
00645 int16_t event_y;
00646 uint16_t state;
00647 uint8_t mode;
00648 uint8_t same_screen_focus;
00649 } xcb_enter_notify_event_t;
00650
00652 #define XCB_LEAVE_NOTIFY 8
00653
00654 typedef xcb_enter_notify_event_t xcb_leave_notify_event_t;
00655
00657 #define XCB_FOCUS_IN 9
00658
00662 typedef struct xcb_focus_in_event_t {
00663 uint8_t response_type;
00664 uint8_t detail;
00665 uint16_t sequence;
00666 xcb_window_t event;
00667 uint8_t mode;
00668 uint8_t pad0[3];
00669 } xcb_focus_in_event_t;
00670
00672 #define XCB_FOCUS_OUT 10
00673
00674 typedef xcb_focus_in_event_t xcb_focus_out_event_t;
00675
00677 #define XCB_KEYMAP_NOTIFY 11
00678
00682 typedef struct xcb_keymap_notify_event_t {
00683 uint8_t response_type;
00684 uint8_t keys[31];
00685 } xcb_keymap_notify_event_t;
00686
00688 #define XCB_EXPOSE 12
00689
00693 typedef struct xcb_expose_event_t {
00694 uint8_t response_type;
00695 uint8_t pad0;
00696 uint16_t sequence;
00697 xcb_window_t window;
00698 uint16_t x;
00699 uint16_t y;
00700 uint16_t width;
00701 uint16_t height;
00702 uint16_t count;
00703 uint8_t pad1[2];
00704 } xcb_expose_event_t;
00705
00707 #define XCB_GRAPHICS_EXPOSURE 13
00708
00712 typedef struct xcb_graphics_exposure_event_t {
00713 uint8_t response_type;
00714 uint8_t pad0;
00715 uint16_t sequence;
00716 xcb_drawable_t drawable;
00717 uint16_t x;
00718 uint16_t y;
00719 uint16_t width;
00720 uint16_t height;
00721 uint16_t minor_opcode;
00722 uint16_t count;
00723 uint8_t major_opcode;
00724 uint8_t pad1[3];
00725 } xcb_graphics_exposure_event_t;
00726
00728 #define XCB_NO_EXPOSURE 14
00729
00733 typedef struct xcb_no_exposure_event_t {
00734 uint8_t response_type;
00735 uint8_t pad0;
00736 uint16_t sequence;
00737 xcb_drawable_t drawable;
00738 uint16_t minor_opcode;
00739 uint8_t major_opcode;
00740 uint8_t pad1;
00741 } xcb_no_exposure_event_t;
00742
00743 typedef enum xcb_visibility_t {
00744 XCB_VISIBILITY_UNOBSCURED = 0,
00745 XCB_VISIBILITY_PARTIALLY_OBSCURED = 1,
00746 XCB_VISIBILITY_FULLY_OBSCURED = 2
00747 } xcb_visibility_t;
00748
00750 #define XCB_VISIBILITY_NOTIFY 15
00751
00755 typedef struct xcb_visibility_notify_event_t {
00756 uint8_t response_type;
00757 uint8_t pad0;
00758 uint16_t sequence;
00759 xcb_window_t window;
00760 uint8_t state;
00761 uint8_t pad1[3];
00762 } xcb_visibility_notify_event_t;
00763
00765 #define XCB_CREATE_NOTIFY 16
00766
00770 typedef struct xcb_create_notify_event_t {
00771 uint8_t response_type;
00772 uint8_t pad0;
00773 uint16_t sequence;
00774 xcb_window_t parent;
00775 xcb_window_t window;
00776 int16_t x;
00777 int16_t y;
00778 uint16_t width;
00779 uint16_t height;
00780 uint16_t border_width;
00781 uint8_t override_redirect;
00782 uint8_t pad1;
00783 } xcb_create_notify_event_t;
00784
00786 #define XCB_DESTROY_NOTIFY 17
00787
00791 typedef struct xcb_destroy_notify_event_t {
00792 uint8_t response_type;
00793 uint8_t pad0;
00794 uint16_t sequence;
00795 xcb_window_t event;
00796 xcb_window_t window;
00797 } xcb_destroy_notify_event_t;
00798
00800 #define XCB_UNMAP_NOTIFY 18
00801
00805 typedef struct xcb_unmap_notify_event_t {
00806 uint8_t response_type;
00807 uint8_t pad0;
00808 uint16_t sequence;
00809 xcb_window_t event;
00810 xcb_window_t window;
00811 uint8_t from_configure;
00812 uint8_t pad1[3];
00813 } xcb_unmap_notify_event_t;
00814
00816 #define XCB_MAP_NOTIFY 19
00817
00821 typedef struct xcb_map_notify_event_t {
00822 uint8_t response_type;
00823 uint8_t pad0;
00824 uint16_t sequence;
00825 xcb_window_t event;
00826 xcb_window_t window;
00827 uint8_t override_redirect;
00828 uint8_t pad1[3];
00829 } xcb_map_notify_event_t;
00830
00832 #define XCB_MAP_REQUEST 20
00833
00837 typedef struct xcb_map_request_event_t {
00838 uint8_t response_type;
00839 uint8_t pad0;
00840 uint16_t sequence;
00841 xcb_window_t parent;
00842 xcb_window_t window;
00843 } xcb_map_request_event_t;
00844
00846 #define XCB_REPARENT_NOTIFY 21
00847
00851 typedef struct xcb_reparent_notify_event_t {
00852 uint8_t response_type;
00853 uint8_t pad0;
00854 uint16_t sequence;
00855 xcb_window_t event;
00856 xcb_window_t window;
00857 xcb_window_t parent;
00858 int16_t x;
00859 int16_t y;
00860 uint8_t override_redirect;
00861 uint8_t pad1[3];
00862 } xcb_reparent_notify_event_t;
00863
00865 #define XCB_CONFIGURE_NOTIFY 22
00866
00870 typedef struct xcb_configure_notify_event_t {
00871 uint8_t response_type;
00872 uint8_t pad0;
00873 uint16_t sequence;
00874 xcb_window_t event;
00875 xcb_window_t window;
00876 xcb_window_t above_sibling;
00877 int16_t x;
00878 int16_t y;
00879 uint16_t width;
00880 uint16_t height;
00881 uint16_t border_width;
00882 uint8_t override_redirect;
00883 uint8_t pad1;
00884 } xcb_configure_notify_event_t;
00885
00887 #define XCB_CONFIGURE_REQUEST 23
00888
00892 typedef struct xcb_configure_request_event_t {
00893 uint8_t response_type;
00894 uint8_t stack_mode;
00895 uint16_t sequence;
00896 xcb_window_t parent;
00897 xcb_window_t window;
00898 xcb_window_t sibling;
00899 int16_t x;
00900 int16_t y;
00901 uint16_t width;
00902 uint16_t height;
00903 uint16_t border_width;
00904 uint16_t value_mask;
00905 } xcb_configure_request_event_t;
00906
00908 #define XCB_GRAVITY_NOTIFY 24
00909
00913 typedef struct xcb_gravity_notify_event_t {
00914 uint8_t response_type;
00915 uint8_t pad0;
00916 uint16_t sequence;
00917 xcb_window_t event;
00918 xcb_window_t window;
00919 int16_t x;
00920 int16_t y;
00921 } xcb_gravity_notify_event_t;
00922
00924 #define XCB_RESIZE_REQUEST 25
00925
00929 typedef struct xcb_resize_request_event_t {
00930 uint8_t response_type;
00931 uint8_t pad0;
00932 uint16_t sequence;
00933 xcb_window_t window;
00934 uint16_t width;
00935 uint16_t height;
00936 } xcb_resize_request_event_t;
00937
00938 typedef enum xcb_place_t {
00939 XCB_PLACE_ON_TOP = 0,
00940 XCB_PLACE_ON_BOTTOM = 1
00941 } xcb_place_t;
00942
00944 #define XCB_CIRCULATE_NOTIFY 26
00945
00949 typedef struct xcb_circulate_notify_event_t {
00950 uint8_t response_type;
00951 uint8_t pad0;
00952 uint16_t sequence;
00953 xcb_window_t event;
00954 xcb_window_t window;
00955 uint8_t pad1[4];
00956 uint8_t place;
00957 uint8_t pad2[3];
00958 } xcb_circulate_notify_event_t;
00959
00961 #define XCB_CIRCULATE_REQUEST 27
00962
00963 typedef xcb_circulate_notify_event_t xcb_circulate_request_event_t;
00964
00965 typedef enum xcb_property_t {
00966 XCB_PROPERTY_NEW_VALUE = 0,
00967 XCB_PROPERTY_DELETE = 1
00968 } xcb_property_t;
00969
00971 #define XCB_PROPERTY_NOTIFY 28
00972
00976 typedef struct xcb_property_notify_event_t {
00977 uint8_t response_type;
00978 uint8_t pad0;
00979 uint16_t sequence;
00980 xcb_window_t window;
00981 xcb_atom_t atom;
00982 xcb_timestamp_t time;
00983 uint8_t state;
00984 uint8_t pad1[3];
00985 } xcb_property_notify_event_t;
00986
00988 #define XCB_SELECTION_CLEAR 29
00989
00993 typedef struct xcb_selection_clear_event_t {
00994 uint8_t response_type;
00995 uint8_t pad0;
00996 uint16_t sequence;
00997 xcb_timestamp_t time;
00998 xcb_window_t owner;
00999 xcb_atom_t selection;
01000 } xcb_selection_clear_event_t;
01001
01002 typedef enum xcb_time_t {
01003 XCB_TIME_CURRENT_TIME = 0
01004 } xcb_time_t;
01005
01006 typedef enum xcb_atom_enum_t {
01007 XCB_ATOM_NONE = 0
01008 } xcb_atom_enum_t;
01009
01011 #define XCB_SELECTION_REQUEST 30
01012
01016 typedef struct xcb_selection_request_event_t {
01017 uint8_t response_type;
01018 uint8_t pad0;
01019 uint16_t sequence;
01020 xcb_timestamp_t time;
01021 xcb_window_t owner;
01022 xcb_window_t requestor;
01023 xcb_atom_t selection;
01024 xcb_atom_t target;
01025 xcb_atom_t property;
01026 } xcb_selection_request_event_t;
01027
01029 #define XCB_SELECTION_NOTIFY 31
01030
01034 typedef struct xcb_selection_notify_event_t {
01035 uint8_t response_type;
01036 uint8_t pad0;
01037 uint16_t sequence;
01038 xcb_timestamp_t time;
01039 xcb_window_t requestor;
01040 xcb_atom_t selection;
01041 xcb_atom_t target;
01042 xcb_atom_t property;
01043 } xcb_selection_notify_event_t;
01044
01045 typedef enum xcb_colormap_state_t {
01046 XCB_COLORMAP_STATE_UNINSTALLED = 0,
01047 XCB_COLORMAP_STATE_INSTALLED = 1
01048 } xcb_colormap_state_t;
01049
01050 typedef enum xcb_colormap_enum_t {
01051 XCB_COLORMAP_NONE = 0
01052 } xcb_colormap_enum_t;
01053
01055 #define XCB_COLORMAP_NOTIFY 32
01056
01060 typedef struct xcb_colormap_notify_event_t {
01061 uint8_t response_type;
01062 uint8_t pad0;
01063 uint16_t sequence;
01064 xcb_window_t window;
01065 xcb_colormap_t colormap;
01066 uint8_t _new;
01067 uint8_t state;
01068 uint8_t pad1[2];
01069 } xcb_colormap_notify_event_t;
01070
01074 typedef union xcb_client_message_data_t {
01075 uint8_t data8[20];
01076 uint16_t data16[10];
01077 uint32_t data32[5];
01078 } xcb_client_message_data_t;
01079
01083 typedef struct xcb_client_message_data_iterator_t {
01084 xcb_client_message_data_t *data;
01085 int rem;
01086 int index;
01087 } xcb_client_message_data_iterator_t;
01088
01090 #define XCB_CLIENT_MESSAGE 33
01091
01095 typedef struct xcb_client_message_event_t {
01096 uint8_t response_type;
01097 uint8_t format;
01098 uint16_t sequence;
01099 xcb_window_t window;
01100 xcb_atom_t type;
01101 xcb_client_message_data_t data;
01102 } xcb_client_message_event_t;
01103
01104 typedef enum xcb_mapping_t {
01105 XCB_MAPPING_MODIFIER = 0,
01106 XCB_MAPPING_KEYBOARD = 1,
01107 XCB_MAPPING_POINTER = 2
01108 } xcb_mapping_t;
01109
01111 #define XCB_MAPPING_NOTIFY 34
01112
01116 typedef struct xcb_mapping_notify_event_t {
01117 uint8_t response_type;
01118 uint8_t pad0;
01119 uint16_t sequence;
01120 uint8_t request;
01121 xcb_keycode_t first_keycode;
01122 uint8_t count;
01123 uint8_t pad1;
01124 } xcb_mapping_notify_event_t;
01125
01127 #define XCB_REQUEST 1
01128
01132 typedef struct xcb_request_error_t {
01133 uint8_t response_type;
01134 uint8_t error_code;
01135 uint16_t sequence;
01136 uint32_t bad_value;
01137 uint16_t minor_opcode;
01138 uint8_t major_opcode;
01139 uint8_t pad0;
01140 } xcb_request_error_t;
01141
01143 #define XCB_VALUE 2
01144
01148 typedef struct xcb_value_error_t {
01149 uint8_t response_type;
01150 uint8_t error_code;
01151 uint16_t sequence;
01152 uint32_t bad_value;
01153 uint16_t minor_opcode;
01154 uint8_t major_opcode;
01155 uint8_t pad0;
01156 } xcb_value_error_t;
01157
01159 #define XCB_WINDOW 3
01160
01161 typedef xcb_value_error_t xcb_window_error_t;
01162
01164 #define XCB_PIXMAP 4
01165
01166 typedef xcb_value_error_t xcb_pixmap_error_t;
01167
01169 #define XCB_ATOM 5
01170
01171 typedef xcb_value_error_t xcb_atom_error_t;
01172
01174 #define XCB_CURSOR 6
01175
01176 typedef xcb_value_error_t xcb_cursor_error_t;
01177
01179 #define XCB_FONT 7
01180
01181 typedef xcb_value_error_t xcb_font_error_t;
01182
01184 #define XCB_MATCH 8
01185
01186 typedef xcb_request_error_t xcb_match_error_t;
01187
01189 #define XCB_DRAWABLE 9
01190
01191 typedef xcb_value_error_t xcb_drawable_error_t;
01192
01194 #define XCB_ACCESS 10
01195
01196 typedef xcb_request_error_t xcb_access_error_t;
01197
01199 #define XCB_ALLOC 11
01200
01201 typedef xcb_request_error_t xcb_alloc_error_t;
01202
01204 #define XCB_COLORMAP 12
01205
01206 typedef xcb_value_error_t xcb_colormap_error_t;
01207
01209 #define XCB_G_CONTEXT 13
01210
01211 typedef xcb_value_error_t xcb_g_context_error_t;
01212
01214 #define XCB_ID_CHOICE 14
01215
01216 typedef xcb_value_error_t xcb_id_choice_error_t;
01217
01219 #define XCB_NAME 15
01220
01221 typedef xcb_request_error_t xcb_name_error_t;
01222
01224 #define XCB_LENGTH 16
01225
01226 typedef xcb_request_error_t xcb_length_error_t;
01227
01229 #define XCB_IMPLEMENTATION 17
01230
01231 typedef xcb_request_error_t xcb_implementation_error_t;
01232
01233 typedef enum xcb_window_class_t {
01234 XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0,
01235 XCB_WINDOW_CLASS_INPUT_OUTPUT = 1,
01236 XCB_WINDOW_CLASS_INPUT_ONLY = 2
01237 } xcb_window_class_t;
01238
01239 typedef enum xcb_cw_t {
01240 XCB_CW_BACK_PIXMAP = 1,
01241 XCB_CW_BACK_PIXEL = 2,
01242 XCB_CW_BORDER_PIXMAP = 4,
01243 XCB_CW_BORDER_PIXEL = 8,
01244 XCB_CW_BIT_GRAVITY = 16,
01245 XCB_CW_WIN_GRAVITY = 32,
01246 XCB_CW_BACKING_STORE = 64,
01247 XCB_CW_BACKING_PLANES = 128,
01248 XCB_CW_BACKING_PIXEL = 256,
01249 XCB_CW_OVERRIDE_REDIRECT = 512,
01250 XCB_CW_SAVE_UNDER = 1024,
01251 XCB_CW_EVENT_MASK = 2048,
01252 XCB_CW_DONT_PROPAGATE = 4096,
01253 XCB_CW_COLORMAP = 8192,
01254 XCB_CW_CURSOR = 16384
01255 } xcb_cw_t;
01256
01257 typedef enum xcb_back_pixmap_t {
01258 XCB_BACK_PIXMAP_NONE = 0,
01259 XCB_BACK_PIXMAP_PARENT_RELATIVE = 1
01260 } xcb_back_pixmap_t;
01261
01262 typedef enum xcb_gravity_t {
01263 XCB_GRAVITY_BIT_FORGET = 0,
01264 XCB_GRAVITY_WIN_UNMAP = 0,
01265 XCB_GRAVITY_NORTH_WEST = 1,
01266 XCB_GRAVITY_NORTH = 2,
01267 XCB_GRAVITY_NORTH_EAST = 3,
01268 XCB_GRAVITY_WEST = 4,
01269 XCB_GRAVITY_CENTER = 5,
01270 XCB_GRAVITY_EAST = 6,
01271 XCB_GRAVITY_SOUTH_WEST = 7,
01272 XCB_GRAVITY_SOUTH = 8,
01273 XCB_GRAVITY_SOUTH_EAST = 9,
01274 XCB_GRAVITY_STATIC = 10
01275 } xcb_gravity_t;
01276
01278 #define XCB_CREATE_WINDOW 1
01279
01283 typedef struct xcb_create_window_request_t {
01284 uint8_t major_opcode;
01285 uint8_t depth;
01286 uint16_t length;
01287 xcb_window_t wid;
01288 xcb_window_t parent;
01289 int16_t x;
01290 int16_t y;
01291 uint16_t width;
01292 uint16_t height;
01293 uint16_t border_width;
01294 uint16_t _class;
01295 xcb_visualid_t visual;
01296 uint32_t value_mask;
01297 } xcb_create_window_request_t;
01298
01300 #define XCB_CHANGE_WINDOW_ATTRIBUTES 2
01301
01305 typedef struct xcb_change_window_attributes_request_t {
01306 uint8_t major_opcode;
01307 uint8_t pad0;
01308 uint16_t length;
01309 xcb_window_t window;
01310 uint32_t value_mask;
01311 } xcb_change_window_attributes_request_t;
01312
01313 typedef enum xcb_map_state_t {
01314 XCB_MAP_STATE_UNMAPPED = 0,
01315 XCB_MAP_STATE_UNVIEWABLE = 1,
01316 XCB_MAP_STATE_VIEWABLE = 2
01317 } xcb_map_state_t;
01318
01322 typedef struct xcb_get_window_attributes_cookie_t {
01323 unsigned int sequence;
01324 } xcb_get_window_attributes_cookie_t;
01325
01327 #define XCB_GET_WINDOW_ATTRIBUTES 3
01328
01332 typedef struct xcb_get_window_attributes_request_t {
01333 uint8_t major_opcode;
01334 uint8_t pad0;
01335 uint16_t length;
01336 xcb_window_t window;
01337 } xcb_get_window_attributes_request_t;
01338
01342 typedef struct xcb_get_window_attributes_reply_t {
01343 uint8_t response_type;
01344 uint8_t backing_store;
01345 uint16_t sequence;
01346 uint32_t length;
01347 xcb_visualid_t visual;
01348 uint16_t _class;
01349 uint8_t bit_gravity;
01350 uint8_t win_gravity;
01351 uint32_t backing_planes;
01352 uint32_t backing_pixel;
01353 uint8_t save_under;
01354 uint8_t map_is_installed;
01355 uint8_t map_state;
01356 uint8_t override_redirect;
01357 xcb_colormap_t colormap;
01358 uint32_t all_event_masks;
01359 uint32_t your_event_mask;
01360 uint16_t do_not_propagate_mask;
01361 uint8_t pad0[2];
01362 } xcb_get_window_attributes_reply_t;
01363
01365 #define XCB_DESTROY_WINDOW 4
01366
01370 typedef struct xcb_destroy_window_request_t {
01371 uint8_t major_opcode;
01372 uint8_t pad0;
01373 uint16_t length;
01374 xcb_window_t window;
01375 } xcb_destroy_window_request_t;
01376
01378 #define XCB_DESTROY_SUBWINDOWS 5
01379
01383 typedef struct xcb_destroy_subwindows_request_t {
01384 uint8_t major_opcode;
01385 uint8_t pad0;
01386 uint16_t length;
01387 xcb_window_t window;
01388 } xcb_destroy_subwindows_request_t;
01389
01390 typedef enum xcb_set_mode_t {
01391 XCB_SET_MODE_INSERT = 0,
01392 XCB_SET_MODE_DELETE = 1
01393 } xcb_set_mode_t;
01394
01396 #define XCB_CHANGE_SAVE_SET 6
01397
01401 typedef struct xcb_change_save_set_request_t {
01402 uint8_t major_opcode;
01403 uint8_t mode;
01404 uint16_t length;
01405 xcb_window_t window;
01406 } xcb_change_save_set_request_t;
01407
01409 #define XCB_REPARENT_WINDOW 7
01410
01414 typedef struct xcb_reparent_window_request_t {
01415 uint8_t major_opcode;
01416 uint8_t pad0;
01417 uint16_t length;
01418 xcb_window_t window;
01419 xcb_window_t parent;
01420 int16_t x;
01421 int16_t y;
01422 } xcb_reparent_window_request_t;
01423
01425 #define XCB_MAP_WINDOW 8
01426
01430 typedef struct xcb_map_window_request_t {
01431 uint8_t major_opcode;
01432 uint8_t pad0;
01433 uint16_t length;
01434 xcb_window_t window;
01435 } xcb_map_window_request_t;
01436
01438 #define XCB_MAP_SUBWINDOWS 9
01439
01443 typedef struct xcb_map_subwindows_request_t {
01444 uint8_t major_opcode;
01445 uint8_t pad0;
01446 uint16_t length;
01447 xcb_window_t window;
01448 } xcb_map_subwindows_request_t;
01449
01451 #define XCB_UNMAP_WINDOW 10
01452
01456 typedef struct xcb_unmap_window_request_t {
01457 uint8_t major_opcode;
01458 uint8_t pad0;
01459 uint16_t length;
01460 xcb_window_t window;
01461 } xcb_unmap_window_request_t;
01462
01464 #define XCB_UNMAP_SUBWINDOWS 11
01465
01469 typedef struct xcb_unmap_subwindows_request_t {
01470 uint8_t major_opcode;
01471 uint8_t pad0;
01472 uint16_t length;
01473 xcb_window_t window;
01474 } xcb_unmap_subwindows_request_t;
01475
01476 typedef enum xcb_config_window_t {
01477 XCB_CONFIG_WINDOW_X = 1,
01478 XCB_CONFIG_WINDOW_Y = 2,
01479 XCB_CONFIG_WINDOW_WIDTH = 4,
01480 XCB_CONFIG_WINDOW_HEIGHT = 8,
01481 XCB_CONFIG_WINDOW_BORDER_WIDTH = 16,
01482 XCB_CONFIG_WINDOW_SIBLING = 32,
01483 XCB_CONFIG_WINDOW_STACK_MODE = 64
01484 } xcb_config_window_t;
01485
01486 typedef enum xcb_stack_mode_t {
01487 XCB_STACK_MODE_ABOVE = 0,
01488 XCB_STACK_MODE_BELOW = 1,
01489 XCB_STACK_MODE_TOP_IF = 2,
01490 XCB_STACK_MODE_BOTTOM_IF = 3,
01491 XCB_STACK_MODE_OPPOSITE = 4
01492 } xcb_stack_mode_t;
01493
01495 #define XCB_CONFIGURE_WINDOW 12
01496
01500 typedef struct xcb_configure_window_request_t {
01501 uint8_t major_opcode;
01502 uint8_t pad0;
01503 uint16_t length;
01504 xcb_window_t window;
01505 uint16_t value_mask;
01506 uint8_t pad1[2];
01507 } xcb_configure_window_request_t;
01508
01509 typedef enum xcb_circulate_t {
01510 XCB_CIRCULATE_RAISE_LOWEST = 0,
01511 XCB_CIRCULATE_LOWER_HIGHEST = 1
01512 } xcb_circulate_t;
01513
01515 #define XCB_CIRCULATE_WINDOW 13
01516
01520 typedef struct xcb_circulate_window_request_t {
01521 uint8_t major_opcode;
01522 uint8_t direction;
01523 uint16_t length;
01524 xcb_window_t window;
01525 } xcb_circulate_window_request_t;
01526
01530 typedef struct xcb_get_geometry_cookie_t {
01531 unsigned int sequence;
01532 } xcb_get_geometry_cookie_t;
01533
01535 #define XCB_GET_GEOMETRY 14
01536
01540 typedef struct xcb_get_geometry_request_t {
01541 uint8_t major_opcode;
01542 uint8_t pad0;
01543 uint16_t length;
01544 xcb_drawable_t drawable;
01545 } xcb_get_geometry_request_t;
01546
01550 typedef struct xcb_get_geometry_reply_t {
01551 uint8_t response_type;
01552 uint8_t depth;
01553 uint16_t sequence;
01554 uint32_t length;
01555 xcb_window_t root;
01556 int16_t x;
01557 int16_t y;
01558 uint16_t width;
01559 uint16_t height;
01560 uint16_t border_width;
01561 uint8_t pad0[2];
01562 } xcb_get_geometry_reply_t;
01563
01567 typedef struct xcb_query_tree_cookie_t {
01568 unsigned int sequence;
01569 } xcb_query_tree_cookie_t;
01570
01572 #define XCB_QUERY_TREE 15
01573
01577 typedef struct xcb_query_tree_request_t {
01578 uint8_t major_opcode;
01579 uint8_t pad0;
01580 uint16_t length;
01581 xcb_window_t window;
01582 } xcb_query_tree_request_t;
01583
01587 typedef struct xcb_query_tree_reply_t {
01588 uint8_t response_type;
01589 uint8_t pad0;
01590 uint16_t sequence;
01591 uint32_t length;
01592 xcb_window_t root;
01593 xcb_window_t parent;
01594 uint16_t children_len;
01595 uint8_t pad1[14];
01596 } xcb_query_tree_reply_t;
01597
01601 typedef struct xcb_intern_atom_cookie_t {
01602 unsigned int sequence;
01603 } xcb_intern_atom_cookie_t;
01604
01606 #define XCB_INTERN_ATOM 16
01607
01611 typedef struct xcb_intern_atom_request_t {
01612 uint8_t major_opcode;
01613 uint8_t only_if_exists;
01614 uint16_t length;
01615 uint16_t name_len;
01616 uint8_t pad0[2];
01617 } xcb_intern_atom_request_t;
01618
01622 typedef struct xcb_intern_atom_reply_t {
01623 uint8_t response_type;
01624 uint8_t pad0;
01625 uint16_t sequence;
01626 uint32_t length;
01627 xcb_atom_t atom;
01628 } xcb_intern_atom_reply_t;
01629
01633 typedef struct xcb_get_atom_name_cookie_t {
01634 unsigned int sequence;
01635 } xcb_get_atom_name_cookie_t;
01636
01638 #define XCB_GET_ATOM_NAME 17
01639
01643 typedef struct xcb_get_atom_name_request_t {
01644 uint8_t major_opcode;
01645 uint8_t pad0;
01646 uint16_t length;
01647 xcb_atom_t atom;
01648 } xcb_get_atom_name_request_t;
01649
01653 typedef struct xcb_get_atom_name_reply_t {
01654 uint8_t response_type;
01655 uint8_t pad0;
01656 uint16_t sequence;
01657 uint32_t length;
01658 uint16_t name_len;
01659 uint8_t pad1[22];
01660 } xcb_get_atom_name_reply_t;
01661
01662 typedef enum xcb_prop_mode_t {
01663 XCB_PROP_MODE_REPLACE = 0,
01664 XCB_PROP_MODE_PREPEND = 1,
01665 XCB_PROP_MODE_APPEND = 2
01666 } xcb_prop_mode_t;
01667
01669 #define XCB_CHANGE_PROPERTY 18
01670
01674 typedef struct xcb_change_property_request_t {
01675 uint8_t major_opcode;
01676 uint8_t mode;
01677 uint16_t length;
01678 xcb_window_t window;
01679 xcb_atom_t property;
01680 xcb_atom_t type;
01681 uint8_t format;
01682 uint8_t pad0[3];
01683 uint32_t data_len;
01684 } xcb_change_property_request_t;
01685
01687 #define XCB_DELETE_PROPERTY 19
01688
01692 typedef struct xcb_delete_property_request_t {
01693 uint8_t major_opcode;
01694 uint8_t pad0;
01695 uint16_t length;
01696 xcb_window_t window;
01697 xcb_atom_t property;
01698 } xcb_delete_property_request_t;
01699
01700 typedef enum xcb_get_property_type_t {
01701 XCB_GET_PROPERTY_TYPE_ANY = 0
01702 } xcb_get_property_type_t;
01703
01707 typedef struct xcb_get_property_cookie_t {
01708 unsigned int sequence;
01709 } xcb_get_property_cookie_t;
01710
01712 #define XCB_GET_PROPERTY 20
01713
01717 typedef struct xcb_get_property_request_t {
01718 uint8_t major_opcode;
01719 uint8_t _delete;
01720 uint16_t length;
01721 xcb_window_t window;
01722 xcb_atom_t property;
01723 xcb_atom_t type;
01724 uint32_t long_offset;
01725 uint32_t long_length;
01726 } xcb_get_property_request_t;
01727
01731 typedef struct xcb_get_property_reply_t {
01732 uint8_t response_type;
01733 uint8_t format;
01734 uint16_t sequence;
01735 uint32_t length;
01736 xcb_atom_t type;
01737 uint32_t bytes_after;
01738 uint32_t value_len;
01739 uint8_t pad0[12];
01740 } xcb_get_property_reply_t;
01741
01745 typedef struct xcb_list_properties_cookie_t {
01746 unsigned int sequence;
01747 } xcb_list_properties_cookie_t;
01748
01750 #define XCB_LIST_PROPERTIES 21
01751
01755 typedef struct xcb_list_properties_request_t {
01756 uint8_t major_opcode;
01757 uint8_t pad0;
01758 uint16_t length;
01759 xcb_window_t window;
01760 } xcb_list_properties_request_t;
01761
01765 typedef struct xcb_list_properties_reply_t {
01766 uint8_t response_type;
01767 uint8_t pad0;
01768 uint16_t sequence;
01769 uint32_t length;
01770 uint16_t atoms_len;
01771 uint8_t pad1[22];
01772 } xcb_list_properties_reply_t;
01773
01775 #define XCB_SET_SELECTION_OWNER 22
01776
01780 typedef struct xcb_set_selection_owner_request_t {
01781 uint8_t major_opcode;
01782 uint8_t pad0;
01783 uint16_t length;
01784 xcb_window_t owner;
01785 xcb_atom_t selection;
01786 xcb_timestamp_t time;
01787 } xcb_set_selection_owner_request_t;
01788
01792 typedef struct xcb_get_selection_owner_cookie_t {
01793 unsigned int sequence;
01794 } xcb_get_selection_owner_cookie_t;
01795
01797 #define XCB_GET_SELECTION_OWNER 23
01798
01802 typedef struct xcb_get_selection_owner_request_t {
01803 uint8_t major_opcode;
01804 uint8_t pad0;
01805 uint16_t length;
01806 xcb_atom_t selection;
01807 } xcb_get_selection_owner_request_t;
01808
01812 typedef struct xcb_get_selection_owner_reply_t {
01813 uint8_t response_type;
01814 uint8_t pad0;
01815 uint16_t sequence;
01816 uint32_t length;
01817 xcb_window_t owner;
01818 } xcb_get_selection_owner_reply_t;
01819
01821 #define XCB_CONVERT_SELECTION 24
01822
01826 typedef struct xcb_convert_selection_request_t {
01827 uint8_t major_opcode;
01828 uint8_t pad0;
01829 uint16_t length;
01830 xcb_window_t requestor;
01831 xcb_atom_t selection;
01832 xcb_atom_t target;
01833 xcb_atom_t property;
01834 xcb_timestamp_t time;
01835 } xcb_convert_selection_request_t;
01836
01837 typedef enum xcb_send_event_dest_t {
01838 XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0,
01839 XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1
01840 } xcb_send_event_dest_t;
01841
01843 #define XCB_SEND_EVENT 25
01844
01848 typedef struct xcb_send_event_request_t {
01849 uint8_t major_opcode;
01850 uint8_t propagate;
01851 uint16_t length;
01852 xcb_window_t destination;
01853 uint32_t event_mask;
01854 char event[32];
01855 } xcb_send_event_request_t;
01856
01857 typedef enum xcb_grab_mode_t {
01858 XCB_GRAB_MODE_SYNC = 0,
01859 XCB_GRAB_MODE_ASYNC = 1
01860 } xcb_grab_mode_t;
01861
01862 typedef enum xcb_grab_status_t {
01863 XCB_GRAB_STATUS_SUCCESS = 0,
01864 XCB_GRAB_STATUS_ALREADY_GRABBED = 1,
01865 XCB_GRAB_STATUS_INVALID_TIME = 2,
01866 XCB_GRAB_STATUS_NOT_VIEWABLE = 3,
01867 XCB_GRAB_STATUS_FROZEN = 4
01868 } xcb_grab_status_t;
01869
01870 typedef enum xcb_cursor_enum_t {
01871 XCB_CURSOR_NONE = 0
01872 } xcb_cursor_enum_t;
01873
01877 typedef struct xcb_grab_pointer_cookie_t {
01878 unsigned int sequence;
01879 } xcb_grab_pointer_cookie_t;
01880
01882 #define XCB_GRAB_POINTER 26
01883
01887 typedef struct xcb_grab_pointer_request_t {
01888 uint8_t major_opcode;
01889 uint8_t owner_events;
01890 uint16_t length;
01891 xcb_window_t grab_window;
01892 uint16_t event_mask;
01893 uint8_t pointer_mode;
01894 uint8_t keyboard_mode;
01895 xcb_window_t confine_to;
01896 xcb_cursor_t cursor;
01897 xcb_timestamp_t time;
01898 } xcb_grab_pointer_request_t;
01899
01903 typedef struct xcb_grab_pointer_reply_t {
01904 uint8_t response_type;
01905 uint8_t status;
01906 uint16_t sequence;
01907 uint32_t length;
01908 } xcb_grab_pointer_reply_t;
01909
01911 #define XCB_UNGRAB_POINTER 27
01912
01916 typedef struct xcb_ungrab_pointer_request_t {
01917 uint8_t major_opcode;
01918 uint8_t pad0;
01919 uint16_t length;
01920 xcb_timestamp_t time;
01921 } xcb_ungrab_pointer_request_t;
01922
01923 typedef enum xcb_button_index_t {
01924 XCB_BUTTON_INDEX_ANY = 0,
01925 XCB_BUTTON_INDEX_1 = 1,
01926 XCB_BUTTON_INDEX_2 = 2,
01927 XCB_BUTTON_INDEX_3 = 3,
01928 XCB_BUTTON_INDEX_4 = 4,
01929 XCB_BUTTON_INDEX_5 = 5
01930 } xcb_button_index_t;
01931
01933 #define XCB_GRAB_BUTTON 28
01934
01938 typedef struct xcb_grab_button_request_t {
01939 uint8_t major_opcode;
01940 uint8_t owner_events;
01941 uint16_t length;
01942 xcb_window_t grab_window;
01943 uint16_t event_mask;
01944 uint8_t pointer_mode;
01945 uint8_t keyboard_mode;
01946 xcb_window_t confine_to;
01947 xcb_cursor_t cursor;
01948 uint8_t button;
01949 uint8_t pad0;
01950 uint16_t modifiers;
01951 } xcb_grab_button_request_t;
01952
01954 #define XCB_UNGRAB_BUTTON 29
01955
01959 typedef struct xcb_ungrab_button_request_t {
01960 uint8_t major_opcode;
01961 uint8_t button;
01962 uint16_t length;
01963 xcb_window_t grab_window;
01964 uint16_t modifiers;
01965 uint8_t pad0[2];
01966 } xcb_ungrab_button_request_t;
01967
01969 #define XCB_CHANGE_ACTIVE_POINTER_GRAB 30
01970
01974 typedef struct xcb_change_active_pointer_grab_request_t {
01975 uint8_t major_opcode;
01976 uint8_t pad0;
01977 uint16_t length;
01978 xcb_cursor_t cursor;
01979 xcb_timestamp_t time;
01980 uint16_t event_mask;
01981 uint8_t pad1[2];
01982 } xcb_change_active_pointer_grab_request_t;
01983
01987 typedef struct xcb_grab_keyboard_cookie_t {
01988 unsigned int sequence;
01989 } xcb_grab_keyboard_cookie_t;
01990
01992 #define XCB_GRAB_KEYBOARD 31
01993
01997 typedef struct xcb_grab_keyboard_request_t {
01998 uint8_t major_opcode;
01999 uint8_t owner_events;
02000 uint16_t length;
02001 xcb_window_t grab_window;
02002 xcb_timestamp_t time;
02003 uint8_t pointer_mode;
02004 uint8_t keyboard_mode;
02005 uint8_t pad0[2];
02006 } xcb_grab_keyboard_request_t;
02007
02011 typedef struct xcb_grab_keyboard_reply_t {
02012 uint8_t response_type;
02013 uint8_t status;
02014 uint16_t sequence;
02015 uint32_t length;
02016 } xcb_grab_keyboard_reply_t;
02017
02019 #define XCB_UNGRAB_KEYBOARD 32
02020
02024 typedef struct xcb_ungrab_keyboard_request_t {
02025 uint8_t major_opcode;
02026 uint8_t pad0;
02027 uint16_t length;
02028 xcb_timestamp_t time;
02029 } xcb_ungrab_keyboard_request_t;
02030
02031 typedef enum xcb_grab_t {
02032 XCB_GRAB_ANY = 0
02033 } xcb_grab_t;
02034
02036 #define XCB_GRAB_KEY 33
02037
02041 typedef struct xcb_grab_key_request_t {
02042 uint8_t major_opcode;
02043 uint8_t owner_events;
02044 uint16_t length;
02045 xcb_window_t grab_window;
02046 uint16_t modifiers;
02047 xcb_keycode_t key;
02048 uint8_t pointer_mode;
02049 uint8_t keyboard_mode;
02050 uint8_t pad0[3];
02051 } xcb_grab_key_request_t;
02052
02054 #define XCB_UNGRAB_KEY 34
02055
02059 typedef struct xcb_ungrab_key_request_t {
02060 uint8_t major_opcode;
02061 xcb_keycode_t key;
02062 uint16_t length;
02063 xcb_window_t grab_window;
02064 uint16_t modifiers;
02065 uint8_t pad0[2];
02066 } xcb_ungrab_key_request_t;
02067
02068 typedef enum xcb_allow_t {
02069 XCB_ALLOW_ASYNC_POINTER = 0,
02070 XCB_ALLOW_SYNC_POINTER = 1,
02071 XCB_ALLOW_REPLAY_POINTER = 2,
02072 XCB_ALLOW_ASYNC_KEYBOARD = 3,
02073 XCB_ALLOW_SYNC_KEYBOARD = 4,
02074 XCB_ALLOW_REPLAY_KEYBOARD = 5,
02075 XCB_ALLOW_ASYNC_BOTH = 6,
02076 XCB_ALLOW_SYNC_BOTH = 7
02077 } xcb_allow_t;
02078
02080 #define XCB_ALLOW_EVENTS 35
02081
02085 typedef struct xcb_allow_events_request_t {
02086 uint8_t major_opcode;
02087 uint8_t mode;
02088 uint16_t length;
02089 xcb_timestamp_t time;
02090 } xcb_allow_events_request_t;
02091
02093 #define XCB_GRAB_SERVER 36
02094
02098 typedef struct xcb_grab_server_request_t {
02099 uint8_t major_opcode;
02100 uint8_t pad0;
02101 uint16_t length;
02102 } xcb_grab_server_request_t;
02103
02105 #define XCB_UNGRAB_SERVER 37
02106
02110 typedef struct xcb_ungrab_server_request_t {
02111 uint8_t major_opcode;
02112 uint8_t pad0;
02113 uint16_t length;
02114 } xcb_ungrab_server_request_t;
02115
02119 typedef struct xcb_query_pointer_cookie_t {
02120 unsigned int sequence;
02121 } xcb_query_pointer_cookie_t;
02122
02124 #define XCB_QUERY_POINTER 38
02125
02129 typedef struct xcb_query_pointer_request_t {
02130 uint8_t major_opcode;
02131 uint8_t pad0;
02132 uint16_t length;
02133 xcb_window_t window;
02134 } xcb_query_pointer_request_t;
02135
02139 typedef struct xcb_query_pointer_reply_t {
02140 uint8_t response_type;
02141 uint8_t same_screen;
02142 uint16_t sequence;
02143 uint32_t length;
02144 xcb_window_t root;
02145 xcb_window_t child;
02146 int16_t root_x;
02147 int16_t root_y;
02148 int16_t win_x;
02149 int16_t win_y;
02150 uint16_t mask;
02151 uint8_t pad0[2];
02152 } xcb_query_pointer_reply_t;
02153
02157 typedef struct xcb_timecoord_t {
02158 xcb_timestamp_t time;
02159 int16_t x;
02160 int16_t y;
02161 } xcb_timecoord_t;
02162
02166 typedef struct xcb_timecoord_iterator_t {
02167 xcb_timecoord_t *data;
02168 int rem;
02169 int index;
02170 } xcb_timecoord_iterator_t;
02171
02175 typedef struct xcb_get_motion_events_cookie_t {
02176 unsigned int sequence;
02177 } xcb_get_motion_events_cookie_t;
02178
02180 #define XCB_GET_MOTION_EVENTS 39
02181
02185 typedef struct xcb_get_motion_events_request_t {
02186 uint8_t major_opcode;
02187 uint8_t pad0;
02188 uint16_t length;
02189 xcb_window_t window;
02190 xcb_timestamp_t start;
02191 xcb_timestamp_t stop;
02192 } xcb_get_motion_events_request_t;
02193
02197 typedef struct xcb_get_motion_events_reply_t {
02198 uint8_t response_type;
02199 uint8_t pad0;
02200 uint16_t sequence;
02201 uint32_t length;
02202 uint32_t events_len;
02203 uint8_t pad1[20];
02204 } xcb_get_motion_events_reply_t;
02205
02209 typedef struct xcb_translate_coordinates_cookie_t {
02210 unsigned int sequence;
02211 } xcb_translate_coordinates_cookie_t;
02212
02214 #define XCB_TRANSLATE_COORDINATES 40
02215
02219 typedef struct xcb_translate_coordinates_request_t {
02220 uint8_t major_opcode;
02221 uint8_t pad0;
02222 uint16_t length;
02223 xcb_window_t src_window;
02224 xcb_window_t dst_window;
02225 int16_t src_x;
02226 int16_t src_y;
02227 } xcb_translate_coordinates_request_t;
02228
02232 typedef struct xcb_translate_coordinates_reply_t {
02233 uint8_t response_type;
02234 uint8_t same_screen;
02235 uint16_t sequence;
02236 uint32_t length;
02237 xcb_window_t child;
02238 uint16_t dst_x;
02239 uint16_t dst_y;
02240 } xcb_translate_coordinates_reply_t;
02241
02243 #define XCB_WARP_POINTER 41
02244
02248 typedef struct xcb_warp_pointer_request_t {
02249 uint8_t major_opcode;
02250 uint8_t pad0;
02251 uint16_t length;
02252 xcb_window_t src_window;
02253 xcb_window_t dst_window;
02254 int16_t src_x;
02255 int16_t src_y;
02256 uint16_t src_width;
02257 uint16_t src_height;
02258 int16_t dst_x;
02259 int16_t dst_y;
02260 } xcb_warp_pointer_request_t;
02261
02262 typedef enum xcb_input_focus_t {
02263 XCB_INPUT_FOCUS_NONE = 0,
02264 XCB_INPUT_FOCUS_POINTER_ROOT = 1,
02265 XCB_INPUT_FOCUS_PARENT = 2,
02266 XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3
02267 } xcb_input_focus_t;
02268
02270 #define XCB_SET_INPUT_FOCUS 42
02271
02275 typedef struct xcb_set_input_focus_request_t {
02276 uint8_t major_opcode;
02277 uint8_t revert_to;
02278 uint16_t length;
02279 xcb_window_t focus;
02280 xcb_timestamp_t time;
02281 } xcb_set_input_focus_request_t;
02282
02286 typedef struct xcb_get_input_focus_cookie_t {
02287 unsigned int sequence;
02288 } xcb_get_input_focus_cookie_t;
02289
02291 #define XCB_GET_INPUT_FOCUS 43
02292
02296 typedef struct xcb_get_input_focus_request_t {
02297 uint8_t major_opcode;
02298 uint8_t pad0;
02299 uint16_t length;
02300 } xcb_get_input_focus_request_t;
02301
02305 typedef struct xcb_get_input_focus_reply_t {
02306 uint8_t response_type;
02307 uint8_t revert_to;
02308 uint16_t sequence;
02309 uint32_t length;
02310 xcb_window_t focus;
02311 } xcb_get_input_focus_reply_t;
02312
02316 typedef struct xcb_query_keymap_cookie_t {
02317 unsigned int sequence;
02318 } xcb_query_keymap_cookie_t;
02319
02321 #define XCB_QUERY_KEYMAP 44
02322
02326 typedef struct xcb_query_keymap_request_t {
02327 uint8_t major_opcode;
02328 uint8_t pad0;
02329 uint16_t length;
02330 } xcb_query_keymap_request_t;
02331
02335 typedef struct xcb_query_keymap_reply_t {
02336 uint8_t response_type;
02337 uint8_t pad0;
02338 uint16_t sequence;
02339 uint32_t length;
02340 uint8_t keys[32];
02341 } xcb_query_keymap_reply_t;
02342
02344 #define XCB_OPEN_FONT 45
02345
02349 typedef struct xcb_open_font_request_t {
02350 uint8_t major_opcode;
02351 uint8_t pad0;
02352 uint16_t length;
02353 xcb_font_t fid;
02354 uint16_t name_len;
02355 uint8_t pad1[2];
02356 } xcb_open_font_request_t;
02357
02359 #define XCB_CLOSE_FONT 46
02360
02364 typedef struct xcb_close_font_request_t {
02365 uint8_t major_opcode;
02366 uint8_t pad0;
02367 uint16_t length;
02368 xcb_font_t font;
02369 } xcb_close_font_request_t;
02370
02371 typedef enum xcb_font_draw_t {
02372 XCB_FONT_DRAW_LEFT_TO_RIGHT = 0,
02373 XCB_FONT_DRAW_RIGHT_TO_LEFT = 1
02374 } xcb_font_draw_t;
02375
02379 typedef struct xcb_fontprop_t {
02380 xcb_atom_t name;
02381 uint32_t value;
02382 } xcb_fontprop_t;
02383
02387 typedef struct xcb_fontprop_iterator_t {
02388 xcb_fontprop_t *data;
02389 int rem;
02390 int index;
02391 } xcb_fontprop_iterator_t;
02392
02396 typedef struct xcb_charinfo_t {
02397 int16_t left_side_bearing;
02398 int16_t right_side_bearing;
02399 int16_t character_width;
02400 int16_t ascent;
02401 int16_t descent;
02402 uint16_t attributes;
02403 } xcb_charinfo_t;
02404
02408 typedef struct xcb_charinfo_iterator_t {
02409 xcb_charinfo_t *data;
02410 int rem;
02411 int index;
02412 } xcb_charinfo_iterator_t;
02413
02417 typedef struct xcb_query_font_cookie_t {
02418 unsigned int sequence;
02419 } xcb_query_font_cookie_t;
02420
02422 #define XCB_QUERY_FONT 47
02423
02427 typedef struct xcb_query_font_request_t {
02428 uint8_t major_opcode;
02429 uint8_t pad0;
02430 uint16_t length;
02431 xcb_fontable_t font;
02432 } xcb_query_font_request_t;
02433
02437 typedef struct xcb_query_font_reply_t {
02438 uint8_t response_type;
02439 uint8_t pad0;
02440 uint16_t sequence;
02441 uint32_t length;
02442 xcb_charinfo_t min_bounds;
02443 uint8_t pad1[4];
02444 xcb_charinfo_t max_bounds;
02445 uint8_t pad2[4];
02446 uint16_t min_char_or_byte2;
02447 uint16_t max_char_or_byte2;
02448 uint16_t default_char;
02449 uint16_t properties_len;
02450 uint8_t draw_direction;
02451 uint8_t min_byte1;
02452 uint8_t max_byte1;
02453 uint8_t all_chars_exist;
02454 int16_t font_ascent;
02455 int16_t font_descent;
02456 uint32_t char_infos_len;
02457 } xcb_query_font_reply_t;
02458
02462 typedef struct xcb_query_text_extents_cookie_t {
02463 unsigned int sequence;
02464 } xcb_query_text_extents_cookie_t;
02465
02467 #define XCB_QUERY_TEXT_EXTENTS 48
02468
02472 typedef struct xcb_query_text_extents_request_t {
02473 uint8_t major_opcode;
02474 uint8_t odd_length;
02475 uint16_t length;
02476 xcb_fontable_t font;
02477 } xcb_query_text_extents_request_t;
02478
02482 typedef struct xcb_query_text_extents_reply_t {
02483 uint8_t response_type;
02484 uint8_t draw_direction;
02485 uint16_t sequence;
02486 uint32_t length;
02487 int16_t font_ascent;
02488 int16_t font_descent;
02489 int16_t overall_ascent;
02490 int16_t overall_descent;
02491 int32_t overall_width;
02492 int32_t overall_left;
02493 int32_t overall_right;
02494 } xcb_query_text_extents_reply_t;
02495
02499 typedef struct xcb_str_t {
02500 uint8_t name_len;
02501 } xcb_str_t;
02502
02506 typedef struct xcb_str_iterator_t {
02507 xcb_str_t *data;
02508 int rem;
02509 int index;
02510 } xcb_str_iterator_t;
02511
02515 typedef struct xcb_list_fonts_cookie_t {
02516 unsigned int sequence;
02517 } xcb_list_fonts_cookie_t;
02518
02520 #define XCB_LIST_FONTS 49
02521
02525 typedef struct xcb_list_fonts_request_t {
02526 uint8_t major_opcode;
02527 uint8_t pad0;
02528 uint16_t length;
02529 uint16_t max_names;
02530 uint16_t pattern_len;
02531 } xcb_list_fonts_request_t;
02532
02536 typedef struct xcb_list_fonts_reply_t {
02537 uint8_t response_type;
02538 uint8_t pad0;
02539 uint16_t sequence;
02540 uint32_t length;
02541 uint16_t names_len;
02542 uint8_t pad1[22];
02543 } xcb_list_fonts_reply_t;
02544
02548 typedef struct xcb_list_fonts_with_info_cookie_t {
02549 unsigned int sequence;
02550 } xcb_list_fonts_with_info_cookie_t;
02551
02553 #define XCB_LIST_FONTS_WITH_INFO 50
02554
02558 typedef struct xcb_list_fonts_with_info_request_t {
02559 uint8_t major_opcode;
02560 uint8_t pad0;
02561 uint16_t length;
02562 uint16_t max_names;
02563 uint16_t pattern_len;
02564 } xcb_list_fonts_with_info_request_t;
02565
02569 typedef struct xcb_list_fonts_with_info_reply_t {
02570 uint8_t response_type;
02571 uint8_t name_len;
02572 uint16_t sequence;
02573 uint32_t length;
02574 xcb_charinfo_t min_bounds;
02575 uint8_t pad0[4];
02576 xcb_charinfo_t max_bounds;
02577 uint8_t pad1[4];
02578 uint16_t min_char_or_byte2;
02579 uint16_t max_char_or_byte2;
02580 uint16_t default_char;
02581 uint16_t properties_len;
02582 uint8_t draw_direction;
02583 uint8_t min_byte1;
02584 uint8_t max_byte1;
02585 uint8_t all_chars_exist;
02586 int16_t font_ascent;
02587 int16_t font_descent;
02588 uint32_t replies_hint;
02589 } xcb_list_fonts_with_info_reply_t;
02590
02592 #define XCB_SET_FONT_PATH 51
02593
02597 typedef struct xcb_set_font_path_request_t {
02598 uint8_t major_opcode;
02599 uint8_t pad0;
02600 uint16_t length;
02601 uint16_t font_qty;
02602 } xcb_set_font_path_request_t;
02603
02607 typedef struct xcb_get_font_path_cookie_t {
02608 unsigned int sequence;
02609 } xcb_get_font_path_cookie_t;
02610
02612 #define XCB_GET_FONT_PATH 52
02613
02617 typedef struct xcb_get_font_path_request_t {
02618 uint8_t major_opcode;
02619 uint8_t pad0;
02620 uint16_t length;
02621 } xcb_get_font_path_request_t;
02622
02626 typedef struct xcb_get_font_path_reply_t {
02627 uint8_t response_type;
02628 uint8_t pad0;
02629 uint16_t sequence;
02630 uint32_t length;
02631 uint16_t path_len;
02632 uint8_t pad1[22];
02633 } xcb_get_font_path_reply_t;
02634
02636 #define XCB_CREATE_PIXMAP 53
02637
02641 typedef struct xcb_create_pixmap_request_t {
02642 uint8_t major_opcode;
02643 uint8_t depth;
02644 uint16_t length;
02645 xcb_pixmap_t pid;
02646 xcb_drawable_t drawable;
02647 uint16_t width;
02648 uint16_t height;
02649 } xcb_create_pixmap_request_t;
02650
02652 #define XCB_FREE_PIXMAP 54
02653
02657 typedef struct xcb_free_pixmap_request_t {
02658 uint8_t major_opcode;
02659 uint8_t pad0;
02660 uint16_t length;
02661 xcb_pixmap_t pixmap;
02662 } xcb_free_pixmap_request_t;
02663
02664 typedef enum xcb_gc_t {
02665 XCB_GC_FUNCTION = 1,
02666 XCB_GC_PLANE_MASK = 2,
02667 XCB_GC_FOREGROUND = 4,
02668 XCB_GC_BACKGROUND = 8,
02669 XCB_GC_LINE_WIDTH = 16,
02670 XCB_GC_LINE_STYLE = 32,
02671 XCB_GC_CAP_STYLE = 64,
02672 XCB_GC_JOIN_STYLE = 128,
02673 XCB_GC_FILL_STYLE = 256,
02674 XCB_GC_FILL_RULE = 512,
02675 XCB_GC_TILE = 1024,
02676 XCB_GC_STIPPLE = 2048,
02677 XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096,
02678 XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192,
02679 XCB_GC_FONT = 16384,
02680 XCB_GC_SUBWINDOW_MODE = 32768,
02681 XCB_GC_GRAPHICS_EXPOSURES = 65536,
02682 XCB_GC_CLIP_ORIGIN_X = 131072,
02683 XCB_GC_CLIP_ORIGIN_Y = 262144,
02684 XCB_GC_CLIP_MASK = 524288,
02685 XCB_GC_DASH_OFFSET = 1048576,
02686 XCB_GC_DASH_LIST = 2097152,
02687 XCB_GC_ARC_MODE = 4194304
02688 } xcb_gc_t;
02689
02690 typedef enum xcb_gx_t {
02691 XCB_GX_CLEAR = 0,
02692 XCB_GX_AND = 1,
02693 XCB_GX_AND_REVERSE = 2,
02694 XCB_GX_COPY = 3,
02695 XCB_GX_AND_INVERTED = 4,
02696 XCB_GX_NOOP = 5,
02697 XCB_GX_XOR = 6,
02698 XCB_GX_OR = 7,
02699 XCB_GX_NOR = 8,
02700 XCB_GX_EQUIV = 9,
02701 XCB_GX_INVERT = 10,
02702 XCB_GX_OR_REVERSE = 11,
02703 XCB_GX_COPY_INVERTED = 12,
02704 XCB_GX_OR_INVERTED = 13,
02705 XCB_GX_NAND = 14,
02706 XCB_GX_SET = 15
02707 } xcb_gx_t;
02708
02709 typedef enum xcb_line_style_t {
02710 XCB_LINE_STYLE_SOLID = 0,
02711 XCB_LINE_STYLE_ON_OFF_DASH = 1,
02712 XCB_LINE_STYLE_DOUBLE_DASH = 2
02713 } xcb_line_style_t;
02714
02715 typedef enum xcb_cap_style_t {
02716 XCB_CAP_STYLE_NOT_LAST = 0,
02717 XCB_CAP_STYLE_BUTT = 1,
02718 XCB_CAP_STYLE_ROUND = 2,
02719 XCB_CAP_STYLE_PROJECTING = 3
02720 } xcb_cap_style_t;
02721
02722 typedef enum xcb_join_style_t {
02723 XCB_JOIN_STYLE_MITER = 0,
02724 XCB_JOIN_STYLE_ROUND = 1,
02725 XCB_JOIN_STYLE_BEVEL = 2
02726 } xcb_join_style_t;
02727
02728 typedef enum xcb_fill_style_t {
02729 XCB_FILL_STYLE_SOLID = 0,
02730 XCB_FILL_STYLE_TILED = 1,
02731 XCB_FILL_STYLE_STIPPLED = 2,
02732 XCB_FILL_STYLE_OPAQUE_STIPPLED = 3
02733 } xcb_fill_style_t;
02734
02735 typedef enum xcb_fill_rule_t {
02736 XCB_FILL_RULE_EVEN_ODD = 0,
02737 XCB_FILL_RULE_WINDING = 1
02738 } xcb_fill_rule_t;
02739
02740 typedef enum xcb_subwindow_mode_t {
02741 XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0,
02742 XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1
02743 } xcb_subwindow_mode_t;
02744
02745 typedef enum xcb_arc_mode_t {
02746 XCB_ARC_MODE_CHORD = 0,
02747 XCB_ARC_MODE_PIE_SLICE = 1
02748 } xcb_arc_mode_t;
02749
02751 #define XCB_CREATE_GC 55
02752
02756 typedef struct xcb_create_gc_request_t {
02757 uint8_t major_opcode;
02758 uint8_t pad0;
02759 uint16_t length;
02760 xcb_gcontext_t cid;
02761 xcb_drawable_t drawable;
02762 uint32_t value_mask;
02763 } xcb_create_gc_request_t;
02764
02766 #define XCB_CHANGE_GC 56
02767
02771 typedef struct xcb_change_gc_request_t {
02772 uint8_t major_opcode;
02773 uint8_t pad0;
02774 uint16_t length;
02775 xcb_gcontext_t gc;
02776 uint32_t value_mask;
02777 } xcb_change_gc_request_t;
02778
02780 #define XCB_COPY_GC 57
02781
02785 typedef struct xcb_copy_gc_request_t {
02786 uint8_t major_opcode;
02787 uint8_t pad0;
02788 uint16_t length;
02789 xcb_gcontext_t src_gc;
02790 xcb_gcontext_t dst_gc;
02791 uint32_t value_mask;
02792 } xcb_copy_gc_request_t;
02793
02795 #define XCB_SET_DASHES 58
02796
02800 typedef struct xcb_set_dashes_request_t {
02801 uint8_t major_opcode;
02802 uint8_t pad0;
02803 uint16_t length;
02804 xcb_gcontext_t gc;
02805 uint16_t dash_offset;
02806 uint16_t dashes_len;
02807 } xcb_set_dashes_request_t;
02808
02809 typedef enum xcb_clip_ordering_t {
02810 XCB_CLIP_ORDERING_UNSORTED = 0,
02811 XCB_CLIP_ORDERING_Y_SORTED = 1,
02812 XCB_CLIP_ORDERING_YX_SORTED = 2,
02813 XCB_CLIP_ORDERING_YX_BANDED = 3
02814 } xcb_clip_ordering_t;
02815
02817 #define XCB_SET_CLIP_RECTANGLES 59
02818
02822 typedef struct xcb_set_clip_rectangles_request_t {
02823 uint8_t major_opcode;
02824 uint8_t ordering;
02825 uint16_t length;
02826 xcb_gcontext_t gc;
02827 int16_t clip_x_origin;
02828 int16_t clip_y_origin;
02829 } xcb_set_clip_rectangles_request_t;
02830
02832 #define XCB_FREE_GC 60
02833
02837 typedef struct xcb_free_gc_request_t {
02838 uint8_t major_opcode;
02839 uint8_t pad0;
02840 uint16_t length;
02841 xcb_gcontext_t gc;
02842 } xcb_free_gc_request_t;
02843
02845 #define XCB_CLEAR_AREA 61
02846
02850 typedef struct xcb_clear_area_request_t {
02851 uint8_t major_opcode;
02852 uint8_t exposures;
02853 uint16_t length;
02854 xcb_window_t window;
02855 int16_t x;
02856 int16_t y;
02857 uint16_t width;
02858 uint16_t height;
02859 } xcb_clear_area_request_t;
02860
02862 #define XCB_COPY_AREA 62
02863
02867 typedef struct xcb_copy_area_request_t {
02868 uint8_t major_opcode;
02869 uint8_t pad0;
02870 uint16_t length;
02871 xcb_drawable_t src_drawable;
02872 xcb_drawable_t dst_drawable;
02873 xcb_gcontext_t gc;
02874 int16_t src_x;
02875 int16_t src_y;
02876 int16_t dst_x;
02877 int16_t dst_y;
02878 uint16_t width;
02879 uint16_t height;
02880 } xcb_copy_area_request_t;
02881
02883 #define XCB_COPY_PLANE 63
02884
02888 typedef struct xcb_copy_plane_request_t {
02889 uint8_t major_opcode;
02890 uint8_t pad0;
02891 uint16_t length;
02892 xcb_drawable_t src_drawable;
02893 xcb_drawable_t dst_drawable;
02894 xcb_gcontext_t gc;
02895 int16_t src_x;
02896 int16_t src_y;
02897 int16_t dst_x;
02898 int16_t dst_y;
02899 uint16_t width;
02900 uint16_t height;
02901 uint32_t bit_plane;
02902 } xcb_copy_plane_request_t;
02903
02904 typedef enum xcb_coord_mode_t {
02905 XCB_COORD_MODE_ORIGIN = 0,
02906 XCB_COORD_MODE_PREVIOUS = 1
02907 } xcb_coord_mode_t;
02908
02910 #define XCB_POLY_POINT 64
02911
02915 typedef struct xcb_poly_point_request_t {
02916 uint8_t major_opcode;
02917 uint8_t coordinate_mode;
02918 uint16_t length;
02919 xcb_drawable_t drawable;
02920 xcb_gcontext_t gc;
02921 } xcb_poly_point_request_t;
02922
02924 #define XCB_POLY_LINE 65
02925
02929 typedef struct xcb_poly_line_request_t {
02930 uint8_t major_opcode;
02931 uint8_t coordinate_mode;
02932 uint16_t length;
02933 xcb_drawable_t drawable;
02934 xcb_gcontext_t gc;
02935 } xcb_poly_line_request_t;
02936
02940 typedef struct xcb_segment_t {
02941 int16_t x1;
02942 int16_t y1;
02943 int16_t x2;
02944 int16_t y2;
02945 } xcb_segment_t;
02946
02950 typedef struct xcb_segment_iterator_t {
02951 xcb_segment_t *data;
02952 int rem;
02953 int index;
02954 } xcb_segment_iterator_t;
02955
02957 #define XCB_POLY_SEGMENT 66
02958
02962 typedef struct xcb_poly_segment_request_t {
02963 uint8_t major_opcode;
02964 uint8_t pad0;
02965 uint16_t length;
02966 xcb_drawable_t drawable;
02967 xcb_gcontext_t gc;
02968 } xcb_poly_segment_request_t;
02969
02971 #define XCB_POLY_RECTANGLE 67
02972
02976 typedef struct xcb_poly_rectangle_request_t {
02977 uint8_t major_opcode;
02978 uint8_t pad0;
02979 uint16_t length;
02980 xcb_drawable_t drawable;
02981 xcb_gcontext_t gc;
02982 } xcb_poly_rectangle_request_t;
02983
02985 #define XCB_POLY_ARC 68
02986
02990 typedef struct xcb_poly_arc_request_t {
02991 uint8_t major_opcode;
02992 uint8_t pad0;
02993 uint16_t length;
02994 xcb_drawable_t drawable;
02995 xcb_gcontext_t gc;
02996 } xcb_poly_arc_request_t;
02997
02998 typedef enum xcb_poly_shape_t {
02999 XCB_POLY_SHAPE_COMPLEX = 0,
03000 XCB_POLY_SHAPE_NONCONVEX = 1,
03001 XCB_POLY_SHAPE_CONVEX = 2
03002 } xcb_poly_shape_t;
03003
03005 #define XCB_FILL_POLY 69
03006
03010 typedef struct xcb_fill_poly_request_t {
03011 uint8_t major_opcode;
03012 uint8_t pad0;
03013 uint16_t length;
03014 xcb_drawable_t drawable;
03015 xcb_gcontext_t gc;
03016 uint8_t shape;
03017 uint8_t coordinate_mode;
03018 uint8_t pad1[2];
03019 } xcb_fill_poly_request_t;
03020
03022 #define XCB_POLY_FILL_RECTANGLE 70
03023
03027 typedef struct xcb_poly_fill_rectangle_request_t {
03028 uint8_t major_opcode;
03029 uint8_t pad0;
03030 uint16_t length;
03031 xcb_drawable_t drawable;
03032 xcb_gcontext_t gc;
03033 } xcb_poly_fill_rectangle_request_t;
03034
03036 #define XCB_POLY_FILL_ARC 71
03037
03041 typedef struct xcb_poly_fill_arc_request_t {
03042 uint8_t major_opcode;
03043 uint8_t pad0;
03044 uint16_t length;
03045 xcb_drawable_t drawable;
03046 xcb_gcontext_t gc;
03047 } xcb_poly_fill_arc_request_t;
03048
03049 typedef enum xcb_image_format_t {
03050 XCB_IMAGE_FORMAT_XY_BITMAP = 0,
03051 XCB_IMAGE_FORMAT_XY_PIXMAP = 1,
03052 XCB_IMAGE_FORMAT_Z_PIXMAP = 2
03053 } xcb_image_format_t;
03054
03056 #define XCB_PUT_IMAGE 72
03057
03061 typedef struct xcb_put_image_request_t {
03062 uint8_t major_opcode;
03063 uint8_t format;
03064 uint16_t length;
03065 xcb_drawable_t drawable;
03066 xcb_gcontext_t gc;
03067 uint16_t width;
03068 uint16_t height;
03069 int16_t dst_x;
03070 int16_t dst_y;
03071 uint8_t left_pad;
03072 uint8_t depth;
03073 uint8_t pad0[2];
03074 } xcb_put_image_request_t;
03075
03079 typedef struct xcb_get_image_cookie_t {
03080 unsigned int sequence;
03081 } xcb_get_image_cookie_t;
03082
03084 #define XCB_GET_IMAGE 73
03085
03089 typedef struct xcb_get_image_request_t {
03090 uint8_t major_opcode;
03091 uint8_t format;
03092 uint16_t length;
03093 xcb_drawable_t drawable;
03094 int16_t x;
03095 int16_t y;
03096 uint16_t width;
03097 uint16_t height;
03098 uint32_t plane_mask;
03099 } xcb_get_image_request_t;
03100
03104 typedef struct xcb_get_image_reply_t {
03105 uint8_t response_type;
03106 uint8_t depth;
03107 uint16_t sequence;
03108 uint32_t length;
03109 xcb_visualid_t visual;
03110 uint8_t pad0[20];
03111 } xcb_get_image_reply_t;
03112
03114 #define XCB_POLY_TEXT_8 74
03115
03119 typedef struct xcb_poly_text_8_request_t {
03120 uint8_t major_opcode;
03121 uint8_t pad0;
03122 uint16_t length;
03123 xcb_drawable_t drawable;
03124 xcb_gcontext_t gc;
03125 int16_t x;
03126 int16_t y;
03127 } xcb_poly_text_8_request_t;
03128
03130 #define XCB_POLY_TEXT_16 75
03131
03135 typedef struct xcb_poly_text_16_request_t {
03136 uint8_t major_opcode;
03137 uint8_t pad0;
03138 uint16_t length;
03139 xcb_drawable_t drawable;
03140 xcb_gcontext_t gc;
03141 int16_t x;
03142 int16_t y;
03143 } xcb_poly_text_16_request_t;
03144
03146 #define XCB_IMAGE_TEXT_8 76
03147
03151 typedef struct xcb_image_text_8_request_t {
03152 uint8_t major_opcode;
03153 uint8_t string_len;
03154 uint16_t length;
03155 xcb_drawable_t drawable;
03156 xcb_gcontext_t gc;
03157 int16_t x;
03158 int16_t y;
03159 } xcb_image_text_8_request_t;
03160
03162 #define XCB_IMAGE_TEXT_16 77
03163
03167 typedef struct xcb_image_text_16_request_t {
03168 uint8_t major_opcode;
03169 uint8_t string_len;
03170 uint16_t length;
03171 xcb_drawable_t drawable;
03172 xcb_gcontext_t gc;
03173 int16_t x;
03174 int16_t y;
03175 } xcb_image_text_16_request_t;
03176
03177 typedef enum xcb_colormap_alloc_t {
03178 XCB_COLORMAP_ALLOC_NONE = 0,
03179 XCB_COLORMAP_ALLOC_ALL = 1
03180 } xcb_colormap_alloc_t;
03181
03183 #define XCB_CREATE_COLORMAP 78
03184
03188 typedef struct xcb_create_colormap_request_t {
03189 uint8_t major_opcode;
03190 uint8_t alloc;
03191 uint16_t length;
03192 xcb_colormap_t mid;
03193 xcb_window_t window;
03194 xcb_visualid_t visual;
03195 } xcb_create_colormap_request_t;
03196
03198 #define XCB_FREE_COLORMAP 79
03199
03203 typedef struct xcb_free_colormap_request_t {
03204 uint8_t major_opcode;
03205 uint8_t pad0;
03206 uint16_t length;
03207 xcb_colormap_t cmap;
03208 } xcb_free_colormap_request_t;
03209
03211 #define XCB_COPY_COLORMAP_AND_FREE 80
03212
03216 typedef struct xcb_copy_colormap_and_free_request_t {
03217 uint8_t major_opcode;
03218 uint8_t pad0;
03219 uint16_t length;
03220 xcb_colormap_t mid;
03221 xcb_colormap_t src_cmap;
03222 } xcb_copy_colormap_and_free_request_t;
03223
03225 #define XCB_INSTALL_COLORMAP 81
03226
03230 typedef struct xcb_install_colormap_request_t {
03231 uint8_t major_opcode;
03232 uint8_t pad0;
03233 uint16_t length;
03234 xcb_colormap_t cmap;
03235 } xcb_install_colormap_request_t;
03236
03238 #define XCB_UNINSTALL_COLORMAP 82
03239
03243 typedef struct xcb_uninstall_colormap_request_t {
03244 uint8_t major_opcode;
03245 uint8_t pad0;
03246 uint16_t length;
03247 xcb_colormap_t cmap;
03248 } xcb_uninstall_colormap_request_t;
03249
03253 typedef struct xcb_list_installed_colormaps_cookie_t {
03254 unsigned int sequence;
03255 } xcb_list_installed_colormaps_cookie_t;
03256
03258 #define XCB_LIST_INSTALLED_COLORMAPS 83
03259
03263 typedef struct xcb_list_installed_colormaps_request_t {
03264 uint8_t major_opcode;
03265 uint8_t pad0;
03266 uint16_t length;
03267 xcb_window_t window;
03268 } xcb_list_installed_colormaps_request_t;
03269
03273 typedef struct xcb_list_installed_colormaps_reply_t {
03274 uint8_t response_type;
03275 uint8_t pad0;
03276 uint16_t sequence;
03277 uint32_t length;
03278 uint16_t cmaps_len;
03279 uint8_t pad1[22];
03280 } xcb_list_installed_colormaps_reply_t;
03281
03285 typedef struct xcb_alloc_color_cookie_t {
03286 unsigned int sequence;
03287 } xcb_alloc_color_cookie_t;
03288
03290 #define XCB_ALLOC_COLOR 84
03291
03295 typedef struct xcb_alloc_color_request_t {
03296 uint8_t major_opcode;
03297 uint8_t pad0;
03298 uint16_t length;
03299 xcb_colormap_t cmap;
03300 uint16_t red;
03301 uint16_t green;
03302 uint16_t blue;
03303 uint8_t pad1[2];
03304 } xcb_alloc_color_request_t;
03305
03309 typedef struct xcb_alloc_color_reply_t {
03310 uint8_t response_type;
03311 uint8_t pad0;
03312 uint16_t sequence;
03313 uint32_t length;
03314 uint16_t red;
03315 uint16_t green;
03316 uint16_t blue;
03317 uint8_t pad1[2];
03318 uint32_t pixel;
03319 } xcb_alloc_color_reply_t;
03320
03324 typedef struct xcb_alloc_named_color_cookie_t {
03325 unsigned int sequence;
03326 } xcb_alloc_named_color_cookie_t;
03327
03329 #define XCB_ALLOC_NAMED_COLOR 85
03330
03334 typedef struct xcb_alloc_named_color_request_t {
03335 uint8_t major_opcode;
03336 uint8_t pad0;
03337 uint16_t length;
03338 xcb_colormap_t cmap;
03339 uint16_t name_len;
03340 uint8_t pad1[2];
03341 } xcb_alloc_named_color_request_t;
03342
03346 typedef struct xcb_alloc_named_color_reply_t {
03347 uint8_t response_type;
03348 uint8_t pad0;
03349 uint16_t sequence;
03350 uint32_t length;
03351 uint32_t pixel;
03352 uint16_t exact_red;
03353 uint16_t exact_green;
03354 uint16_t exact_blue;
03355 uint16_t visual_red;
03356 uint16_t visual_green;
03357 uint16_t visual_blue;
03358 } xcb_alloc_named_color_reply_t;
03359
03363 typedef struct xcb_alloc_color_cells_cookie_t {
03364 unsigned int sequence;
03365 } xcb_alloc_color_cells_cookie_t;
03366
03368 #define XCB_ALLOC_COLOR_CELLS 86
03369
03373 typedef struct xcb_alloc_color_cells_request_t {
03374 uint8_t major_opcode;
03375 uint8_t contiguous;
03376 uint16_t length;
03377 xcb_colormap_t cmap;
03378 uint16_t colors;
03379 uint16_t planes;
03380 } xcb_alloc_color_cells_request_t;
03381
03385 typedef struct xcb_alloc_color_cells_reply_t {
03386 uint8_t response_type;
03387 uint8_t pad0;
03388 uint16_t sequence;
03389 uint32_t length;
03390 uint16_t pixels_len;
03391 uint16_t masks_len;
03392 uint8_t pad1[20];
03393 } xcb_alloc_color_cells_reply_t;
03394
03398 typedef struct xcb_alloc_color_planes_cookie_t {
03399 unsigned int sequence;
03400 } xcb_alloc_color_planes_cookie_t;
03401
03403 #define XCB_ALLOC_COLOR_PLANES 87
03404
03408 typedef struct xcb_alloc_color_planes_request_t {
03409 uint8_t major_opcode;
03410 uint8_t contiguous;
03411 uint16_t length;
03412 xcb_colormap_t cmap;
03413 uint16_t colors;
03414 uint16_t reds;
03415 uint16_t greens;
03416 uint16_t blues;
03417 } xcb_alloc_color_planes_request_t;
03418
03422 typedef struct xcb_alloc_color_planes_reply_t {
03423 uint8_t response_type;
03424 uint8_t pad0;
03425 uint16_t sequence;
03426 uint32_t length;
03427 uint16_t pixels_len;
03428 uint8_t pad1[2];
03429 uint32_t red_mask;
03430 uint32_t green_mask;
03431 uint32_t blue_mask;
03432 uint8_t pad2[8];
03433 } xcb_alloc_color_planes_reply_t;
03434
03436 #define XCB_FREE_COLORS 88
03437
03441 typedef struct xcb_free_colors_request_t {
03442 uint8_t major_opcode;
03443 uint8_t pad0;
03444 uint16_t length;
03445 xcb_colormap_t cmap;
03446 uint32_t plane_mask;
03447 } xcb_free_colors_request_t;
03448
03449 typedef enum xcb_color_flag_t {
03450 XCB_COLOR_FLAG_RED = 1,
03451 XCB_COLOR_FLAG_GREEN = 2,
03452 XCB_COLOR_FLAG_BLUE = 4
03453 } xcb_color_flag_t;
03454
03458 typedef struct xcb_coloritem_t {
03459 uint32_t pixel;
03460 uint16_t red;
03461 uint16_t green;
03462 uint16_t blue;
03463 uint8_t flags;
03464 uint8_t pad0;
03465 } xcb_coloritem_t;
03466
03470 typedef struct xcb_coloritem_iterator_t {
03471 xcb_coloritem_t *data;
03472 int rem;
03473 int index;
03474 } xcb_coloritem_iterator_t;
03475
03477 #define XCB_STORE_COLORS 89
03478
03482 typedef struct xcb_store_colors_request_t {
03483 uint8_t major_opcode;
03484 uint8_t pad0;
03485 uint16_t length;
03486 xcb_colormap_t cmap;
03487 } xcb_store_colors_request_t;
03488
03490 #define XCB_STORE_NAMED_COLOR 90
03491
03495 typedef struct xcb_store_named_color_request_t {
03496 uint8_t major_opcode;
03497 uint8_t flags;
03498 uint16_t length;
03499 xcb_colormap_t cmap;
03500 uint32_t pixel;
03501 uint16_t name_len;
03502 uint8_t pad0[2];
03503 } xcb_store_named_color_request_t;
03504
03508 typedef struct xcb_rgb_t {
03509 uint16_t red;
03510 uint16_t green;
03511 uint16_t blue;
03512 uint8_t pad0[2];
03513 } xcb_rgb_t;
03514
03518 typedef struct xcb_rgb_iterator_t {
03519 xcb_rgb_t *data;
03520 int rem;
03521 int index;
03522 } xcb_rgb_iterator_t;
03523
03527 typedef struct xcb_query_colors_cookie_t {
03528 unsigned int sequence;
03529 } xcb_query_colors_cookie_t;
03530
03532 #define XCB_QUERY_COLORS 91
03533
03537 typedef struct xcb_query_colors_request_t {
03538 uint8_t major_opcode;
03539 uint8_t pad0;
03540 uint16_t length;
03541 xcb_colormap_t cmap;
03542 } xcb_query_colors_request_t;
03543
03547 typedef struct xcb_query_colors_reply_t {
03548 uint8_t response_type;
03549 uint8_t pad0;
03550 uint16_t sequence;
03551 uint32_t length;
03552 uint16_t colors_len;
03553 uint8_t pad1[22];
03554 } xcb_query_colors_reply_t;
03555
03559 typedef struct xcb_lookup_color_cookie_t {
03560 unsigned int sequence;
03561 } xcb_lookup_color_cookie_t;
03562
03564 #define XCB_LOOKUP_COLOR 92
03565
03569 typedef struct xcb_lookup_color_request_t {
03570 uint8_t major_opcode;
03571 uint8_t pad0;
03572 uint16_t length;
03573 xcb_colormap_t cmap;
03574 uint16_t name_len;
03575 uint8_t pad1[2];
03576 } xcb_lookup_color_request_t;
03577
03581 typedef struct xcb_lookup_color_reply_t {
03582 uint8_t response_type;
03583 uint8_t pad0;
03584 uint16_t sequence;
03585 uint32_t length;
03586 uint16_t exact_red;
03587 uint16_t exact_green;
03588 uint16_t exact_blue;
03589 uint16_t visual_red;
03590 uint16_t visual_green;
03591 uint16_t visual_blue;
03592 } xcb_lookup_color_reply_t;
03593
03594 typedef enum xcb_pixmap_enum_t {
03595 XCB_PIXMAP_NONE = 0
03596 } xcb_pixmap_enum_t;
03597
03599 #define XCB_CREATE_CURSOR 93
03600
03604 typedef struct xcb_create_cursor_request_t {
03605 uint8_t major_opcode;
03606 uint8_t pad0;
03607 uint16_t length;
03608 xcb_cursor_t cid;
03609 xcb_pixmap_t source;
03610 xcb_pixmap_t mask;
03611 uint16_t fore_red;
03612 uint16_t fore_green;
03613 uint16_t fore_blue;
03614 uint16_t back_red;
03615 uint16_t back_green;
03616 uint16_t back_blue;
03617 uint16_t x;
03618 uint16_t y;
03619 } xcb_create_cursor_request_t;
03620
03621 typedef enum xcb_font_enum_t {
03622 XCB_FONT_NONE = 0
03623 } xcb_font_enum_t;
03624
03626 #define XCB_CREATE_GLYPH_CURSOR 94
03627
03631 typedef struct xcb_create_glyph_cursor_request_t {
03632 uint8_t major_opcode;
03633 uint8_t pad0;
03634 uint16_t length;
03635 xcb_cursor_t cid;
03636 xcb_font_t source_font;
03637 xcb_font_t mask_font;
03638 uint16_t source_char;
03639 uint16_t mask_char;
03640 uint16_t fore_red;
03641 uint16_t fore_green;
03642 uint16_t fore_blue;
03643 uint16_t back_red;
03644 uint16_t back_green;
03645 uint16_t back_blue;
03646 } xcb_create_glyph_cursor_request_t;
03647
03649 #define XCB_FREE_CURSOR 95
03650
03654 typedef struct xcb_free_cursor_request_t {
03655