jpayne@69: /* jpayne@69: * This file generated automatically from xproto.xml by c_client.py. jpayne@69: * Edit at your peril. jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * @defgroup XCB__API XCB API jpayne@69: * @brief XCB Protocol Implementation. jpayne@69: * @{ jpayne@69: **/ jpayne@69: jpayne@69: #ifndef __XPROTO_H jpayne@69: #define __XPROTO_H jpayne@69: jpayne@69: #include "xcb.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_char2b_t jpayne@69: **/ jpayne@69: typedef struct xcb_char2b_t { jpayne@69: uint8_t byte1; jpayne@69: uint8_t byte2; jpayne@69: } xcb_char2b_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_char2b_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_char2b_iterator_t { jpayne@69: xcb_char2b_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_char2b_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_window_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_window_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_window_iterator_t { jpayne@69: xcb_window_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_window_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_pixmap_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_pixmap_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_pixmap_iterator_t { jpayne@69: xcb_pixmap_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_pixmap_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_cursor_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_cursor_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_cursor_iterator_t { jpayne@69: xcb_cursor_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_cursor_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_font_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_font_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_font_iterator_t { jpayne@69: xcb_font_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_font_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_gcontext_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_gcontext_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_gcontext_iterator_t { jpayne@69: xcb_gcontext_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_gcontext_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_colormap_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_colormap_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_colormap_iterator_t { jpayne@69: xcb_colormap_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_colormap_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_atom_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_atom_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_atom_iterator_t { jpayne@69: xcb_atom_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_atom_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_drawable_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_drawable_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_drawable_iterator_t { jpayne@69: xcb_drawable_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_drawable_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_fontable_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_fontable_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_fontable_iterator_t { jpayne@69: xcb_fontable_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_fontable_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_bool32_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_bool32_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_bool32_iterator_t { jpayne@69: xcb_bool32_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_bool32_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_visualid_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_visualid_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_visualid_iterator_t { jpayne@69: xcb_visualid_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_visualid_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_timestamp_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_timestamp_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_timestamp_iterator_t { jpayne@69: xcb_timestamp_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_timestamp_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_keysym_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_keysym_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_keysym_iterator_t { jpayne@69: xcb_keysym_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_keysym_iterator_t; jpayne@69: jpayne@69: typedef uint8_t xcb_keycode_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_keycode_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_keycode_iterator_t { jpayne@69: xcb_keycode_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_keycode_iterator_t; jpayne@69: jpayne@69: typedef uint32_t xcb_keycode32_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_keycode32_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_keycode32_iterator_t { jpayne@69: xcb_keycode32_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_keycode32_iterator_t; jpayne@69: jpayne@69: typedef uint8_t xcb_button_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_button_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_button_iterator_t { jpayne@69: xcb_button_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_button_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_point_t jpayne@69: **/ jpayne@69: typedef struct xcb_point_t { jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_point_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_point_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_point_iterator_t { jpayne@69: xcb_point_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_point_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_rectangle_t jpayne@69: **/ jpayne@69: typedef struct xcb_rectangle_t { jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_rectangle_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_rectangle_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_rectangle_iterator_t { jpayne@69: xcb_rectangle_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_rectangle_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_arc_t jpayne@69: **/ jpayne@69: typedef struct xcb_arc_t { jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: int16_t angle1; jpayne@69: int16_t angle2; jpayne@69: } xcb_arc_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_arc_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_arc_iterator_t { jpayne@69: xcb_arc_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_arc_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_format_t jpayne@69: **/ jpayne@69: typedef struct xcb_format_t { jpayne@69: uint8_t depth; jpayne@69: uint8_t bits_per_pixel; jpayne@69: uint8_t scanline_pad; jpayne@69: uint8_t pad0[5]; jpayne@69: } xcb_format_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_format_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_format_iterator_t { jpayne@69: xcb_format_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_format_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_visual_class_t { jpayne@69: XCB_VISUAL_CLASS_STATIC_GRAY = 0, jpayne@69: XCB_VISUAL_CLASS_GRAY_SCALE = 1, jpayne@69: XCB_VISUAL_CLASS_STATIC_COLOR = 2, jpayne@69: XCB_VISUAL_CLASS_PSEUDO_COLOR = 3, jpayne@69: XCB_VISUAL_CLASS_TRUE_COLOR = 4, jpayne@69: XCB_VISUAL_CLASS_DIRECT_COLOR = 5 jpayne@69: } xcb_visual_class_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_visualtype_t jpayne@69: **/ jpayne@69: typedef struct xcb_visualtype_t { jpayne@69: xcb_visualid_t visual_id; jpayne@69: uint8_t _class; jpayne@69: uint8_t bits_per_rgb_value; jpayne@69: uint16_t colormap_entries; jpayne@69: uint32_t red_mask; jpayne@69: uint32_t green_mask; jpayne@69: uint32_t blue_mask; jpayne@69: uint8_t pad0[4]; jpayne@69: } xcb_visualtype_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_visualtype_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_visualtype_iterator_t { jpayne@69: xcb_visualtype_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_visualtype_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_depth_t jpayne@69: **/ jpayne@69: typedef struct xcb_depth_t { jpayne@69: uint8_t depth; jpayne@69: uint8_t pad0; jpayne@69: uint16_t visuals_len; jpayne@69: uint8_t pad1[4]; jpayne@69: } xcb_depth_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_depth_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_depth_iterator_t { jpayne@69: xcb_depth_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_depth_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_event_mask_t { jpayne@69: XCB_EVENT_MASK_NO_EVENT = 0, jpayne@69: XCB_EVENT_MASK_KEY_PRESS = 1, jpayne@69: XCB_EVENT_MASK_KEY_RELEASE = 2, jpayne@69: XCB_EVENT_MASK_BUTTON_PRESS = 4, jpayne@69: XCB_EVENT_MASK_BUTTON_RELEASE = 8, jpayne@69: XCB_EVENT_MASK_ENTER_WINDOW = 16, jpayne@69: XCB_EVENT_MASK_LEAVE_WINDOW = 32, jpayne@69: XCB_EVENT_MASK_POINTER_MOTION = 64, jpayne@69: XCB_EVENT_MASK_POINTER_MOTION_HINT = 128, jpayne@69: XCB_EVENT_MASK_BUTTON_1_MOTION = 256, jpayne@69: XCB_EVENT_MASK_BUTTON_2_MOTION = 512, jpayne@69: XCB_EVENT_MASK_BUTTON_3_MOTION = 1024, jpayne@69: XCB_EVENT_MASK_BUTTON_4_MOTION = 2048, jpayne@69: XCB_EVENT_MASK_BUTTON_5_MOTION = 4096, jpayne@69: XCB_EVENT_MASK_BUTTON_MOTION = 8192, jpayne@69: XCB_EVENT_MASK_KEYMAP_STATE = 16384, jpayne@69: XCB_EVENT_MASK_EXPOSURE = 32768, jpayne@69: XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536, jpayne@69: XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072, jpayne@69: XCB_EVENT_MASK_RESIZE_REDIRECT = 262144, jpayne@69: XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288, jpayne@69: XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576, jpayne@69: XCB_EVENT_MASK_FOCUS_CHANGE = 2097152, jpayne@69: XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304, jpayne@69: XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608, jpayne@69: XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216 jpayne@69: } xcb_event_mask_t; jpayne@69: jpayne@69: typedef enum xcb_backing_store_t { jpayne@69: XCB_BACKING_STORE_NOT_USEFUL = 0, jpayne@69: XCB_BACKING_STORE_WHEN_MAPPED = 1, jpayne@69: XCB_BACKING_STORE_ALWAYS = 2 jpayne@69: } xcb_backing_store_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_screen_t jpayne@69: **/ jpayne@69: typedef struct xcb_screen_t { jpayne@69: xcb_window_t root; jpayne@69: xcb_colormap_t default_colormap; jpayne@69: uint32_t white_pixel; jpayne@69: uint32_t black_pixel; jpayne@69: uint32_t current_input_masks; jpayne@69: uint16_t width_in_pixels; jpayne@69: uint16_t height_in_pixels; jpayne@69: uint16_t width_in_millimeters; jpayne@69: uint16_t height_in_millimeters; jpayne@69: uint16_t min_installed_maps; jpayne@69: uint16_t max_installed_maps; jpayne@69: xcb_visualid_t root_visual; jpayne@69: uint8_t backing_stores; jpayne@69: uint8_t save_unders; jpayne@69: uint8_t root_depth; jpayne@69: uint8_t allowed_depths_len; jpayne@69: } xcb_screen_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_screen_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_screen_iterator_t { jpayne@69: xcb_screen_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_screen_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_request_t { jpayne@69: uint8_t byte_order; jpayne@69: uint8_t pad0; jpayne@69: uint16_t protocol_major_version; jpayne@69: uint16_t protocol_minor_version; jpayne@69: uint16_t authorization_protocol_name_len; jpayne@69: uint16_t authorization_protocol_data_len; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_setup_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_request_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_request_iterator_t { jpayne@69: xcb_setup_request_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_setup_request_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_failed_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_failed_t { jpayne@69: uint8_t status; jpayne@69: uint8_t reason_len; jpayne@69: uint16_t protocol_major_version; jpayne@69: uint16_t protocol_minor_version; jpayne@69: uint16_t length; jpayne@69: } xcb_setup_failed_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_failed_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_failed_iterator_t { jpayne@69: xcb_setup_failed_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_setup_failed_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_authenticate_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_authenticate_t { jpayne@69: uint8_t status; jpayne@69: uint8_t pad0[5]; jpayne@69: uint16_t length; jpayne@69: } xcb_setup_authenticate_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_authenticate_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_authenticate_iterator_t { jpayne@69: xcb_setup_authenticate_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_setup_authenticate_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_image_order_t { jpayne@69: XCB_IMAGE_ORDER_LSB_FIRST = 0, jpayne@69: XCB_IMAGE_ORDER_MSB_FIRST = 1 jpayne@69: } xcb_image_order_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_t { jpayne@69: uint8_t status; jpayne@69: uint8_t pad0; jpayne@69: uint16_t protocol_major_version; jpayne@69: uint16_t protocol_minor_version; jpayne@69: uint16_t length; jpayne@69: uint32_t release_number; jpayne@69: uint32_t resource_id_base; jpayne@69: uint32_t resource_id_mask; jpayne@69: uint32_t motion_buffer_size; jpayne@69: uint16_t vendor_len; jpayne@69: uint16_t maximum_request_length; jpayne@69: uint8_t roots_len; jpayne@69: uint8_t pixmap_formats_len; jpayne@69: uint8_t image_byte_order; jpayne@69: uint8_t bitmap_format_bit_order; jpayne@69: uint8_t bitmap_format_scanline_unit; jpayne@69: uint8_t bitmap_format_scanline_pad; jpayne@69: xcb_keycode_t min_keycode; jpayne@69: xcb_keycode_t max_keycode; jpayne@69: uint8_t pad1[4]; jpayne@69: } xcb_setup_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_setup_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_setup_iterator_t { jpayne@69: xcb_setup_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_setup_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_mod_mask_t { jpayne@69: XCB_MOD_MASK_SHIFT = 1, jpayne@69: XCB_MOD_MASK_LOCK = 2, jpayne@69: XCB_MOD_MASK_CONTROL = 4, jpayne@69: XCB_MOD_MASK_1 = 8, jpayne@69: XCB_MOD_MASK_2 = 16, jpayne@69: XCB_MOD_MASK_3 = 32, jpayne@69: XCB_MOD_MASK_4 = 64, jpayne@69: XCB_MOD_MASK_5 = 128, jpayne@69: XCB_MOD_MASK_ANY = 32768 jpayne@69: } xcb_mod_mask_t; jpayne@69: jpayne@69: typedef enum xcb_key_but_mask_t { jpayne@69: XCB_KEY_BUT_MASK_SHIFT = 1, jpayne@69: XCB_KEY_BUT_MASK_LOCK = 2, jpayne@69: XCB_KEY_BUT_MASK_CONTROL = 4, jpayne@69: XCB_KEY_BUT_MASK_MOD_1 = 8, jpayne@69: XCB_KEY_BUT_MASK_MOD_2 = 16, jpayne@69: XCB_KEY_BUT_MASK_MOD_3 = 32, jpayne@69: XCB_KEY_BUT_MASK_MOD_4 = 64, jpayne@69: XCB_KEY_BUT_MASK_MOD_5 = 128, jpayne@69: XCB_KEY_BUT_MASK_BUTTON_1 = 256, jpayne@69: XCB_KEY_BUT_MASK_BUTTON_2 = 512, jpayne@69: XCB_KEY_BUT_MASK_BUTTON_3 = 1024, jpayne@69: XCB_KEY_BUT_MASK_BUTTON_4 = 2048, jpayne@69: XCB_KEY_BUT_MASK_BUTTON_5 = 4096 jpayne@69: } xcb_key_but_mask_t; jpayne@69: jpayne@69: typedef enum xcb_window_enum_t { jpayne@69: XCB_WINDOW_NONE = 0 jpayne@69: } xcb_window_enum_t; jpayne@69: jpayne@69: /** Opcode for xcb_key_press. */ jpayne@69: #define XCB_KEY_PRESS 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_key_press_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_key_press_event_t { jpayne@69: uint8_t response_type; jpayne@69: xcb_keycode_t detail; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t root; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t child; jpayne@69: int16_t root_x; jpayne@69: int16_t root_y; jpayne@69: int16_t event_x; jpayne@69: int16_t event_y; jpayne@69: uint16_t state; jpayne@69: uint8_t same_screen; jpayne@69: uint8_t pad0; jpayne@69: } xcb_key_press_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_key_release. */ jpayne@69: #define XCB_KEY_RELEASE 3 jpayne@69: jpayne@69: typedef xcb_key_press_event_t xcb_key_release_event_t; jpayne@69: jpayne@69: typedef enum xcb_button_mask_t { jpayne@69: XCB_BUTTON_MASK_1 = 256, jpayne@69: XCB_BUTTON_MASK_2 = 512, jpayne@69: XCB_BUTTON_MASK_3 = 1024, jpayne@69: XCB_BUTTON_MASK_4 = 2048, jpayne@69: XCB_BUTTON_MASK_5 = 4096, jpayne@69: XCB_BUTTON_MASK_ANY = 32768 jpayne@69: } xcb_button_mask_t; jpayne@69: jpayne@69: /** Opcode for xcb_button_press. */ jpayne@69: #define XCB_BUTTON_PRESS 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_button_press_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_button_press_event_t { jpayne@69: uint8_t response_type; jpayne@69: xcb_button_t detail; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t root; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t child; jpayne@69: int16_t root_x; jpayne@69: int16_t root_y; jpayne@69: int16_t event_x; jpayne@69: int16_t event_y; jpayne@69: uint16_t state; jpayne@69: uint8_t same_screen; jpayne@69: uint8_t pad0; jpayne@69: } xcb_button_press_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_button_release. */ jpayne@69: #define XCB_BUTTON_RELEASE 5 jpayne@69: jpayne@69: typedef xcb_button_press_event_t xcb_button_release_event_t; jpayne@69: jpayne@69: typedef enum xcb_motion_t { jpayne@69: XCB_MOTION_NORMAL = 0, jpayne@69: XCB_MOTION_HINT = 1 jpayne@69: } xcb_motion_t; jpayne@69: jpayne@69: /** Opcode for xcb_motion_notify. */ jpayne@69: #define XCB_MOTION_NOTIFY 6 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_motion_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_motion_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t detail; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t root; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t child; jpayne@69: int16_t root_x; jpayne@69: int16_t root_y; jpayne@69: int16_t event_x; jpayne@69: int16_t event_y; jpayne@69: uint16_t state; jpayne@69: uint8_t same_screen; jpayne@69: uint8_t pad0; jpayne@69: } xcb_motion_notify_event_t; jpayne@69: jpayne@69: typedef enum xcb_notify_detail_t { jpayne@69: XCB_NOTIFY_DETAIL_ANCESTOR = 0, jpayne@69: XCB_NOTIFY_DETAIL_VIRTUAL = 1, jpayne@69: XCB_NOTIFY_DETAIL_INFERIOR = 2, jpayne@69: XCB_NOTIFY_DETAIL_NONLINEAR = 3, jpayne@69: XCB_NOTIFY_DETAIL_NONLINEAR_VIRTUAL = 4, jpayne@69: XCB_NOTIFY_DETAIL_POINTER = 5, jpayne@69: XCB_NOTIFY_DETAIL_POINTER_ROOT = 6, jpayne@69: XCB_NOTIFY_DETAIL_NONE = 7 jpayne@69: } xcb_notify_detail_t; jpayne@69: jpayne@69: typedef enum xcb_notify_mode_t { jpayne@69: XCB_NOTIFY_MODE_NORMAL = 0, jpayne@69: XCB_NOTIFY_MODE_GRAB = 1, jpayne@69: XCB_NOTIFY_MODE_UNGRAB = 2, jpayne@69: XCB_NOTIFY_MODE_WHILE_GRABBED = 3 jpayne@69: } xcb_notify_mode_t; jpayne@69: jpayne@69: /** Opcode for xcb_enter_notify. */ jpayne@69: #define XCB_ENTER_NOTIFY 7 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_enter_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_enter_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t detail; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t root; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t child; jpayne@69: int16_t root_x; jpayne@69: int16_t root_y; jpayne@69: int16_t event_x; jpayne@69: int16_t event_y; jpayne@69: uint16_t state; jpayne@69: uint8_t mode; jpayne@69: uint8_t same_screen_focus; jpayne@69: } xcb_enter_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_leave_notify. */ jpayne@69: #define XCB_LEAVE_NOTIFY 8 jpayne@69: jpayne@69: typedef xcb_enter_notify_event_t xcb_leave_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_focus_in. */ jpayne@69: #define XCB_FOCUS_IN 9 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_focus_in_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_focus_in_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t detail; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: uint8_t mode; jpayne@69: uint8_t pad0[3]; jpayne@69: } xcb_focus_in_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_focus_out. */ jpayne@69: #define XCB_FOCUS_OUT 10 jpayne@69: jpayne@69: typedef xcb_focus_in_event_t xcb_focus_out_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_keymap_notify. */ jpayne@69: #define XCB_KEYMAP_NOTIFY 11 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_keymap_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_keymap_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t keys[31]; jpayne@69: } xcb_keymap_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_expose. */ jpayne@69: #define XCB_EXPOSE 12 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_expose_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_expose_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t window; jpayne@69: uint16_t x; jpayne@69: uint16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t count; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_expose_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_graphics_exposure. */ jpayne@69: #define XCB_GRAPHICS_EXPOSURE 13 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_graphics_exposure_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_graphics_exposure_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_drawable_t drawable; jpayne@69: uint16_t x; jpayne@69: uint16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t minor_opcode; jpayne@69: uint16_t count; jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad1[3]; jpayne@69: } xcb_graphics_exposure_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_no_exposure. */ jpayne@69: #define XCB_NO_EXPOSURE 14 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_no_exposure_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_no_exposure_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_drawable_t drawable; jpayne@69: uint16_t minor_opcode; jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad1; jpayne@69: } xcb_no_exposure_event_t; jpayne@69: jpayne@69: typedef enum xcb_visibility_t { jpayne@69: XCB_VISIBILITY_UNOBSCURED = 0, jpayne@69: XCB_VISIBILITY_PARTIALLY_OBSCURED = 1, jpayne@69: XCB_VISIBILITY_FULLY_OBSCURED = 2 jpayne@69: } xcb_visibility_t; jpayne@69: jpayne@69: /** Opcode for xcb_visibility_notify. */ jpayne@69: #define XCB_VISIBILITY_NOTIFY 15 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_visibility_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_visibility_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t window; jpayne@69: uint8_t state; jpayne@69: uint8_t pad1[3]; jpayne@69: } xcb_visibility_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_notify. */ jpayne@69: #define XCB_CREATE_NOTIFY 16 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t parent; jpayne@69: xcb_window_t window; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t border_width; jpayne@69: uint8_t override_redirect; jpayne@69: uint8_t pad1; jpayne@69: } xcb_create_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_destroy_notify. */ jpayne@69: #define XCB_DESTROY_NOTIFY 17 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_destroy_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_destroy_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: } xcb_destroy_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_unmap_notify. */ jpayne@69: #define XCB_UNMAP_NOTIFY 18 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_unmap_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_unmap_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: uint8_t from_configure; jpayne@69: uint8_t pad1[3]; jpayne@69: } xcb_unmap_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_map_notify. */ jpayne@69: #define XCB_MAP_NOTIFY 19 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_map_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_map_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: uint8_t override_redirect; jpayne@69: uint8_t pad1[3]; jpayne@69: } xcb_map_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_map_request. */ jpayne@69: #define XCB_MAP_REQUEST 20 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_map_request_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_map_request_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t parent; jpayne@69: xcb_window_t window; jpayne@69: } xcb_map_request_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_reparent_notify. */ jpayne@69: #define XCB_REPARENT_NOTIFY 21 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_reparent_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_reparent_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: xcb_window_t parent; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint8_t override_redirect; jpayne@69: uint8_t pad1[3]; jpayne@69: } xcb_reparent_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_configure_notify. */ jpayne@69: #define XCB_CONFIGURE_NOTIFY 22 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_configure_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_configure_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: xcb_window_t above_sibling; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t border_width; jpayne@69: uint8_t override_redirect; jpayne@69: uint8_t pad1; jpayne@69: } xcb_configure_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_configure_request. */ jpayne@69: #define XCB_CONFIGURE_REQUEST 23 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_configure_request_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_configure_request_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t stack_mode; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t parent; jpayne@69: xcb_window_t window; jpayne@69: xcb_window_t sibling; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t border_width; jpayne@69: uint16_t value_mask; jpayne@69: } xcb_configure_request_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_gravity_notify. */ jpayne@69: #define XCB_GRAVITY_NOTIFY 24 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_gravity_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_gravity_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_gravity_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_resize_request. */ jpayne@69: #define XCB_RESIZE_REQUEST 25 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_resize_request_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_resize_request_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t window; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_resize_request_event_t; jpayne@69: jpayne@69: typedef enum xcb_place_t { jpayne@69: XCB_PLACE_ON_TOP = 0, jpayne@69: /**< The window is now on top of all siblings. */ jpayne@69: jpayne@69: XCB_PLACE_ON_BOTTOM = 1 jpayne@69: /**< The window is now below all siblings. */ jpayne@69: jpayne@69: } xcb_place_t; jpayne@69: jpayne@69: /** Opcode for xcb_circulate_notify. */ jpayne@69: #define XCB_CIRCULATE_NOTIFY 26 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_circulate_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_circulate_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t event; jpayne@69: xcb_window_t window; jpayne@69: uint8_t pad1[4]; jpayne@69: uint8_t place; jpayne@69: uint8_t pad2[3]; jpayne@69: } xcb_circulate_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_circulate_request. */ jpayne@69: #define XCB_CIRCULATE_REQUEST 27 jpayne@69: jpayne@69: typedef xcb_circulate_notify_event_t xcb_circulate_request_event_t; jpayne@69: jpayne@69: typedef enum xcb_property_t { jpayne@69: XCB_PROPERTY_NEW_VALUE = 0, jpayne@69: XCB_PROPERTY_DELETE = 1 jpayne@69: } xcb_property_t; jpayne@69: jpayne@69: /** Opcode for xcb_property_notify. */ jpayne@69: #define XCB_PROPERTY_NOTIFY 28 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_property_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_property_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t window; jpayne@69: xcb_atom_t atom; jpayne@69: xcb_timestamp_t time; jpayne@69: uint8_t state; jpayne@69: uint8_t pad1[3]; jpayne@69: } xcb_property_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_selection_clear. */ jpayne@69: #define XCB_SELECTION_CLEAR 29 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_selection_clear_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_selection_clear_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t owner; jpayne@69: xcb_atom_t selection; jpayne@69: } xcb_selection_clear_event_t; jpayne@69: jpayne@69: typedef enum xcb_time_t { jpayne@69: XCB_TIME_CURRENT_TIME = 0 jpayne@69: } xcb_time_t; jpayne@69: jpayne@69: typedef enum xcb_atom_enum_t { jpayne@69: XCB_ATOM_NONE = 0, jpayne@69: XCB_ATOM_ANY = 0, jpayne@69: XCB_ATOM_PRIMARY = 1, jpayne@69: XCB_ATOM_SECONDARY = 2, jpayne@69: XCB_ATOM_ARC = 3, jpayne@69: XCB_ATOM_ATOM = 4, jpayne@69: XCB_ATOM_BITMAP = 5, jpayne@69: XCB_ATOM_CARDINAL = 6, jpayne@69: XCB_ATOM_COLORMAP = 7, jpayne@69: XCB_ATOM_CURSOR = 8, jpayne@69: XCB_ATOM_CUT_BUFFER0 = 9, jpayne@69: XCB_ATOM_CUT_BUFFER1 = 10, jpayne@69: XCB_ATOM_CUT_BUFFER2 = 11, jpayne@69: XCB_ATOM_CUT_BUFFER3 = 12, jpayne@69: XCB_ATOM_CUT_BUFFER4 = 13, jpayne@69: XCB_ATOM_CUT_BUFFER5 = 14, jpayne@69: XCB_ATOM_CUT_BUFFER6 = 15, jpayne@69: XCB_ATOM_CUT_BUFFER7 = 16, jpayne@69: XCB_ATOM_DRAWABLE = 17, jpayne@69: XCB_ATOM_FONT = 18, jpayne@69: XCB_ATOM_INTEGER = 19, jpayne@69: XCB_ATOM_PIXMAP = 20, jpayne@69: XCB_ATOM_POINT = 21, jpayne@69: XCB_ATOM_RECTANGLE = 22, jpayne@69: XCB_ATOM_RESOURCE_MANAGER = 23, jpayne@69: XCB_ATOM_RGB_COLOR_MAP = 24, jpayne@69: XCB_ATOM_RGB_BEST_MAP = 25, jpayne@69: XCB_ATOM_RGB_BLUE_MAP = 26, jpayne@69: XCB_ATOM_RGB_DEFAULT_MAP = 27, jpayne@69: XCB_ATOM_RGB_GRAY_MAP = 28, jpayne@69: XCB_ATOM_RGB_GREEN_MAP = 29, jpayne@69: XCB_ATOM_RGB_RED_MAP = 30, jpayne@69: XCB_ATOM_STRING = 31, jpayne@69: XCB_ATOM_VISUALID = 32, jpayne@69: XCB_ATOM_WINDOW = 33, jpayne@69: XCB_ATOM_WM_COMMAND = 34, jpayne@69: XCB_ATOM_WM_HINTS = 35, jpayne@69: XCB_ATOM_WM_CLIENT_MACHINE = 36, jpayne@69: XCB_ATOM_WM_ICON_NAME = 37, jpayne@69: XCB_ATOM_WM_ICON_SIZE = 38, jpayne@69: XCB_ATOM_WM_NAME = 39, jpayne@69: XCB_ATOM_WM_NORMAL_HINTS = 40, jpayne@69: XCB_ATOM_WM_SIZE_HINTS = 41, jpayne@69: XCB_ATOM_WM_ZOOM_HINTS = 42, jpayne@69: XCB_ATOM_MIN_SPACE = 43, jpayne@69: XCB_ATOM_NORM_SPACE = 44, jpayne@69: XCB_ATOM_MAX_SPACE = 45, jpayne@69: XCB_ATOM_END_SPACE = 46, jpayne@69: XCB_ATOM_SUPERSCRIPT_X = 47, jpayne@69: XCB_ATOM_SUPERSCRIPT_Y = 48, jpayne@69: XCB_ATOM_SUBSCRIPT_X = 49, jpayne@69: XCB_ATOM_SUBSCRIPT_Y = 50, jpayne@69: XCB_ATOM_UNDERLINE_POSITION = 51, jpayne@69: XCB_ATOM_UNDERLINE_THICKNESS = 52, jpayne@69: XCB_ATOM_STRIKEOUT_ASCENT = 53, jpayne@69: XCB_ATOM_STRIKEOUT_DESCENT = 54, jpayne@69: XCB_ATOM_ITALIC_ANGLE = 55, jpayne@69: XCB_ATOM_X_HEIGHT = 56, jpayne@69: XCB_ATOM_QUAD_WIDTH = 57, jpayne@69: XCB_ATOM_WEIGHT = 58, jpayne@69: XCB_ATOM_POINT_SIZE = 59, jpayne@69: XCB_ATOM_RESOLUTION = 60, jpayne@69: XCB_ATOM_COPYRIGHT = 61, jpayne@69: XCB_ATOM_NOTICE = 62, jpayne@69: XCB_ATOM_FONT_NAME = 63, jpayne@69: XCB_ATOM_FAMILY_NAME = 64, jpayne@69: XCB_ATOM_FULL_NAME = 65, jpayne@69: XCB_ATOM_CAP_HEIGHT = 66, jpayne@69: XCB_ATOM_WM_CLASS = 67, jpayne@69: XCB_ATOM_WM_TRANSIENT_FOR = 68 jpayne@69: } xcb_atom_enum_t; jpayne@69: jpayne@69: /** Opcode for xcb_selection_request. */ jpayne@69: #define XCB_SELECTION_REQUEST 30 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_selection_request_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_selection_request_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t owner; jpayne@69: xcb_window_t requestor; jpayne@69: xcb_atom_t selection; jpayne@69: xcb_atom_t target; jpayne@69: xcb_atom_t property; jpayne@69: } xcb_selection_request_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_selection_notify. */ jpayne@69: #define XCB_SELECTION_NOTIFY 31 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_selection_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_selection_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_timestamp_t time; jpayne@69: xcb_window_t requestor; jpayne@69: xcb_atom_t selection; jpayne@69: xcb_atom_t target; jpayne@69: xcb_atom_t property; jpayne@69: } xcb_selection_notify_event_t; jpayne@69: jpayne@69: typedef enum xcb_colormap_state_t { jpayne@69: XCB_COLORMAP_STATE_UNINSTALLED = 0, jpayne@69: /**< The colormap was uninstalled. */ jpayne@69: jpayne@69: XCB_COLORMAP_STATE_INSTALLED = 1 jpayne@69: /**< The colormap was installed. */ jpayne@69: jpayne@69: } xcb_colormap_state_t; jpayne@69: jpayne@69: typedef enum xcb_colormap_enum_t { jpayne@69: XCB_COLORMAP_NONE = 0 jpayne@69: } xcb_colormap_enum_t; jpayne@69: jpayne@69: /** Opcode for xcb_colormap_notify. */ jpayne@69: #define XCB_COLORMAP_NOTIFY 32 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_colormap_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_colormap_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t window; jpayne@69: xcb_colormap_t colormap; jpayne@69: uint8_t _new; jpayne@69: uint8_t state; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_colormap_notify_event_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_client_message_data_t jpayne@69: **/ jpayne@69: typedef union xcb_client_message_data_t { jpayne@69: uint8_t data8[20]; jpayne@69: uint16_t data16[10]; jpayne@69: uint32_t data32[5]; jpayne@69: } xcb_client_message_data_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_client_message_data_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_client_message_data_iterator_t { jpayne@69: xcb_client_message_data_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_client_message_data_iterator_t; jpayne@69: jpayne@69: /** Opcode for xcb_client_message. */ jpayne@69: #define XCB_CLIENT_MESSAGE 33 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_client_message_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_client_message_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t format; jpayne@69: uint16_t sequence; jpayne@69: xcb_window_t window; jpayne@69: xcb_atom_t type; jpayne@69: xcb_client_message_data_t data; jpayne@69: } xcb_client_message_event_t; jpayne@69: jpayne@69: typedef enum xcb_mapping_t { jpayne@69: XCB_MAPPING_MODIFIER = 0, jpayne@69: XCB_MAPPING_KEYBOARD = 1, jpayne@69: XCB_MAPPING_POINTER = 2 jpayne@69: } xcb_mapping_t; jpayne@69: jpayne@69: /** Opcode for xcb_mapping_notify. */ jpayne@69: #define XCB_MAPPING_NOTIFY 34 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_mapping_notify_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_mapping_notify_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint8_t request; jpayne@69: xcb_keycode_t first_keycode; jpayne@69: uint8_t count; jpayne@69: uint8_t pad1; jpayne@69: } xcb_mapping_notify_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_ge_generic. */ jpayne@69: #define XCB_GE_GENERIC 35 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_ge_generic_event_t jpayne@69: **/ jpayne@69: typedef struct xcb_ge_generic_event_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t extension; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t event_type; jpayne@69: uint8_t pad0[22]; jpayne@69: uint32_t full_sequence; jpayne@69: } xcb_ge_generic_event_t; jpayne@69: jpayne@69: /** Opcode for xcb_request. */ jpayne@69: #define XCB_REQUEST 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_request_error_t jpayne@69: **/ jpayne@69: typedef struct xcb_request_error_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t error_code; jpayne@69: uint16_t sequence; jpayne@69: uint32_t bad_value; jpayne@69: uint16_t minor_opcode; jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: } xcb_request_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_value. */ jpayne@69: #define XCB_VALUE 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_value_error_t jpayne@69: **/ jpayne@69: typedef struct xcb_value_error_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t error_code; jpayne@69: uint16_t sequence; jpayne@69: uint32_t bad_value; jpayne@69: uint16_t minor_opcode; jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: } xcb_value_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_window. */ jpayne@69: #define XCB_WINDOW 3 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_window_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_pixmap. */ jpayne@69: #define XCB_PIXMAP 4 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_pixmap_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_atom. */ jpayne@69: #define XCB_ATOM 5 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_atom_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_cursor. */ jpayne@69: #define XCB_CURSOR 6 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_cursor_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_font. */ jpayne@69: #define XCB_FONT 7 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_font_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_match. */ jpayne@69: #define XCB_MATCH 8 jpayne@69: jpayne@69: typedef xcb_request_error_t xcb_match_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_drawable. */ jpayne@69: #define XCB_DRAWABLE 9 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_drawable_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_access. */ jpayne@69: #define XCB_ACCESS 10 jpayne@69: jpayne@69: typedef xcb_request_error_t xcb_access_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_alloc. */ jpayne@69: #define XCB_ALLOC 11 jpayne@69: jpayne@69: typedef xcb_request_error_t xcb_alloc_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_colormap. */ jpayne@69: #define XCB_COLORMAP 12 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_colormap_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_g_context. */ jpayne@69: #define XCB_G_CONTEXT 13 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_g_context_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_id_choice. */ jpayne@69: #define XCB_ID_CHOICE 14 jpayne@69: jpayne@69: typedef xcb_value_error_t xcb_id_choice_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_name. */ jpayne@69: #define XCB_NAME 15 jpayne@69: jpayne@69: typedef xcb_request_error_t xcb_name_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_length. */ jpayne@69: #define XCB_LENGTH 16 jpayne@69: jpayne@69: typedef xcb_request_error_t xcb_length_error_t; jpayne@69: jpayne@69: /** Opcode for xcb_implementation. */ jpayne@69: #define XCB_IMPLEMENTATION 17 jpayne@69: jpayne@69: typedef xcb_request_error_t xcb_implementation_error_t; jpayne@69: jpayne@69: typedef enum xcb_window_class_t { jpayne@69: XCB_WINDOW_CLASS_COPY_FROM_PARENT = 0, jpayne@69: XCB_WINDOW_CLASS_INPUT_OUTPUT = 1, jpayne@69: XCB_WINDOW_CLASS_INPUT_ONLY = 2 jpayne@69: } xcb_window_class_t; jpayne@69: jpayne@69: typedef enum xcb_cw_t { jpayne@69: XCB_CW_BACK_PIXMAP = 1, jpayne@69: /**< Overrides the default background-pixmap. The background pixmap and window must jpayne@69: have the same root and same depth. Any size pixmap can be used, although some jpayne@69: sizes may be faster than others. jpayne@69: jpayne@69: If `XCB_BACK_PIXMAP_NONE` is specified, the window has no defined background. jpayne@69: The server may fill the contents with the previous screen contents or with jpayne@69: contents of its own choosing. jpayne@69: jpayne@69: If `XCB_BACK_PIXMAP_PARENT_RELATIVE` is specified, the parent's background is jpayne@69: used, but the window must have the same depth as the parent (or a Match error jpayne@69: results). The parent's background is tracked, and the current version is jpayne@69: used each time the window background is required. */ jpayne@69: jpayne@69: XCB_CW_BACK_PIXEL = 2, jpayne@69: /**< Overrides `BackPixmap`. A pixmap of undefined size filled with the specified jpayne@69: background pixel is used for the background. Range-checking is not performed, jpayne@69: the background pixel is truncated to the appropriate number of bits. */ jpayne@69: jpayne@69: XCB_CW_BORDER_PIXMAP = 4, jpayne@69: /**< Overrides the default border-pixmap. The border pixmap and window must have the jpayne@69: same root and the same depth. Any size pixmap can be used, although some sizes jpayne@69: may be faster than others. jpayne@69: jpayne@69: The special value `XCB_COPY_FROM_PARENT` means the parent's border pixmap is jpayne@69: copied (subsequent changes to the parent's border attribute do not affect the jpayne@69: child), but the window must have the same depth as the parent. */ jpayne@69: jpayne@69: XCB_CW_BORDER_PIXEL = 8, jpayne@69: /**< Overrides `BorderPixmap`. A pixmap of undefined size filled with the specified jpayne@69: border pixel is used for the border. Range checking is not performed on the jpayne@69: border-pixel value, it is truncated to the appropriate number of bits. */ jpayne@69: jpayne@69: XCB_CW_BIT_GRAVITY = 16, jpayne@69: /**< Defines which region of the window should be retained if the window is resized. */ jpayne@69: jpayne@69: XCB_CW_WIN_GRAVITY = 32, jpayne@69: /**< Defines how the window should be repositioned if the parent is resized (see jpayne@69: `ConfigureWindow`). */ jpayne@69: jpayne@69: XCB_CW_BACKING_STORE = 64, jpayne@69: /**< A backing-store of `WhenMapped` advises the server that maintaining contents of jpayne@69: obscured regions when the window is mapped would be beneficial. A backing-store jpayne@69: of `Always` advises the server that maintaining contents even when the window jpayne@69: is unmapped would be beneficial. In this case, the server may generate an jpayne@69: exposure event when the window is created. A value of `NotUseful` advises the jpayne@69: server that maintaining contents is unnecessary, although a server may still jpayne@69: choose to maintain contents while the window is mapped. Note that if the server jpayne@69: maintains contents, then the server should maintain complete contents not just jpayne@69: the region within the parent boundaries, even if the window is larger than its jpayne@69: parent. While the server maintains contents, exposure events will not normally jpayne@69: be generated, but the server may stop maintaining contents at any time. */ jpayne@69: jpayne@69: XCB_CW_BACKING_PLANES = 128, jpayne@69: /**< The backing-planes indicates (with bits set to 1) which bit planes of the jpayne@69: window hold dynamic data that must be preserved in backing-stores and during jpayne@69: save-unders. */ jpayne@69: jpayne@69: XCB_CW_BACKING_PIXEL = 256, jpayne@69: /**< The backing-pixel specifies what value to use in planes not covered by jpayne@69: backing-planes. The server is free to save only the specified bit planes in the jpayne@69: backing-store or save-under and regenerate the remaining planes with the jpayne@69: specified pixel value. Any bits beyond the specified depth of the window in jpayne@69: these values are simply ignored. */ jpayne@69: jpayne@69: XCB_CW_OVERRIDE_REDIRECT = 512, jpayne@69: /**< The override-redirect specifies whether map and configure requests on this jpayne@69: window should override a SubstructureRedirect on the parent, typically to jpayne@69: inform a window manager not to tamper with the window. */ jpayne@69: jpayne@69: XCB_CW_SAVE_UNDER = 1024, jpayne@69: /**< If 1, the server is advised that when this window is mapped, saving the jpayne@69: contents of windows it obscures would be beneficial. */ jpayne@69: jpayne@69: XCB_CW_EVENT_MASK = 2048, jpayne@69: /**< The event-mask defines which events the client is interested in for this window jpayne@69: (or for some event types, inferiors of the window). */ jpayne@69: jpayne@69: XCB_CW_DONT_PROPAGATE = 4096, jpayne@69: /**< The do-not-propagate-mask defines which events should not be propagated to jpayne@69: ancestor windows when no client has the event type selected in this window. */ jpayne@69: jpayne@69: XCB_CW_COLORMAP = 8192, jpayne@69: /**< The colormap specifies the colormap that best reflects the true colors of the window. Servers jpayne@69: capable of supporting multiple hardware colormaps may use this information, and window man- jpayne@69: agers may use it for InstallColormap requests. The colormap must have the same visual type jpayne@69: and root as the window (or a Match error results). If CopyFromParent is specified, the parent's jpayne@69: colormap is copied (subsequent changes to the parent's colormap attribute do not affect the child). jpayne@69: However, the window must have the same visual type as the parent (or a Match error results), jpayne@69: and the parent must not have a colormap of None (or a Match error results). For an explanation jpayne@69: of None, see FreeColormap request. The colormap is copied by sharing the colormap object jpayne@69: between the child and the parent, not by making a complete copy of the colormap contents. */ jpayne@69: jpayne@69: XCB_CW_CURSOR = 16384 jpayne@69: /**< If a cursor is specified, it will be used whenever the pointer is in the window. If None is speci- jpayne@69: fied, the parent's cursor will be used when the pointer is in the window, and any change in the jpayne@69: parent's cursor will cause an immediate change in the displayed cursor. */ jpayne@69: jpayne@69: } xcb_cw_t; jpayne@69: jpayne@69: typedef enum xcb_back_pixmap_t { jpayne@69: XCB_BACK_PIXMAP_NONE = 0, jpayne@69: XCB_BACK_PIXMAP_PARENT_RELATIVE = 1 jpayne@69: } xcb_back_pixmap_t; jpayne@69: jpayne@69: typedef enum xcb_gravity_t { jpayne@69: XCB_GRAVITY_BIT_FORGET = 0, jpayne@69: XCB_GRAVITY_WIN_UNMAP = 0, jpayne@69: XCB_GRAVITY_NORTH_WEST = 1, jpayne@69: XCB_GRAVITY_NORTH = 2, jpayne@69: XCB_GRAVITY_NORTH_EAST = 3, jpayne@69: XCB_GRAVITY_WEST = 4, jpayne@69: XCB_GRAVITY_CENTER = 5, jpayne@69: XCB_GRAVITY_EAST = 6, jpayne@69: XCB_GRAVITY_SOUTH_WEST = 7, jpayne@69: XCB_GRAVITY_SOUTH = 8, jpayne@69: XCB_GRAVITY_SOUTH_EAST = 9, jpayne@69: XCB_GRAVITY_STATIC = 10 jpayne@69: } xcb_gravity_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_window_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_window_value_list_t { jpayne@69: xcb_pixmap_t background_pixmap; jpayne@69: uint32_t background_pixel; jpayne@69: xcb_pixmap_t border_pixmap; jpayne@69: uint32_t border_pixel; jpayne@69: uint32_t bit_gravity; jpayne@69: uint32_t win_gravity; jpayne@69: uint32_t backing_store; jpayne@69: uint32_t backing_planes; jpayne@69: uint32_t backing_pixel; jpayne@69: xcb_bool32_t override_redirect; jpayne@69: xcb_bool32_t save_under; jpayne@69: uint32_t event_mask; jpayne@69: uint32_t do_not_propogate_mask; jpayne@69: xcb_colormap_t colormap; jpayne@69: xcb_cursor_t cursor; jpayne@69: } xcb_create_window_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_window. */ jpayne@69: #define XCB_CREATE_WINDOW 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t depth; jpayne@69: uint16_t length; jpayne@69: xcb_window_t wid; jpayne@69: xcb_window_t parent; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t border_width; jpayne@69: uint16_t _class; jpayne@69: xcb_visualid_t visual; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_create_window_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_window_attributes_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_window_attributes_value_list_t { jpayne@69: xcb_pixmap_t background_pixmap; jpayne@69: uint32_t background_pixel; jpayne@69: xcb_pixmap_t border_pixmap; jpayne@69: uint32_t border_pixel; jpayne@69: uint32_t bit_gravity; jpayne@69: uint32_t win_gravity; jpayne@69: uint32_t backing_store; jpayne@69: uint32_t backing_planes; jpayne@69: uint32_t backing_pixel; jpayne@69: xcb_bool32_t override_redirect; jpayne@69: xcb_bool32_t save_under; jpayne@69: uint32_t event_mask; jpayne@69: uint32_t do_not_propogate_mask; jpayne@69: xcb_colormap_t colormap; jpayne@69: xcb_cursor_t cursor; jpayne@69: } xcb_change_window_attributes_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_window_attributes. */ jpayne@69: #define XCB_CHANGE_WINDOW_ATTRIBUTES 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_window_attributes_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_window_attributes_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_change_window_attributes_request_t; jpayne@69: jpayne@69: typedef enum xcb_map_state_t { jpayne@69: XCB_MAP_STATE_UNMAPPED = 0, jpayne@69: XCB_MAP_STATE_UNVIEWABLE = 1, jpayne@69: XCB_MAP_STATE_VIEWABLE = 2 jpayne@69: } xcb_map_state_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_window_attributes_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_window_attributes_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_window_attributes_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_window_attributes. */ jpayne@69: #define XCB_GET_WINDOW_ATTRIBUTES 3 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_window_attributes_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_window_attributes_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_get_window_attributes_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_window_attributes_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_window_attributes_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t backing_store; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_visualid_t visual; jpayne@69: uint16_t _class; jpayne@69: uint8_t bit_gravity; jpayne@69: uint8_t win_gravity; jpayne@69: uint32_t backing_planes; jpayne@69: uint32_t backing_pixel; jpayne@69: uint8_t save_under; jpayne@69: uint8_t map_is_installed; jpayne@69: uint8_t map_state; jpayne@69: uint8_t override_redirect; jpayne@69: xcb_colormap_t colormap; jpayne@69: uint32_t all_event_masks; jpayne@69: uint32_t your_event_mask; jpayne@69: uint16_t do_not_propagate_mask; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_get_window_attributes_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_destroy_window. */ jpayne@69: #define XCB_DESTROY_WINDOW 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_destroy_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_destroy_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_destroy_window_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_destroy_subwindows. */ jpayne@69: #define XCB_DESTROY_SUBWINDOWS 5 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_destroy_subwindows_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_destroy_subwindows_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_destroy_subwindows_request_t; jpayne@69: jpayne@69: typedef enum xcb_set_mode_t { jpayne@69: XCB_SET_MODE_INSERT = 0, jpayne@69: XCB_SET_MODE_DELETE = 1 jpayne@69: } xcb_set_mode_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_save_set. */ jpayne@69: #define XCB_CHANGE_SAVE_SET 6 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_save_set_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_save_set_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_change_save_set_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_reparent_window. */ jpayne@69: #define XCB_REPARENT_WINDOW 7 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_reparent_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_reparent_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: xcb_window_t parent; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_reparent_window_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_map_window. */ jpayne@69: #define XCB_MAP_WINDOW 8 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_map_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_map_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_map_window_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_map_subwindows. */ jpayne@69: #define XCB_MAP_SUBWINDOWS 9 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_map_subwindows_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_map_subwindows_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_map_subwindows_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_unmap_window. */ jpayne@69: #define XCB_UNMAP_WINDOW 10 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_unmap_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_unmap_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_unmap_window_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_unmap_subwindows. */ jpayne@69: #define XCB_UNMAP_SUBWINDOWS 11 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_unmap_subwindows_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_unmap_subwindows_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_unmap_subwindows_request_t; jpayne@69: jpayne@69: typedef enum xcb_config_window_t { jpayne@69: XCB_CONFIG_WINDOW_X = 1, jpayne@69: XCB_CONFIG_WINDOW_Y = 2, jpayne@69: XCB_CONFIG_WINDOW_WIDTH = 4, jpayne@69: XCB_CONFIG_WINDOW_HEIGHT = 8, jpayne@69: XCB_CONFIG_WINDOW_BORDER_WIDTH = 16, jpayne@69: XCB_CONFIG_WINDOW_SIBLING = 32, jpayne@69: XCB_CONFIG_WINDOW_STACK_MODE = 64 jpayne@69: } xcb_config_window_t; jpayne@69: jpayne@69: typedef enum xcb_stack_mode_t { jpayne@69: XCB_STACK_MODE_ABOVE = 0, jpayne@69: XCB_STACK_MODE_BELOW = 1, jpayne@69: XCB_STACK_MODE_TOP_IF = 2, jpayne@69: XCB_STACK_MODE_BOTTOM_IF = 3, jpayne@69: XCB_STACK_MODE_OPPOSITE = 4 jpayne@69: } xcb_stack_mode_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_configure_window_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_configure_window_value_list_t { jpayne@69: int32_t x; jpayne@69: int32_t y; jpayne@69: uint32_t width; jpayne@69: uint32_t height; jpayne@69: uint32_t border_width; jpayne@69: xcb_window_t sibling; jpayne@69: uint32_t stack_mode; jpayne@69: } xcb_configure_window_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_configure_window. */ jpayne@69: #define XCB_CONFIGURE_WINDOW 12 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_configure_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_configure_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: uint16_t value_mask; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_configure_window_request_t; jpayne@69: jpayne@69: typedef enum xcb_circulate_t { jpayne@69: XCB_CIRCULATE_RAISE_LOWEST = 0, jpayne@69: XCB_CIRCULATE_LOWER_HIGHEST = 1 jpayne@69: } xcb_circulate_t; jpayne@69: jpayne@69: /** Opcode for xcb_circulate_window. */ jpayne@69: #define XCB_CIRCULATE_WINDOW 13 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_circulate_window_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_circulate_window_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t direction; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_circulate_window_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_geometry_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_geometry_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_geometry_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_geometry. */ jpayne@69: #define XCB_GET_GEOMETRY 14 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_geometry_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_geometry_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: } xcb_get_geometry_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_geometry_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_geometry_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t depth; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t root; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint16_t border_width; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_get_geometry_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_tree_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_tree_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_tree_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_tree. */ jpayne@69: #define XCB_QUERY_TREE 15 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_tree_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_tree_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_query_tree_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_tree_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_tree_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t root; jpayne@69: xcb_window_t parent; jpayne@69: uint16_t children_len; jpayne@69: uint8_t pad1[14]; jpayne@69: } xcb_query_tree_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_intern_atom_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_intern_atom_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_intern_atom_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_intern_atom. */ jpayne@69: #define XCB_INTERN_ATOM 16 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_intern_atom_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_intern_atom_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t only_if_exists; jpayne@69: uint16_t length; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_intern_atom_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_intern_atom_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_intern_atom_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_atom_t atom; jpayne@69: } xcb_intern_atom_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_atom_name_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_atom_name_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_atom_name_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_atom_name. */ jpayne@69: #define XCB_GET_ATOM_NAME 17 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_atom_name_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_atom_name_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_atom_t atom; jpayne@69: } xcb_get_atom_name_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_atom_name_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_atom_name_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_get_atom_name_reply_t; jpayne@69: jpayne@69: typedef enum xcb_prop_mode_t { jpayne@69: XCB_PROP_MODE_REPLACE = 0, jpayne@69: /**< Discard the previous property value and store the new data. */ jpayne@69: jpayne@69: XCB_PROP_MODE_PREPEND = 1, jpayne@69: /**< Insert the new data before the beginning of existing data. The `format` must jpayne@69: match existing property value. If the property is undefined, it is treated as jpayne@69: defined with the correct type and format with zero-length data. */ jpayne@69: jpayne@69: XCB_PROP_MODE_APPEND = 2 jpayne@69: /**< Insert the new data after the beginning of existing data. The `format` must jpayne@69: match existing property value. If the property is undefined, it is treated as jpayne@69: defined with the correct type and format with zero-length data. */ jpayne@69: jpayne@69: } xcb_prop_mode_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_property. */ jpayne@69: #define XCB_CHANGE_PROPERTY 18 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_property_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_property_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: xcb_atom_t property; jpayne@69: xcb_atom_t type; jpayne@69: uint8_t format; jpayne@69: uint8_t pad0[3]; jpayne@69: uint32_t data_len; jpayne@69: } xcb_change_property_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_delete_property. */ jpayne@69: #define XCB_DELETE_PROPERTY 19 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_delete_property_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_delete_property_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: xcb_atom_t property; jpayne@69: } xcb_delete_property_request_t; jpayne@69: jpayne@69: typedef enum xcb_get_property_type_t { jpayne@69: XCB_GET_PROPERTY_TYPE_ANY = 0 jpayne@69: } xcb_get_property_type_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_property_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_property_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_property_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_property. */ jpayne@69: #define XCB_GET_PROPERTY 20 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_property_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_property_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t _delete; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: xcb_atom_t property; jpayne@69: xcb_atom_t type; jpayne@69: uint32_t long_offset; jpayne@69: uint32_t long_length; jpayne@69: } xcb_get_property_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_property_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_property_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t format; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_atom_t type; jpayne@69: uint32_t bytes_after; jpayne@69: uint32_t value_len; jpayne@69: uint8_t pad0[12]; jpayne@69: } xcb_get_property_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_properties_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_properties_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_list_properties_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_list_properties. */ jpayne@69: #define XCB_LIST_PROPERTIES 21 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_properties_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_properties_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_list_properties_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_properties_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_properties_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t atoms_len; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_list_properties_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_selection_owner. */ jpayne@69: #define XCB_SET_SELECTION_OWNER 22 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_selection_owner_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_selection_owner_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t owner; jpayne@69: xcb_atom_t selection; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_set_selection_owner_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_selection_owner_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_selection_owner_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_selection_owner_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_selection_owner. */ jpayne@69: #define XCB_GET_SELECTION_OWNER 23 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_selection_owner_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_selection_owner_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_atom_t selection; jpayne@69: } xcb_get_selection_owner_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_selection_owner_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_selection_owner_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t owner; jpayne@69: } xcb_get_selection_owner_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_convert_selection. */ jpayne@69: #define XCB_CONVERT_SELECTION 24 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_convert_selection_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_convert_selection_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t requestor; jpayne@69: xcb_atom_t selection; jpayne@69: xcb_atom_t target; jpayne@69: xcb_atom_t property; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_convert_selection_request_t; jpayne@69: jpayne@69: typedef enum xcb_send_event_dest_t { jpayne@69: XCB_SEND_EVENT_DEST_POINTER_WINDOW = 0, jpayne@69: XCB_SEND_EVENT_DEST_ITEM_FOCUS = 1 jpayne@69: } xcb_send_event_dest_t; jpayne@69: jpayne@69: /** Opcode for xcb_send_event. */ jpayne@69: #define XCB_SEND_EVENT 25 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_send_event_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_send_event_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t propagate; jpayne@69: uint16_t length; jpayne@69: xcb_window_t destination; jpayne@69: uint32_t event_mask; jpayne@69: char event[32]; jpayne@69: } xcb_send_event_request_t; jpayne@69: jpayne@69: typedef enum xcb_grab_mode_t { jpayne@69: XCB_GRAB_MODE_SYNC = 0, jpayne@69: /**< The state of the keyboard appears to freeze: No further keyboard events are jpayne@69: generated by the server until the grabbing client issues a releasing jpayne@69: `AllowEvents` request or until the keyboard grab is released. */ jpayne@69: jpayne@69: XCB_GRAB_MODE_ASYNC = 1 jpayne@69: /**< Keyboard event processing continues normally. */ jpayne@69: jpayne@69: } xcb_grab_mode_t; jpayne@69: jpayne@69: typedef enum xcb_grab_status_t { jpayne@69: XCB_GRAB_STATUS_SUCCESS = 0, jpayne@69: XCB_GRAB_STATUS_ALREADY_GRABBED = 1, jpayne@69: XCB_GRAB_STATUS_INVALID_TIME = 2, jpayne@69: XCB_GRAB_STATUS_NOT_VIEWABLE = 3, jpayne@69: XCB_GRAB_STATUS_FROZEN = 4 jpayne@69: } xcb_grab_status_t; jpayne@69: jpayne@69: typedef enum xcb_cursor_enum_t { jpayne@69: XCB_CURSOR_NONE = 0 jpayne@69: } xcb_cursor_enum_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_pointer_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_pointer_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_grab_pointer_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_grab_pointer. */ jpayne@69: #define XCB_GRAB_POINTER 26 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_pointer_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_pointer_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t owner_events; jpayne@69: uint16_t length; jpayne@69: xcb_window_t grab_window; jpayne@69: uint16_t event_mask; jpayne@69: uint8_t pointer_mode; jpayne@69: uint8_t keyboard_mode; jpayne@69: xcb_window_t confine_to; jpayne@69: xcb_cursor_t cursor; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_grab_pointer_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_pointer_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_pointer_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t status; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: } xcb_grab_pointer_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_ungrab_pointer. */ jpayne@69: #define XCB_UNGRAB_POINTER 27 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_ungrab_pointer_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_ungrab_pointer_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_ungrab_pointer_request_t; jpayne@69: jpayne@69: typedef enum xcb_button_index_t { jpayne@69: XCB_BUTTON_INDEX_ANY = 0, jpayne@69: /**< Any of the following (or none): */ jpayne@69: jpayne@69: XCB_BUTTON_INDEX_1 = 1, jpayne@69: /**< The left mouse button. */ jpayne@69: jpayne@69: XCB_BUTTON_INDEX_2 = 2, jpayne@69: /**< The right mouse button. */ jpayne@69: jpayne@69: XCB_BUTTON_INDEX_3 = 3, jpayne@69: /**< The middle mouse button. */ jpayne@69: jpayne@69: XCB_BUTTON_INDEX_4 = 4, jpayne@69: /**< Scroll wheel. TODO: direction? */ jpayne@69: jpayne@69: XCB_BUTTON_INDEX_5 = 5 jpayne@69: /**< Scroll wheel. TODO: direction? */ jpayne@69: jpayne@69: } xcb_button_index_t; jpayne@69: jpayne@69: /** Opcode for xcb_grab_button. */ jpayne@69: #define XCB_GRAB_BUTTON 28 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_button_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_button_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t owner_events; jpayne@69: uint16_t length; jpayne@69: xcb_window_t grab_window; jpayne@69: uint16_t event_mask; jpayne@69: uint8_t pointer_mode; jpayne@69: uint8_t keyboard_mode; jpayne@69: xcb_window_t confine_to; jpayne@69: xcb_cursor_t cursor; jpayne@69: uint8_t button; jpayne@69: uint8_t pad0; jpayne@69: uint16_t modifiers; jpayne@69: } xcb_grab_button_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_ungrab_button. */ jpayne@69: #define XCB_UNGRAB_BUTTON 29 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_ungrab_button_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_ungrab_button_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t button; jpayne@69: uint16_t length; jpayne@69: xcb_window_t grab_window; jpayne@69: uint16_t modifiers; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_ungrab_button_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_active_pointer_grab. */ jpayne@69: #define XCB_CHANGE_ACTIVE_POINTER_GRAB 30 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_active_pointer_grab_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_active_pointer_grab_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_cursor_t cursor; jpayne@69: xcb_timestamp_t time; jpayne@69: uint16_t event_mask; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_change_active_pointer_grab_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_keyboard_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_keyboard_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_grab_keyboard_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_grab_keyboard. */ jpayne@69: #define XCB_GRAB_KEYBOARD 31 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_keyboard_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_keyboard_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t owner_events; jpayne@69: uint16_t length; jpayne@69: xcb_window_t grab_window; jpayne@69: xcb_timestamp_t time; jpayne@69: uint8_t pointer_mode; jpayne@69: uint8_t keyboard_mode; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_grab_keyboard_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_keyboard_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_keyboard_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t status; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: } xcb_grab_keyboard_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_ungrab_keyboard. */ jpayne@69: #define XCB_UNGRAB_KEYBOARD 32 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_ungrab_keyboard_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_ungrab_keyboard_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_ungrab_keyboard_request_t; jpayne@69: jpayne@69: typedef enum xcb_grab_t { jpayne@69: XCB_GRAB_ANY = 0 jpayne@69: } xcb_grab_t; jpayne@69: jpayne@69: /** Opcode for xcb_grab_key. */ jpayne@69: #define XCB_GRAB_KEY 33 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_key_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_key_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t owner_events; jpayne@69: uint16_t length; jpayne@69: xcb_window_t grab_window; jpayne@69: uint16_t modifiers; jpayne@69: xcb_keycode_t key; jpayne@69: uint8_t pointer_mode; jpayne@69: uint8_t keyboard_mode; jpayne@69: uint8_t pad0[3]; jpayne@69: } xcb_grab_key_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_ungrab_key. */ jpayne@69: #define XCB_UNGRAB_KEY 34 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_ungrab_key_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_ungrab_key_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: xcb_keycode_t key; jpayne@69: uint16_t length; jpayne@69: xcb_window_t grab_window; jpayne@69: uint16_t modifiers; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_ungrab_key_request_t; jpayne@69: jpayne@69: typedef enum xcb_allow_t { jpayne@69: XCB_ALLOW_ASYNC_POINTER = 0, jpayne@69: /**< For AsyncPointer, if the pointer is frozen by the client, pointer event jpayne@69: processing continues normally. If the pointer is frozen twice by the client on jpayne@69: behalf of two separate grabs, AsyncPointer thaws for both. AsyncPointer has no jpayne@69: effect if the pointer is not frozen by the client, but the pointer need not be jpayne@69: grabbed by the client. jpayne@69: jpayne@69: TODO: rewrite this in more understandable terms. */ jpayne@69: jpayne@69: XCB_ALLOW_SYNC_POINTER = 1, jpayne@69: /**< For SyncPointer, if the pointer is frozen and actively grabbed by the client, jpayne@69: pointer event processing continues normally until the next ButtonPress or jpayne@69: ButtonRelease event is reported to the client, at which time the pointer again jpayne@69: appears to freeze. However, if the reported event causes the pointer grab to be jpayne@69: released, then the pointer does not freeze. SyncPointer has no effect if the jpayne@69: pointer is not frozen by the client or if the pointer is not grabbed by the jpayne@69: client. */ jpayne@69: jpayne@69: XCB_ALLOW_REPLAY_POINTER = 2, jpayne@69: /**< For ReplayPointer, if the pointer is actively grabbed by the client and is jpayne@69: frozen as the result of an event having been sent to the client (either from jpayne@69: the activation of a GrabButton or from a previous AllowEvents with mode jpayne@69: SyncPointer but not from a GrabPointer), then the pointer grab is released and jpayne@69: that event is completely reprocessed, this time ignoring any passive grabs at jpayne@69: or above (towards the root) the grab-window of the grab just released. The jpayne@69: request has no effect if the pointer is not grabbed by the client or if the jpayne@69: pointer is not frozen as the result of an event. */ jpayne@69: jpayne@69: XCB_ALLOW_ASYNC_KEYBOARD = 3, jpayne@69: /**< For AsyncKeyboard, if the keyboard is frozen by the client, keyboard event jpayne@69: processing continues normally. If the keyboard is frozen twice by the client on jpayne@69: behalf of two separate grabs, AsyncKeyboard thaws for both. AsyncKeyboard has jpayne@69: no effect if the keyboard is not frozen by the client, but the keyboard need jpayne@69: not be grabbed by the client. */ jpayne@69: jpayne@69: XCB_ALLOW_SYNC_KEYBOARD = 4, jpayne@69: /**< For SyncKeyboard, if the keyboard is frozen and actively grabbed by the client, jpayne@69: keyboard event processing continues normally until the next KeyPress or jpayne@69: KeyRelease event is reported to the client, at which time the keyboard again jpayne@69: appears to freeze. However, if the reported event causes the keyboard grab to jpayne@69: be released, then the keyboard does not freeze. SyncKeyboard has no effect if jpayne@69: the keyboard is not frozen by the client or if the keyboard is not grabbed by jpayne@69: the client. */ jpayne@69: jpayne@69: XCB_ALLOW_REPLAY_KEYBOARD = 5, jpayne@69: /**< For ReplayKeyboard, if the keyboard is actively grabbed by the client and is jpayne@69: frozen as the result of an event having been sent to the client (either from jpayne@69: the activation of a GrabKey or from a previous AllowEvents with mode jpayne@69: SyncKeyboard but not from a GrabKeyboard), then the keyboard grab is released jpayne@69: and that event is completely reprocessed, this time ignoring any passive grabs jpayne@69: at or above (towards the root) the grab-window of the grab just released. The jpayne@69: request has no effect if the keyboard is not grabbed by the client or if the jpayne@69: keyboard is not frozen as the result of an event. */ jpayne@69: jpayne@69: XCB_ALLOW_ASYNC_BOTH = 6, jpayne@69: /**< For AsyncBoth, if the pointer and the keyboard are frozen by the client, event jpayne@69: processing for both devices continues normally. If a device is frozen twice by jpayne@69: the client on behalf of two separate grabs, AsyncBoth thaws for both. AsyncBoth jpayne@69: has no effect unless both pointer and keyboard are frozen by the client. */ jpayne@69: jpayne@69: XCB_ALLOW_SYNC_BOTH = 7 jpayne@69: /**< For SyncBoth, if both pointer and keyboard are frozen by the client, event jpayne@69: processing (for both devices) continues normally until the next ButtonPress, jpayne@69: ButtonRelease, KeyPress, or KeyRelease event is reported to the client for a jpayne@69: grabbed device (button event for the pointer, key event for the keyboard), at jpayne@69: which time the devices again appear to freeze. However, if the reported event jpayne@69: causes the grab to be released, then the devices do not freeze (but if the jpayne@69: other device is still grabbed, then a subsequent event for it will still cause jpayne@69: both devices to freeze). SyncBoth has no effect unless both pointer and jpayne@69: keyboard are frozen by the client. If the pointer or keyboard is frozen twice jpayne@69: by the client on behalf of two separate grabs, SyncBoth thaws for both (but a jpayne@69: subsequent freeze for SyncBoth will only freeze each device once). */ jpayne@69: jpayne@69: } xcb_allow_t; jpayne@69: jpayne@69: /** Opcode for xcb_allow_events. */ jpayne@69: #define XCB_ALLOW_EVENTS 35 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_allow_events_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_allow_events_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_allow_events_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_grab_server. */ jpayne@69: #define XCB_GRAB_SERVER 36 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_grab_server_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_grab_server_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_grab_server_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_ungrab_server. */ jpayne@69: #define XCB_UNGRAB_SERVER 37 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_ungrab_server_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_ungrab_server_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_ungrab_server_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_pointer_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_pointer_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_pointer_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_pointer. */ jpayne@69: #define XCB_QUERY_POINTER 38 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_pointer_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_pointer_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_query_pointer_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_pointer_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_pointer_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t same_screen; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t root; jpayne@69: xcb_window_t child; jpayne@69: int16_t root_x; jpayne@69: int16_t root_y; jpayne@69: int16_t win_x; jpayne@69: int16_t win_y; jpayne@69: uint16_t mask; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_query_pointer_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_timecoord_t jpayne@69: **/ jpayne@69: typedef struct xcb_timecoord_t { jpayne@69: xcb_timestamp_t time; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_timecoord_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_timecoord_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_timecoord_iterator_t { jpayne@69: xcb_timecoord_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_timecoord_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_motion_events_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_motion_events_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_motion_events_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_motion_events. */ jpayne@69: #define XCB_GET_MOTION_EVENTS 39 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_motion_events_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_motion_events_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: xcb_timestamp_t start; jpayne@69: xcb_timestamp_t stop; jpayne@69: } xcb_get_motion_events_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_motion_events_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_motion_events_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t events_len; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_get_motion_events_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_translate_coordinates_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_translate_coordinates_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_translate_coordinates_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_translate_coordinates. */ jpayne@69: #define XCB_TRANSLATE_COORDINATES 40 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_translate_coordinates_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_translate_coordinates_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t src_window; jpayne@69: xcb_window_t dst_window; jpayne@69: int16_t src_x; jpayne@69: int16_t src_y; jpayne@69: } xcb_translate_coordinates_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_translate_coordinates_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_translate_coordinates_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t same_screen; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t child; jpayne@69: int16_t dst_x; jpayne@69: int16_t dst_y; jpayne@69: } xcb_translate_coordinates_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_warp_pointer. */ jpayne@69: #define XCB_WARP_POINTER 41 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_warp_pointer_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_warp_pointer_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t src_window; jpayne@69: xcb_window_t dst_window; jpayne@69: int16_t src_x; jpayne@69: int16_t src_y; jpayne@69: uint16_t src_width; jpayne@69: uint16_t src_height; jpayne@69: int16_t dst_x; jpayne@69: int16_t dst_y; jpayne@69: } xcb_warp_pointer_request_t; jpayne@69: jpayne@69: typedef enum xcb_input_focus_t { jpayne@69: XCB_INPUT_FOCUS_NONE = 0, jpayne@69: /**< The focus reverts to `XCB_NONE`, so no window will have the input focus. */ jpayne@69: jpayne@69: XCB_INPUT_FOCUS_POINTER_ROOT = 1, jpayne@69: /**< The focus reverts to `XCB_POINTER_ROOT` respectively. When the focus reverts, jpayne@69: FocusIn and FocusOut events are generated, but the last-focus-change time is jpayne@69: not changed. */ jpayne@69: jpayne@69: XCB_INPUT_FOCUS_PARENT = 2, jpayne@69: /**< The focus reverts to the parent (or closest viewable ancestor) and the new jpayne@69: revert_to value is `XCB_INPUT_FOCUS_NONE`. */ jpayne@69: jpayne@69: XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3 jpayne@69: /**< NOT YET DOCUMENTED. Only relevant for the xinput extension. */ jpayne@69: jpayne@69: } xcb_input_focus_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_input_focus. */ jpayne@69: #define XCB_SET_INPUT_FOCUS 42 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_input_focus_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_input_focus_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t revert_to; jpayne@69: uint16_t length; jpayne@69: xcb_window_t focus; jpayne@69: xcb_timestamp_t time; jpayne@69: } xcb_set_input_focus_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_input_focus_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_input_focus_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_input_focus_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_input_focus. */ jpayne@69: #define XCB_GET_INPUT_FOCUS 43 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_input_focus_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_input_focus_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_input_focus_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_input_focus_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_input_focus_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t revert_to; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t focus; jpayne@69: } xcb_get_input_focus_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_keymap_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_keymap_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_keymap_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_keymap. */ jpayne@69: #define XCB_QUERY_KEYMAP 44 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_keymap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_keymap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_query_keymap_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_keymap_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_keymap_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t keys[32]; jpayne@69: } xcb_query_keymap_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_open_font. */ jpayne@69: #define XCB_OPEN_FONT 45 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_open_font_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_open_font_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_font_t fid; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_open_font_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_close_font. */ jpayne@69: #define XCB_CLOSE_FONT 46 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_close_font_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_close_font_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_font_t font; jpayne@69: } xcb_close_font_request_t; jpayne@69: jpayne@69: typedef enum xcb_font_draw_t { jpayne@69: XCB_FONT_DRAW_LEFT_TO_RIGHT = 0, jpayne@69: XCB_FONT_DRAW_RIGHT_TO_LEFT = 1 jpayne@69: } xcb_font_draw_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_fontprop_t jpayne@69: **/ jpayne@69: typedef struct xcb_fontprop_t { jpayne@69: xcb_atom_t name; jpayne@69: uint32_t value; jpayne@69: } xcb_fontprop_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_fontprop_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_fontprop_iterator_t { jpayne@69: xcb_fontprop_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_fontprop_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_charinfo_t jpayne@69: **/ jpayne@69: typedef struct xcb_charinfo_t { jpayne@69: int16_t left_side_bearing; jpayne@69: int16_t right_side_bearing; jpayne@69: int16_t character_width; jpayne@69: int16_t ascent; jpayne@69: int16_t descent; jpayne@69: uint16_t attributes; jpayne@69: } xcb_charinfo_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_charinfo_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_charinfo_iterator_t { jpayne@69: xcb_charinfo_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_charinfo_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_font_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_font_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_font_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_font. */ jpayne@69: #define XCB_QUERY_FONT 47 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_font_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_font_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_fontable_t font; jpayne@69: } xcb_query_font_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_font_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_font_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_charinfo_t min_bounds; jpayne@69: uint8_t pad1[4]; jpayne@69: xcb_charinfo_t max_bounds; jpayne@69: uint8_t pad2[4]; jpayne@69: uint16_t min_char_or_byte2; jpayne@69: uint16_t max_char_or_byte2; jpayne@69: uint16_t default_char; jpayne@69: uint16_t properties_len; jpayne@69: uint8_t draw_direction; jpayne@69: uint8_t min_byte1; jpayne@69: uint8_t max_byte1; jpayne@69: uint8_t all_chars_exist; jpayne@69: int16_t font_ascent; jpayne@69: int16_t font_descent; jpayne@69: uint32_t char_infos_len; jpayne@69: } xcb_query_font_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_text_extents_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_text_extents_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_text_extents_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_text_extents. */ jpayne@69: #define XCB_QUERY_TEXT_EXTENTS 48 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_text_extents_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_text_extents_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t odd_length; jpayne@69: uint16_t length; jpayne@69: xcb_fontable_t font; jpayne@69: } xcb_query_text_extents_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_text_extents_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_text_extents_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t draw_direction; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: int16_t font_ascent; jpayne@69: int16_t font_descent; jpayne@69: int16_t overall_ascent; jpayne@69: int16_t overall_descent; jpayne@69: int32_t overall_width; jpayne@69: int32_t overall_left; jpayne@69: int32_t overall_right; jpayne@69: } xcb_query_text_extents_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_str_t jpayne@69: **/ jpayne@69: typedef struct xcb_str_t { jpayne@69: uint8_t name_len; jpayne@69: } xcb_str_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_str_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_str_iterator_t { jpayne@69: xcb_str_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_str_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_fonts_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_fonts_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_list_fonts_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_list_fonts. */ jpayne@69: #define XCB_LIST_FONTS 49 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_fonts_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_fonts_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: uint16_t max_names; jpayne@69: uint16_t pattern_len; jpayne@69: } xcb_list_fonts_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_fonts_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_fonts_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t names_len; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_list_fonts_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_fonts_with_info_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_fonts_with_info_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_list_fonts_with_info_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_list_fonts_with_info. */ jpayne@69: #define XCB_LIST_FONTS_WITH_INFO 50 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_fonts_with_info_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_fonts_with_info_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: uint16_t max_names; jpayne@69: uint16_t pattern_len; jpayne@69: } xcb_list_fonts_with_info_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_fonts_with_info_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_fonts_with_info_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t name_len; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_charinfo_t min_bounds; jpayne@69: uint8_t pad0[4]; jpayne@69: xcb_charinfo_t max_bounds; jpayne@69: uint8_t pad1[4]; jpayne@69: uint16_t min_char_or_byte2; jpayne@69: uint16_t max_char_or_byte2; jpayne@69: uint16_t default_char; jpayne@69: uint16_t properties_len; jpayne@69: uint8_t draw_direction; jpayne@69: uint8_t min_byte1; jpayne@69: uint8_t max_byte1; jpayne@69: uint8_t all_chars_exist; jpayne@69: int16_t font_ascent; jpayne@69: int16_t font_descent; jpayne@69: uint32_t replies_hint; jpayne@69: } xcb_list_fonts_with_info_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_font_path. */ jpayne@69: #define XCB_SET_FONT_PATH 51 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_font_path_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_font_path_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: uint16_t font_qty; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_set_font_path_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_font_path_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_font_path_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_font_path_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_font_path. */ jpayne@69: #define XCB_GET_FONT_PATH 52 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_font_path_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_font_path_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_font_path_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_font_path_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_font_path_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t path_len; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_get_font_path_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_pixmap. */ jpayne@69: #define XCB_CREATE_PIXMAP 53 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_pixmap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_pixmap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t depth; jpayne@69: uint16_t length; jpayne@69: xcb_pixmap_t pid; jpayne@69: xcb_drawable_t drawable; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_create_pixmap_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_free_pixmap. */ jpayne@69: #define XCB_FREE_PIXMAP 54 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_free_pixmap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_free_pixmap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_pixmap_t pixmap; jpayne@69: } xcb_free_pixmap_request_t; jpayne@69: jpayne@69: typedef enum xcb_gc_t { jpayne@69: XCB_GC_FUNCTION = 1, jpayne@69: /**< TODO: Refer to GX */ jpayne@69: jpayne@69: XCB_GC_PLANE_MASK = 2, jpayne@69: /**< In graphics operations, given a source and destination pixel, the result is jpayne@69: computed bitwise on corresponding bits of the pixels; that is, a Boolean jpayne@69: operation is performed in each bit plane. The plane-mask restricts the jpayne@69: operation to a subset of planes, so the result is: jpayne@69: jpayne@69: ((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) */ jpayne@69: jpayne@69: XCB_GC_FOREGROUND = 4, jpayne@69: /**< Foreground colorpixel. */ jpayne@69: jpayne@69: XCB_GC_BACKGROUND = 8, jpayne@69: /**< Background colorpixel. */ jpayne@69: jpayne@69: XCB_GC_LINE_WIDTH = 16, jpayne@69: /**< The line-width is measured in pixels and can be greater than or equal to one, a wide line, or the jpayne@69: special value zero, a thin line. */ jpayne@69: jpayne@69: XCB_GC_LINE_STYLE = 32, jpayne@69: /**< The line-style defines which sections of a line are drawn: jpayne@69: Solid The full path of the line is drawn. jpayne@69: DoubleDash The full path of the line is drawn, but the even dashes are filled differently jpayne@69: than the odd dashes (see fill-style), with Butt cap-style used where even and jpayne@69: odd dashes meet. jpayne@69: OnOffDash Only the even dashes are drawn, and cap-style applies to all internal ends of jpayne@69: the individual dashes (except NotLast is treated as Butt). */ jpayne@69: jpayne@69: XCB_GC_CAP_STYLE = 64, jpayne@69: /**< The cap-style defines how the endpoints of a path are drawn: jpayne@69: NotLast The result is equivalent to Butt, except that for a line-width of zero the final jpayne@69: endpoint is not drawn. jpayne@69: Butt The result is square at the endpoint (perpendicular to the slope of the line) jpayne@69: with no projection beyond. jpayne@69: Round The result is a circular arc with its diameter equal to the line-width, centered jpayne@69: on the endpoint; it is equivalent to Butt for line-width zero. jpayne@69: Projecting The result is square at the end, but the path continues beyond the endpoint for jpayne@69: a distance equal to half the line-width; it is equivalent to Butt for line-width jpayne@69: zero. */ jpayne@69: jpayne@69: XCB_GC_JOIN_STYLE = 128, jpayne@69: /**< The join-style defines how corners are drawn for wide lines: jpayne@69: Miter The outer edges of the two lines extend to meet at an angle. However, if the jpayne@69: angle is less than 11 degrees, a Bevel join-style is used instead. jpayne@69: Round The result is a circular arc with a diameter equal to the line-width, centered jpayne@69: on the joinpoint. jpayne@69: Bevel The result is Butt endpoint styles, and then the triangular notch is filled. */ jpayne@69: jpayne@69: XCB_GC_FILL_STYLE = 256, jpayne@69: /**< The fill-style defines the contents of the source for line, text, and fill requests. For all text and fill jpayne@69: requests (for example, PolyText8, PolyText16, PolyFillRectangle, FillPoly, and PolyFillArc) jpayne@69: as well as for line requests with line-style Solid, (for example, PolyLine, PolySegment, jpayne@69: PolyRectangle, PolyArc) and for the even dashes for line requests with line-style OnOffDash jpayne@69: or DoubleDash: jpayne@69: Solid Foreground jpayne@69: Tiled Tile jpayne@69: OpaqueStippled A tile with the same width and height as stipple but with background jpayne@69: everywhere stipple has a zero and with foreground everywhere stipple jpayne@69: has a one jpayne@69: Stippled Foreground masked by stipple jpayne@69: For the odd dashes for line requests with line-style DoubleDash: jpayne@69: Solid Background jpayne@69: Tiled Same as for even dashes jpayne@69: OpaqueStippled Same as for even dashes jpayne@69: Stippled Background masked by stipple */ jpayne@69: jpayne@69: XCB_GC_FILL_RULE = 512, jpayne@69: /**< */ jpayne@69: jpayne@69: XCB_GC_TILE = 1024, jpayne@69: /**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all jpayne@69: dimensions. When that plane is superimposed on the drawable for use in a graphics operation, jpayne@69: the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable jpayne@69: specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the jpayne@69: origin of whatever destination drawable is specified in a graphics request. jpayne@69: The tile pixmap must have the same root and depth as the gcontext (or a Match error results). jpayne@69: The stipple pixmap must have depth one and must have the same root as the gcontext (or a jpayne@69: Match error results). For fill-style Stippled (but not fill-style jpayne@69: OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an jpayne@69: additional clip mask to be ANDed with the clip-mask. jpayne@69: Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than jpayne@69: others. */ jpayne@69: jpayne@69: XCB_GC_STIPPLE = 2048, jpayne@69: /**< The tile/stipple represents an infinite two-dimensional plane with the tile/stipple replicated in all jpayne@69: dimensions. When that plane is superimposed on the drawable for use in a graphics operation, jpayne@69: the upper-left corner of some instance of the tile/stipple is at the coordinates within the drawable jpayne@69: specified by the tile/stipple origin. The tile/stipple and clip origins are interpreted relative to the jpayne@69: origin of whatever destination drawable is specified in a graphics request. jpayne@69: The tile pixmap must have the same root and depth as the gcontext (or a Match error results). jpayne@69: The stipple pixmap must have depth one and must have the same root as the gcontext (or a jpayne@69: Match error results). For fill-style Stippled (but not fill-style jpayne@69: OpaqueStippled), the stipple pattern is tiled in a single plane and acts as an jpayne@69: additional clip mask to be ANDed with the clip-mask. jpayne@69: Any size pixmap can be used for tiling or stippling, although some sizes may be faster to use than jpayne@69: others. */ jpayne@69: jpayne@69: XCB_GC_TILE_STIPPLE_ORIGIN_X = 4096, jpayne@69: /**< TODO */ jpayne@69: jpayne@69: XCB_GC_TILE_STIPPLE_ORIGIN_Y = 8192, jpayne@69: /**< TODO */ jpayne@69: jpayne@69: XCB_GC_FONT = 16384, jpayne@69: /**< Which font to use for the `ImageText8` and `ImageText16` requests. */ jpayne@69: jpayne@69: XCB_GC_SUBWINDOW_MODE = 32768, jpayne@69: /**< For ClipByChildren, both source and destination windows are additionally jpayne@69: clipped by all viewable InputOutput children. For IncludeInferiors, neither jpayne@69: source nor destination window is jpayne@69: clipped by inferiors. This will result in including subwindow contents in the source and drawing jpayne@69: through subwindow boundaries of the destination. The use of IncludeInferiors with a source or jpayne@69: destination window of one depth with mapped inferiors of differing depth is not illegal, but the jpayne@69: semantics is undefined by the core protocol. */ jpayne@69: jpayne@69: XCB_GC_GRAPHICS_EXPOSURES = 65536, jpayne@69: /**< Whether ExposureEvents should be generated (1) or not (0). jpayne@69: jpayne@69: The default is 1. */ jpayne@69: jpayne@69: XCB_GC_CLIP_ORIGIN_X = 131072, jpayne@69: /**< TODO */ jpayne@69: jpayne@69: XCB_GC_CLIP_ORIGIN_Y = 262144, jpayne@69: /**< TODO */ jpayne@69: jpayne@69: XCB_GC_CLIP_MASK = 524288, jpayne@69: /**< The clip-mask restricts writes to the destination drawable. Only pixels where the clip-mask has jpayne@69: bits set to 1 are drawn. Pixels are not drawn outside the area covered by the clip-mask or where jpayne@69: the clip-mask has bits set to 0. The clip-mask affects all graphics requests, but it does not clip jpayne@69: sources. The clip-mask origin is interpreted relative to the origin of whatever destination drawable is specified in a graphics request. If a pixmap is specified as the clip-mask, it must have jpayne@69: depth 1 and have the same root as the gcontext (or a Match error results). If clip-mask is None, jpayne@69: then pixels are always drawn, regardless of the clip origin. The clip-mask can also be set with the jpayne@69: SetClipRectangles request. */ jpayne@69: jpayne@69: XCB_GC_DASH_OFFSET = 1048576, jpayne@69: /**< TODO */ jpayne@69: jpayne@69: XCB_GC_DASH_LIST = 2097152, jpayne@69: /**< TODO */ jpayne@69: jpayne@69: XCB_GC_ARC_MODE = 4194304 jpayne@69: /**< TODO */ jpayne@69: jpayne@69: } xcb_gc_t; jpayne@69: jpayne@69: typedef enum xcb_gx_t { jpayne@69: XCB_GX_CLEAR = 0, jpayne@69: XCB_GX_AND = 1, jpayne@69: XCB_GX_AND_REVERSE = 2, jpayne@69: XCB_GX_COPY = 3, jpayne@69: XCB_GX_AND_INVERTED = 4, jpayne@69: XCB_GX_NOOP = 5, jpayne@69: XCB_GX_XOR = 6, jpayne@69: XCB_GX_OR = 7, jpayne@69: XCB_GX_NOR = 8, jpayne@69: XCB_GX_EQUIV = 9, jpayne@69: XCB_GX_INVERT = 10, jpayne@69: XCB_GX_OR_REVERSE = 11, jpayne@69: XCB_GX_COPY_INVERTED = 12, jpayne@69: XCB_GX_OR_INVERTED = 13, jpayne@69: XCB_GX_NAND = 14, jpayne@69: XCB_GX_SET = 15 jpayne@69: } xcb_gx_t; jpayne@69: jpayne@69: typedef enum xcb_line_style_t { jpayne@69: XCB_LINE_STYLE_SOLID = 0, jpayne@69: XCB_LINE_STYLE_ON_OFF_DASH = 1, jpayne@69: XCB_LINE_STYLE_DOUBLE_DASH = 2 jpayne@69: } xcb_line_style_t; jpayne@69: jpayne@69: typedef enum xcb_cap_style_t { jpayne@69: XCB_CAP_STYLE_NOT_LAST = 0, jpayne@69: XCB_CAP_STYLE_BUTT = 1, jpayne@69: XCB_CAP_STYLE_ROUND = 2, jpayne@69: XCB_CAP_STYLE_PROJECTING = 3 jpayne@69: } xcb_cap_style_t; jpayne@69: jpayne@69: typedef enum xcb_join_style_t { jpayne@69: XCB_JOIN_STYLE_MITER = 0, jpayne@69: XCB_JOIN_STYLE_ROUND = 1, jpayne@69: XCB_JOIN_STYLE_BEVEL = 2 jpayne@69: } xcb_join_style_t; jpayne@69: jpayne@69: typedef enum xcb_fill_style_t { jpayne@69: XCB_FILL_STYLE_SOLID = 0, jpayne@69: XCB_FILL_STYLE_TILED = 1, jpayne@69: XCB_FILL_STYLE_STIPPLED = 2, jpayne@69: XCB_FILL_STYLE_OPAQUE_STIPPLED = 3 jpayne@69: } xcb_fill_style_t; jpayne@69: jpayne@69: typedef enum xcb_fill_rule_t { jpayne@69: XCB_FILL_RULE_EVEN_ODD = 0, jpayne@69: XCB_FILL_RULE_WINDING = 1 jpayne@69: } xcb_fill_rule_t; jpayne@69: jpayne@69: typedef enum xcb_subwindow_mode_t { jpayne@69: XCB_SUBWINDOW_MODE_CLIP_BY_CHILDREN = 0, jpayne@69: XCB_SUBWINDOW_MODE_INCLUDE_INFERIORS = 1 jpayne@69: } xcb_subwindow_mode_t; jpayne@69: jpayne@69: typedef enum xcb_arc_mode_t { jpayne@69: XCB_ARC_MODE_CHORD = 0, jpayne@69: XCB_ARC_MODE_PIE_SLICE = 1 jpayne@69: } xcb_arc_mode_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_gc_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_gc_value_list_t { jpayne@69: uint32_t function; jpayne@69: uint32_t plane_mask; jpayne@69: uint32_t foreground; jpayne@69: uint32_t background; jpayne@69: uint32_t line_width; jpayne@69: uint32_t line_style; jpayne@69: uint32_t cap_style; jpayne@69: uint32_t join_style; jpayne@69: uint32_t fill_style; jpayne@69: uint32_t fill_rule; jpayne@69: xcb_pixmap_t tile; jpayne@69: xcb_pixmap_t stipple; jpayne@69: int32_t tile_stipple_x_origin; jpayne@69: int32_t tile_stipple_y_origin; jpayne@69: xcb_font_t font; jpayne@69: uint32_t subwindow_mode; jpayne@69: xcb_bool32_t graphics_exposures; jpayne@69: int32_t clip_x_origin; jpayne@69: int32_t clip_y_origin; jpayne@69: xcb_pixmap_t clip_mask; jpayne@69: uint32_t dash_offset; jpayne@69: uint32_t dashes; jpayne@69: uint32_t arc_mode; jpayne@69: } xcb_create_gc_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_gc. */ jpayne@69: #define XCB_CREATE_GC 55 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_gc_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_gc_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_gcontext_t cid; jpayne@69: xcb_drawable_t drawable; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_create_gc_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_gc_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_gc_value_list_t { jpayne@69: uint32_t function; jpayne@69: uint32_t plane_mask; jpayne@69: uint32_t foreground; jpayne@69: uint32_t background; jpayne@69: uint32_t line_width; jpayne@69: uint32_t line_style; jpayne@69: uint32_t cap_style; jpayne@69: uint32_t join_style; jpayne@69: uint32_t fill_style; jpayne@69: uint32_t fill_rule; jpayne@69: xcb_pixmap_t tile; jpayne@69: xcb_pixmap_t stipple; jpayne@69: int32_t tile_stipple_x_origin; jpayne@69: int32_t tile_stipple_y_origin; jpayne@69: xcb_font_t font; jpayne@69: uint32_t subwindow_mode; jpayne@69: xcb_bool32_t graphics_exposures; jpayne@69: int32_t clip_x_origin; jpayne@69: int32_t clip_y_origin; jpayne@69: xcb_pixmap_t clip_mask; jpayne@69: uint32_t dash_offset; jpayne@69: uint32_t dashes; jpayne@69: uint32_t arc_mode; jpayne@69: } xcb_change_gc_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_gc. */ jpayne@69: #define XCB_CHANGE_GC 56 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_gc_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_gc_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_gcontext_t gc; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_change_gc_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_copy_gc. */ jpayne@69: #define XCB_COPY_GC 57 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_copy_gc_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_copy_gc_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_gcontext_t src_gc; jpayne@69: xcb_gcontext_t dst_gc; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_copy_gc_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_dashes. */ jpayne@69: #define XCB_SET_DASHES 58 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_dashes_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_dashes_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_gcontext_t gc; jpayne@69: uint16_t dash_offset; jpayne@69: uint16_t dashes_len; jpayne@69: } xcb_set_dashes_request_t; jpayne@69: jpayne@69: typedef enum xcb_clip_ordering_t { jpayne@69: XCB_CLIP_ORDERING_UNSORTED = 0, jpayne@69: XCB_CLIP_ORDERING_Y_SORTED = 1, jpayne@69: XCB_CLIP_ORDERING_YX_SORTED = 2, jpayne@69: XCB_CLIP_ORDERING_YX_BANDED = 3 jpayne@69: } xcb_clip_ordering_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_clip_rectangles. */ jpayne@69: #define XCB_SET_CLIP_RECTANGLES 59 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_clip_rectangles_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_clip_rectangles_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t ordering; jpayne@69: uint16_t length; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t clip_x_origin; jpayne@69: int16_t clip_y_origin; jpayne@69: } xcb_set_clip_rectangles_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_free_gc. */ jpayne@69: #define XCB_FREE_GC 60 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_free_gc_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_free_gc_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_free_gc_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_clear_area. */ jpayne@69: #define XCB_CLEAR_AREA 61 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_clear_area_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_clear_area_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t exposures; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_clear_area_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_copy_area. */ jpayne@69: #define XCB_COPY_AREA 62 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_copy_area_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_copy_area_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t src_drawable; jpayne@69: xcb_drawable_t dst_drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t src_x; jpayne@69: int16_t src_y; jpayne@69: int16_t dst_x; jpayne@69: int16_t dst_y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_copy_area_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_copy_plane. */ jpayne@69: #define XCB_COPY_PLANE 63 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_copy_plane_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_copy_plane_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t src_drawable; jpayne@69: xcb_drawable_t dst_drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t src_x; jpayne@69: int16_t src_y; jpayne@69: int16_t dst_x; jpayne@69: int16_t dst_y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint32_t bit_plane; jpayne@69: } xcb_copy_plane_request_t; jpayne@69: jpayne@69: typedef enum xcb_coord_mode_t { jpayne@69: XCB_COORD_MODE_ORIGIN = 0, jpayne@69: /**< Treats all coordinates as relative to the origin. */ jpayne@69: jpayne@69: XCB_COORD_MODE_PREVIOUS = 1 jpayne@69: /**< Treats all coordinates after the first as relative to the previous coordinate. */ jpayne@69: jpayne@69: } xcb_coord_mode_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_point. */ jpayne@69: #define XCB_POLY_POINT 64 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_point_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_point_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t coordinate_mode; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_point_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_line. */ jpayne@69: #define XCB_POLY_LINE 65 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_line_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_line_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t coordinate_mode; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_line_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_segment_t jpayne@69: **/ jpayne@69: typedef struct xcb_segment_t { jpayne@69: int16_t x1; jpayne@69: int16_t y1; jpayne@69: int16_t x2; jpayne@69: int16_t y2; jpayne@69: } xcb_segment_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_segment_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_segment_iterator_t { jpayne@69: xcb_segment_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_segment_iterator_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_segment. */ jpayne@69: #define XCB_POLY_SEGMENT 66 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_segment_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_segment_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_segment_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_rectangle. */ jpayne@69: #define XCB_POLY_RECTANGLE 67 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_rectangle_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_rectangle_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_rectangle_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_arc. */ jpayne@69: #define XCB_POLY_ARC 68 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_arc_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_arc_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_arc_request_t; jpayne@69: jpayne@69: typedef enum xcb_poly_shape_t { jpayne@69: XCB_POLY_SHAPE_COMPLEX = 0, jpayne@69: XCB_POLY_SHAPE_NONCONVEX = 1, jpayne@69: XCB_POLY_SHAPE_CONVEX = 2 jpayne@69: } xcb_poly_shape_t; jpayne@69: jpayne@69: /** Opcode for xcb_fill_poly. */ jpayne@69: #define XCB_FILL_POLY 69 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_fill_poly_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_fill_poly_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: uint8_t shape; jpayne@69: uint8_t coordinate_mode; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_fill_poly_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_fill_rectangle. */ jpayne@69: #define XCB_POLY_FILL_RECTANGLE 70 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_fill_rectangle_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_fill_rectangle_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_fill_rectangle_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_fill_arc. */ jpayne@69: #define XCB_POLY_FILL_ARC 71 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_fill_arc_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_fill_arc_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: } xcb_poly_fill_arc_request_t; jpayne@69: jpayne@69: typedef enum xcb_image_format_t { jpayne@69: XCB_IMAGE_FORMAT_XY_BITMAP = 0, jpayne@69: XCB_IMAGE_FORMAT_XY_PIXMAP = 1, jpayne@69: XCB_IMAGE_FORMAT_Z_PIXMAP = 2 jpayne@69: } xcb_image_format_t; jpayne@69: jpayne@69: /** Opcode for xcb_put_image. */ jpayne@69: #define XCB_PUT_IMAGE 72 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_put_image_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_put_image_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t format; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: int16_t dst_x; jpayne@69: int16_t dst_y; jpayne@69: uint8_t left_pad; jpayne@69: uint8_t depth; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_put_image_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_image_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_image_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_image_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_image. */ jpayne@69: #define XCB_GET_IMAGE 73 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_image_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_image_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t format; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: uint32_t plane_mask; jpayne@69: } xcb_get_image_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_image_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_image_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t depth; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_visualid_t visual; jpayne@69: uint8_t pad0[20]; jpayne@69: } xcb_get_image_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_text_8. */ jpayne@69: #define XCB_POLY_TEXT_8 74 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_text_8_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_text_8_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_poly_text_8_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_poly_text_16. */ jpayne@69: #define XCB_POLY_TEXT_16 75 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_poly_text_16_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_poly_text_16_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_poly_text_16_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_image_text_8. */ jpayne@69: #define XCB_IMAGE_TEXT_8 76 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_image_text_8_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_image_text_8_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t string_len; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_image_text_8_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_image_text_16. */ jpayne@69: #define XCB_IMAGE_TEXT_16 77 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_image_text_16_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_image_text_16_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t string_len; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: xcb_gcontext_t gc; jpayne@69: int16_t x; jpayne@69: int16_t y; jpayne@69: } xcb_image_text_16_request_t; jpayne@69: jpayne@69: typedef enum xcb_colormap_alloc_t { jpayne@69: XCB_COLORMAP_ALLOC_NONE = 0, jpayne@69: XCB_COLORMAP_ALLOC_ALL = 1 jpayne@69: } xcb_colormap_alloc_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_colormap. */ jpayne@69: #define XCB_CREATE_COLORMAP 78 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_colormap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_colormap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t alloc; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t mid; jpayne@69: xcb_window_t window; jpayne@69: xcb_visualid_t visual; jpayne@69: } xcb_create_colormap_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_free_colormap. */ jpayne@69: #define XCB_FREE_COLORMAP 79 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_free_colormap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_free_colormap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: } xcb_free_colormap_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_copy_colormap_and_free. */ jpayne@69: #define XCB_COPY_COLORMAP_AND_FREE 80 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_copy_colormap_and_free_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_copy_colormap_and_free_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t mid; jpayne@69: xcb_colormap_t src_cmap; jpayne@69: } xcb_copy_colormap_and_free_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_install_colormap. */ jpayne@69: #define XCB_INSTALL_COLORMAP 81 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_install_colormap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_install_colormap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: } xcb_install_colormap_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_uninstall_colormap. */ jpayne@69: #define XCB_UNINSTALL_COLORMAP 82 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_uninstall_colormap_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_uninstall_colormap_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: } xcb_uninstall_colormap_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_installed_colormaps_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_installed_colormaps_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_list_installed_colormaps_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_list_installed_colormaps. */ jpayne@69: #define XCB_LIST_INSTALLED_COLORMAPS 83 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_installed_colormaps_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_installed_colormaps_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_list_installed_colormaps_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_installed_colormaps_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_installed_colormaps_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t cmaps_len; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_list_installed_colormaps_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_alloc_color_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_alloc_color. */ jpayne@69: #define XCB_ALLOC_COLOR 84 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint16_t red; jpayne@69: uint16_t green; jpayne@69: uint16_t blue; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_alloc_color_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t red; jpayne@69: uint16_t green; jpayne@69: uint16_t blue; jpayne@69: uint8_t pad1[2]; jpayne@69: uint32_t pixel; jpayne@69: } xcb_alloc_color_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_named_color_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_named_color_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_alloc_named_color_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_alloc_named_color. */ jpayne@69: #define XCB_ALLOC_NAMED_COLOR 85 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_named_color_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_named_color_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_alloc_named_color_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_named_color_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_named_color_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t pixel; jpayne@69: uint16_t exact_red; jpayne@69: uint16_t exact_green; jpayne@69: uint16_t exact_blue; jpayne@69: uint16_t visual_red; jpayne@69: uint16_t visual_green; jpayne@69: uint16_t visual_blue; jpayne@69: } xcb_alloc_named_color_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_cells_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_cells_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_alloc_color_cells_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_alloc_color_cells. */ jpayne@69: #define XCB_ALLOC_COLOR_CELLS 86 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_cells_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_cells_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t contiguous; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint16_t colors; jpayne@69: uint16_t planes; jpayne@69: } xcb_alloc_color_cells_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_cells_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_cells_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t pixels_len; jpayne@69: uint16_t masks_len; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_alloc_color_cells_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_planes_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_planes_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_alloc_color_planes_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_alloc_color_planes. */ jpayne@69: #define XCB_ALLOC_COLOR_PLANES 87 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_planes_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_planes_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t contiguous; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint16_t colors; jpayne@69: uint16_t reds; jpayne@69: uint16_t greens; jpayne@69: uint16_t blues; jpayne@69: } xcb_alloc_color_planes_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_alloc_color_planes_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_alloc_color_planes_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t pixels_len; jpayne@69: uint8_t pad1[2]; jpayne@69: uint32_t red_mask; jpayne@69: uint32_t green_mask; jpayne@69: uint32_t blue_mask; jpayne@69: uint8_t pad2[8]; jpayne@69: } xcb_alloc_color_planes_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_free_colors. */ jpayne@69: #define XCB_FREE_COLORS 88 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_free_colors_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_free_colors_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint32_t plane_mask; jpayne@69: } xcb_free_colors_request_t; jpayne@69: jpayne@69: typedef enum xcb_color_flag_t { jpayne@69: XCB_COLOR_FLAG_RED = 1, jpayne@69: XCB_COLOR_FLAG_GREEN = 2, jpayne@69: XCB_COLOR_FLAG_BLUE = 4 jpayne@69: } xcb_color_flag_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_coloritem_t jpayne@69: **/ jpayne@69: typedef struct xcb_coloritem_t { jpayne@69: uint32_t pixel; jpayne@69: uint16_t red; jpayne@69: uint16_t green; jpayne@69: uint16_t blue; jpayne@69: uint8_t flags; jpayne@69: uint8_t pad0; jpayne@69: } xcb_coloritem_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_coloritem_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_coloritem_iterator_t { jpayne@69: xcb_coloritem_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_coloritem_iterator_t; jpayne@69: jpayne@69: /** Opcode for xcb_store_colors. */ jpayne@69: #define XCB_STORE_COLORS 89 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_store_colors_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_store_colors_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: } xcb_store_colors_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_store_named_color. */ jpayne@69: #define XCB_STORE_NAMED_COLOR 90 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_store_named_color_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_store_named_color_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t flags; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint32_t pixel; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_store_named_color_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_rgb_t jpayne@69: **/ jpayne@69: typedef struct xcb_rgb_t { jpayne@69: uint16_t red; jpayne@69: uint16_t green; jpayne@69: uint16_t blue; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_rgb_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_rgb_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_rgb_iterator_t { jpayne@69: xcb_rgb_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_rgb_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_colors_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_colors_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_colors_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_colors. */ jpayne@69: #define XCB_QUERY_COLORS 91 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_colors_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_colors_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: } xcb_query_colors_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_colors_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_colors_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t colors_len; jpayne@69: uint8_t pad1[22]; jpayne@69: } xcb_query_colors_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_lookup_color_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_lookup_color_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_lookup_color_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_lookup_color. */ jpayne@69: #define XCB_LOOKUP_COLOR 92 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_lookup_color_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_lookup_color_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_colormap_t cmap; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_lookup_color_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_lookup_color_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_lookup_color_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t exact_red; jpayne@69: uint16_t exact_green; jpayne@69: uint16_t exact_blue; jpayne@69: uint16_t visual_red; jpayne@69: uint16_t visual_green; jpayne@69: uint16_t visual_blue; jpayne@69: } xcb_lookup_color_reply_t; jpayne@69: jpayne@69: typedef enum xcb_pixmap_enum_t { jpayne@69: XCB_PIXMAP_NONE = 0 jpayne@69: } xcb_pixmap_enum_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_cursor. */ jpayne@69: #define XCB_CREATE_CURSOR 93 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_cursor_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_cursor_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_cursor_t cid; jpayne@69: xcb_pixmap_t source; jpayne@69: xcb_pixmap_t mask; jpayne@69: uint16_t fore_red; jpayne@69: uint16_t fore_green; jpayne@69: uint16_t fore_blue; jpayne@69: uint16_t back_red; jpayne@69: uint16_t back_green; jpayne@69: uint16_t back_blue; jpayne@69: uint16_t x; jpayne@69: uint16_t y; jpayne@69: } xcb_create_cursor_request_t; jpayne@69: jpayne@69: typedef enum xcb_font_enum_t { jpayne@69: XCB_FONT_NONE = 0 jpayne@69: } xcb_font_enum_t; jpayne@69: jpayne@69: /** Opcode for xcb_create_glyph_cursor. */ jpayne@69: #define XCB_CREATE_GLYPH_CURSOR 94 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_create_glyph_cursor_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_create_glyph_cursor_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_cursor_t cid; jpayne@69: xcb_font_t source_font; jpayne@69: xcb_font_t mask_font; jpayne@69: uint16_t source_char; jpayne@69: uint16_t mask_char; jpayne@69: uint16_t fore_red; jpayne@69: uint16_t fore_green; jpayne@69: uint16_t fore_blue; jpayne@69: uint16_t back_red; jpayne@69: uint16_t back_green; jpayne@69: uint16_t back_blue; jpayne@69: } xcb_create_glyph_cursor_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_free_cursor. */ jpayne@69: #define XCB_FREE_CURSOR 95 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_free_cursor_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_free_cursor_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_cursor_t cursor; jpayne@69: } xcb_free_cursor_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_recolor_cursor. */ jpayne@69: #define XCB_RECOLOR_CURSOR 96 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_recolor_cursor_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_recolor_cursor_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_cursor_t cursor; jpayne@69: uint16_t fore_red; jpayne@69: uint16_t fore_green; jpayne@69: uint16_t fore_blue; jpayne@69: uint16_t back_red; jpayne@69: uint16_t back_green; jpayne@69: uint16_t back_blue; jpayne@69: } xcb_recolor_cursor_request_t; jpayne@69: jpayne@69: typedef enum xcb_query_shape_of_t { jpayne@69: XCB_QUERY_SHAPE_OF_LARGEST_CURSOR = 0, jpayne@69: XCB_QUERY_SHAPE_OF_FASTEST_TILE = 1, jpayne@69: XCB_QUERY_SHAPE_OF_FASTEST_STIPPLE = 2 jpayne@69: } xcb_query_shape_of_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_best_size_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_best_size_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_best_size_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_best_size. */ jpayne@69: #define XCB_QUERY_BEST_SIZE 97 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_best_size_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_best_size_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t _class; jpayne@69: uint16_t length; jpayne@69: xcb_drawable_t drawable; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_query_best_size_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_best_size_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_best_size_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_query_best_size_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_extension_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_extension_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_query_extension_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_query_extension. */ jpayne@69: #define XCB_QUERY_EXTENSION 98 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_extension_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_extension_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: uint16_t name_len; jpayne@69: uint8_t pad1[2]; jpayne@69: } xcb_query_extension_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_query_extension_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_query_extension_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t present; jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t first_event; jpayne@69: uint8_t first_error; jpayne@69: } xcb_query_extension_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_extensions_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_extensions_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_list_extensions_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_list_extensions. */ jpayne@69: #define XCB_LIST_EXTENSIONS 99 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_extensions_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_extensions_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_list_extensions_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_extensions_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_extensions_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t names_len; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t pad0[24]; jpayne@69: } xcb_list_extensions_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_keyboard_mapping. */ jpayne@69: #define XCB_CHANGE_KEYBOARD_MAPPING 100 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_keyboard_mapping_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_keyboard_mapping_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t keycode_count; jpayne@69: uint16_t length; jpayne@69: xcb_keycode_t first_keycode; jpayne@69: uint8_t keysyms_per_keycode; jpayne@69: uint8_t pad0[2]; jpayne@69: } xcb_change_keyboard_mapping_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_keyboard_mapping_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_keyboard_mapping_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_keyboard_mapping_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_keyboard_mapping. */ jpayne@69: #define XCB_GET_KEYBOARD_MAPPING 101 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_keyboard_mapping_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_keyboard_mapping_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_keycode_t first_keycode; jpayne@69: uint8_t count; jpayne@69: } xcb_get_keyboard_mapping_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_keyboard_mapping_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_keyboard_mapping_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t keysyms_per_keycode; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t pad0[24]; jpayne@69: } xcb_get_keyboard_mapping_reply_t; jpayne@69: jpayne@69: typedef enum xcb_kb_t { jpayne@69: XCB_KB_KEY_CLICK_PERCENT = 1, jpayne@69: XCB_KB_BELL_PERCENT = 2, jpayne@69: XCB_KB_BELL_PITCH = 4, jpayne@69: XCB_KB_BELL_DURATION = 8, jpayne@69: XCB_KB_LED = 16, jpayne@69: XCB_KB_LED_MODE = 32, jpayne@69: XCB_KB_KEY = 64, jpayne@69: XCB_KB_AUTO_REPEAT_MODE = 128 jpayne@69: } xcb_kb_t; jpayne@69: jpayne@69: typedef enum xcb_led_mode_t { jpayne@69: XCB_LED_MODE_OFF = 0, jpayne@69: XCB_LED_MODE_ON = 1 jpayne@69: } xcb_led_mode_t; jpayne@69: jpayne@69: typedef enum xcb_auto_repeat_mode_t { jpayne@69: XCB_AUTO_REPEAT_MODE_OFF = 0, jpayne@69: XCB_AUTO_REPEAT_MODE_ON = 1, jpayne@69: XCB_AUTO_REPEAT_MODE_DEFAULT = 2 jpayne@69: } xcb_auto_repeat_mode_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_keyboard_control_value_list_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_keyboard_control_value_list_t { jpayne@69: int32_t key_click_percent; jpayne@69: int32_t bell_percent; jpayne@69: int32_t bell_pitch; jpayne@69: int32_t bell_duration; jpayne@69: uint32_t led; jpayne@69: uint32_t led_mode; jpayne@69: xcb_keycode32_t key; jpayne@69: uint32_t auto_repeat_mode; jpayne@69: } xcb_change_keyboard_control_value_list_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_keyboard_control. */ jpayne@69: #define XCB_CHANGE_KEYBOARD_CONTROL 102 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_keyboard_control_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_keyboard_control_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: uint32_t value_mask; jpayne@69: } xcb_change_keyboard_control_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_keyboard_control_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_keyboard_control_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_keyboard_control_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_keyboard_control. */ jpayne@69: #define XCB_GET_KEYBOARD_CONTROL 103 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_keyboard_control_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_keyboard_control_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_keyboard_control_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_keyboard_control_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_keyboard_control_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t global_auto_repeat; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t led_mask; jpayne@69: uint8_t key_click_percent; jpayne@69: uint8_t bell_percent; jpayne@69: uint16_t bell_pitch; jpayne@69: uint16_t bell_duration; jpayne@69: uint8_t pad0[2]; jpayne@69: uint8_t auto_repeats[32]; jpayne@69: } xcb_get_keyboard_control_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_bell. */ jpayne@69: #define XCB_BELL 104 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_bell_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_bell_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: int8_t percent; jpayne@69: uint16_t length; jpayne@69: } xcb_bell_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_pointer_control. */ jpayne@69: #define XCB_CHANGE_POINTER_CONTROL 105 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_pointer_control_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_pointer_control_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: int16_t acceleration_numerator; jpayne@69: int16_t acceleration_denominator; jpayne@69: int16_t threshold; jpayne@69: uint8_t do_acceleration; jpayne@69: uint8_t do_threshold; jpayne@69: } xcb_change_pointer_control_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_pointer_control_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_pointer_control_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_pointer_control_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_pointer_control. */ jpayne@69: #define XCB_GET_POINTER_CONTROL 106 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_pointer_control_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_pointer_control_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_pointer_control_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_pointer_control_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_pointer_control_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t acceleration_numerator; jpayne@69: uint16_t acceleration_denominator; jpayne@69: uint16_t threshold; jpayne@69: uint8_t pad1[18]; jpayne@69: } xcb_get_pointer_control_reply_t; jpayne@69: jpayne@69: typedef enum xcb_blanking_t { jpayne@69: XCB_BLANKING_NOT_PREFERRED = 0, jpayne@69: XCB_BLANKING_PREFERRED = 1, jpayne@69: XCB_BLANKING_DEFAULT = 2 jpayne@69: } xcb_blanking_t; jpayne@69: jpayne@69: typedef enum xcb_exposures_t { jpayne@69: XCB_EXPOSURES_NOT_ALLOWED = 0, jpayne@69: XCB_EXPOSURES_ALLOWED = 1, jpayne@69: XCB_EXPOSURES_DEFAULT = 2 jpayne@69: } xcb_exposures_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_screen_saver. */ jpayne@69: #define XCB_SET_SCREEN_SAVER 107 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_screen_saver_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_screen_saver_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: int16_t timeout; jpayne@69: int16_t interval; jpayne@69: uint8_t prefer_blanking; jpayne@69: uint8_t allow_exposures; jpayne@69: } xcb_set_screen_saver_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_screen_saver_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_screen_saver_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_screen_saver_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_screen_saver. */ jpayne@69: #define XCB_GET_SCREEN_SAVER 108 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_screen_saver_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_screen_saver_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_screen_saver_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_screen_saver_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_screen_saver_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t timeout; jpayne@69: uint16_t interval; jpayne@69: uint8_t prefer_blanking; jpayne@69: uint8_t allow_exposures; jpayne@69: uint8_t pad1[18]; jpayne@69: } xcb_get_screen_saver_reply_t; jpayne@69: jpayne@69: typedef enum xcb_host_mode_t { jpayne@69: XCB_HOST_MODE_INSERT = 0, jpayne@69: XCB_HOST_MODE_DELETE = 1 jpayne@69: } xcb_host_mode_t; jpayne@69: jpayne@69: typedef enum xcb_family_t { jpayne@69: XCB_FAMILY_INTERNET = 0, jpayne@69: XCB_FAMILY_DECNET = 1, jpayne@69: XCB_FAMILY_CHAOS = 2, jpayne@69: XCB_FAMILY_SERVER_INTERPRETED = 5, jpayne@69: XCB_FAMILY_INTERNET_6 = 6 jpayne@69: } xcb_family_t; jpayne@69: jpayne@69: /** Opcode for xcb_change_hosts. */ jpayne@69: #define XCB_CHANGE_HOSTS 109 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_change_hosts_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_change_hosts_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: uint8_t family; jpayne@69: uint8_t pad0; jpayne@69: uint16_t address_len; jpayne@69: } xcb_change_hosts_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_host_t jpayne@69: **/ jpayne@69: typedef struct xcb_host_t { jpayne@69: uint8_t family; jpayne@69: uint8_t pad0; jpayne@69: uint16_t address_len; jpayne@69: } xcb_host_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_host_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_host_iterator_t { jpayne@69: xcb_host_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_host_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_hosts_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_hosts_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_list_hosts_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_list_hosts. */ jpayne@69: #define XCB_LIST_HOSTS 110 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_hosts_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_hosts_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_list_hosts_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_list_hosts_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_list_hosts_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t mode; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t hosts_len; jpayne@69: uint8_t pad0[22]; jpayne@69: } xcb_list_hosts_reply_t; jpayne@69: jpayne@69: typedef enum xcb_access_control_t { jpayne@69: XCB_ACCESS_CONTROL_DISABLE = 0, jpayne@69: XCB_ACCESS_CONTROL_ENABLE = 1 jpayne@69: } xcb_access_control_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_access_control. */ jpayne@69: #define XCB_SET_ACCESS_CONTROL 111 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_access_control_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_access_control_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: } xcb_set_access_control_request_t; jpayne@69: jpayne@69: typedef enum xcb_close_down_t { jpayne@69: XCB_CLOSE_DOWN_DESTROY_ALL = 0, jpayne@69: XCB_CLOSE_DOWN_RETAIN_PERMANENT = 1, jpayne@69: XCB_CLOSE_DOWN_RETAIN_TEMPORARY = 2 jpayne@69: } xcb_close_down_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_close_down_mode. */ jpayne@69: #define XCB_SET_CLOSE_DOWN_MODE 112 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_close_down_mode_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_close_down_mode_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: } xcb_set_close_down_mode_request_t; jpayne@69: jpayne@69: typedef enum xcb_kill_t { jpayne@69: XCB_KILL_ALL_TEMPORARY = 0 jpayne@69: } xcb_kill_t; jpayne@69: jpayne@69: /** Opcode for xcb_kill_client. */ jpayne@69: #define XCB_KILL_CLIENT 113 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_kill_client_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_kill_client_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: uint32_t resource; jpayne@69: } xcb_kill_client_request_t; jpayne@69: jpayne@69: /** Opcode for xcb_rotate_properties. */ jpayne@69: #define XCB_ROTATE_PROPERTIES 114 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_rotate_properties_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_rotate_properties_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: uint16_t atoms_len; jpayne@69: int16_t delta; jpayne@69: } xcb_rotate_properties_request_t; jpayne@69: jpayne@69: typedef enum xcb_screen_saver_t { jpayne@69: XCB_SCREEN_SAVER_RESET = 0, jpayne@69: XCB_SCREEN_SAVER_ACTIVE = 1 jpayne@69: } xcb_screen_saver_t; jpayne@69: jpayne@69: /** Opcode for xcb_force_screen_saver. */ jpayne@69: #define XCB_FORCE_SCREEN_SAVER 115 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_force_screen_saver_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_force_screen_saver_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t mode; jpayne@69: uint16_t length; jpayne@69: } xcb_force_screen_saver_request_t; jpayne@69: jpayne@69: typedef enum xcb_mapping_status_t { jpayne@69: XCB_MAPPING_STATUS_SUCCESS = 0, jpayne@69: XCB_MAPPING_STATUS_BUSY = 1, jpayne@69: XCB_MAPPING_STATUS_FAILURE = 2 jpayne@69: } xcb_mapping_status_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_pointer_mapping_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_pointer_mapping_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_set_pointer_mapping_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_pointer_mapping. */ jpayne@69: #define XCB_SET_POINTER_MAPPING 116 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_pointer_mapping_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_pointer_mapping_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t map_len; jpayne@69: uint16_t length; jpayne@69: } xcb_set_pointer_mapping_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_pointer_mapping_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_pointer_mapping_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t status; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: } xcb_set_pointer_mapping_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_pointer_mapping_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_pointer_mapping_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_pointer_mapping_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_pointer_mapping. */ jpayne@69: #define XCB_GET_POINTER_MAPPING 117 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_pointer_mapping_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_pointer_mapping_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_pointer_mapping_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_pointer_mapping_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_pointer_mapping_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t map_len; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t pad0[24]; jpayne@69: } xcb_get_pointer_mapping_reply_t; jpayne@69: jpayne@69: typedef enum xcb_map_index_t { jpayne@69: XCB_MAP_INDEX_SHIFT = 0, jpayne@69: XCB_MAP_INDEX_LOCK = 1, jpayne@69: XCB_MAP_INDEX_CONTROL = 2, jpayne@69: XCB_MAP_INDEX_1 = 3, jpayne@69: XCB_MAP_INDEX_2 = 4, jpayne@69: XCB_MAP_INDEX_3 = 5, jpayne@69: XCB_MAP_INDEX_4 = 6, jpayne@69: XCB_MAP_INDEX_5 = 7 jpayne@69: } xcb_map_index_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_modifier_mapping_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_modifier_mapping_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_set_modifier_mapping_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_set_modifier_mapping. */ jpayne@69: #define XCB_SET_MODIFIER_MAPPING 118 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_modifier_mapping_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_modifier_mapping_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t keycodes_per_modifier; jpayne@69: uint16_t length; jpayne@69: } xcb_set_modifier_mapping_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_set_modifier_mapping_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_set_modifier_mapping_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t status; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: } xcb_set_modifier_mapping_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_modifier_mapping_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_modifier_mapping_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_get_modifier_mapping_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_get_modifier_mapping. */ jpayne@69: #define XCB_GET_MODIFIER_MAPPING 119 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_modifier_mapping_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_modifier_mapping_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_get_modifier_mapping_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_get_modifier_mapping_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_get_modifier_mapping_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t keycodes_per_modifier; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint8_t pad0[24]; jpayne@69: } xcb_get_modifier_mapping_reply_t; jpayne@69: jpayne@69: /** Opcode for xcb_no_operation. */ jpayne@69: #define XCB_NO_OPERATION 127 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_no_operation_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_no_operation_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t pad0; jpayne@69: uint16_t length; jpayne@69: } xcb_no_operation_request_t; jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_char2b_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_char2b_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_char2b_next (xcb_char2b_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_char2b_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_char2b_end (xcb_char2b_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_window_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_window_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_window_next (xcb_window_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_window_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_window_end (xcb_window_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_pixmap_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_pixmap_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_pixmap_next (xcb_pixmap_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_pixmap_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_pixmap_end (xcb_pixmap_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_cursor_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_cursor_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_cursor_next (xcb_cursor_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_cursor_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_cursor_end (xcb_cursor_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_font_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_font_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_font_next (xcb_font_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_font_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_font_end (xcb_font_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_gcontext_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_gcontext_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_gcontext_next (xcb_gcontext_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_gcontext_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_gcontext_end (xcb_gcontext_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_colormap_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_colormap_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_colormap_next (xcb_colormap_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_colormap_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_colormap_end (xcb_colormap_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_atom_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_atom_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_atom_next (xcb_atom_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_atom_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_atom_end (xcb_atom_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_drawable_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_drawable_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_drawable_next (xcb_drawable_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_drawable_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_drawable_end (xcb_drawable_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_fontable_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_fontable_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_fontable_next (xcb_fontable_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_fontable_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_fontable_end (xcb_fontable_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_bool32_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_bool32_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_bool32_next (xcb_bool32_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_bool32_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_bool32_end (xcb_bool32_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_visualid_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_visualid_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_visualid_next (xcb_visualid_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_visualid_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_visualid_end (xcb_visualid_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_timestamp_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_timestamp_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_timestamp_next (xcb_timestamp_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_timestamp_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_timestamp_end (xcb_timestamp_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_keysym_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_keysym_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_keysym_next (xcb_keysym_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_keysym_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_keysym_end (xcb_keysym_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_keycode_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_keycode_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_keycode_next (xcb_keycode_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_keycode_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_keycode_end (xcb_keycode_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_keycode32_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_keycode32_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_keycode32_next (xcb_keycode32_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_keycode32_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_keycode32_end (xcb_keycode32_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_button_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_button_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_button_next (xcb_button_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_button_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_button_end (xcb_button_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_point_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_point_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_point_next (xcb_point_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_point_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_point_end (xcb_point_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_rectangle_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_rectangle_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_rectangle_next (xcb_rectangle_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_rectangle_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_rectangle_end (xcb_rectangle_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_arc_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_arc_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_arc_next (xcb_arc_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_arc_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_arc_end (xcb_arc_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_format_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_format_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_format_next (xcb_format_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_format_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_format_end (xcb_format_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_visualtype_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_visualtype_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_visualtype_next (xcb_visualtype_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_visualtype_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_visualtype_end (xcb_visualtype_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_depth_sizeof (const void *_buffer); jpayne@69: jpayne@69: xcb_visualtype_t * jpayne@69: xcb_depth_visuals (const xcb_depth_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_depth_visuals_length (const xcb_depth_t *R); jpayne@69: jpayne@69: xcb_visualtype_iterator_t jpayne@69: xcb_depth_visuals_iterator (const xcb_depth_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_depth_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_depth_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_depth_next (xcb_depth_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_depth_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_depth_end (xcb_depth_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_screen_sizeof (const void *_buffer); jpayne@69: jpayne@69: int jpayne@69: xcb_screen_allowed_depths_length (const xcb_screen_t *R); jpayne@69: jpayne@69: xcb_depth_iterator_t jpayne@69: xcb_screen_allowed_depths_iterator (const xcb_screen_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_screen_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_screen_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_screen_next (xcb_screen_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_screen_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_screen_end (xcb_screen_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_request_sizeof (const void *_buffer); jpayne@69: jpayne@69: char * jpayne@69: xcb_setup_request_authorization_protocol_name (const xcb_setup_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_request_authorization_protocol_name_length (const xcb_setup_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_request_authorization_protocol_name_end (const xcb_setup_request_t *R); jpayne@69: jpayne@69: char * jpayne@69: xcb_setup_request_authorization_protocol_data (const xcb_setup_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_request_authorization_protocol_data_length (const xcb_setup_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_request_authorization_protocol_data_end (const xcb_setup_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_setup_request_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_setup_request_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_setup_request_next (xcb_setup_request_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_setup_request_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_request_end (xcb_setup_request_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_failed_sizeof (const void *_buffer); jpayne@69: jpayne@69: char * jpayne@69: xcb_setup_failed_reason (const xcb_setup_failed_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_failed_reason_length (const xcb_setup_failed_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_failed_reason_end (const xcb_setup_failed_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_setup_failed_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_setup_failed_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_setup_failed_next (xcb_setup_failed_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_setup_failed_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_failed_end (xcb_setup_failed_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_authenticate_sizeof (const void *_buffer); jpayne@69: jpayne@69: char * jpayne@69: xcb_setup_authenticate_reason (const xcb_setup_authenticate_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_authenticate_reason_length (const xcb_setup_authenticate_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_authenticate_reason_end (const xcb_setup_authenticate_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_setup_authenticate_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_setup_authenticate_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_setup_authenticate_next (xcb_setup_authenticate_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_setup_authenticate_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_authenticate_end (xcb_setup_authenticate_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_sizeof (const void *_buffer); jpayne@69: jpayne@69: char * jpayne@69: xcb_setup_vendor (const xcb_setup_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_vendor_length (const xcb_setup_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_vendor_end (const xcb_setup_t *R); jpayne@69: jpayne@69: xcb_format_t * jpayne@69: xcb_setup_pixmap_formats (const xcb_setup_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_pixmap_formats_length (const xcb_setup_t *R); jpayne@69: jpayne@69: xcb_format_iterator_t jpayne@69: xcb_setup_pixmap_formats_iterator (const xcb_setup_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_setup_roots_length (const xcb_setup_t *R); jpayne@69: jpayne@69: xcb_screen_iterator_t jpayne@69: xcb_setup_roots_iterator (const xcb_setup_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_setup_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_setup_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_setup_next (xcb_setup_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_setup_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_setup_end (xcb_setup_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_client_message_data_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_client_message_data_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_client_message_data_next (xcb_client_message_data_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_client_message_data_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_client_message_data_end (xcb_client_message_data_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_create_window_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_create_window_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_create_window_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_create_window_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_create_window_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_create_window_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param depth Specifies the new window's depth (TODO: what unit?). jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the jpayne@69: * \a parent window. jpayne@69: * @param wid The ID with which you will refer to the new window, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param parent The parent window of the new window. jpayne@69: * @param x The X coordinate of the new window. jpayne@69: * @param y The Y coordinate of the new window. jpayne@69: * @param width The width of the new window. jpayne@69: * @param height The height of the new window. jpayne@69: * @param border_width TODO: jpayne@69: * \n jpayne@69: * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. jpayne@69: * @param _class A bitmask of #xcb_window_class_t values. jpayne@69: * @param _class \n jpayne@69: * @param visual Specifies the id for the new window's visual. jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the jpayne@69: * \a parent window. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates an unmapped window as child of the specified \a parent window. A jpayne@69: * CreateNotify event will be generated. The new window is placed on top in the jpayne@69: * stacking order with respect to siblings. jpayne@69: * jpayne@69: * The coordinate system has the X axis horizontal and the Y axis vertical with jpayne@69: * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms jpayne@69: * of pixels, and coincide with pixel centers. Each window and pixmap has its own jpayne@69: * coordinate system. For a window, the origin is inside the border at the inside, jpayne@69: * upper-left corner. jpayne@69: * jpayne@69: * The created window is not yet displayed (mapped), call `xcb_map_window` to jpayne@69: * display it. jpayne@69: * jpayne@69: * The created window will initially use the same cursor as its parent. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_window_checked (xcb_connection_t *c, jpayne@69: uint8_t depth, jpayne@69: xcb_window_t wid, jpayne@69: xcb_window_t parent, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint16_t border_width, jpayne@69: uint16_t _class, jpayne@69: xcb_visualid_t visual, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param depth Specifies the new window's depth (TODO: what unit?). jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the jpayne@69: * \a parent window. jpayne@69: * @param wid The ID with which you will refer to the new window, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param parent The parent window of the new window. jpayne@69: * @param x The X coordinate of the new window. jpayne@69: * @param y The Y coordinate of the new window. jpayne@69: * @param width The width of the new window. jpayne@69: * @param height The height of the new window. jpayne@69: * @param border_width TODO: jpayne@69: * \n jpayne@69: * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. jpayne@69: * @param _class A bitmask of #xcb_window_class_t values. jpayne@69: * @param _class \n jpayne@69: * @param visual Specifies the id for the new window's visual. jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the jpayne@69: * \a parent window. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates an unmapped window as child of the specified \a parent window. A jpayne@69: * CreateNotify event will be generated. The new window is placed on top in the jpayne@69: * stacking order with respect to siblings. jpayne@69: * jpayne@69: * The coordinate system has the X axis horizontal and the Y axis vertical with jpayne@69: * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms jpayne@69: * of pixels, and coincide with pixel centers. Each window and pixmap has its own jpayne@69: * coordinate system. For a window, the origin is inside the border at the inside, jpayne@69: * upper-left corner. jpayne@69: * jpayne@69: * The created window is not yet displayed (mapped), call `xcb_map_window` to jpayne@69: * display it. jpayne@69: * jpayne@69: * The created window will initially use the same cursor as its parent. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_window (xcb_connection_t *c, jpayne@69: uint8_t depth, jpayne@69: xcb_window_t wid, jpayne@69: xcb_window_t parent, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint16_t border_width, jpayne@69: uint16_t _class, jpayne@69: xcb_visualid_t visual, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param depth Specifies the new window's depth (TODO: what unit?). jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the jpayne@69: * \a parent window. jpayne@69: * @param wid The ID with which you will refer to the new window, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param parent The parent window of the new window. jpayne@69: * @param x The X coordinate of the new window. jpayne@69: * @param y The Y coordinate of the new window. jpayne@69: * @param width The width of the new window. jpayne@69: * @param height The height of the new window. jpayne@69: * @param border_width TODO: jpayne@69: * \n jpayne@69: * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. jpayne@69: * @param _class A bitmask of #xcb_window_class_t values. jpayne@69: * @param _class \n jpayne@69: * @param visual Specifies the id for the new window's visual. jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the jpayne@69: * \a parent window. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates an unmapped window as child of the specified \a parent window. A jpayne@69: * CreateNotify event will be generated. The new window is placed on top in the jpayne@69: * stacking order with respect to siblings. jpayne@69: * jpayne@69: * The coordinate system has the X axis horizontal and the Y axis vertical with jpayne@69: * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms jpayne@69: * of pixels, and coincide with pixel centers. Each window and pixmap has its own jpayne@69: * coordinate system. For a window, the origin is inside the border at the inside, jpayne@69: * upper-left corner. jpayne@69: * jpayne@69: * The created window is not yet displayed (mapped), call `xcb_map_window` to jpayne@69: * display it. jpayne@69: * jpayne@69: * The created window will initially use the same cursor as its parent. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_window_aux_checked (xcb_connection_t *c, jpayne@69: uint8_t depth, jpayne@69: xcb_window_t wid, jpayne@69: xcb_window_t parent, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint16_t border_width, jpayne@69: uint16_t _class, jpayne@69: xcb_visualid_t visual, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_create_window_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param depth Specifies the new window's depth (TODO: what unit?). jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the jpayne@69: * \a parent window. jpayne@69: * @param wid The ID with which you will refer to the new window, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param parent The parent window of the new window. jpayne@69: * @param x The X coordinate of the new window. jpayne@69: * @param y The Y coordinate of the new window. jpayne@69: * @param width The width of the new window. jpayne@69: * @param height The height of the new window. jpayne@69: * @param border_width TODO: jpayne@69: * \n jpayne@69: * Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. jpayne@69: * @param _class A bitmask of #xcb_window_class_t values. jpayne@69: * @param _class \n jpayne@69: * @param visual Specifies the id for the new window's visual. jpayne@69: * \n jpayne@69: * The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the jpayne@69: * \a parent window. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates an unmapped window as child of the specified \a parent window. A jpayne@69: * CreateNotify event will be generated. The new window is placed on top in the jpayne@69: * stacking order with respect to siblings. jpayne@69: * jpayne@69: * The coordinate system has the X axis horizontal and the Y axis vertical with jpayne@69: * the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms jpayne@69: * of pixels, and coincide with pixel centers. Each window and pixmap has its own jpayne@69: * coordinate system. For a window, the origin is inside the border at the inside, jpayne@69: * upper-left corner. jpayne@69: * jpayne@69: * The created window is not yet displayed (mapped), call `xcb_map_window` to jpayne@69: * display it. jpayne@69: * jpayne@69: * The created window will initially use the same cursor as its parent. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_window_aux (xcb_connection_t *c, jpayne@69: uint8_t depth, jpayne@69: xcb_window_t wid, jpayne@69: xcb_window_t parent, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint16_t border_width, jpayne@69: uint16_t _class, jpayne@69: xcb_visualid_t visual, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_create_window_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_create_window_value_list (const xcb_create_window_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_change_window_attributes_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_window_attributes_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_change_window_attributes_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_change_window_attributes_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_change_window_attributes_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_change_window_attributes_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief change window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to change. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the attributes specified by \a value_mask for the specified \a window. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_window_attributes_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief change window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to change. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the attributes specified by \a value_mask for the specified \a window. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_window_attributes (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief change window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to change. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the attributes specified by \a value_mask for the specified \a window. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_window_attributes_aux_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_window_attributes_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief change window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to change. jpayne@69: * @param value_mask A bitmask of #xcb_cw_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the attributes specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the attributes specified by \a value_mask for the specified \a window. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_window_attributes_aux (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_window_attributes_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_change_window_attributes_value_list (const xcb_change_window_attributes_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * @brief Gets window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to get the attributes from. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the current attributes for the specified \a window. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_window_attributes_cookie_t jpayne@69: xcb_get_window_attributes (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Gets window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to get the attributes from. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the current attributes for the specified \a window. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_window_attributes_cookie_t jpayne@69: xcb_get_window_attributes_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_window_attributes_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_window_attributes_reply_t * jpayne@69: xcb_get_window_attributes_reply (xcb_connection_t *c, jpayne@69: xcb_get_window_attributes_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * @brief Destroys a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Destroys the specified window and all of its subwindows. A DestroyNotify event jpayne@69: * is generated for each destroyed window (a DestroyNotify event is first generated jpayne@69: * for any given window's inferiors). If the window was mapped, it will be jpayne@69: * automatically unmapped before destroying. jpayne@69: * jpayne@69: * Calling DestroyWindow on the root window will do nothing. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_destroy_window_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Destroys a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Destroys the specified window and all of its subwindows. A DestroyNotify event jpayne@69: * is generated for each destroyed window (a DestroyNotify event is first generated jpayne@69: * for any given window's inferiors). If the window was mapped, it will be jpayne@69: * automatically unmapped before destroying. jpayne@69: * jpayne@69: * Calling DestroyWindow on the root window will do nothing. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_destroy_window (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_destroy_subwindows_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_destroy_subwindows (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Changes a client's save set jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param mode A bitmask of #xcb_set_mode_t values. jpayne@69: * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set. jpayne@69: * @param window The window to add or delete to/from your save set. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * TODO: explain what the save set is for. jpayne@69: * jpayne@69: * This function either adds or removes the specified window to the client's (your jpayne@69: * application's) save set. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_save_set_checked (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Changes a client's save set jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param mode A bitmask of #xcb_set_mode_t values. jpayne@69: * @param mode Insert to add the specified window to the save set or Delete to delete it from the save set. jpayne@69: * @param window The window to add or delete to/from your save set. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * TODO: explain what the save set is for. jpayne@69: * jpayne@69: * This function either adds or removes the specified window to the client's (your jpayne@69: * application's) save set. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_save_set (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Reparents a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to reparent. jpayne@69: * @param parent The new parent of the window. jpayne@69: * @param x The X position of the window within its new parent. jpayne@69: * @param y The Y position of the window within its new parent. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Makes the specified window a child of the specified parent window. If the jpayne@69: * window is mapped, it will automatically be unmapped before reparenting and jpayne@69: * re-mapped after reparenting. The window is placed in the stacking order on top jpayne@69: * with respect to sibling windows. jpayne@69: * jpayne@69: * After reparenting, a ReparentNotify event is generated. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_reparent_window_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: xcb_window_t parent, jpayne@69: int16_t x, jpayne@69: int16_t y); jpayne@69: jpayne@69: /** jpayne@69: * @brief Reparents a window jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to reparent. jpayne@69: * @param parent The new parent of the window. jpayne@69: * @param x The X position of the window within its new parent. jpayne@69: * @param y The Y position of the window within its new parent. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Makes the specified window a child of the specified parent window. If the jpayne@69: * window is mapped, it will automatically be unmapped before reparenting and jpayne@69: * re-mapped after reparenting. The window is placed in the stacking order on top jpayne@69: * with respect to sibling windows. jpayne@69: * jpayne@69: * After reparenting, a ReparentNotify event is generated. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_reparent_window (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: xcb_window_t parent, jpayne@69: int16_t x, jpayne@69: int16_t y); jpayne@69: jpayne@69: /** jpayne@69: * @brief Makes a window visible jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to make visible. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Maps the specified window. This means making the window visible (as long as its jpayne@69: * parent is visible). jpayne@69: * jpayne@69: * This MapWindow request will be translated to a MapRequest request if a window jpayne@69: * manager is running. The window manager then decides to either map the window or jpayne@69: * not. Set the override-redirect window attribute to true if you want to bypass jpayne@69: * this mechanism. jpayne@69: * jpayne@69: * If the window manager decides to map the window (or if no window manager is jpayne@69: * running), a MapNotify event is generated. jpayne@69: * jpayne@69: * If the window becomes viewable and no earlier contents for it are remembered, jpayne@69: * the X server tiles the window with its background. If the window's background jpayne@69: * is undefined, the existing screen contents are not altered, and the X server jpayne@69: * generates zero or more Expose events. jpayne@69: * jpayne@69: * If the window type is InputOutput, an Expose event will be generated when the jpayne@69: * window becomes visible. The normal response to an Expose event should be to jpayne@69: * repaint the window. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_map_window_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Makes a window visible jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to make visible. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Maps the specified window. This means making the window visible (as long as its jpayne@69: * parent is visible). jpayne@69: * jpayne@69: * This MapWindow request will be translated to a MapRequest request if a window jpayne@69: * manager is running. The window manager then decides to either map the window or jpayne@69: * not. Set the override-redirect window attribute to true if you want to bypass jpayne@69: * this mechanism. jpayne@69: * jpayne@69: * If the window manager decides to map the window (or if no window manager is jpayne@69: * running), a MapNotify event is generated. jpayne@69: * jpayne@69: * If the window becomes viewable and no earlier contents for it are remembered, jpayne@69: * the X server tiles the window with its background. If the window's background jpayne@69: * is undefined, the existing screen contents are not altered, and the X server jpayne@69: * generates zero or more Expose events. jpayne@69: * jpayne@69: * If the window type is InputOutput, an Expose event will be generated when the jpayne@69: * window becomes visible. The normal response to an Expose event should be to jpayne@69: * repaint the window. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_map_window (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_map_subwindows_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_map_subwindows (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Makes a window invisible jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to make invisible. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Unmaps the specified window. This means making the window invisible (and all jpayne@69: * its child windows). jpayne@69: * jpayne@69: * Unmapping a window leads to the `UnmapNotify` event being generated. Also, jpayne@69: * `Expose` events are generated for formerly obscured windows. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_unmap_window_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Makes a window invisible jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to make invisible. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Unmaps the specified window. This means making the window invisible (and all jpayne@69: * its child windows). jpayne@69: * jpayne@69: * Unmapping a window leads to the `UnmapNotify` event being generated. Also, jpayne@69: * `Expose` events are generated for formerly obscured windows. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_unmap_window (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_unmap_subwindows_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_unmap_subwindows (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: int jpayne@69: xcb_configure_window_value_list_serialize (void **_buffer, jpayne@69: uint16_t value_mask, jpayne@69: const xcb_configure_window_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_configure_window_value_list_unpack (const void *_buffer, jpayne@69: uint16_t value_mask, jpayne@69: xcb_configure_window_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_configure_window_value_list_sizeof (const void *_buffer, jpayne@69: uint16_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_configure_window_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Configures window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to configure. jpayne@69: * @param value_mask Bitmask of attributes to change. jpayne@69: * @param value_list New values, corresponding to the attributes in value_mask. The order has to jpayne@69: * correspond to the order of possible \a value_mask bits. See the example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Configures a window's size, position, border width and stacking order. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_configure_window_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint16_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Configures window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to configure. jpayne@69: * @param value_mask Bitmask of attributes to change. jpayne@69: * @param value_list New values, corresponding to the attributes in value_mask. The order has to jpayne@69: * correspond to the order of possible \a value_mask bits. See the example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Configures a window's size, position, border width and stacking order. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_configure_window (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint16_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Configures window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to configure. jpayne@69: * @param value_mask Bitmask of attributes to change. jpayne@69: * @param value_list New values, corresponding to the attributes in value_mask. The order has to jpayne@69: * correspond to the order of possible \a value_mask bits. See the example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Configures a window's size, position, border width and stacking order. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_configure_window_aux_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint16_t value_mask, jpayne@69: const xcb_configure_window_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Configures window attributes jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The window to configure. jpayne@69: * @param value_mask Bitmask of attributes to change. jpayne@69: * @param value_list New values, corresponding to the attributes in value_mask. The order has to jpayne@69: * correspond to the order of possible \a value_mask bits. See the example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Configures a window's size, position, border width and stacking order. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_configure_window_aux (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint16_t value_mask, jpayne@69: const xcb_configure_window_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_configure_window_value_list (const xcb_configure_window_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * @brief Change window stacking order jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param direction A bitmask of #xcb_circulate_t values. jpayne@69: * @param direction \n jpayne@69: * @param window The window to raise/lower (depending on \a direction). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if jpayne@69: * any) will be raised to the top of the stack. jpayne@69: * jpayne@69: * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will jpayne@69: * be lowered to the bottom of the stack. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_circulate_window_checked (xcb_connection_t *c, jpayne@69: uint8_t direction, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Change window stacking order jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param direction A bitmask of #xcb_circulate_t values. jpayne@69: * @param direction \n jpayne@69: * @param window The window to raise/lower (depending on \a direction). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * If \a direction is `XCB_CIRCULATE_RAISE_LOWEST`, the lowest mapped child (if jpayne@69: * any) will be raised to the top of the stack. jpayne@69: * jpayne@69: * If \a direction is `XCB_CIRCULATE_LOWER_HIGHEST`, the highest mapped child will jpayne@69: * be lowered to the bottom of the stack. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_circulate_window (xcb_connection_t *c, jpayne@69: uint8_t direction, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief Get current window geometry jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`). jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_geometry_cookie_t jpayne@69: xcb_get_geometry (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable); jpayne@69: jpayne@69: /** jpayne@69: * @brief Get current window geometry jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param drawable The drawable (`Window` or `Pixmap`) of which the geometry will be received. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the current geometry of the specified drawable (either `Window` or `Pixmap`). jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_geometry_cookie_t jpayne@69: xcb_get_geometry_unchecked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_geometry_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_geometry_reply_t * jpayne@69: xcb_get_geometry_reply (xcb_connection_t *c, jpayne@69: xcb_get_geometry_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_query_tree_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief query the window tree jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The \a window to query. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the root window ID, parent window ID and list of children windows for the jpayne@69: * specified \a window. The children are listed in bottom-to-top stacking order. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_tree_cookie_t jpayne@69: xcb_query_tree (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief query the window tree jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window The \a window to query. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the root window ID, parent window ID and list of children windows for the jpayne@69: * specified \a window. The children are listed in bottom-to-top stacking order. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_tree_cookie_t jpayne@69: xcb_query_tree_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: xcb_window_t * jpayne@69: xcb_query_tree_children (const xcb_query_tree_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_query_tree_children_length (const xcb_query_tree_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_query_tree_children_end (const xcb_query_tree_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_tree_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_tree_reply_t * jpayne@69: xcb_query_tree_reply (xcb_connection_t *c, jpayne@69: xcb_query_tree_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_intern_atom_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Get atom identifier by name jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param only_if_exists Return a valid atom id only if the atom already exists. jpayne@69: * @param name_len The length of the following \a name. jpayne@69: * @param name The name of the atom. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified jpayne@69: * name. Atoms are used in protocols like EWMH, for example to store window titles jpayne@69: * (`_NET_WM_NAME` atom) as property of a window. jpayne@69: * jpayne@69: * If \a only_if_exists is 0, the atom will be created if it does not already exist. jpayne@69: * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does jpayne@69: * not yet exist. jpayne@69: * jpayne@69: */ jpayne@69: xcb_intern_atom_cookie_t jpayne@69: xcb_intern_atom (xcb_connection_t *c, jpayne@69: uint8_t only_if_exists, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * @brief Get atom identifier by name jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param only_if_exists Return a valid atom id only if the atom already exists. jpayne@69: * @param name_len The length of the following \a name. jpayne@69: * @param name The name of the atom. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Retrieves the identifier (xcb_atom_t TODO) for the atom with the specified jpayne@69: * name. Atoms are used in protocols like EWMH, for example to store window titles jpayne@69: * (`_NET_WM_NAME` atom) as property of a window. jpayne@69: * jpayne@69: * If \a only_if_exists is 0, the atom will be created if it does not already exist. jpayne@69: * If \a only_if_exists is 1, `XCB_ATOM_NONE` will be returned if the atom does jpayne@69: * not yet exist. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_intern_atom_cookie_t jpayne@69: xcb_intern_atom_unchecked (xcb_connection_t *c, jpayne@69: uint8_t only_if_exists, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_intern_atom_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_intern_atom_reply_t * jpayne@69: xcb_intern_atom_reply (xcb_connection_t *c, jpayne@69: xcb_intern_atom_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_get_atom_name_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_atom_name_cookie_t jpayne@69: xcb_get_atom_name (xcb_connection_t *c, jpayne@69: xcb_atom_t atom); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_atom_name_cookie_t jpayne@69: xcb_get_atom_name_unchecked (xcb_connection_t *c, jpayne@69: xcb_atom_t atom); jpayne@69: jpayne@69: char * jpayne@69: xcb_get_atom_name_name (const xcb_get_atom_name_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_atom_name_name_length (const xcb_get_atom_name_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_get_atom_name_name_end (const xcb_get_atom_name_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_atom_name_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_atom_name_reply_t * jpayne@69: xcb_get_atom_name_reply (xcb_connection_t *c, jpayne@69: xcb_get_atom_name_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_change_property_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Changes a window property jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param mode A bitmask of #xcb_prop_mode_t values. jpayne@69: * @param mode \n jpayne@69: * @param window The window whose property you want to change. jpayne@69: * @param property The property you want to change (an atom). jpayne@69: * @param type The type of the property you want to change (an atom). jpayne@69: * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or jpayne@69: * 32-bit quantities. Possible values are 8, 16 and 32. This information allows jpayne@69: * the X server to correctly perform byte-swap operations as necessary. jpayne@69: * @param data_len Specifies the number of elements (see \a format). jpayne@69: * @param data The property data. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Sets or updates a property on the specified \a window. Properties are for jpayne@69: * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). jpayne@69: * Protocols such as EWMH also use properties - for example EWMH defines the jpayne@69: * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_property_checked (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: xcb_window_t window, jpayne@69: xcb_atom_t property, jpayne@69: xcb_atom_t type, jpayne@69: uint8_t format, jpayne@69: uint32_t data_len, jpayne@69: const void *data); jpayne@69: jpayne@69: /** jpayne@69: * @brief Changes a window property jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param mode A bitmask of #xcb_prop_mode_t values. jpayne@69: * @param mode \n jpayne@69: * @param window The window whose property you want to change. jpayne@69: * @param property The property you want to change (an atom). jpayne@69: * @param type The type of the property you want to change (an atom). jpayne@69: * @param format Specifies whether the data should be viewed as a list of 8-bit, 16-bit or jpayne@69: * 32-bit quantities. Possible values are 8, 16 and 32. This information allows jpayne@69: * the X server to correctly perform byte-swap operations as necessary. jpayne@69: * @param data_len Specifies the number of elements (see \a format). jpayne@69: * @param data The property data. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Sets or updates a property on the specified \a window. Properties are for jpayne@69: * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). jpayne@69: * Protocols such as EWMH also use properties - for example EWMH defines the jpayne@69: * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_property (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: xcb_window_t window, jpayne@69: xcb_atom_t property, jpayne@69: xcb_atom_t type, jpayne@69: uint8_t format, jpayne@69: uint32_t data_len, jpayne@69: const void *data); jpayne@69: jpayne@69: void * jpayne@69: xcb_change_property_data (const xcb_change_property_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_change_property_data_length (const xcb_change_property_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_change_property_data_end (const xcb_change_property_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_delete_property_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: xcb_atom_t property); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_delete_property (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: xcb_atom_t property); jpayne@69: jpayne@69: int jpayne@69: xcb_get_property_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Gets a window property jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param _delete Whether the property should actually be deleted. For deleting a property, the jpayne@69: * specified \a type has to match the actual property type. jpayne@69: * @param window The window whose property you want to get. jpayne@69: * @param property The property you want to get (an atom). jpayne@69: * @param type The type of the property you want to get (an atom). jpayne@69: * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the jpayne@69: * data is to be retrieved. jpayne@69: * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you jpayne@69: * set \a long_length to 4, you will receive 16 bytes of data). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the specified \a property from the specified \a window. Properties are for jpayne@69: * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). jpayne@69: * Protocols such as EWMH also use properties - for example EWMH defines the jpayne@69: * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. jpayne@69: * jpayne@69: * TODO: talk about \a type jpayne@69: * jpayne@69: * TODO: talk about `delete` jpayne@69: * jpayne@69: * TODO: talk about the offset/length thing. what's a valid use case? jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_property_cookie_t jpayne@69: xcb_get_property (xcb_connection_t *c, jpayne@69: uint8_t _delete, jpayne@69: xcb_window_t window, jpayne@69: xcb_atom_t property, jpayne@69: xcb_atom_t type, jpayne@69: uint32_t long_offset, jpayne@69: uint32_t long_length); jpayne@69: jpayne@69: /** jpayne@69: * @brief Gets a window property jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param _delete Whether the property should actually be deleted. For deleting a property, the jpayne@69: * specified \a type has to match the actual property type. jpayne@69: * @param window The window whose property you want to get. jpayne@69: * @param property The property you want to get (an atom). jpayne@69: * @param type The type of the property you want to get (an atom). jpayne@69: * @param long_offset Specifies the offset (in 32-bit multiples) in the specified property where the jpayne@69: * data is to be retrieved. jpayne@69: * @param long_length Specifies how many 32-bit multiples of data should be retrieved (e.g. if you jpayne@69: * set \a long_length to 4, you will receive 16 bytes of data). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the specified \a property from the specified \a window. Properties are for jpayne@69: * example the window title (`WM_NAME`) or its minimum size (`WM_NORMAL_HINTS`). jpayne@69: * Protocols such as EWMH also use properties - for example EWMH defines the jpayne@69: * window title, encoded as UTF-8 string, in the `_NET_WM_NAME` property. jpayne@69: * jpayne@69: * TODO: talk about \a type jpayne@69: * jpayne@69: * TODO: talk about `delete` jpayne@69: * jpayne@69: * TODO: talk about the offset/length thing. what's a valid use case? jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_property_cookie_t jpayne@69: xcb_get_property_unchecked (xcb_connection_t *c, jpayne@69: uint8_t _delete, jpayne@69: xcb_window_t window, jpayne@69: xcb_atom_t property, jpayne@69: xcb_atom_t type, jpayne@69: uint32_t long_offset, jpayne@69: uint32_t long_length); jpayne@69: jpayne@69: void * jpayne@69: xcb_get_property_value (const xcb_get_property_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_property_value_length (const xcb_get_property_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_get_property_value_end (const xcb_get_property_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_property_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_property_reply_t * jpayne@69: xcb_get_property_reply (xcb_connection_t *c, jpayne@69: xcb_get_property_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_list_properties_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_list_properties_cookie_t jpayne@69: xcb_list_properties (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_list_properties_cookie_t jpayne@69: xcb_list_properties_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: xcb_atom_t * jpayne@69: xcb_list_properties_atoms (const xcb_list_properties_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_list_properties_atoms_length (const xcb_list_properties_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_list_properties_atoms_end (const xcb_list_properties_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_list_properties_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_list_properties_reply_t * jpayne@69: xcb_list_properties_reply (xcb_connection_t *c, jpayne@69: xcb_list_properties_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * @brief Sets the owner of a selection jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner The new owner of the selection. jpayne@69: * \n jpayne@69: * The special value `XCB_NONE` means that the selection will have no owner. jpayne@69: * @param selection The selection. jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The selection will not be changed if \a time is earlier than the current jpayne@69: * last-change time of the \a selection or is later than the current X server time. jpayne@69: * Otherwise, the last-change time is set to the specified time. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Makes `window` the owner of the selection \a selection and updates the jpayne@69: * last-change time of the specified selection. jpayne@69: * jpayne@69: * TODO: briefly explain what a selection is. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_selection_owner_checked (xcb_connection_t *c, jpayne@69: xcb_window_t owner, jpayne@69: xcb_atom_t selection, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief Sets the owner of a selection jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner The new owner of the selection. jpayne@69: * \n jpayne@69: * The special value `XCB_NONE` means that the selection will have no owner. jpayne@69: * @param selection The selection. jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The selection will not be changed if \a time is earlier than the current jpayne@69: * last-change time of the \a selection or is later than the current X server time. jpayne@69: * Otherwise, the last-change time is set to the specified time. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Makes `window` the owner of the selection \a selection and updates the jpayne@69: * last-change time of the specified selection. jpayne@69: * jpayne@69: * TODO: briefly explain what a selection is. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_selection_owner (xcb_connection_t *c, jpayne@69: xcb_window_t owner, jpayne@69: xcb_atom_t selection, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief Gets the owner of a selection jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param selection The selection. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the owner of the specified selection. jpayne@69: * jpayne@69: * TODO: briefly explain what a selection is. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_selection_owner_cookie_t jpayne@69: xcb_get_selection_owner (xcb_connection_t *c, jpayne@69: xcb_atom_t selection); jpayne@69: jpayne@69: /** jpayne@69: * @brief Gets the owner of a selection jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param selection The selection. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the owner of the specified selection. jpayne@69: * jpayne@69: * TODO: briefly explain what a selection is. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_selection_owner_cookie_t jpayne@69: xcb_get_selection_owner_unchecked (xcb_connection_t *c, jpayne@69: xcb_atom_t selection); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_selection_owner_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_selection_owner_reply_t * jpayne@69: xcb_get_selection_owner_reply (xcb_connection_t *c, jpayne@69: xcb_get_selection_owner_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_convert_selection_checked (xcb_connection_t *c, jpayne@69: xcb_window_t requestor, jpayne@69: xcb_atom_t selection, jpayne@69: xcb_atom_t target, jpayne@69: xcb_atom_t property, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_convert_selection (xcb_connection_t *c, jpayne@69: xcb_window_t requestor, jpayne@69: xcb_atom_t selection, jpayne@69: xcb_atom_t target, jpayne@69: xcb_atom_t property, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief send an event jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param propagate If \a propagate is true and no clients have selected any event on \a destination, jpayne@69: * the destination is replaced with the closest ancestor of \a destination for jpayne@69: * which some client has selected a type in \a event_mask and for which no jpayne@69: * intervening window has that type in its do-not-propagate-mask. If no such jpayne@69: * window exists or if the window is an ancestor of the focus window and jpayne@69: * `InputFocus` was originally specified as the destination, the event is not sent jpayne@69: * to any clients. Otherwise, the event is reported to every client selecting on jpayne@69: * the final destination any of the types specified in \a event_mask. jpayne@69: * @param destination The window to send this event to. Every client which selects any event within jpayne@69: * \a event_mask on \a destination will get the event. jpayne@69: * \n jpayne@69: * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window jpayne@69: * that contains the mouse pointer. jpayne@69: * \n jpayne@69: * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which jpayne@69: * has the keyboard focus. jpayne@69: * @param event_mask Event_mask for determining which clients should receive the specified event. jpayne@69: * See \a destination and \a propagate. jpayne@69: * @param event The event to send to the specified \a destination. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Identifies the \a destination window, determines which clients should receive jpayne@69: * the specified event and ignores any active grabs. jpayne@69: * jpayne@69: * The \a event must be one of the core events or an event defined by an extension, jpayne@69: * so that the X server can correctly byte-swap the contents as necessary. The jpayne@69: * contents of \a event are otherwise unaltered and unchecked except for the jpayne@69: * `send_event` field which is forced to 'true'. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_send_event_checked (xcb_connection_t *c, jpayne@69: uint8_t propagate, jpayne@69: xcb_window_t destination, jpayne@69: uint32_t event_mask, jpayne@69: const char *event); jpayne@69: jpayne@69: /** jpayne@69: * @brief send an event jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param propagate If \a propagate is true and no clients have selected any event on \a destination, jpayne@69: * the destination is replaced with the closest ancestor of \a destination for jpayne@69: * which some client has selected a type in \a event_mask and for which no jpayne@69: * intervening window has that type in its do-not-propagate-mask. If no such jpayne@69: * window exists or if the window is an ancestor of the focus window and jpayne@69: * `InputFocus` was originally specified as the destination, the event is not sent jpayne@69: * to any clients. Otherwise, the event is reported to every client selecting on jpayne@69: * the final destination any of the types specified in \a event_mask. jpayne@69: * @param destination The window to send this event to. Every client which selects any event within jpayne@69: * \a event_mask on \a destination will get the event. jpayne@69: * \n jpayne@69: * The special value `XCB_SEND_EVENT_DEST_POINTER_WINDOW` refers to the window jpayne@69: * that contains the mouse pointer. jpayne@69: * \n jpayne@69: * The special value `XCB_SEND_EVENT_DEST_ITEM_FOCUS` refers to the window which jpayne@69: * has the keyboard focus. jpayne@69: * @param event_mask Event_mask for determining which clients should receive the specified event. jpayne@69: * See \a destination and \a propagate. jpayne@69: * @param event The event to send to the specified \a destination. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Identifies the \a destination window, determines which clients should receive jpayne@69: * the specified event and ignores any active grabs. jpayne@69: * jpayne@69: * The \a event must be one of the core events or an event defined by an extension, jpayne@69: * so that the X server can correctly byte-swap the contents as necessary. The jpayne@69: * contents of \a event are otherwise unaltered and unchecked except for the jpayne@69: * `send_event` field which is forced to 'true'. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_send_event (xcb_connection_t *c, jpayne@69: uint8_t propagate, jpayne@69: xcb_window_t destination, jpayne@69: uint32_t event_mask, jpayne@69: const char *event); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab the pointer jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the pointer should be grabbed. jpayne@69: * @param event_mask Specifies which pointer events are reported to the client. jpayne@69: * \n jpayne@69: * TODO: which values? jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @param confine_to Specifies the window to confine the pointer in (the user will not be able to jpayne@69: * move the pointer out of that window). jpayne@69: * \n jpayne@69: * The special value `XCB_NONE` means don't confine the pointer. jpayne@69: * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the jpayne@69: * cursor. jpayne@69: * @param time The time argument allows you to avoid certain circumstances that come up if jpayne@69: * applications take a long time to respond or if there are long network delays. jpayne@69: * Consider a situation where you have two applications, both of which normally jpayne@69: * grab the pointer when clicked on. If both applications specify the timestamp jpayne@69: * from the event, the second application may wake up faster and successfully grab jpayne@69: * the pointer before the first application. The first application then will get jpayne@69: * an indication that the other application grabbed the pointer before its request jpayne@69: * was processed. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client. jpayne@69: * jpayne@69: */ jpayne@69: xcb_grab_pointer_cookie_t jpayne@69: xcb_grab_pointer (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t event_mask, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode, jpayne@69: xcb_window_t confine_to, jpayne@69: xcb_cursor_t cursor, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab the pointer jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the pointer should be grabbed. jpayne@69: * @param event_mask Specifies which pointer events are reported to the client. jpayne@69: * \n jpayne@69: * TODO: which values? jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @param confine_to Specifies the window to confine the pointer in (the user will not be able to jpayne@69: * move the pointer out of that window). jpayne@69: * \n jpayne@69: * The special value `XCB_NONE` means don't confine the pointer. jpayne@69: * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the jpayne@69: * cursor. jpayne@69: * @param time The time argument allows you to avoid certain circumstances that come up if jpayne@69: * applications take a long time to respond or if there are long network delays. jpayne@69: * Consider a situation where you have two applications, both of which normally jpayne@69: * grab the pointer when clicked on. If both applications specify the timestamp jpayne@69: * from the event, the second application may wake up faster and successfully grab jpayne@69: * the pointer before the first application. The first application then will get jpayne@69: * an indication that the other application grabbed the pointer before its request jpayne@69: * was processed. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Actively grabs control of the pointer. Further pointer events are reported only to the grabbing client. Overrides any active pointer grab by this client. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_grab_pointer_cookie_t jpayne@69: xcb_grab_pointer_unchecked (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t event_mask, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode, jpayne@69: xcb_window_t confine_to, jpayne@69: xcb_cursor_t cursor, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_grab_pointer_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_grab_pointer_reply_t * jpayne@69: xcb_grab_pointer_reply (xcb_connection_t *c, jpayne@69: xcb_grab_pointer_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * @brief release the pointer jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The pointer will not be released if \a time is earlier than the jpayne@69: * last-pointer-grab time or later than the current X server time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Releases the pointer and any queued events if you actively grabbed the pointer jpayne@69: * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button jpayne@69: * press. jpayne@69: * jpayne@69: * EnterNotify and LeaveNotify events are generated. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_pointer_checked (xcb_connection_t *c, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief release the pointer jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The pointer will not be released if \a time is earlier than the jpayne@69: * last-pointer-grab time or later than the current X server time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Releases the pointer and any queued events if you actively grabbed the pointer jpayne@69: * before using `xcb_grab_pointer`, `xcb_grab_button` or within a normal button jpayne@69: * press. jpayne@69: * jpayne@69: * EnterNotify and LeaveNotify events are generated. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_pointer (xcb_connection_t *c, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab pointer button(s) jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the pointer should be grabbed. jpayne@69: * @param event_mask Specifies which pointer events are reported to the client. jpayne@69: * \n jpayne@69: * TODO: which values? jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @param confine_to Specifies the window to confine the pointer in (the user will not be able to jpayne@69: * move the pointer out of that window). jpayne@69: * \n jpayne@69: * The special value `XCB_NONE` means don't confine the pointer. jpayne@69: * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the jpayne@69: * cursor. jpayne@69: * @param button A bitmask of #xcb_button_index_t values. jpayne@69: * @param button \n jpayne@69: * @param modifiers The modifiers to grab. jpayne@69: * \n jpayne@69: * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all jpayne@69: * possible modifier combinations. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * This request establishes a passive grab. The pointer is actively grabbed as jpayne@69: * described in GrabPointer, the last-pointer-grab time is set to the time at jpayne@69: * which the button was pressed (as transmitted in the ButtonPress event), and the jpayne@69: * ButtonPress event is reported if all of the following conditions are true: jpayne@69: * jpayne@69: * The pointer is not grabbed and the specified button is logically pressed when jpayne@69: * the specified modifier keys are logically down, and no other buttons or jpayne@69: * modifier keys are logically down. jpayne@69: * jpayne@69: * The grab-window contains the pointer. jpayne@69: * jpayne@69: * The confine-to window (if any) is viewable. jpayne@69: * jpayne@69: * A passive grab on the same button/key combination does not exist on any jpayne@69: * ancestor of grab-window. jpayne@69: * jpayne@69: * The interpretation of the remaining arguments is the same as for GrabPointer. jpayne@69: * The active grab is terminated automatically when the logical state of the jpayne@69: * pointer has all buttons released, independent of the logical state of modifier jpayne@69: * keys. Note that the logical state of a device (as seen by means of the jpayne@69: * protocol) may lag the physical state if device event processing is frozen. This jpayne@69: * request overrides all previous passive grabs by the same client on the same jpayne@69: * button/key combinations on the same window. A modifier of AnyModifier is jpayne@69: * equivalent to issuing the request for all possible modifier combinations jpayne@69: * (including the combination of no modifiers). It is not required that all jpayne@69: * specified modifiers have currently assigned keycodes. A button of AnyButton is jpayne@69: * equivalent to issuing the request for all possible buttons. Otherwise, it is jpayne@69: * not required that the button specified currently be assigned to a physical jpayne@69: * button. jpayne@69: * jpayne@69: * An Access error is generated if some other client has already issued a jpayne@69: * GrabButton request with the same button/key combination on the same window. jpayne@69: * When using AnyModifier or AnyButton, the request fails completely (no grabs are jpayne@69: * established), and an Access error is generated if there is a conflicting grab jpayne@69: * for any combination. The request has no effect on an active grab. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_grab_button_checked (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t event_mask, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode, jpayne@69: xcb_window_t confine_to, jpayne@69: xcb_cursor_t cursor, jpayne@69: uint8_t button, jpayne@69: uint16_t modifiers); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab pointer button(s) jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the pointer should be grabbed. jpayne@69: * @param event_mask Specifies which pointer events are reported to the client. jpayne@69: * \n jpayne@69: * TODO: which values? jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @param confine_to Specifies the window to confine the pointer in (the user will not be able to jpayne@69: * move the pointer out of that window). jpayne@69: * \n jpayne@69: * The special value `XCB_NONE` means don't confine the pointer. jpayne@69: * @param cursor Specifies the cursor that should be displayed or `XCB_NONE` to not change the jpayne@69: * cursor. jpayne@69: * @param button A bitmask of #xcb_button_index_t values. jpayne@69: * @param button \n jpayne@69: * @param modifiers The modifiers to grab. jpayne@69: * \n jpayne@69: * Using the special value `XCB_MOD_MASK_ANY` means grab the pointer with all jpayne@69: * possible modifier combinations. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * This request establishes a passive grab. The pointer is actively grabbed as jpayne@69: * described in GrabPointer, the last-pointer-grab time is set to the time at jpayne@69: * which the button was pressed (as transmitted in the ButtonPress event), and the jpayne@69: * ButtonPress event is reported if all of the following conditions are true: jpayne@69: * jpayne@69: * The pointer is not grabbed and the specified button is logically pressed when jpayne@69: * the specified modifier keys are logically down, and no other buttons or jpayne@69: * modifier keys are logically down. jpayne@69: * jpayne@69: * The grab-window contains the pointer. jpayne@69: * jpayne@69: * The confine-to window (if any) is viewable. jpayne@69: * jpayne@69: * A passive grab on the same button/key combination does not exist on any jpayne@69: * ancestor of grab-window. jpayne@69: * jpayne@69: * The interpretation of the remaining arguments is the same as for GrabPointer. jpayne@69: * The active grab is terminated automatically when the logical state of the jpayne@69: * pointer has all buttons released, independent of the logical state of modifier jpayne@69: * keys. Note that the logical state of a device (as seen by means of the jpayne@69: * protocol) may lag the physical state if device event processing is frozen. This jpayne@69: * request overrides all previous passive grabs by the same client on the same jpayne@69: * button/key combinations on the same window. A modifier of AnyModifier is jpayne@69: * equivalent to issuing the request for all possible modifier combinations jpayne@69: * (including the combination of no modifiers). It is not required that all jpayne@69: * specified modifiers have currently assigned keycodes. A button of AnyButton is jpayne@69: * equivalent to issuing the request for all possible buttons. Otherwise, it is jpayne@69: * not required that the button specified currently be assigned to a physical jpayne@69: * button. jpayne@69: * jpayne@69: * An Access error is generated if some other client has already issued a jpayne@69: * GrabButton request with the same button/key combination on the same window. jpayne@69: * When using AnyModifier or AnyButton, the request fails completely (no grabs are jpayne@69: * established), and an Access error is generated if there is a conflicting grab jpayne@69: * for any combination. The request has no effect on an active grab. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_grab_button (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t event_mask, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode, jpayne@69: xcb_window_t confine_to, jpayne@69: xcb_cursor_t cursor, jpayne@69: uint8_t button, jpayne@69: uint16_t modifiers); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_button_checked (xcb_connection_t *c, jpayne@69: uint8_t button, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t modifiers); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_button (xcb_connection_t *c, jpayne@69: uint8_t button, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t modifiers); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_active_pointer_grab_checked (xcb_connection_t *c, jpayne@69: xcb_cursor_t cursor, jpayne@69: xcb_timestamp_t time, jpayne@69: uint16_t event_mask); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_active_pointer_grab (xcb_connection_t *c, jpayne@69: xcb_cursor_t cursor, jpayne@69: xcb_timestamp_t time, jpayne@69: uint16_t event_mask); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab the keyboard jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the pointer should be grabbed. jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Actively grabs control of the keyboard and generates FocusIn and FocusOut jpayne@69: * events. Further key events are reported only to the grabbing client. jpayne@69: * jpayne@69: * Any active keyboard grab by this client is overridden. If the keyboard is jpayne@69: * actively grabbed by some other client, `AlreadyGrabbed` is returned. If jpayne@69: * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard jpayne@69: * is frozen by an active grab of another client, `GrabFrozen` is returned. If the jpayne@69: * specified \a time is earlier than the last-keyboard-grab time or later than the jpayne@69: * current X server time, `GrabInvalidTime` is returned. Otherwise, the jpayne@69: * last-keyboard-grab time is set to the specified time. jpayne@69: * jpayne@69: */ jpayne@69: xcb_grab_keyboard_cookie_t jpayne@69: xcb_grab_keyboard (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: xcb_timestamp_t time, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab the keyboard jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the pointer events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the pointer should be grabbed. jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Actively grabs control of the keyboard and generates FocusIn and FocusOut jpayne@69: * events. Further key events are reported only to the grabbing client. jpayne@69: * jpayne@69: * Any active keyboard grab by this client is overridden. If the keyboard is jpayne@69: * actively grabbed by some other client, `AlreadyGrabbed` is returned. If jpayne@69: * \a grab_window is not viewable, `GrabNotViewable` is returned. If the keyboard jpayne@69: * is frozen by an active grab of another client, `GrabFrozen` is returned. If the jpayne@69: * specified \a time is earlier than the last-keyboard-grab time or later than the jpayne@69: * current X server time, `GrabInvalidTime` is returned. Otherwise, the jpayne@69: * last-keyboard-grab time is set to the specified time. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_grab_keyboard_cookie_t jpayne@69: xcb_grab_keyboard_unchecked (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: xcb_timestamp_t time, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_grab_keyboard_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_grab_keyboard_reply_t * jpayne@69: xcb_grab_keyboard_reply (xcb_connection_t *c, jpayne@69: xcb_grab_keyboard_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_keyboard_checked (xcb_connection_t *c, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_keyboard (xcb_connection_t *c, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab keyboard key(s) jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the key events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the key should be grabbed. jpayne@69: * @param modifiers The modifiers to grab. jpayne@69: * \n jpayne@69: * Using the special value `XCB_MOD_MASK_ANY` means grab the key with all jpayne@69: * possible modifier combinations. jpayne@69: * @param key The keycode of the key to grab. jpayne@69: * \n jpayne@69: * The special value `XCB_GRAB_ANY` means grab any key. jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Establishes a passive grab on the keyboard. In the future, the keyboard is jpayne@69: * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to jpayne@69: * the time at which the key was pressed (as transmitted in the KeyPress event), jpayne@69: * and the KeyPress event is reported if all of the following conditions are true: jpayne@69: * jpayne@69: * The keyboard is not grabbed and the specified key (which can itself be a jpayne@69: * modifier key) is logically pressed when the specified modifier keys are jpayne@69: * logically down, and no other modifier keys are logically down. jpayne@69: * jpayne@69: * Either the grab_window is an ancestor of (or is) the focus window, or the jpayne@69: * grab_window is a descendant of the focus window and contains the pointer. jpayne@69: * jpayne@69: * A passive grab on the same key combination does not exist on any ancestor of jpayne@69: * grab_window. jpayne@69: * jpayne@69: * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated jpayne@69: * automatically when the logical state of the keyboard has the specified key released (independent of the jpayne@69: * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window. jpayne@69: * jpayne@69: * Note that the logical state of a device (as seen by client applications) may lag the physical state if jpayne@69: * device event processing is frozen. jpayne@69: * jpayne@69: * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified jpayne@69: * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for jpayne@69: * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode jpayne@69: * and max_keycode in the connection setup, or a BadValue error results. jpayne@69: * jpayne@69: * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess jpayne@69: * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error jpayne@69: * results (no grabs are established) if there is a conflicting grab for any combination. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_grab_key_checked (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t modifiers, jpayne@69: xcb_keycode_t key, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode); jpayne@69: jpayne@69: /** jpayne@69: * @brief Grab keyboard key(s) jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param owner_events If 1, the \a grab_window will still get the key events. If 0, events are not jpayne@69: * reported to the \a grab_window. jpayne@69: * @param grab_window Specifies the window on which the key should be grabbed. jpayne@69: * @param modifiers The modifiers to grab. jpayne@69: * \n jpayne@69: * Using the special value `XCB_MOD_MASK_ANY` means grab the key with all jpayne@69: * possible modifier combinations. jpayne@69: * @param key The keycode of the key to grab. jpayne@69: * \n jpayne@69: * The special value `XCB_GRAB_ANY` means grab any key. jpayne@69: * @param pointer_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param pointer_mode \n jpayne@69: * @param keyboard_mode A bitmask of #xcb_grab_mode_t values. jpayne@69: * @param keyboard_mode \n jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Establishes a passive grab on the keyboard. In the future, the keyboard is jpayne@69: * actively grabbed (as for `GrabKeyboard`), the last-keyboard-grab time is set to jpayne@69: * the time at which the key was pressed (as transmitted in the KeyPress event), jpayne@69: * and the KeyPress event is reported if all of the following conditions are true: jpayne@69: * jpayne@69: * The keyboard is not grabbed and the specified key (which can itself be a jpayne@69: * modifier key) is logically pressed when the specified modifier keys are jpayne@69: * logically down, and no other modifier keys are logically down. jpayne@69: * jpayne@69: * Either the grab_window is an ancestor of (or is) the focus window, or the jpayne@69: * grab_window is a descendant of the focus window and contains the pointer. jpayne@69: * jpayne@69: * A passive grab on the same key combination does not exist on any ancestor of jpayne@69: * grab_window. jpayne@69: * jpayne@69: * The interpretation of the remaining arguments is as for XGrabKeyboard. The active grab is terminated jpayne@69: * automatically when the logical state of the keyboard has the specified key released (independent of the jpayne@69: * logical state of the modifier keys), at which point a KeyRelease event is reported to the grabbing window. jpayne@69: * jpayne@69: * Note that the logical state of a device (as seen by client applications) may lag the physical state if jpayne@69: * device event processing is frozen. jpayne@69: * jpayne@69: * A modifiers argument of AnyModifier is equivalent to issuing the request for all possible modifier combinations (including the combination of no modifiers). It is not required that all modifiers specified jpayne@69: * have currently assigned KeyCodes. A keycode argument of AnyKey is equivalent to issuing the request for jpayne@69: * all possible KeyCodes. Otherwise, the specified keycode must be in the range specified by min_keycode jpayne@69: * and max_keycode in the connection setup, or a BadValue error results. jpayne@69: * jpayne@69: * If some other client has issued a XGrabKey with the same key combination on the same window, a BadAccess jpayne@69: * error results. When using AnyModifier or AnyKey, the request fails completely, and a BadAccess error jpayne@69: * results (no grabs are established) if there is a conflicting grab for any combination. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_grab_key (xcb_connection_t *c, jpayne@69: uint8_t owner_events, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t modifiers, jpayne@69: xcb_keycode_t key, jpayne@69: uint8_t pointer_mode, jpayne@69: uint8_t keyboard_mode); jpayne@69: jpayne@69: /** jpayne@69: * @brief release a key combination jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param key The keycode of the specified key combination. jpayne@69: * \n jpayne@69: * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes. jpayne@69: * @param grab_window The window on which the grabbed key combination will be released. jpayne@69: * @param modifiers The modifiers of the specified key combination. jpayne@69: * \n jpayne@69: * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination jpayne@69: * with every possible modifier combination. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Releases the key combination on \a grab_window if you grabbed it using jpayne@69: * `xcb_grab_key` before. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_key_checked (xcb_connection_t *c, jpayne@69: xcb_keycode_t key, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t modifiers); jpayne@69: jpayne@69: /** jpayne@69: * @brief release a key combination jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param key The keycode of the specified key combination. jpayne@69: * \n jpayne@69: * Using the special value `XCB_GRAB_ANY` means releasing all possible key codes. jpayne@69: * @param grab_window The window on which the grabbed key combination will be released. jpayne@69: * @param modifiers The modifiers of the specified key combination. jpayne@69: * \n jpayne@69: * Using the special value `XCB_MOD_MASK_ANY` means releasing the key combination jpayne@69: * with every possible modifier combination. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Releases the key combination on \a grab_window if you grabbed it using jpayne@69: * `xcb_grab_key` before. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_key (xcb_connection_t *c, jpayne@69: xcb_keycode_t key, jpayne@69: xcb_window_t grab_window, jpayne@69: uint16_t modifiers); jpayne@69: jpayne@69: /** jpayne@69: * @brief release queued events jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param mode A bitmask of #xcb_allow_t values. jpayne@69: * @param mode \n jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Releases queued events if the client has caused a device (pointer/keyboard) to jpayne@69: * freeze due to grabbing it actively. This request has no effect if \a time is jpayne@69: * earlier than the last-grab time of the most recent active grab for this client jpayne@69: * or if \a time is later than the current X server time. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_allow_events_checked (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief release queued events jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param mode A bitmask of #xcb_allow_t values. jpayne@69: * @param mode \n jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Releases queued events if the client has caused a device (pointer/keyboard) to jpayne@69: * freeze due to grabbing it actively. This request has no effect if \a time is jpayne@69: * earlier than the last-grab time of the most recent active grab for this client jpayne@69: * or if \a time is later than the current X server time. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_allow_events (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_grab_server_checked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_grab_server (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_server_checked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_ungrab_server (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * @brief get pointer coordinates jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window A window to check if the pointer is on the same screen as \a window (see the jpayne@69: * `same_screen` field in the reply). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the root window the pointer is logically on and the pointer coordinates jpayne@69: * relative to the root window's origin. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_pointer_cookie_t jpayne@69: xcb_query_pointer (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * @brief get pointer coordinates jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param window A window to check if the pointer is on the same screen as \a window (see the jpayne@69: * `same_screen` field in the reply). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets the root window the pointer is logically on and the pointer coordinates jpayne@69: * relative to the root window's origin. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_pointer_cookie_t jpayne@69: xcb_query_pointer_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_pointer_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_pointer_reply_t * jpayne@69: xcb_query_pointer_reply (xcb_connection_t *c, jpayne@69: xcb_query_pointer_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_timecoord_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_timecoord_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_timecoord_next (xcb_timecoord_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_timecoord_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_timecoord_end (xcb_timecoord_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_get_motion_events_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_motion_events_cookie_t jpayne@69: xcb_get_motion_events (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: xcb_timestamp_t start, jpayne@69: xcb_timestamp_t stop); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_motion_events_cookie_t jpayne@69: xcb_get_motion_events_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: xcb_timestamp_t start, jpayne@69: xcb_timestamp_t stop); jpayne@69: jpayne@69: xcb_timecoord_t * jpayne@69: xcb_get_motion_events_events (const xcb_get_motion_events_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_motion_events_events_length (const xcb_get_motion_events_reply_t *R); jpayne@69: jpayne@69: xcb_timecoord_iterator_t jpayne@69: xcb_get_motion_events_events_iterator (const xcb_get_motion_events_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_motion_events_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_motion_events_reply_t * jpayne@69: xcb_get_motion_events_reply (xcb_connection_t *c, jpayne@69: xcb_get_motion_events_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_translate_coordinates_cookie_t jpayne@69: xcb_translate_coordinates (xcb_connection_t *c, jpayne@69: xcb_window_t src_window, jpayne@69: xcb_window_t dst_window, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_translate_coordinates_cookie_t jpayne@69: xcb_translate_coordinates_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t src_window, jpayne@69: xcb_window_t dst_window, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_translate_coordinates_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_translate_coordinates_reply_t * jpayne@69: xcb_translate_coordinates_reply (xcb_connection_t *c, jpayne@69: xcb_translate_coordinates_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * @brief move mouse pointer jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the jpayne@69: * pointer is inside \a src_window and within the rectangle specified by (\a src_x, jpayne@69: * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to jpayne@69: * \a src_window. jpayne@69: * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the jpayne@69: * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is jpayne@69: * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) jpayne@69: * relative to the current position of the pointer. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Moves the mouse pointer to the specified position. jpayne@69: * jpayne@69: * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the jpayne@69: * pointer is inside \a src_window and within the rectangle specified by (\a src_x, jpayne@69: * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to jpayne@69: * \a src_window. jpayne@69: * jpayne@69: * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the jpayne@69: * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is jpayne@69: * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) jpayne@69: * relative to the current position of the pointer. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_warp_pointer_checked (xcb_connection_t *c, jpayne@69: xcb_window_t src_window, jpayne@69: xcb_window_t dst_window, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y, jpayne@69: uint16_t src_width, jpayne@69: uint16_t src_height, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y); jpayne@69: jpayne@69: /** jpayne@69: * @brief move mouse pointer jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param src_window If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the jpayne@69: * pointer is inside \a src_window and within the rectangle specified by (\a src_x, jpayne@69: * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to jpayne@69: * \a src_window. jpayne@69: * @param dst_window If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the jpayne@69: * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is jpayne@69: * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) jpayne@69: * relative to the current position of the pointer. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Moves the mouse pointer to the specified position. jpayne@69: * jpayne@69: * If \a src_window is not `XCB_NONE` (TODO), the move will only take place if the jpayne@69: * pointer is inside \a src_window and within the rectangle specified by (\a src_x, jpayne@69: * \a src_y, \a src_width, \a src_height). The rectangle coordinates are relative to jpayne@69: * \a src_window. jpayne@69: * jpayne@69: * If \a dst_window is not `XCB_NONE` (TODO), the pointer will be moved to the jpayne@69: * offsets (\a dst_x, \a dst_y) relative to \a dst_window. If \a dst_window is jpayne@69: * `XCB_NONE` (TODO), the pointer will be moved by the offsets (\a dst_x, \a dst_y) jpayne@69: * relative to the current position of the pointer. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_warp_pointer (xcb_connection_t *c, jpayne@69: xcb_window_t src_window, jpayne@69: xcb_window_t dst_window, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y, jpayne@69: uint16_t src_width, jpayne@69: uint16_t src_height, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y); jpayne@69: jpayne@69: /** jpayne@69: * @brief Sets input focus jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param revert_to A bitmask of #xcb_input_focus_t values. jpayne@69: * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus jpayne@69: * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`). jpayne@69: * @param focus The window to focus. All keyboard events will be reported to this window. The jpayne@69: * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO). jpayne@69: * \n jpayne@69: * If \a focus is `XCB_NONE` (TODO), all keyboard events are jpayne@69: * discarded until a new focus window is set. jpayne@69: * \n jpayne@69: * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the jpayne@69: * screen on which the pointer is on currently. jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the input focus and the last-focus-change time. If the specified \a time jpayne@69: * is earlier than the current last-focus-change time, the request is ignored (to jpayne@69: * avoid race conditions when running X over the network). jpayne@69: * jpayne@69: * A FocusIn and FocusOut event is generated when focus is changed. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_input_focus_checked (xcb_connection_t *c, jpayne@69: uint8_t revert_to, jpayne@69: xcb_window_t focus, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * @brief Sets input focus jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param revert_to A bitmask of #xcb_input_focus_t values. jpayne@69: * @param revert_to Specifies what happens when the \a focus window becomes unviewable (if \a focus jpayne@69: * is neither `XCB_NONE` nor `XCB_POINTER_ROOT`). jpayne@69: * @param focus The window to focus. All keyboard events will be reported to this window. The jpayne@69: * window must be viewable (TODO), or a `xcb_match_error_t` occurs (TODO). jpayne@69: * \n jpayne@69: * If \a focus is `XCB_NONE` (TODO), all keyboard events are jpayne@69: * discarded until a new focus window is set. jpayne@69: * \n jpayne@69: * If \a focus is `XCB_POINTER_ROOT` (TODO), focus is on the root window of the jpayne@69: * screen on which the pointer is on currently. jpayne@69: * @param time Timestamp to avoid race conditions when running X over the network. jpayne@69: * \n jpayne@69: * The special value `XCB_CURRENT_TIME` will be replaced with the current server jpayne@69: * time. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the input focus and the last-focus-change time. If the specified \a time jpayne@69: * is earlier than the current last-focus-change time, the request is ignored (to jpayne@69: * avoid race conditions when running X over the network). jpayne@69: * jpayne@69: * A FocusIn and FocusOut event is generated when focus is changed. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_input_focus (xcb_connection_t *c, jpayne@69: uint8_t revert_to, jpayne@69: xcb_window_t focus, jpayne@69: xcb_timestamp_t time); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_input_focus_cookie_t jpayne@69: xcb_get_input_focus (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_input_focus_cookie_t jpayne@69: xcb_get_input_focus_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_input_focus_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_input_focus_reply_t * jpayne@69: xcb_get_input_focus_reply (xcb_connection_t *c, jpayne@69: xcb_get_input_focus_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_keymap_cookie_t jpayne@69: xcb_query_keymap (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_keymap_cookie_t jpayne@69: xcb_query_keymap_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_keymap_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_keymap_reply_t * jpayne@69: xcb_query_keymap_reply (xcb_connection_t *c, jpayne@69: xcb_query_keymap_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_open_font_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief opens a font jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`. jpayne@69: * @param name_len Length (in bytes) of \a name. jpayne@69: * @param name A pattern describing an X core font. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Opens any X core font matching the given \a name (for example "-misc-fixed-*"). jpayne@69: * jpayne@69: * Note that X core fonts are deprecated (but still supported) in favor of jpayne@69: * client-side rendering using Xft. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_open_font_checked (xcb_connection_t *c, jpayne@69: xcb_font_t fid, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * @brief opens a font jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param fid The ID with which you will refer to the font, created by `xcb_generate_id`. jpayne@69: * @param name_len Length (in bytes) of \a name. jpayne@69: * @param name A pattern describing an X core font. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Opens any X core font matching the given \a name (for example "-misc-fixed-*"). jpayne@69: * jpayne@69: * Note that X core fonts are deprecated (but still supported) in favor of jpayne@69: * client-side rendering using Xft. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_open_font (xcb_connection_t *c, jpayne@69: xcb_font_t fid, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: char * jpayne@69: xcb_open_font_name (const xcb_open_font_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_open_font_name_length (const xcb_open_font_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_open_font_name_end (const xcb_open_font_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_close_font_checked (xcb_connection_t *c, jpayne@69: xcb_font_t font); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_close_font (xcb_connection_t *c, jpayne@69: xcb_font_t font); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_fontprop_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_fontprop_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_fontprop_next (xcb_fontprop_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_fontprop_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_fontprop_end (xcb_fontprop_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_charinfo_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_charinfo_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_charinfo_next (xcb_charinfo_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_charinfo_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_charinfo_end (xcb_charinfo_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_query_font_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief query font metrics jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param font The fontable (Font or Graphics Context) to query. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Queries information associated with the font. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_font_cookie_t jpayne@69: xcb_query_font (xcb_connection_t *c, jpayne@69: xcb_fontable_t font); jpayne@69: jpayne@69: /** jpayne@69: * @brief query font metrics jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param font The fontable (Font or Graphics Context) to query. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Queries information associated with the font. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_font_cookie_t jpayne@69: xcb_query_font_unchecked (xcb_connection_t *c, jpayne@69: xcb_fontable_t font); jpayne@69: jpayne@69: xcb_fontprop_t * jpayne@69: xcb_query_font_properties (const xcb_query_font_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_query_font_properties_length (const xcb_query_font_reply_t *R); jpayne@69: jpayne@69: xcb_fontprop_iterator_t jpayne@69: xcb_query_font_properties_iterator (const xcb_query_font_reply_t *R); jpayne@69: jpayne@69: xcb_charinfo_t * jpayne@69: xcb_query_font_char_infos (const xcb_query_font_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_query_font_char_infos_length (const xcb_query_font_reply_t *R); jpayne@69: jpayne@69: xcb_charinfo_iterator_t jpayne@69: xcb_query_font_char_infos_iterator (const xcb_query_font_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_font_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_font_reply_t * jpayne@69: xcb_query_font_reply (xcb_connection_t *c, jpayne@69: xcb_query_font_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_query_text_extents_sizeof (const void *_buffer, jpayne@69: uint32_t string_len); jpayne@69: jpayne@69: /** jpayne@69: * @brief get text extents jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param font The \a font to calculate text extents in. You can also pass a graphics context. jpayne@69: * @param string_len The number of characters in \a string. jpayne@69: * @param string The text to get text extents for. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Query text extents from the X11 server. This request returns the bounding box jpayne@69: * of the specified 16-bit character string in the specified \a font or the font jpayne@69: * contained in the specified graphics context. jpayne@69: * jpayne@69: * `font_ascent` is set to the maximum of the ascent metrics of all characters in jpayne@69: * the string. `font_descent` is set to the maximum of the descent metrics. jpayne@69: * `overall_width` is set to the sum of the character-width metrics of all jpayne@69: * characters in the string. For each character in the string, let W be the sum of jpayne@69: * the character-width metrics of all characters preceding it in the string. Let L jpayne@69: * be the left-side-bearing metric of the character plus W. Let R be the jpayne@69: * right-side-bearing metric of the character plus W. The lbearing member is set jpayne@69: * to the minimum L of all characters in the string. The rbearing member is set to jpayne@69: * the maximum R. jpayne@69: * jpayne@69: * For fonts defined with linear indexing rather than 2-byte matrix indexing, each jpayne@69: * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the jpayne@69: * most significant byte. If the font has no defined default character, undefined jpayne@69: * characters in the string are taken to have all zero metrics. jpayne@69: * jpayne@69: * Characters with all zero metrics are ignored. If the font has no defined jpayne@69: * default_char, the undefined characters in the string are also ignored. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_text_extents_cookie_t jpayne@69: xcb_query_text_extents (xcb_connection_t *c, jpayne@69: xcb_fontable_t font, jpayne@69: uint32_t string_len, jpayne@69: const xcb_char2b_t *string); jpayne@69: jpayne@69: /** jpayne@69: * @brief get text extents jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param font The \a font to calculate text extents in. You can also pass a graphics context. jpayne@69: * @param string_len The number of characters in \a string. jpayne@69: * @param string The text to get text extents for. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Query text extents from the X11 server. This request returns the bounding box jpayne@69: * of the specified 16-bit character string in the specified \a font or the font jpayne@69: * contained in the specified graphics context. jpayne@69: * jpayne@69: * `font_ascent` is set to the maximum of the ascent metrics of all characters in jpayne@69: * the string. `font_descent` is set to the maximum of the descent metrics. jpayne@69: * `overall_width` is set to the sum of the character-width metrics of all jpayne@69: * characters in the string. For each character in the string, let W be the sum of jpayne@69: * the character-width metrics of all characters preceding it in the string. Let L jpayne@69: * be the left-side-bearing metric of the character plus W. Let R be the jpayne@69: * right-side-bearing metric of the character plus W. The lbearing member is set jpayne@69: * to the minimum L of all characters in the string. The rbearing member is set to jpayne@69: * the maximum R. jpayne@69: * jpayne@69: * For fonts defined with linear indexing rather than 2-byte matrix indexing, each jpayne@69: * `xcb_char2b_t` structure is interpreted as a 16-bit number with byte1 as the jpayne@69: * most significant byte. If the font has no defined default character, undefined jpayne@69: * characters in the string are taken to have all zero metrics. jpayne@69: * jpayne@69: * Characters with all zero metrics are ignored. If the font has no defined jpayne@69: * default_char, the undefined characters in the string are also ignored. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_text_extents_cookie_t jpayne@69: xcb_query_text_extents_unchecked (xcb_connection_t *c, jpayne@69: xcb_fontable_t font, jpayne@69: uint32_t string_len, jpayne@69: const xcb_char2b_t *string); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_text_extents_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_text_extents_reply_t * jpayne@69: xcb_query_text_extents_reply (xcb_connection_t *c, jpayne@69: xcb_query_text_extents_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_str_sizeof (const void *_buffer); jpayne@69: jpayne@69: char * jpayne@69: xcb_str_name (const xcb_str_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_str_name_length (const xcb_str_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_str_name_end (const xcb_str_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_str_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_str_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_str_next (xcb_str_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_str_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_str_end (xcb_str_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_list_fonts_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief get matching font names jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param max_names The maximum number of fonts to be returned. jpayne@69: * @param pattern_len The length (in bytes) of \a pattern. jpayne@69: * @param pattern A font pattern, for example "-misc-fixed-*". jpayne@69: * \n jpayne@69: * The asterisk (*) is a wildcard for any number of characters. The question mark jpayne@69: * (?) is a wildcard for a single character. Use of uppercase or lowercase does jpayne@69: * not matter. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets a list of available font names which match the given \a pattern. jpayne@69: * jpayne@69: */ jpayne@69: xcb_list_fonts_cookie_t jpayne@69: xcb_list_fonts (xcb_connection_t *c, jpayne@69: uint16_t max_names, jpayne@69: uint16_t pattern_len, jpayne@69: const char *pattern); jpayne@69: jpayne@69: /** jpayne@69: * @brief get matching font names jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param max_names The maximum number of fonts to be returned. jpayne@69: * @param pattern_len The length (in bytes) of \a pattern. jpayne@69: * @param pattern A font pattern, for example "-misc-fixed-*". jpayne@69: * \n jpayne@69: * The asterisk (*) is a wildcard for any number of characters. The question mark jpayne@69: * (?) is a wildcard for a single character. Use of uppercase or lowercase does jpayne@69: * not matter. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets a list of available font names which match the given \a pattern. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_list_fonts_cookie_t jpayne@69: xcb_list_fonts_unchecked (xcb_connection_t *c, jpayne@69: uint16_t max_names, jpayne@69: uint16_t pattern_len, jpayne@69: const char *pattern); jpayne@69: jpayne@69: int jpayne@69: xcb_list_fonts_names_length (const xcb_list_fonts_reply_t *R); jpayne@69: jpayne@69: xcb_str_iterator_t jpayne@69: xcb_list_fonts_names_iterator (const xcb_list_fonts_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_list_fonts_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_list_fonts_reply_t * jpayne@69: xcb_list_fonts_reply (xcb_connection_t *c, jpayne@69: xcb_list_fonts_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_list_fonts_with_info_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief get matching font names and information jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param max_names The maximum number of fonts to be returned. jpayne@69: * @param pattern_len The length (in bytes) of \a pattern. jpayne@69: * @param pattern A font pattern, for example "-misc-fixed-*". jpayne@69: * \n jpayne@69: * The asterisk (*) is a wildcard for any number of characters. The question mark jpayne@69: * (?) is a wildcard for a single character. Use of uppercase or lowercase does jpayne@69: * not matter. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets a list of available font names which match the given \a pattern. jpayne@69: * jpayne@69: */ jpayne@69: xcb_list_fonts_with_info_cookie_t jpayne@69: xcb_list_fonts_with_info (xcb_connection_t *c, jpayne@69: uint16_t max_names, jpayne@69: uint16_t pattern_len, jpayne@69: const char *pattern); jpayne@69: jpayne@69: /** jpayne@69: * @brief get matching font names and information jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param max_names The maximum number of fonts to be returned. jpayne@69: * @param pattern_len The length (in bytes) of \a pattern. jpayne@69: * @param pattern A font pattern, for example "-misc-fixed-*". jpayne@69: * \n jpayne@69: * The asterisk (*) is a wildcard for any number of characters. The question mark jpayne@69: * (?) is a wildcard for a single character. Use of uppercase or lowercase does jpayne@69: * not matter. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Gets a list of available font names which match the given \a pattern. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_list_fonts_with_info_cookie_t jpayne@69: xcb_list_fonts_with_info_unchecked (xcb_connection_t *c, jpayne@69: uint16_t max_names, jpayne@69: uint16_t pattern_len, jpayne@69: const char *pattern); jpayne@69: jpayne@69: xcb_fontprop_t * jpayne@69: xcb_list_fonts_with_info_properties (const xcb_list_fonts_with_info_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_list_fonts_with_info_properties_length (const xcb_list_fonts_with_info_reply_t *R); jpayne@69: jpayne@69: xcb_fontprop_iterator_t jpayne@69: xcb_list_fonts_with_info_properties_iterator (const xcb_list_fonts_with_info_reply_t *R); jpayne@69: jpayne@69: char * jpayne@69: xcb_list_fonts_with_info_name (const xcb_list_fonts_with_info_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_list_fonts_with_info_name_length (const xcb_list_fonts_with_info_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_list_fonts_with_info_name_end (const xcb_list_fonts_with_info_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_list_fonts_with_info_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_list_fonts_with_info_reply_t * jpayne@69: xcb_list_fonts_with_info_reply (xcb_connection_t *c, jpayne@69: xcb_list_fonts_with_info_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_set_font_path_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_font_path_checked (xcb_connection_t *c, jpayne@69: uint16_t font_qty, jpayne@69: const xcb_str_t *font); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_font_path (xcb_connection_t *c, jpayne@69: uint16_t font_qty, jpayne@69: const xcb_str_t *font); jpayne@69: jpayne@69: int jpayne@69: xcb_set_font_path_font_length (const xcb_set_font_path_request_t *R); jpayne@69: jpayne@69: xcb_str_iterator_t jpayne@69: xcb_set_font_path_font_iterator (const xcb_set_font_path_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_font_path_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_font_path_cookie_t jpayne@69: xcb_get_font_path (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_font_path_cookie_t jpayne@69: xcb_get_font_path_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: int jpayne@69: xcb_get_font_path_path_length (const xcb_get_font_path_reply_t *R); jpayne@69: jpayne@69: xcb_str_iterator_t jpayne@69: xcb_get_font_path_path_iterator (const xcb_get_font_path_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_font_path_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_font_path_reply_t * jpayne@69: xcb_get_font_path_reply (xcb_connection_t *c, jpayne@69: xcb_get_font_path_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a pixmap jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param depth TODO jpayne@69: * @param pid The ID with which you will refer to the new pixmap, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param drawable Drawable to get the screen from. jpayne@69: * @param width The width of the new pixmap. jpayne@69: * @param height The height of the new pixmap. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable jpayne@69: * is on and only with drawables of the same \a depth. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_pixmap_checked (xcb_connection_t *c, jpayne@69: uint8_t depth, jpayne@69: xcb_pixmap_t pid, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a pixmap jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param depth TODO jpayne@69: * @param pid The ID with which you will refer to the new pixmap, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param drawable Drawable to get the screen from. jpayne@69: * @param width The width of the new pixmap. jpayne@69: * @param height The height of the new pixmap. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a pixmap. The pixmap can only be used on the same screen as \a drawable jpayne@69: * is on and only with drawables of the same \a depth. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_pixmap (xcb_connection_t *c, jpayne@69: uint8_t depth, jpayne@69: xcb_pixmap_t pid, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * @brief Destroys a pixmap jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param pixmap The pixmap to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Deletes the association between the pixmap ID and the pixmap. The pixmap jpayne@69: * storage will be freed when there are no more references to it. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_pixmap_checked (xcb_connection_t *c, jpayne@69: xcb_pixmap_t pixmap); jpayne@69: jpayne@69: /** jpayne@69: * @brief Destroys a pixmap jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param pixmap The pixmap to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Deletes the association between the pixmap ID and the pixmap. The pixmap jpayne@69: * storage will be freed when there are no more references to it. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_pixmap (xcb_connection_t *c, jpayne@69: xcb_pixmap_t pixmap); jpayne@69: jpayne@69: int jpayne@69: xcb_create_gc_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_create_gc_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_create_gc_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_create_gc_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_create_gc_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_create_gc_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a graphics context jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cid The ID with which you will refer to the graphics context, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param drawable Drawable to get the root/depth from. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a graphics context. The graphics context can be used with any drawable jpayne@69: * that has the same root and depth as the specified drawable. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_gc_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t cid, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a graphics context jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cid The ID with which you will refer to the graphics context, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param drawable Drawable to get the root/depth from. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a graphics context. The graphics context can be used with any drawable jpayne@69: * that has the same root and depth as the specified drawable. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_gc (xcb_connection_t *c, jpayne@69: xcb_gcontext_t cid, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a graphics context jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cid The ID with which you will refer to the graphics context, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param drawable Drawable to get the root/depth from. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a graphics context. The graphics context can be used with any drawable jpayne@69: * that has the same root and depth as the specified drawable. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_gc_aux_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t cid, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_create_gc_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief Creates a graphics context jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cid The ID with which you will refer to the graphics context, created by jpayne@69: * `xcb_generate_id`. jpayne@69: * @param drawable Drawable to get the root/depth from. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a graphics context. The graphics context can be used with any drawable jpayne@69: * that has the same root and depth as the specified drawable. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_gc_aux (xcb_connection_t *c, jpayne@69: xcb_gcontext_t cid, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_create_gc_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_create_gc_value_list (const xcb_create_gc_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_change_gc_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_gc_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_change_gc_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_change_gc_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_change_gc_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_change_gc_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief change graphics context components jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param gc The graphics context to change. jpayne@69: * @param value_mask A bitmask of #xcb_gc_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the components specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the components specified by \a value_mask for the specified graphics context. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_gc_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief change graphics context components jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param gc The graphics context to change. jpayne@69: * @param value_mask A bitmask of #xcb_gc_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the components specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the components specified by \a value_mask for the specified graphics context. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_gc (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief change graphics context components jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param gc The graphics context to change. jpayne@69: * @param value_mask A bitmask of #xcb_gc_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the components specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the components specified by \a value_mask for the specified graphics context. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_gc_aux_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_gc_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * @brief change graphics context components jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param gc The graphics context to change. jpayne@69: * @param value_mask A bitmask of #xcb_gc_t values. jpayne@69: * @param value_mask \n jpayne@69: * @param value_list Values for each of the components specified in the bitmask \a value_mask. The jpayne@69: * order has to correspond to the order of possible \a value_mask bits. See the jpayne@69: * example. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Changes the components specified by \a value_mask for the specified graphics context. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_gc_aux (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_gc_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_change_gc_value_list (const xcb_change_gc_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_gc_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t src_gc, jpayne@69: xcb_gcontext_t dst_gc, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_gc (xcb_connection_t *c, jpayne@69: xcb_gcontext_t src_gc, jpayne@69: xcb_gcontext_t dst_gc, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_set_dashes_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_dashes_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint16_t dash_offset, jpayne@69: uint16_t dashes_len, jpayne@69: const uint8_t *dashes); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_dashes (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint16_t dash_offset, jpayne@69: uint16_t dashes_len, jpayne@69: const uint8_t *dashes); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_set_dashes_dashes (const xcb_set_dashes_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_set_dashes_dashes_length (const xcb_set_dashes_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_set_dashes_dashes_end (const xcb_set_dashes_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_set_clip_rectangles_sizeof (const void *_buffer, jpayne@69: uint32_t rectangles_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_clip_rectangles_checked (xcb_connection_t *c, jpayne@69: uint8_t ordering, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t clip_x_origin, jpayne@69: int16_t clip_y_origin, jpayne@69: uint32_t rectangles_len, jpayne@69: const xcb_rectangle_t *rectangles); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_clip_rectangles (xcb_connection_t *c, jpayne@69: uint8_t ordering, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t clip_x_origin, jpayne@69: int16_t clip_y_origin, jpayne@69: uint32_t rectangles_len, jpayne@69: const xcb_rectangle_t *rectangles); jpayne@69: jpayne@69: xcb_rectangle_t * jpayne@69: xcb_set_clip_rectangles_rectangles (const xcb_set_clip_rectangles_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_set_clip_rectangles_rectangles_length (const xcb_set_clip_rectangles_request_t *R); jpayne@69: jpayne@69: xcb_rectangle_iterator_t jpayne@69: xcb_set_clip_rectangles_rectangles_iterator (const xcb_set_clip_rectangles_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * @brief Destroys a graphics context jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param gc The graphics context to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Destroys the specified \a gc and all associated storage. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_gc_checked (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc); jpayne@69: jpayne@69: /** jpayne@69: * @brief Destroys a graphics context jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param gc The graphics context to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Destroys the specified \a gc and all associated storage. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_gc (xcb_connection_t *c, jpayne@69: xcb_gcontext_t gc); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_clear_area_checked (xcb_connection_t *c, jpayne@69: uint8_t exposures, jpayne@69: xcb_window_t window, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_clear_area (xcb_connection_t *c, jpayne@69: uint8_t exposures, jpayne@69: xcb_window_t window, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * @brief copy areas jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param src_drawable The source drawable (Window or Pixmap). jpayne@69: * @param dst_drawable The destination drawable (Window or Pixmap). jpayne@69: * @param gc The graphics context to use. jpayne@69: * @param src_x The source X coordinate. jpayne@69: * @param src_y The source Y coordinate. jpayne@69: * @param dst_x The destination X coordinate. jpayne@69: * @param dst_y The destination Y coordinate. jpayne@69: * @param width The width of the area to copy (in pixels). jpayne@69: * @param height The height of the area to copy (in pixels). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Copies the specified rectangle from \a src_drawable to \a dst_drawable. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_area_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t src_drawable, jpayne@69: xcb_drawable_t dst_drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * @brief copy areas jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param src_drawable The source drawable (Window or Pixmap). jpayne@69: * @param dst_drawable The destination drawable (Window or Pixmap). jpayne@69: * @param gc The graphics context to use. jpayne@69: * @param src_x The source X coordinate. jpayne@69: * @param src_y The source Y coordinate. jpayne@69: * @param dst_x The destination X coordinate. jpayne@69: * @param dst_y The destination Y coordinate. jpayne@69: * @param width The width of the area to copy (in pixels). jpayne@69: * @param height The height of the area to copy (in pixels). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Copies the specified rectangle from \a src_drawable to \a dst_drawable. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_area (xcb_connection_t *c, jpayne@69: xcb_drawable_t src_drawable, jpayne@69: xcb_drawable_t dst_drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_plane_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t src_drawable, jpayne@69: xcb_drawable_t dst_drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint32_t bit_plane); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_plane (xcb_connection_t *c, jpayne@69: xcb_drawable_t src_drawable, jpayne@69: xcb_drawable_t dst_drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t src_x, jpayne@69: int16_t src_y, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint32_t bit_plane); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_point_sizeof (const void *_buffer, jpayne@69: uint32_t points_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_point_checked (xcb_connection_t *c, jpayne@69: uint8_t coordinate_mode, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t points_len, jpayne@69: const xcb_point_t *points); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_point (xcb_connection_t *c, jpayne@69: uint8_t coordinate_mode, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t points_len, jpayne@69: const xcb_point_t *points); jpayne@69: jpayne@69: xcb_point_t * jpayne@69: xcb_poly_point_points (const xcb_poly_point_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_point_points_length (const xcb_poly_point_request_t *R); jpayne@69: jpayne@69: xcb_point_iterator_t jpayne@69: xcb_poly_point_points_iterator (const xcb_poly_point_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_line_sizeof (const void *_buffer, jpayne@69: uint32_t points_len); jpayne@69: jpayne@69: /** jpayne@69: * @brief draw lines jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param coordinate_mode A bitmask of #xcb_coord_mode_t values. jpayne@69: * @param coordinate_mode \n jpayne@69: * @param drawable The drawable to draw the line(s) on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * @param points_len The number of `xcb_point_t` structures in \a points. jpayne@69: * @param points An array of points. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1]) jpayne@69: * in the \a points array. The lines are drawn in the order listed in the array. jpayne@69: * They join correctly at all intermediate points, and if the first and last jpayne@69: * points coincide, the first and last lines also join correctly. For any given jpayne@69: * line, a pixel is not drawn more than once. If thin (zero line-width) lines jpayne@69: * intersect, the intersecting pixels are drawn multiple times. If wide lines jpayne@69: * intersect, the intersecting pixels are drawn only once, as though the entire jpayne@69: * request were a single, filled shape. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_line_checked (xcb_connection_t *c, jpayne@69: uint8_t coordinate_mode, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t points_len, jpayne@69: const xcb_point_t *points); jpayne@69: jpayne@69: /** jpayne@69: * @brief draw lines jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param coordinate_mode A bitmask of #xcb_coord_mode_t values. jpayne@69: * @param coordinate_mode \n jpayne@69: * @param drawable The drawable to draw the line(s) on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * @param points_len The number of `xcb_point_t` structures in \a points. jpayne@69: * @param points An array of points. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Draws \a points_len-1 lines between each pair of points (point[i], point[i+1]) jpayne@69: * in the \a points array. The lines are drawn in the order listed in the array. jpayne@69: * They join correctly at all intermediate points, and if the first and last jpayne@69: * points coincide, the first and last lines also join correctly. For any given jpayne@69: * line, a pixel is not drawn more than once. If thin (zero line-width) lines jpayne@69: * intersect, the intersecting pixels are drawn multiple times. If wide lines jpayne@69: * intersect, the intersecting pixels are drawn only once, as though the entire jpayne@69: * request were a single, filled shape. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_line (xcb_connection_t *c, jpayne@69: uint8_t coordinate_mode, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t points_len, jpayne@69: const xcb_point_t *points); jpayne@69: jpayne@69: xcb_point_t * jpayne@69: xcb_poly_line_points (const xcb_poly_line_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_line_points_length (const xcb_poly_line_request_t *R); jpayne@69: jpayne@69: xcb_point_iterator_t jpayne@69: xcb_poly_line_points_iterator (const xcb_poly_line_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_segment_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_segment_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_segment_next (xcb_segment_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_segment_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_segment_end (xcb_segment_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_segment_sizeof (const void *_buffer, jpayne@69: uint32_t segments_len); jpayne@69: jpayne@69: /** jpayne@69: * @brief draw lines jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param drawable A drawable (Window or Pixmap) to draw on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * TODO: document which attributes of a gc are used jpayne@69: * @param segments_len The number of `xcb_segment_t` structures in \a segments. jpayne@69: * @param segments An array of `xcb_segment_t` structures. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Draws multiple, unconnected lines. For each segment, a line is drawn between jpayne@69: * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of jpayne@69: * `xcb_segment_t` structures and does not perform joining at coincident jpayne@69: * endpoints. For any given line, a pixel is not drawn more than once. If lines jpayne@69: * intersect, the intersecting pixels are drawn multiple times. jpayne@69: * jpayne@69: * TODO: include the xcb_segment_t data structure jpayne@69: * jpayne@69: * TODO: an example jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_segment_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t segments_len, jpayne@69: const xcb_segment_t *segments); jpayne@69: jpayne@69: /** jpayne@69: * @brief draw lines jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param drawable A drawable (Window or Pixmap) to draw on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * TODO: document which attributes of a gc are used jpayne@69: * @param segments_len The number of `xcb_segment_t` structures in \a segments. jpayne@69: * @param segments An array of `xcb_segment_t` structures. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Draws multiple, unconnected lines. For each segment, a line is drawn between jpayne@69: * (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of jpayne@69: * `xcb_segment_t` structures and does not perform joining at coincident jpayne@69: * endpoints. For any given line, a pixel is not drawn more than once. If lines jpayne@69: * intersect, the intersecting pixels are drawn multiple times. jpayne@69: * jpayne@69: * TODO: include the xcb_segment_t data structure jpayne@69: * jpayne@69: * TODO: an example jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_segment (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t segments_len, jpayne@69: const xcb_segment_t *segments); jpayne@69: jpayne@69: xcb_segment_t * jpayne@69: xcb_poly_segment_segments (const xcb_poly_segment_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_segment_segments_length (const xcb_poly_segment_request_t *R); jpayne@69: jpayne@69: xcb_segment_iterator_t jpayne@69: xcb_poly_segment_segments_iterator (const xcb_poly_segment_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_rectangle_sizeof (const void *_buffer, jpayne@69: uint32_t rectangles_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_rectangle_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t rectangles_len, jpayne@69: const xcb_rectangle_t *rectangles); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_rectangle (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t rectangles_len, jpayne@69: const xcb_rectangle_t *rectangles); jpayne@69: jpayne@69: xcb_rectangle_t * jpayne@69: xcb_poly_rectangle_rectangles (const xcb_poly_rectangle_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_rectangle_rectangles_length (const xcb_poly_rectangle_request_t *R); jpayne@69: jpayne@69: xcb_rectangle_iterator_t jpayne@69: xcb_poly_rectangle_rectangles_iterator (const xcb_poly_rectangle_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_arc_sizeof (const void *_buffer, jpayne@69: uint32_t arcs_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_arc_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t arcs_len, jpayne@69: const xcb_arc_t *arcs); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_arc (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t arcs_len, jpayne@69: const xcb_arc_t *arcs); jpayne@69: jpayne@69: xcb_arc_t * jpayne@69: xcb_poly_arc_arcs (const xcb_poly_arc_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_arc_arcs_length (const xcb_poly_arc_request_t *R); jpayne@69: jpayne@69: xcb_arc_iterator_t jpayne@69: xcb_poly_arc_arcs_iterator (const xcb_poly_arc_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_fill_poly_sizeof (const void *_buffer, jpayne@69: uint32_t points_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_fill_poly_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint8_t shape, jpayne@69: uint8_t coordinate_mode, jpayne@69: uint32_t points_len, jpayne@69: const xcb_point_t *points); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_fill_poly (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint8_t shape, jpayne@69: uint8_t coordinate_mode, jpayne@69: uint32_t points_len, jpayne@69: const xcb_point_t *points); jpayne@69: jpayne@69: xcb_point_t * jpayne@69: xcb_fill_poly_points (const xcb_fill_poly_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_fill_poly_points_length (const xcb_fill_poly_request_t *R); jpayne@69: jpayne@69: xcb_point_iterator_t jpayne@69: xcb_fill_poly_points_iterator (const xcb_fill_poly_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_fill_rectangle_sizeof (const void *_buffer, jpayne@69: uint32_t rectangles_len); jpayne@69: jpayne@69: /** jpayne@69: * @brief Fills rectangles jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param drawable The drawable (Window or Pixmap) to draw on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * The following graphics context components are used: function, plane-mask, jpayne@69: * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. jpayne@69: * \n jpayne@69: * The following graphics context mode-dependent components are used: jpayne@69: * foreground, background, tile, stipple, tile-stipple-x-origin, and jpayne@69: * tile-stipple-y-origin. jpayne@69: * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles. jpayne@69: * @param rectangles The rectangles to fill. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Fills the specified rectangle(s) in the order listed in the array. For any jpayne@69: * given rectangle, each pixel is not drawn more than once. If rectangles jpayne@69: * intersect, the intersecting pixels are drawn multiple times. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_fill_rectangle_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t rectangles_len, jpayne@69: const xcb_rectangle_t *rectangles); jpayne@69: jpayne@69: /** jpayne@69: * @brief Fills rectangles jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param drawable The drawable (Window or Pixmap) to draw on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * The following graphics context components are used: function, plane-mask, jpayne@69: * fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. jpayne@69: * \n jpayne@69: * The following graphics context mode-dependent components are used: jpayne@69: * foreground, background, tile, stipple, tile-stipple-x-origin, and jpayne@69: * tile-stipple-y-origin. jpayne@69: * @param rectangles_len The number of `xcb_rectangle_t` structures in \a rectangles. jpayne@69: * @param rectangles The rectangles to fill. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Fills the specified rectangle(s) in the order listed in the array. For any jpayne@69: * given rectangle, each pixel is not drawn more than once. If rectangles jpayne@69: * intersect, the intersecting pixels are drawn multiple times. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_fill_rectangle (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t rectangles_len, jpayne@69: const xcb_rectangle_t *rectangles); jpayne@69: jpayne@69: xcb_rectangle_t * jpayne@69: xcb_poly_fill_rectangle_rectangles (const xcb_poly_fill_rectangle_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_fill_rectangle_rectangles_length (const xcb_poly_fill_rectangle_request_t *R); jpayne@69: jpayne@69: xcb_rectangle_iterator_t jpayne@69: xcb_poly_fill_rectangle_rectangles_iterator (const xcb_poly_fill_rectangle_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_fill_arc_sizeof (const void *_buffer, jpayne@69: uint32_t arcs_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_fill_arc_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t arcs_len, jpayne@69: const xcb_arc_t *arcs); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_fill_arc (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint32_t arcs_len, jpayne@69: const xcb_arc_t *arcs); jpayne@69: jpayne@69: xcb_arc_t * jpayne@69: xcb_poly_fill_arc_arcs (const xcb_poly_fill_arc_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_fill_arc_arcs_length (const xcb_poly_fill_arc_request_t *R); jpayne@69: jpayne@69: xcb_arc_iterator_t jpayne@69: xcb_poly_fill_arc_arcs_iterator (const xcb_poly_fill_arc_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_put_image_sizeof (const void *_buffer, jpayne@69: uint32_t data_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_put_image_checked (xcb_connection_t *c, jpayne@69: uint8_t format, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y, jpayne@69: uint8_t left_pad, jpayne@69: uint8_t depth, jpayne@69: uint32_t data_len, jpayne@69: const uint8_t *data); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_put_image (xcb_connection_t *c, jpayne@69: uint8_t format, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: int16_t dst_x, jpayne@69: int16_t dst_y, jpayne@69: uint8_t left_pad, jpayne@69: uint8_t depth, jpayne@69: uint32_t data_len, jpayne@69: const uint8_t *data); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_put_image_data (const xcb_put_image_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_put_image_data_length (const xcb_put_image_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_put_image_data_end (const xcb_put_image_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_image_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_image_cookie_t jpayne@69: xcb_get_image (xcb_connection_t *c, jpayne@69: uint8_t format, jpayne@69: xcb_drawable_t drawable, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint32_t plane_mask); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_image_cookie_t jpayne@69: xcb_get_image_unchecked (xcb_connection_t *c, jpayne@69: uint8_t format, jpayne@69: xcb_drawable_t drawable, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint16_t width, jpayne@69: uint16_t height, jpayne@69: uint32_t plane_mask); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_get_image_data (const xcb_get_image_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_image_data_length (const xcb_get_image_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_get_image_data_end (const xcb_get_image_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_image_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_image_reply_t * jpayne@69: xcb_get_image_reply (xcb_connection_t *c, jpayne@69: xcb_get_image_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_text_8_sizeof (const void *_buffer, jpayne@69: uint32_t items_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_text_8_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint32_t items_len, jpayne@69: const uint8_t *items); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_text_8 (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint32_t items_len, jpayne@69: const uint8_t *items); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_poly_text_8_items (const xcb_poly_text_8_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_text_8_items_length (const xcb_poly_text_8_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_poly_text_8_items_end (const xcb_poly_text_8_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_text_16_sizeof (const void *_buffer, jpayne@69: uint32_t items_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_text_16_checked (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint32_t items_len, jpayne@69: const uint8_t *items); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_poly_text_16 (xcb_connection_t *c, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: uint32_t items_len, jpayne@69: const uint8_t *items); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_poly_text_16_items (const xcb_poly_text_16_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_poly_text_16_items_length (const xcb_poly_text_16_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_poly_text_16_items_end (const xcb_poly_text_16_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_image_text_8_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Draws text jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param string_len The length of the \a string. Note that this parameter limited by 255 due to jpayne@69: * using 8 bits! jpayne@69: * @param drawable The drawable (Window or Pixmap) to draw text on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * The following graphics context components are used: plane-mask, foreground, jpayne@69: * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. jpayne@69: * @param x The x coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param y The y coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param string The string to draw. Only the first 255 characters are relevant due to the data jpayne@69: * type of \a string_len. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Fills the destination rectangle with the background pixel from \a gc, then jpayne@69: * paints the text with the foreground pixel from \a gc. The upper-left corner of jpayne@69: * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, jpayne@69: * the height is font-ascent + font-descent. The overall-width, font-ascent and jpayne@69: * font-descent are as returned by `xcb_query_text_extents` (TODO). jpayne@69: * jpayne@69: * Note that using X core fonts is deprecated (but still supported) in favor of jpayne@69: * client-side rendering using Xft. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_image_text_8_checked (xcb_connection_t *c, jpayne@69: uint8_t string_len, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: const char *string); jpayne@69: jpayne@69: /** jpayne@69: * @brief Draws text jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param string_len The length of the \a string. Note that this parameter limited by 255 due to jpayne@69: * using 8 bits! jpayne@69: * @param drawable The drawable (Window or Pixmap) to draw text on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * The following graphics context components are used: plane-mask, foreground, jpayne@69: * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. jpayne@69: * @param x The x coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param y The y coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param string The string to draw. Only the first 255 characters are relevant due to the data jpayne@69: * type of \a string_len. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Fills the destination rectangle with the background pixel from \a gc, then jpayne@69: * paints the text with the foreground pixel from \a gc. The upper-left corner of jpayne@69: * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, jpayne@69: * the height is font-ascent + font-descent. The overall-width, font-ascent and jpayne@69: * font-descent are as returned by `xcb_query_text_extents` (TODO). jpayne@69: * jpayne@69: * Note that using X core fonts is deprecated (but still supported) in favor of jpayne@69: * client-side rendering using Xft. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_image_text_8 (xcb_connection_t *c, jpayne@69: uint8_t string_len, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: const char *string); jpayne@69: jpayne@69: char * jpayne@69: xcb_image_text_8_string (const xcb_image_text_8_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_image_text_8_string_length (const xcb_image_text_8_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_image_text_8_string_end (const xcb_image_text_8_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_image_text_16_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief Draws text jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param string_len The length of the \a string in characters. Note that this parameter limited by jpayne@69: * 255 due to using 8 bits! jpayne@69: * @param drawable The drawable (Window or Pixmap) to draw text on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * The following graphics context components are used: plane-mask, foreground, jpayne@69: * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. jpayne@69: * @param x The x coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param y The y coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param string The string to draw. Only the first 255 characters are relevant due to the data jpayne@69: * type of \a string_len. Every character uses 2 bytes (hence the 16 in this jpayne@69: * request's name). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Fills the destination rectangle with the background pixel from \a gc, then jpayne@69: * paints the text with the foreground pixel from \a gc. The upper-left corner of jpayne@69: * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, jpayne@69: * the height is font-ascent + font-descent. The overall-width, font-ascent and jpayne@69: * font-descent are as returned by `xcb_query_text_extents` (TODO). jpayne@69: * jpayne@69: * Note that using X core fonts is deprecated (but still supported) in favor of jpayne@69: * client-side rendering using Xft. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_image_text_16_checked (xcb_connection_t *c, jpayne@69: uint8_t string_len, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: const xcb_char2b_t *string); jpayne@69: jpayne@69: /** jpayne@69: * @brief Draws text jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param string_len The length of the \a string in characters. Note that this parameter limited by jpayne@69: * 255 due to using 8 bits! jpayne@69: * @param drawable The drawable (Window or Pixmap) to draw text on. jpayne@69: * @param gc The graphics context to use. jpayne@69: * \n jpayne@69: * The following graphics context components are used: plane-mask, foreground, jpayne@69: * background, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. jpayne@69: * @param x The x coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param y The y coordinate of the first character, relative to the origin of \a drawable. jpayne@69: * @param string The string to draw. Only the first 255 characters are relevant due to the data jpayne@69: * type of \a string_len. Every character uses 2 bytes (hence the 16 in this jpayne@69: * request's name). jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Fills the destination rectangle with the background pixel from \a gc, then jpayne@69: * paints the text with the foreground pixel from \a gc. The upper-left corner of jpayne@69: * the filled rectangle is at [x, y - font-ascent]. The width is overall-width, jpayne@69: * the height is font-ascent + font-descent. The overall-width, font-ascent and jpayne@69: * font-descent are as returned by `xcb_query_text_extents` (TODO). jpayne@69: * jpayne@69: * Note that using X core fonts is deprecated (but still supported) in favor of jpayne@69: * client-side rendering using Xft. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_image_text_16 (xcb_connection_t *c, jpayne@69: uint8_t string_len, jpayne@69: xcb_drawable_t drawable, jpayne@69: xcb_gcontext_t gc, jpayne@69: int16_t x, jpayne@69: int16_t y, jpayne@69: const xcb_char2b_t *string); jpayne@69: jpayne@69: xcb_char2b_t * jpayne@69: xcb_image_text_16_string (const xcb_image_text_16_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_image_text_16_string_length (const xcb_image_text_16_request_t *R); jpayne@69: jpayne@69: xcb_char2b_iterator_t jpayne@69: xcb_image_text_16_string_iterator (const xcb_image_text_16_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_colormap_checked (xcb_connection_t *c, jpayne@69: uint8_t alloc, jpayne@69: xcb_colormap_t mid, jpayne@69: xcb_window_t window, jpayne@69: xcb_visualid_t visual); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_colormap (xcb_connection_t *c, jpayne@69: uint8_t alloc, jpayne@69: xcb_colormap_t mid, jpayne@69: xcb_window_t window, jpayne@69: xcb_visualid_t visual); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_colormap_checked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_colormap (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_colormap_and_free_checked (xcb_connection_t *c, jpayne@69: xcb_colormap_t mid, jpayne@69: xcb_colormap_t src_cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_copy_colormap_and_free (xcb_connection_t *c, jpayne@69: xcb_colormap_t mid, jpayne@69: xcb_colormap_t src_cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_install_colormap_checked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_install_colormap (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_uninstall_colormap_checked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_uninstall_colormap (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap); jpayne@69: jpayne@69: int jpayne@69: xcb_list_installed_colormaps_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_list_installed_colormaps_cookie_t jpayne@69: xcb_list_installed_colormaps (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_list_installed_colormaps_cookie_t jpayne@69: xcb_list_installed_colormaps_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: xcb_colormap_t * jpayne@69: xcb_list_installed_colormaps_cmaps (const xcb_list_installed_colormaps_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_list_installed_colormaps_cmaps_length (const xcb_list_installed_colormaps_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_list_installed_colormaps_cmaps_end (const xcb_list_installed_colormaps_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_list_installed_colormaps_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_list_installed_colormaps_reply_t * jpayne@69: xcb_list_installed_colormaps_reply (xcb_connection_t *c, jpayne@69: xcb_list_installed_colormaps_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * @brief Allocate a color jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cmap TODO jpayne@69: * @param red The red value of your color. jpayne@69: * @param green The green value of your color. jpayne@69: * @param blue The blue value of your color. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Allocates a read-only colormap entry corresponding to the closest RGB value jpayne@69: * supported by the hardware. If you are using TrueColor, you can take a shortcut jpayne@69: * and directly calculate the color pixel value to avoid the round trip. But, for jpayne@69: * example, on 16-bit color setups (VNC), you can easily get the closest supported jpayne@69: * RGB value to the RGB value you are specifying. jpayne@69: * jpayne@69: */ jpayne@69: xcb_alloc_color_cookie_t jpayne@69: xcb_alloc_color (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t red, jpayne@69: uint16_t green, jpayne@69: uint16_t blue); jpayne@69: jpayne@69: /** jpayne@69: * @brief Allocate a color jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cmap TODO jpayne@69: * @param red The red value of your color. jpayne@69: * @param green The green value of your color. jpayne@69: * @param blue The blue value of your color. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Allocates a read-only colormap entry corresponding to the closest RGB value jpayne@69: * supported by the hardware. If you are using TrueColor, you can take a shortcut jpayne@69: * and directly calculate the color pixel value to avoid the round trip. But, for jpayne@69: * example, on 16-bit color setups (VNC), you can easily get the closest supported jpayne@69: * RGB value to the RGB value you are specifying. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_alloc_color_cookie_t jpayne@69: xcb_alloc_color_unchecked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t red, jpayne@69: uint16_t green, jpayne@69: uint16_t blue); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_alloc_color_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_alloc_color_reply_t * jpayne@69: xcb_alloc_color_reply (xcb_connection_t *c, jpayne@69: xcb_alloc_color_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_alloc_named_color_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_alloc_named_color_cookie_t jpayne@69: xcb_alloc_named_color (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_alloc_named_color_cookie_t jpayne@69: xcb_alloc_named_color_unchecked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_alloc_named_color_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_alloc_named_color_reply_t * jpayne@69: xcb_alloc_named_color_reply (xcb_connection_t *c, jpayne@69: xcb_alloc_named_color_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_alloc_color_cells_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_alloc_color_cells_cookie_t jpayne@69: xcb_alloc_color_cells (xcb_connection_t *c, jpayne@69: uint8_t contiguous, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t colors, jpayne@69: uint16_t planes); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_alloc_color_cells_cookie_t jpayne@69: xcb_alloc_color_cells_unchecked (xcb_connection_t *c, jpayne@69: uint8_t contiguous, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t colors, jpayne@69: uint16_t planes); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_alloc_color_cells_pixels (const xcb_alloc_color_cells_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_alloc_color_cells_pixels_length (const xcb_alloc_color_cells_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_alloc_color_cells_pixels_end (const xcb_alloc_color_cells_reply_t *R); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_alloc_color_cells_masks (const xcb_alloc_color_cells_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_alloc_color_cells_masks_length (const xcb_alloc_color_cells_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_alloc_color_cells_masks_end (const xcb_alloc_color_cells_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_alloc_color_cells_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_alloc_color_cells_reply_t * jpayne@69: xcb_alloc_color_cells_reply (xcb_connection_t *c, jpayne@69: xcb_alloc_color_cells_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_alloc_color_planes_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_alloc_color_planes_cookie_t jpayne@69: xcb_alloc_color_planes (xcb_connection_t *c, jpayne@69: uint8_t contiguous, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t colors, jpayne@69: uint16_t reds, jpayne@69: uint16_t greens, jpayne@69: uint16_t blues); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_alloc_color_planes_cookie_t jpayne@69: xcb_alloc_color_planes_unchecked (xcb_connection_t *c, jpayne@69: uint8_t contiguous, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t colors, jpayne@69: uint16_t reds, jpayne@69: uint16_t greens, jpayne@69: uint16_t blues); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_alloc_color_planes_pixels (const xcb_alloc_color_planes_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_alloc_color_planes_pixels_length (const xcb_alloc_color_planes_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_alloc_color_planes_pixels_end (const xcb_alloc_color_planes_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_alloc_color_planes_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_alloc_color_planes_reply_t * jpayne@69: xcb_alloc_color_planes_reply (xcb_connection_t *c, jpayne@69: xcb_alloc_color_planes_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_free_colors_sizeof (const void *_buffer, jpayne@69: uint32_t pixels_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_colors_checked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t plane_mask, jpayne@69: uint32_t pixels_len, jpayne@69: const uint32_t *pixels); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_colors (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t plane_mask, jpayne@69: uint32_t pixels_len, jpayne@69: const uint32_t *pixels); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_free_colors_pixels (const xcb_free_colors_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_free_colors_pixels_length (const xcb_free_colors_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_free_colors_pixels_end (const xcb_free_colors_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_coloritem_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_coloritem_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_coloritem_next (xcb_coloritem_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_coloritem_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_coloritem_end (xcb_coloritem_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_store_colors_sizeof (const void *_buffer, jpayne@69: uint32_t items_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_store_colors_checked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t items_len, jpayne@69: const xcb_coloritem_t *items); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_store_colors (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t items_len, jpayne@69: const xcb_coloritem_t *items); jpayne@69: jpayne@69: xcb_coloritem_t * jpayne@69: xcb_store_colors_items (const xcb_store_colors_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_store_colors_items_length (const xcb_store_colors_request_t *R); jpayne@69: jpayne@69: xcb_coloritem_iterator_t jpayne@69: xcb_store_colors_items_iterator (const xcb_store_colors_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_store_named_color_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_store_named_color_checked (xcb_connection_t *c, jpayne@69: uint8_t flags, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t pixel, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_store_named_color (xcb_connection_t *c, jpayne@69: uint8_t flags, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t pixel, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: char * jpayne@69: xcb_store_named_color_name (const xcb_store_named_color_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_store_named_color_name_length (const xcb_store_named_color_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_store_named_color_name_end (const xcb_store_named_color_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_rgb_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_rgb_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_rgb_next (xcb_rgb_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_rgb_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_rgb_end (xcb_rgb_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_query_colors_sizeof (const void *_buffer, jpayne@69: uint32_t pixels_len); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_colors_cookie_t jpayne@69: xcb_query_colors (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t pixels_len, jpayne@69: const uint32_t *pixels); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_colors_cookie_t jpayne@69: xcb_query_colors_unchecked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint32_t pixels_len, jpayne@69: const uint32_t *pixels); jpayne@69: jpayne@69: xcb_rgb_t * jpayne@69: xcb_query_colors_colors (const xcb_query_colors_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_query_colors_colors_length (const xcb_query_colors_reply_t *R); jpayne@69: jpayne@69: xcb_rgb_iterator_t jpayne@69: xcb_query_colors_colors_iterator (const xcb_query_colors_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_colors_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_colors_reply_t * jpayne@69: xcb_query_colors_reply (xcb_connection_t *c, jpayne@69: xcb_query_colors_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_lookup_color_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_lookup_color_cookie_t jpayne@69: xcb_lookup_color (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_lookup_color_cookie_t jpayne@69: xcb_lookup_color_unchecked (xcb_connection_t *c, jpayne@69: xcb_colormap_t cmap, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_lookup_color_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_lookup_color_reply_t * jpayne@69: xcb_lookup_color_reply (xcb_connection_t *c, jpayne@69: xcb_lookup_color_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_cursor_checked (xcb_connection_t *c, jpayne@69: xcb_cursor_t cid, jpayne@69: xcb_pixmap_t source, jpayne@69: xcb_pixmap_t mask, jpayne@69: uint16_t fore_red, jpayne@69: uint16_t fore_green, jpayne@69: uint16_t fore_blue, jpayne@69: uint16_t back_red, jpayne@69: uint16_t back_green, jpayne@69: uint16_t back_blue, jpayne@69: uint16_t x, jpayne@69: uint16_t y); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_cursor (xcb_connection_t *c, jpayne@69: xcb_cursor_t cid, jpayne@69: xcb_pixmap_t source, jpayne@69: xcb_pixmap_t mask, jpayne@69: uint16_t fore_red, jpayne@69: uint16_t fore_green, jpayne@69: uint16_t fore_blue, jpayne@69: uint16_t back_red, jpayne@69: uint16_t back_green, jpayne@69: uint16_t back_blue, jpayne@69: uint16_t x, jpayne@69: uint16_t y); jpayne@69: jpayne@69: /** jpayne@69: * @brief create cursor jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`. jpayne@69: * @param source_font In which font to look for the cursor glyph. jpayne@69: * @param mask_font In which font to look for the mask glyph. jpayne@69: * @param source_char The glyph of \a source_font to use. jpayne@69: * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define jpayne@69: * which source pixels are displayed. All pixels which are set to 0 are not jpayne@69: * displayed. jpayne@69: * @param fore_red The red value of the foreground color. jpayne@69: * @param fore_green The green value of the foreground color. jpayne@69: * @param fore_blue The blue value of the foreground color. jpayne@69: * @param back_red The red value of the background color. jpayne@69: * @param back_green The green value of the background color. jpayne@69: * @param back_blue The blue value of the background color. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a cursor from a font glyph. X provides a set of standard cursor shapes jpayne@69: * in a special font named cursor. Applications are encouraged to use this jpayne@69: * interface for their cursors because the font can be customized for the jpayne@69: * individual display type. jpayne@69: * jpayne@69: * All pixels which are set to 1 in the source will use the foreground color (as jpayne@69: * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0 jpayne@69: * will use the background color (as specified by \a back_red, \a back_green and jpayne@69: * \a back_blue). jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_glyph_cursor_checked (xcb_connection_t *c, jpayne@69: xcb_cursor_t cid, jpayne@69: xcb_font_t source_font, jpayne@69: xcb_font_t mask_font, jpayne@69: uint16_t source_char, jpayne@69: uint16_t mask_char, jpayne@69: uint16_t fore_red, jpayne@69: uint16_t fore_green, jpayne@69: uint16_t fore_blue, jpayne@69: uint16_t back_red, jpayne@69: uint16_t back_green, jpayne@69: uint16_t back_blue); jpayne@69: jpayne@69: /** jpayne@69: * @brief create cursor jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cid The ID with which you will refer to the cursor, created by `xcb_generate_id`. jpayne@69: * @param source_font In which font to look for the cursor glyph. jpayne@69: * @param mask_font In which font to look for the mask glyph. jpayne@69: * @param source_char The glyph of \a source_font to use. jpayne@69: * @param mask_char The glyph of \a mask_font to use as a mask: Pixels which are set to 1 define jpayne@69: * which source pixels are displayed. All pixels which are set to 0 are not jpayne@69: * displayed. jpayne@69: * @param fore_red The red value of the foreground color. jpayne@69: * @param fore_green The green value of the foreground color. jpayne@69: * @param fore_blue The blue value of the foreground color. jpayne@69: * @param back_red The red value of the background color. jpayne@69: * @param back_green The green value of the background color. jpayne@69: * @param back_blue The blue value of the background color. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Creates a cursor from a font glyph. X provides a set of standard cursor shapes jpayne@69: * in a special font named cursor. Applications are encouraged to use this jpayne@69: * interface for their cursors because the font can be customized for the jpayne@69: * individual display type. jpayne@69: * jpayne@69: * All pixels which are set to 1 in the source will use the foreground color (as jpayne@69: * specified by \a fore_red, \a fore_green and \a fore_blue). All pixels set to 0 jpayne@69: * will use the background color (as specified by \a back_red, \a back_green and jpayne@69: * \a back_blue). jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_create_glyph_cursor (xcb_connection_t *c, jpayne@69: xcb_cursor_t cid, jpayne@69: xcb_font_t source_font, jpayne@69: xcb_font_t mask_font, jpayne@69: uint16_t source_char, jpayne@69: uint16_t mask_char, jpayne@69: uint16_t fore_red, jpayne@69: uint16_t fore_green, jpayne@69: uint16_t fore_blue, jpayne@69: uint16_t back_red, jpayne@69: uint16_t back_green, jpayne@69: uint16_t back_blue); jpayne@69: jpayne@69: /** jpayne@69: * @brief Deletes a cursor jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cursor The cursor to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Deletes the association between the cursor resource ID and the specified jpayne@69: * cursor. The cursor is freed when no other resource references it. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_cursor_checked (xcb_connection_t *c, jpayne@69: xcb_cursor_t cursor); jpayne@69: jpayne@69: /** jpayne@69: * @brief Deletes a cursor jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param cursor The cursor to destroy. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Deletes the association between the cursor resource ID and the specified jpayne@69: * cursor. The cursor is freed when no other resource references it. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_free_cursor (xcb_connection_t *c, jpayne@69: xcb_cursor_t cursor); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_recolor_cursor_checked (xcb_connection_t *c, jpayne@69: xcb_cursor_t cursor, jpayne@69: uint16_t fore_red, jpayne@69: uint16_t fore_green, jpayne@69: uint16_t fore_blue, jpayne@69: uint16_t back_red, jpayne@69: uint16_t back_green, jpayne@69: uint16_t back_blue); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_recolor_cursor (xcb_connection_t *c, jpayne@69: xcb_cursor_t cursor, jpayne@69: uint16_t fore_red, jpayne@69: uint16_t fore_green, jpayne@69: uint16_t fore_blue, jpayne@69: uint16_t back_red, jpayne@69: uint16_t back_green, jpayne@69: uint16_t back_blue); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_best_size_cookie_t jpayne@69: xcb_query_best_size (xcb_connection_t *c, jpayne@69: uint8_t _class, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_best_size_cookie_t jpayne@69: xcb_query_best_size_unchecked (xcb_connection_t *c, jpayne@69: uint8_t _class, jpayne@69: xcb_drawable_t drawable, jpayne@69: uint16_t width, jpayne@69: uint16_t height); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_best_size_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_best_size_reply_t * jpayne@69: xcb_query_best_size_reply (xcb_connection_t *c, jpayne@69: xcb_query_best_size_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_query_extension_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * @brief check if extension is present jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param name_len The length of \a name in bytes. jpayne@69: * @param name The name of the extension to query, for example "RANDR". This is case jpayne@69: * sensitive! jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Determines if the specified extension is present on this X11 server. jpayne@69: * jpayne@69: * Every extension has a unique `major_opcode` to identify requests, the minor jpayne@69: * opcodes and request formats are extension-specific. If the extension provides jpayne@69: * events and errors, the `first_event` and `first_error` fields in the reply are jpayne@69: * set accordingly. jpayne@69: * jpayne@69: * There should rarely be a need to use this request directly, XCB provides the jpayne@69: * `xcb_get_extension_data` function instead. jpayne@69: * jpayne@69: */ jpayne@69: xcb_query_extension_cookie_t jpayne@69: xcb_query_extension (xcb_connection_t *c, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * @brief check if extension is present jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param name_len The length of \a name in bytes. jpayne@69: * @param name The name of the extension to query, for example "RANDR". This is case jpayne@69: * sensitive! jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Determines if the specified extension is present on this X11 server. jpayne@69: * jpayne@69: * Every extension has a unique `major_opcode` to identify requests, the minor jpayne@69: * opcodes and request formats are extension-specific. If the extension provides jpayne@69: * events and errors, the `first_event` and `first_error` fields in the reply are jpayne@69: * set accordingly. jpayne@69: * jpayne@69: * There should rarely be a need to use this request directly, XCB provides the jpayne@69: * `xcb_get_extension_data` function instead. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_query_extension_cookie_t jpayne@69: xcb_query_extension_unchecked (xcb_connection_t *c, jpayne@69: uint16_t name_len, jpayne@69: const char *name); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_query_extension_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_query_extension_reply_t * jpayne@69: xcb_query_extension_reply (xcb_connection_t *c, jpayne@69: xcb_query_extension_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_list_extensions_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_list_extensions_cookie_t jpayne@69: xcb_list_extensions (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_list_extensions_cookie_t jpayne@69: xcb_list_extensions_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: int jpayne@69: xcb_list_extensions_names_length (const xcb_list_extensions_reply_t *R); jpayne@69: jpayne@69: xcb_str_iterator_t jpayne@69: xcb_list_extensions_names_iterator (const xcb_list_extensions_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_list_extensions_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_list_extensions_reply_t * jpayne@69: xcb_list_extensions_reply (xcb_connection_t *c, jpayne@69: xcb_list_extensions_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_change_keyboard_mapping_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_keyboard_mapping_checked (xcb_connection_t *c, jpayne@69: uint8_t keycode_count, jpayne@69: xcb_keycode_t first_keycode, jpayne@69: uint8_t keysyms_per_keycode, jpayne@69: const xcb_keysym_t *keysyms); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_keyboard_mapping (xcb_connection_t *c, jpayne@69: uint8_t keycode_count, jpayne@69: xcb_keycode_t first_keycode, jpayne@69: uint8_t keysyms_per_keycode, jpayne@69: const xcb_keysym_t *keysyms); jpayne@69: jpayne@69: xcb_keysym_t * jpayne@69: xcb_change_keyboard_mapping_keysyms (const xcb_change_keyboard_mapping_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_change_keyboard_mapping_keysyms_length (const xcb_change_keyboard_mapping_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_change_keyboard_mapping_keysyms_end (const xcb_change_keyboard_mapping_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_keyboard_mapping_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_keyboard_mapping_cookie_t jpayne@69: xcb_get_keyboard_mapping (xcb_connection_t *c, jpayne@69: xcb_keycode_t first_keycode, jpayne@69: uint8_t count); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_keyboard_mapping_cookie_t jpayne@69: xcb_get_keyboard_mapping_unchecked (xcb_connection_t *c, jpayne@69: xcb_keycode_t first_keycode, jpayne@69: uint8_t count); jpayne@69: jpayne@69: xcb_keysym_t * jpayne@69: xcb_get_keyboard_mapping_keysyms (const xcb_get_keyboard_mapping_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_keyboard_mapping_keysyms_length (const xcb_get_keyboard_mapping_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_get_keyboard_mapping_keysyms_end (const xcb_get_keyboard_mapping_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_keyboard_mapping_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_keyboard_mapping_reply_t * jpayne@69: xcb_get_keyboard_mapping_reply (xcb_connection_t *c, jpayne@69: xcb_get_keyboard_mapping_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_change_keyboard_control_value_list_serialize (void **_buffer, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_keyboard_control_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_change_keyboard_control_value_list_unpack (const void *_buffer, jpayne@69: uint32_t value_mask, jpayne@69: xcb_change_keyboard_control_value_list_t *_aux); jpayne@69: jpayne@69: int jpayne@69: xcb_change_keyboard_control_value_list_sizeof (const void *_buffer, jpayne@69: uint32_t value_mask); jpayne@69: jpayne@69: int jpayne@69: xcb_change_keyboard_control_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_keyboard_control_checked (xcb_connection_t *c, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_keyboard_control (xcb_connection_t *c, jpayne@69: uint32_t value_mask, jpayne@69: const void *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_keyboard_control_aux_checked (xcb_connection_t *c, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_keyboard_control_value_list_t *value_list); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_keyboard_control_aux (xcb_connection_t *c, jpayne@69: uint32_t value_mask, jpayne@69: const xcb_change_keyboard_control_value_list_t *value_list); jpayne@69: jpayne@69: void * jpayne@69: xcb_change_keyboard_control_value_list (const xcb_change_keyboard_control_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_keyboard_control_cookie_t jpayne@69: xcb_get_keyboard_control (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_keyboard_control_cookie_t jpayne@69: xcb_get_keyboard_control_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_keyboard_control_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_keyboard_control_reply_t * jpayne@69: xcb_get_keyboard_control_reply (xcb_connection_t *c, jpayne@69: xcb_get_keyboard_control_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_bell_checked (xcb_connection_t *c, jpayne@69: int8_t percent); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_bell (xcb_connection_t *c, jpayne@69: int8_t percent); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_pointer_control_checked (xcb_connection_t *c, jpayne@69: int16_t acceleration_numerator, jpayne@69: int16_t acceleration_denominator, jpayne@69: int16_t threshold, jpayne@69: uint8_t do_acceleration, jpayne@69: uint8_t do_threshold); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_pointer_control (xcb_connection_t *c, jpayne@69: int16_t acceleration_numerator, jpayne@69: int16_t acceleration_denominator, jpayne@69: int16_t threshold, jpayne@69: uint8_t do_acceleration, jpayne@69: uint8_t do_threshold); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_pointer_control_cookie_t jpayne@69: xcb_get_pointer_control (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_pointer_control_cookie_t jpayne@69: xcb_get_pointer_control_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_pointer_control_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_pointer_control_reply_t * jpayne@69: xcb_get_pointer_control_reply (xcb_connection_t *c, jpayne@69: xcb_get_pointer_control_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_screen_saver_checked (xcb_connection_t *c, jpayne@69: int16_t timeout, jpayne@69: int16_t interval, jpayne@69: uint8_t prefer_blanking, jpayne@69: uint8_t allow_exposures); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_screen_saver (xcb_connection_t *c, jpayne@69: int16_t timeout, jpayne@69: int16_t interval, jpayne@69: uint8_t prefer_blanking, jpayne@69: uint8_t allow_exposures); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_screen_saver_cookie_t jpayne@69: xcb_get_screen_saver (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_screen_saver_cookie_t jpayne@69: xcb_get_screen_saver_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_screen_saver_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_screen_saver_reply_t * jpayne@69: xcb_get_screen_saver_reply (xcb_connection_t *c, jpayne@69: xcb_get_screen_saver_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_change_hosts_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_hosts_checked (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: uint8_t family, jpayne@69: uint16_t address_len, jpayne@69: const uint8_t *address); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_change_hosts (xcb_connection_t *c, jpayne@69: uint8_t mode, jpayne@69: uint8_t family, jpayne@69: uint16_t address_len, jpayne@69: const uint8_t *address); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_change_hosts_address (const xcb_change_hosts_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_change_hosts_address_length (const xcb_change_hosts_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_change_hosts_address_end (const xcb_change_hosts_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_host_sizeof (const void *_buffer); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_host_address (const xcb_host_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_host_address_length (const xcb_host_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_host_address_end (const xcb_host_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_host_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_host_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_host_next (xcb_host_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_host_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_host_end (xcb_host_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_list_hosts_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_list_hosts_cookie_t jpayne@69: xcb_list_hosts (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_list_hosts_cookie_t jpayne@69: xcb_list_hosts_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: int jpayne@69: xcb_list_hosts_hosts_length (const xcb_list_hosts_reply_t *R); jpayne@69: jpayne@69: xcb_host_iterator_t jpayne@69: xcb_list_hosts_hosts_iterator (const xcb_list_hosts_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_list_hosts_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_list_hosts_reply_t * jpayne@69: xcb_list_hosts_reply (xcb_connection_t *c, jpayne@69: xcb_list_hosts_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_access_control_checked (xcb_connection_t *c, jpayne@69: uint8_t mode); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_access_control (xcb_connection_t *c, jpayne@69: uint8_t mode); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_close_down_mode_checked (xcb_connection_t *c, jpayne@69: uint8_t mode); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_set_close_down_mode (xcb_connection_t *c, jpayne@69: uint8_t mode); jpayne@69: jpayne@69: /** jpayne@69: * @brief kills a client jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param resource Any resource belonging to the client (for example a Window), used to identify jpayne@69: * the client connection. jpayne@69: * \n jpayne@69: * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients jpayne@69: * that have terminated in `RetainTemporary` (TODO) are destroyed. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Forces a close down of the client that created the specified \a resource. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_kill_client_checked (xcb_connection_t *c, jpayne@69: uint32_t resource); jpayne@69: jpayne@69: /** jpayne@69: * @brief kills a client jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @param resource Any resource belonging to the client (for example a Window), used to identify jpayne@69: * the client connection. jpayne@69: * \n jpayne@69: * The special value of `XCB_KILL_ALL_TEMPORARY`, the resources of all clients jpayne@69: * that have terminated in `RetainTemporary` (TODO) are destroyed. jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Forces a close down of the client that created the specified \a resource. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_kill_client (xcb_connection_t *c, jpayne@69: uint32_t resource); jpayne@69: jpayne@69: int jpayne@69: xcb_rotate_properties_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_rotate_properties_checked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint16_t atoms_len, jpayne@69: int16_t delta, jpayne@69: const xcb_atom_t *atoms); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_rotate_properties (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint16_t atoms_len, jpayne@69: int16_t delta, jpayne@69: const xcb_atom_t *atoms); jpayne@69: jpayne@69: xcb_atom_t * jpayne@69: xcb_rotate_properties_atoms (const xcb_rotate_properties_request_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_rotate_properties_atoms_length (const xcb_rotate_properties_request_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_rotate_properties_atoms_end (const xcb_rotate_properties_request_t *R); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_force_screen_saver_checked (xcb_connection_t *c, jpayne@69: uint8_t mode); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_force_screen_saver (xcb_connection_t *c, jpayne@69: uint8_t mode); jpayne@69: jpayne@69: int jpayne@69: xcb_set_pointer_mapping_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_set_pointer_mapping_cookie_t jpayne@69: xcb_set_pointer_mapping (xcb_connection_t *c, jpayne@69: uint8_t map_len, jpayne@69: const uint8_t *map); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_set_pointer_mapping_cookie_t jpayne@69: xcb_set_pointer_mapping_unchecked (xcb_connection_t *c, jpayne@69: uint8_t map_len, jpayne@69: const uint8_t *map); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_set_pointer_mapping_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_set_pointer_mapping_reply_t * jpayne@69: xcb_set_pointer_mapping_reply (xcb_connection_t *c, jpayne@69: xcb_set_pointer_mapping_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_get_pointer_mapping_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_pointer_mapping_cookie_t jpayne@69: xcb_get_pointer_mapping (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_pointer_mapping_cookie_t jpayne@69: xcb_get_pointer_mapping_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: uint8_t * jpayne@69: xcb_get_pointer_mapping_map (const xcb_get_pointer_mapping_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_pointer_mapping_map_length (const xcb_get_pointer_mapping_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_get_pointer_mapping_map_end (const xcb_get_pointer_mapping_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_pointer_mapping_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_pointer_mapping_reply_t * jpayne@69: xcb_get_pointer_mapping_reply (xcb_connection_t *c, jpayne@69: xcb_get_pointer_mapping_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_set_modifier_mapping_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_set_modifier_mapping_cookie_t jpayne@69: xcb_set_modifier_mapping (xcb_connection_t *c, jpayne@69: uint8_t keycodes_per_modifier, jpayne@69: const xcb_keycode_t *keycodes); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_set_modifier_mapping_cookie_t jpayne@69: xcb_set_modifier_mapping_unchecked (xcb_connection_t *c, jpayne@69: uint8_t keycodes_per_modifier, jpayne@69: const xcb_keycode_t *keycodes); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_set_modifier_mapping_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_set_modifier_mapping_reply_t * jpayne@69: xcb_set_modifier_mapping_reply (xcb_connection_t *c, jpayne@69: xcb_set_modifier_mapping_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_get_modifier_mapping_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_get_modifier_mapping_cookie_t jpayne@69: xcb_get_modifier_mapping (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_get_modifier_mapping_cookie_t jpayne@69: xcb_get_modifier_mapping_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: xcb_keycode_t * jpayne@69: xcb_get_modifier_mapping_keycodes (const xcb_get_modifier_mapping_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_get_modifier_mapping_keycodes_length (const xcb_get_modifier_mapping_reply_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_get_modifier_mapping_keycodes_end (const xcb_get_modifier_mapping_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_get_modifier_mapping_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_get_modifier_mapping_reply_t * jpayne@69: xcb_get_modifier_mapping_reply (xcb_connection_t *c, jpayne@69: xcb_get_modifier_mapping_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will not cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * saved for handling by xcb_request_check(). jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_no_operation_checked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_void_cookie_t jpayne@69: xcb_no_operation (xcb_connection_t *c); jpayne@69: jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @} jpayne@69: */