diff options
-rw-r--r-- | lib/libxcb/src/dpms.h | 7 | ||||
-rw-r--r-- | lib/libxcb/src/randr.c | 1159 | ||||
-rw-r--r-- | lib/libxcb/src/randr.h | 1137 | ||||
-rw-r--r-- | lib/libxcb/src/render.h | 4 | ||||
-rw-r--r-- | lib/libxcb/src/shm.h | 2 | ||||
-rw-r--r-- | lib/libxcb/src/sync.h | 2 | ||||
-rw-r--r-- | lib/libxcb/src/xfixes.h | 4 | ||||
-rw-r--r-- | lib/libxcb/src/xinput.h | 118 | ||||
-rw-r--r-- | lib/libxcb/src/xproto.c | 4 | ||||
-rw-r--r-- | lib/libxcb/src/xproto.h | 122 | ||||
-rw-r--r-- | lib/libxcb/src/xtest.c | 12 | ||||
-rw-r--r-- | lib/libxcb/src/xtest.h | 10 | ||||
-rw-r--r-- | lib/libxcb/src/xv.h | 22 |
13 files changed, 2518 insertions, 85 deletions
diff --git a/lib/libxcb/src/dpms.h b/lib/libxcb/src/dpms.h index 7238d8b0d..a002aa692 100644 --- a/lib/libxcb/src/dpms.h +++ b/lib/libxcb/src/dpms.h @@ -159,6 +159,13 @@ typedef struct xcb_dpms_disable_request_t { uint16_t length; /**< */ } xcb_dpms_disable_request_t; +typedef enum xcb_dpms_dpms_mode_t { + XCB_DPMS_DPMS_MODE_ON, + XCB_DPMS_DPMS_MODE_STANDBY, + XCB_DPMS_DPMS_MODE_SUSPEND, + XCB_DPMS_DPMS_MODE_OFF +} xcb_dpms_dpms_mode_t; + /** Opcode for xcb_dpms_force_level. */ #define XCB_DPMS_FORCE_LEVEL 6 diff --git a/lib/libxcb/src/randr.c b/lib/libxcb/src/randr.c index c509236f6..1956ee033 100644 --- a/lib/libxcb/src/randr.c +++ b/lib/libxcb/src/randr.c @@ -8,6 +8,7 @@ #include "xcbext.h" #include "randr.h" #include "xproto.h" +#include "render.h" xcb_extension_t xcb_randr_id = { "RANDR", 0 }; @@ -3517,6 +3518,1164 @@ xcb_randr_set_crtc_gamma (xcb_connection_t *c /**< */, /***************************************************************************** ** + ** xcb_randr_get_screen_resources_current_cookie_t xcb_randr_get_screen_resources_current + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_screen_resources_current_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_screen_resources_current_cookie_t +xcb_randr_get_screen_resources_current (xcb_connection_t *c /**< */, + xcb_window_t window /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_screen_resources_current_cookie_t xcb_ret; + xcb_randr_get_screen_resources_current_request_t xcb_out; + + xcb_out.window = window; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_screen_resources_current_cookie_t xcb_randr_get_screen_resources_current_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_screen_resources_current_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_screen_resources_current_cookie_t +xcb_randr_get_screen_resources_current_unchecked (xcb_connection_t *c /**< */, + xcb_window_t window /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_screen_resources_current_cookie_t xcb_ret; + xcb_randr_get_screen_resources_current_request_t xcb_out; + + xcb_out.window = window; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_crtc_t * xcb_randr_get_screen_resources_current_crtcs + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_crtc_t * + ** + *****************************************************************************/ + +xcb_randr_crtc_t * +xcb_randr_get_screen_resources_current_crtcs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + return (xcb_randr_crtc_t *) (R + 1); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_crtcs_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_crtcs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + return R->num_crtcs; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_screen_resources_current_crtcs_end + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_screen_resources_current_crtcs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + i.data = ((xcb_randr_crtc_t *) (R + 1)) + (R->num_crtcs); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** xcb_randr_output_t * xcb_randr_get_screen_resources_current_outputs + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_output_t * + ** + *****************************************************************************/ + +xcb_randr_output_t * +xcb_randr_get_screen_resources_current_outputs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_current_crtcs_end(R); + return (xcb_randr_output_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_output_t, prev.index) + 0); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_outputs_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_outputs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + return R->num_outputs; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_screen_resources_current_outputs_end + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_screen_resources_current_outputs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + xcb_generic_iterator_t child = xcb_randr_get_screen_resources_current_crtcs_end(R); + i.data = ((xcb_randr_output_t *) child.data) + (R->num_outputs); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** xcb_randr_mode_info_t * xcb_randr_get_screen_resources_current_modes + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_mode_info_t * + ** + *****************************************************************************/ + +xcb_randr_mode_info_t * +xcb_randr_get_screen_resources_current_modes (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_current_outputs_end(R); + return (xcb_randr_mode_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_info_t, prev.index) + 0); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_modes_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_modes_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + return R->num_modes; +} + + +/***************************************************************************** + ** + ** xcb_randr_mode_info_iterator_t xcb_randr_get_screen_resources_current_modes_iterator + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_mode_info_iterator_t + ** + *****************************************************************************/ + +xcb_randr_mode_info_iterator_t +xcb_randr_get_screen_resources_current_modes_iterator (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_randr_mode_info_iterator_t i; + xcb_generic_iterator_t prev = xcb_randr_get_screen_resources_current_outputs_end(R); + i.data = (xcb_randr_mode_info_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_randr_mode_info_t, prev.index)); + i.rem = R->num_modes; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** uint8_t * xcb_randr_get_screen_resources_current_names + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns uint8_t * + ** + *****************************************************************************/ + +uint8_t * +xcb_randr_get_screen_resources_current_names (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_generic_iterator_t prev = xcb_randr_mode_info_end(xcb_randr_get_screen_resources_current_modes_iterator(R)); + return (uint8_t *) ((char *) prev.data + XCB_TYPE_PAD(uint8_t, prev.index) + 0); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_names_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_names_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + return R->names_len; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_screen_resources_current_names_end + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_screen_resources_current_names_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + xcb_generic_iterator_t child = xcb_randr_mode_info_end(xcb_randr_get_screen_resources_current_modes_iterator(R)); + i.data = ((uint8_t *) child.data) + (R->names_len); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_screen_resources_current_reply_t * xcb_randr_get_screen_resources_current_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_screen_resources_current_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_screen_resources_current_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_screen_resources_current_reply_t * +xcb_randr_get_screen_resources_current_reply (xcb_connection_t *c /**< */, + xcb_randr_get_screen_resources_current_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */) +{ + return (xcb_randr_get_screen_resources_current_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); +} + + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_crtc_transform_checked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_render_transform_t transform + ** @param uint16_t filter_len + ** @param const char *filter_name + ** @param uint32_t filter_params_len + ** @param const xcb_render_fixed_t *filter_params + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_crtc_transform_checked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_render_transform_t transform /**< */, + uint16_t filter_len /**< */, + const char *filter_name /**< */, + uint32_t filter_params_len /**< */, + const xcb_render_fixed_t *filter_params /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 6, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_SET_CRTC_TRANSFORM, + /* isvoid */ 1 + }; + + struct iovec xcb_parts[8]; + xcb_void_cookie_t xcb_ret; + xcb_randr_set_crtc_transform_request_t xcb_out; + + xcb_out.crtc = crtc; + xcb_out.transform = transform; + xcb_out.filter_len = filter_len; + memset(xcb_out.pad0, 0, 2); + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_parts[4].iov_base = (char *) filter_name; + xcb_parts[4].iov_len = filter_len * sizeof(char); + xcb_parts[5].iov_base = 0; + xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; + xcb_parts[6].iov_base = (char *) filter_params; + xcb_parts[6].iov_len = filter_params_len * sizeof(xcb_render_fixed_t); + xcb_parts[7].iov_base = 0; + xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_crtc_transform + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_render_transform_t transform + ** @param uint16_t filter_len + ** @param const char *filter_name + ** @param uint32_t filter_params_len + ** @param const xcb_render_fixed_t *filter_params + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_crtc_transform (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_render_transform_t transform /**< */, + uint16_t filter_len /**< */, + const char *filter_name /**< */, + uint32_t filter_params_len /**< */, + const xcb_render_fixed_t *filter_params /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 6, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_SET_CRTC_TRANSFORM, + /* isvoid */ 1 + }; + + struct iovec xcb_parts[8]; + xcb_void_cookie_t xcb_ret; + xcb_randr_set_crtc_transform_request_t xcb_out; + + xcb_out.crtc = crtc; + xcb_out.transform = transform; + xcb_out.filter_len = filter_len; + memset(xcb_out.pad0, 0, 2); + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_parts[4].iov_base = (char *) filter_name; + xcb_parts[4].iov_len = filter_len * sizeof(char); + xcb_parts[5].iov_base = 0; + xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3; + xcb_parts[6].iov_base = (char *) filter_params; + xcb_parts[6].iov_len = filter_params_len * sizeof(xcb_render_fixed_t); + xcb_parts[7].iov_base = 0; + xcb_parts[7].iov_len = -xcb_parts[6].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_crtc_transform_cookie_t xcb_randr_get_crtc_transform + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_crtc_transform_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_crtc_transform_cookie_t +xcb_randr_get_crtc_transform (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_CRTC_TRANSFORM, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_crtc_transform_cookie_t xcb_ret; + xcb_randr_get_crtc_transform_request_t xcb_out; + + xcb_out.crtc = crtc; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_crtc_transform_cookie_t xcb_randr_get_crtc_transform_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_crtc_transform_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_crtc_transform_cookie_t +xcb_randr_get_crtc_transform_unchecked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_CRTC_TRANSFORM, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_crtc_transform_cookie_t xcb_ret; + xcb_randr_get_crtc_transform_request_t xcb_out; + + xcb_out.crtc = crtc; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** char * xcb_randr_get_crtc_transform_pending_filter_name + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns char * + ** + *****************************************************************************/ + +char * +xcb_randr_get_crtc_transform_pending_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + return (char *) (R + 1); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_pending_filter_name_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_pending_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + return R->pending_len; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_pending_filter_name_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_pending_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + i.data = ((char *) (R + 1)) + (R->pending_len); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** xcb_render_fixed_t * xcb_randr_get_crtc_transform_pending_params + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_render_fixed_t * + ** + *****************************************************************************/ + +xcb_render_fixed_t * +xcb_randr_get_crtc_transform_pending_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t prev = xcb_randr_get_crtc_transform_pending_filter_name_end(R); + return (xcb_render_fixed_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_render_fixed_t, prev.index) + 0); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_pending_params_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_pending_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + return R->pending_nparams; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_pending_params_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_pending_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + xcb_generic_iterator_t child = xcb_randr_get_crtc_transform_pending_filter_name_end(R); + i.data = ((xcb_render_fixed_t *) child.data) + (R->pending_nparams); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** char * xcb_randr_get_crtc_transform_current_filter_name + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns char * + ** + *****************************************************************************/ + +char * +xcb_randr_get_crtc_transform_current_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t prev = xcb_randr_get_crtc_transform_pending_params_end(R); + return (char *) ((char *) prev.data + XCB_TYPE_PAD(char, prev.index) + 0); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_current_filter_name_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_current_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + return R->current_len; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_current_filter_name_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_current_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + xcb_generic_iterator_t child = xcb_randr_get_crtc_transform_pending_params_end(R); + i.data = ((char *) child.data) + (R->current_len); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** xcb_render_fixed_t * xcb_randr_get_crtc_transform_current_params + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_render_fixed_t * + ** + *****************************************************************************/ + +xcb_render_fixed_t * +xcb_randr_get_crtc_transform_current_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t prev = xcb_randr_get_crtc_transform_current_filter_name_end(R); + return (xcb_render_fixed_t *) ((char *) prev.data + XCB_TYPE_PAD(xcb_render_fixed_t, prev.index) + 0); +} + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_current_params_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_current_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + return R->current_nparams; +} + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_current_params_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_current_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */) +{ + xcb_generic_iterator_t i; + xcb_generic_iterator_t child = xcb_randr_get_crtc_transform_current_filter_name_end(R); + i.data = ((xcb_render_fixed_t *) child.data) + (R->current_nparams); + i.rem = 0; + i.index = (char *) i.data - (char *) R; + return i; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_crtc_transform_reply_t * xcb_randr_get_crtc_transform_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_crtc_transform_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_crtc_transform_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_crtc_transform_reply_t * +xcb_randr_get_crtc_transform_reply (xcb_connection_t *c /**< */, + xcb_randr_get_crtc_transform_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */) +{ + return (xcb_randr_get_crtc_transform_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); +} + + +/***************************************************************************** + ** + ** xcb_randr_get_panning_cookie_t xcb_randr_get_panning + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_panning_cookie_t +xcb_randr_get_panning (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_PANNING, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_panning_cookie_t xcb_ret; + xcb_randr_get_panning_request_t xcb_out; + + xcb_out.crtc = crtc; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_panning_cookie_t xcb_randr_get_panning_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_panning_cookie_t +xcb_randr_get_panning_unchecked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_PANNING, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_panning_cookie_t xcb_ret; + xcb_randr_get_panning_request_t xcb_out; + + xcb_out.crtc = crtc; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_panning_reply_t * xcb_randr_get_panning_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_panning_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_panning_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_panning_reply_t * +xcb_randr_get_panning_reply (xcb_connection_t *c /**< */, + xcb_randr_get_panning_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */) +{ + return (xcb_randr_get_panning_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); +} + + +/***************************************************************************** + ** + ** xcb_randr_set_panning_cookie_t xcb_randr_set_panning + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_timestamp_t timestamp + ** @param uint16_t left + ** @param uint16_t top + ** @param uint16_t width + ** @param uint16_t height + ** @param uint16_t track_left + ** @param uint16_t track_top + ** @param uint16_t track_width + ** @param uint16_t track_height + ** @param int16_t border_left + ** @param int16_t border_top + ** @param int16_t border_right + ** @param int16_t border_bottom + ** @returns xcb_randr_set_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_set_panning_cookie_t +xcb_randr_set_panning (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_timestamp_t timestamp /**< */, + uint16_t left /**< */, + uint16_t top /**< */, + uint16_t width /**< */, + uint16_t height /**< */, + uint16_t track_left /**< */, + uint16_t track_top /**< */, + uint16_t track_width /**< */, + uint16_t track_height /**< */, + int16_t border_left /**< */, + int16_t border_top /**< */, + int16_t border_right /**< */, + int16_t border_bottom /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_SET_PANNING, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_set_panning_cookie_t xcb_ret; + xcb_randr_set_panning_request_t xcb_out; + + xcb_out.crtc = crtc; + xcb_out.timestamp = timestamp; + xcb_out.left = left; + xcb_out.top = top; + xcb_out.width = width; + xcb_out.height = height; + xcb_out.track_left = track_left; + xcb_out.track_top = track_top; + xcb_out.track_width = track_width; + xcb_out.track_height = track_height; + xcb_out.border_left = border_left; + xcb_out.border_top = border_top; + xcb_out.border_right = border_right; + xcb_out.border_bottom = border_bottom; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_set_panning_cookie_t xcb_randr_set_panning_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_timestamp_t timestamp + ** @param uint16_t left + ** @param uint16_t top + ** @param uint16_t width + ** @param uint16_t height + ** @param uint16_t track_left + ** @param uint16_t track_top + ** @param uint16_t track_width + ** @param uint16_t track_height + ** @param int16_t border_left + ** @param int16_t border_top + ** @param int16_t border_right + ** @param int16_t border_bottom + ** @returns xcb_randr_set_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_set_panning_cookie_t +xcb_randr_set_panning_unchecked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_timestamp_t timestamp /**< */, + uint16_t left /**< */, + uint16_t top /**< */, + uint16_t width /**< */, + uint16_t height /**< */, + uint16_t track_left /**< */, + uint16_t track_top /**< */, + uint16_t track_width /**< */, + uint16_t track_height /**< */, + int16_t border_left /**< */, + int16_t border_top /**< */, + int16_t border_right /**< */, + int16_t border_bottom /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_SET_PANNING, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_set_panning_cookie_t xcb_ret; + xcb_randr_set_panning_request_t xcb_out; + + xcb_out.crtc = crtc; + xcb_out.timestamp = timestamp; + xcb_out.left = left; + xcb_out.top = top; + xcb_out.width = width; + xcb_out.height = height; + xcb_out.track_left = track_left; + xcb_out.track_top = track_top; + xcb_out.track_width = track_width; + xcb_out.track_height = track_height; + xcb_out.border_left = border_left; + xcb_out.border_top = border_top; + xcb_out.border_right = border_right; + xcb_out.border_bottom = border_bottom; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_set_panning_reply_t * xcb_randr_set_panning_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_set_panning_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_set_panning_reply_t * + ** + *****************************************************************************/ + +xcb_randr_set_panning_reply_t * +xcb_randr_set_panning_reply (xcb_connection_t *c /**< */, + xcb_randr_set_panning_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */) +{ + return (xcb_randr_set_panning_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); +} + + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_output_primary_checked + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @param xcb_randr_output_t output + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_output_primary_checked (xcb_connection_t *c /**< */, + xcb_window_t window /**< */, + xcb_randr_output_t output /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_SET_OUTPUT_PRIMARY, + /* isvoid */ 1 + }; + + struct iovec xcb_parts[4]; + xcb_void_cookie_t xcb_ret; + xcb_randr_set_output_primary_request_t xcb_out; + + xcb_out.window = window; + xcb_out.output = output; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_output_primary + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @param xcb_randr_output_t output + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_output_primary (xcb_connection_t *c /**< */, + xcb_window_t window /**< */, + xcb_randr_output_t output /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_SET_OUTPUT_PRIMARY, + /* isvoid */ 1 + }; + + struct iovec xcb_parts[4]; + xcb_void_cookie_t xcb_ret; + xcb_randr_set_output_primary_request_t xcb_out; + + xcb_out.window = window; + xcb_out.output = output; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_output_primary_cookie_t xcb_randr_get_output_primary + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_output_primary_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_output_primary_cookie_t +xcb_randr_get_output_primary (xcb_connection_t *c /**< */, + xcb_window_t window /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_OUTPUT_PRIMARY, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_output_primary_cookie_t xcb_ret; + xcb_randr_get_output_primary_request_t xcb_out; + + xcb_out.window = window; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_output_primary_cookie_t xcb_randr_get_output_primary_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_output_primary_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_output_primary_cookie_t +xcb_randr_get_output_primary_unchecked (xcb_connection_t *c /**< */, + xcb_window_t window /**< */) +{ + static const xcb_protocol_request_t xcb_req = { + /* count */ 2, + /* ext */ &xcb_randr_id, + /* opcode */ XCB_RANDR_GET_OUTPUT_PRIMARY, + /* isvoid */ 0 + }; + + struct iovec xcb_parts[4]; + xcb_randr_get_output_primary_cookie_t xcb_ret; + xcb_randr_get_output_primary_request_t xcb_out; + + xcb_out.window = window; + + xcb_parts[2].iov_base = (char *) &xcb_out; + xcb_parts[2].iov_len = sizeof(xcb_out); + xcb_parts[3].iov_base = 0; + xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3; + xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req); + return xcb_ret; +} + + +/***************************************************************************** + ** + ** xcb_randr_get_output_primary_reply_t * xcb_randr_get_output_primary_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_output_primary_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_output_primary_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_output_primary_reply_t * +xcb_randr_get_output_primary_reply (xcb_connection_t *c /**< */, + xcb_randr_get_output_primary_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */) +{ + return (xcb_randr_get_output_primary_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e); +} + + +/***************************************************************************** + ** ** void xcb_randr_crtc_change_next ** ** @param xcb_randr_crtc_change_iterator_t *i diff --git a/lib/libxcb/src/randr.h b/lib/libxcb/src/randr.h index a7047f9c9..1035c4043 100644 --- a/lib/libxcb/src/randr.h +++ b/lib/libxcb/src/randr.h @@ -14,13 +14,14 @@ #include "xcb.h" #include "xproto.h" +#include "render.h" #ifdef __cplusplus extern "C" { #endif #define XCB_RANDR_MAJOR_VERSION 1 -#define XCB_RANDR_MINOR_VERSION 2 +#define XCB_RANDR_MINOR_VERSION 3 extern xcb_extension_t xcb_randr_id; @@ -171,6 +172,13 @@ typedef struct xcb_randr_query_version_reply_t { uint8_t pad1[16]; /**< */ } xcb_randr_query_version_reply_t; +typedef enum xcb_randr_set_config_t { + XCB_RANDR_SET_CONFIG_SUCCESS = 0, + XCB_RANDR_SET_CONFIG_INVALID_CONFIG_TIME = 1, + XCB_RANDR_SET_CONFIG_INVALID_TIME = 2, + XCB_RANDR_SET_CONFIG_FAILED = 3 +} xcb_randr_set_config_t; + /** * @brief xcb_randr_set_screen_config_cookie_t **/ @@ -212,12 +220,12 @@ typedef struct xcb_randr_set_screen_config_reply_t { uint8_t pad0[10]; /**< */ } xcb_randr_set_screen_config_reply_t; -typedef enum xcb_randr_set_config_t { - XCB_RANDR_SET_CONFIG_SUCCESS = 0, - XCB_RANDR_SET_CONFIG_INVALID_CONFIG_TIME = 1, - XCB_RANDR_SET_CONFIG_INVALID_TIME = 2, - XCB_RANDR_SET_CONFIG_FAILED = 3 -} xcb_randr_set_config_t; +typedef enum xcb_randr_notify_mask_t { + XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE = 1, + XCB_RANDR_NOTIFY_MASK_CRTC_CHANGE = 2, + XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE = 4, + XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY = 8 +} xcb_randr_notify_mask_t; /** Opcode for xcb_randr_select_input. */ #define XCB_RANDR_SELECT_INPUT 4 @@ -846,12 +854,229 @@ typedef struct xcb_randr_set_crtc_gamma_request_t { uint8_t pad0[2]; /**< */ } xcb_randr_set_crtc_gamma_request_t; -typedef enum xcb_randr_notify_mask_t { - XCB_RANDR_NOTIFY_MASK_SCREEN_CHANGE = 1, - XCB_RANDR_NOTIFY_MASK_CRTC_CHANGE = 2, - XCB_RANDR_NOTIFY_MASK_OUTPUT_CHANGE = 4, - XCB_RANDR_NOTIFY_MASK_OUTPUT_PROPERTY = 8 -} xcb_randr_notify_mask_t; +/** + * @brief xcb_randr_get_screen_resources_current_cookie_t + **/ +typedef struct xcb_randr_get_screen_resources_current_cookie_t { + unsigned int sequence; /**< */ +} xcb_randr_get_screen_resources_current_cookie_t; + +/** Opcode for xcb_randr_get_screen_resources_current. */ +#define XCB_RANDR_GET_SCREEN_RESOURCES_CURRENT 25 + +/** + * @brief xcb_randr_get_screen_resources_current_request_t + **/ +typedef struct xcb_randr_get_screen_resources_current_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_window_t window; /**< */ +} xcb_randr_get_screen_resources_current_request_t; + +/** + * @brief xcb_randr_get_screen_resources_current_reply_t + **/ +typedef struct xcb_randr_get_screen_resources_current_reply_t { + uint8_t response_type; /**< */ + uint8_t pad0; /**< */ + uint16_t sequence; /**< */ + uint32_t length; /**< */ + xcb_timestamp_t timestamp; /**< */ + xcb_timestamp_t config_timestamp; /**< */ + uint16_t num_crtcs; /**< */ + uint16_t num_outputs; /**< */ + uint16_t num_modes; /**< */ + uint16_t names_len; /**< */ + uint8_t pad1[8]; /**< */ +} xcb_randr_get_screen_resources_current_reply_t; + +/** Opcode for xcb_randr_set_crtc_transform. */ +#define XCB_RANDR_SET_CRTC_TRANSFORM 26 + +/** + * @brief xcb_randr_set_crtc_transform_request_t + **/ +typedef struct xcb_randr_set_crtc_transform_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_randr_crtc_t crtc; /**< */ + xcb_render_transform_t transform; /**< */ + uint16_t filter_len; /**< */ + uint8_t pad0[2]; /**< */ +} xcb_randr_set_crtc_transform_request_t; + +/** + * @brief xcb_randr_get_crtc_transform_cookie_t + **/ +typedef struct xcb_randr_get_crtc_transform_cookie_t { + unsigned int sequence; /**< */ +} xcb_randr_get_crtc_transform_cookie_t; + +/** Opcode for xcb_randr_get_crtc_transform. */ +#define XCB_RANDR_GET_CRTC_TRANSFORM 27 + +/** + * @brief xcb_randr_get_crtc_transform_request_t + **/ +typedef struct xcb_randr_get_crtc_transform_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_randr_crtc_t crtc; /**< */ +} xcb_randr_get_crtc_transform_request_t; + +/** + * @brief xcb_randr_get_crtc_transform_reply_t + **/ +typedef struct xcb_randr_get_crtc_transform_reply_t { + uint8_t response_type; /**< */ + uint8_t pad0; /**< */ + uint16_t sequence; /**< */ + uint32_t length; /**< */ + xcb_render_transform_t pending_transform; /**< */ + uint8_t has_transforms; /**< */ + uint8_t pad1[3]; /**< */ + xcb_render_transform_t current_transform; /**< */ + uint8_t pad2[4]; /**< */ + uint16_t pending_len; /**< */ + uint16_t pending_nparams; /**< */ + uint16_t current_len; /**< */ + uint16_t current_nparams; /**< */ +} xcb_randr_get_crtc_transform_reply_t; + +/** + * @brief xcb_randr_get_panning_cookie_t + **/ +typedef struct xcb_randr_get_panning_cookie_t { + unsigned int sequence; /**< */ +} xcb_randr_get_panning_cookie_t; + +/** Opcode for xcb_randr_get_panning. */ +#define XCB_RANDR_GET_PANNING 28 + +/** + * @brief xcb_randr_get_panning_request_t + **/ +typedef struct xcb_randr_get_panning_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_randr_crtc_t crtc; /**< */ +} xcb_randr_get_panning_request_t; + +/** + * @brief xcb_randr_get_panning_reply_t + **/ +typedef struct xcb_randr_get_panning_reply_t { + uint8_t response_type; /**< */ + uint8_t status; /**< */ + uint16_t sequence; /**< */ + uint32_t length; /**< */ + xcb_timestamp_t timestamp; /**< */ + uint16_t left; /**< */ + uint16_t top; /**< */ + uint16_t width; /**< */ + uint16_t height; /**< */ + uint16_t track_left; /**< */ + uint16_t track_top; /**< */ + uint16_t track_width; /**< */ + uint16_t track_height; /**< */ + int16_t border_left; /**< */ + int16_t border_top; /**< */ + int16_t border_right; /**< */ + int16_t border_bottom; /**< */ +} xcb_randr_get_panning_reply_t; + +/** + * @brief xcb_randr_set_panning_cookie_t + **/ +typedef struct xcb_randr_set_panning_cookie_t { + unsigned int sequence; /**< */ +} xcb_randr_set_panning_cookie_t; + +/** Opcode for xcb_randr_set_panning. */ +#define XCB_RANDR_SET_PANNING 29 + +/** + * @brief xcb_randr_set_panning_request_t + **/ +typedef struct xcb_randr_set_panning_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_randr_crtc_t crtc; /**< */ + xcb_timestamp_t timestamp; /**< */ + uint16_t left; /**< */ + uint16_t top; /**< */ + uint16_t width; /**< */ + uint16_t height; /**< */ + uint16_t track_left; /**< */ + uint16_t track_top; /**< */ + uint16_t track_width; /**< */ + uint16_t track_height; /**< */ + int16_t border_left; /**< */ + int16_t border_top; /**< */ + int16_t border_right; /**< */ + int16_t border_bottom; /**< */ +} xcb_randr_set_panning_request_t; + +/** + * @brief xcb_randr_set_panning_reply_t + **/ +typedef struct xcb_randr_set_panning_reply_t { + uint8_t response_type; /**< */ + uint8_t status; /**< */ + uint16_t sequence; /**< */ + uint32_t length; /**< */ + xcb_timestamp_t timestamp; /**< */ +} xcb_randr_set_panning_reply_t; + +/** Opcode for xcb_randr_set_output_primary. */ +#define XCB_RANDR_SET_OUTPUT_PRIMARY 30 + +/** + * @brief xcb_randr_set_output_primary_request_t + **/ +typedef struct xcb_randr_set_output_primary_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_window_t window; /**< */ + xcb_randr_output_t output; /**< */ +} xcb_randr_set_output_primary_request_t; + +/** + * @brief xcb_randr_get_output_primary_cookie_t + **/ +typedef struct xcb_randr_get_output_primary_cookie_t { + unsigned int sequence; /**< */ +} xcb_randr_get_output_primary_cookie_t; + +/** Opcode for xcb_randr_get_output_primary. */ +#define XCB_RANDR_GET_OUTPUT_PRIMARY 31 + +/** + * @brief xcb_randr_get_output_primary_request_t + **/ +typedef struct xcb_randr_get_output_primary_request_t { + uint8_t major_opcode; /**< */ + uint8_t minor_opcode; /**< */ + uint16_t length; /**< */ + xcb_window_t window; /**< */ +} xcb_randr_get_output_primary_request_t; + +/** + * @brief xcb_randr_get_output_primary_reply_t + **/ +typedef struct xcb_randr_get_output_primary_reply_t { + uint8_t response_type; /**< */ + uint8_t pad0; /**< */ + uint16_t sequence; /**< */ + uint32_t length; /**< */ + xcb_randr_output_t output; /**< */ +} xcb_randr_get_output_primary_reply_t; /** Opcode for xcb_randr_screen_change_notify. */ #define XCB_RANDR_SCREEN_CHANGE_NOTIFY 0 @@ -3726,6 +3951,892 @@ xcb_randr_set_crtc_gamma (xcb_connection_t *c /**< */, const uint16_t *blue /**< */); /** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_randr_get_screen_resources_current_cookie_t xcb_randr_get_screen_resources_current + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_screen_resources_current_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_screen_resources_current_cookie_t +xcb_randr_get_screen_resources_current (xcb_connection_t *c /**< */, + xcb_window_t window /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will cause + * a reply to be generated. Any returned error will be + * placed in the event queue. + */ + +/***************************************************************************** + ** + ** xcb_randr_get_screen_resources_current_cookie_t xcb_randr_get_screen_resources_current_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_screen_resources_current_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_screen_resources_current_cookie_t +xcb_randr_get_screen_resources_current_unchecked (xcb_connection_t *c /**< */, + xcb_window_t window /**< */); + + +/***************************************************************************** + ** + ** xcb_randr_crtc_t * xcb_randr_get_screen_resources_current_crtcs + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_crtc_t * + ** + *****************************************************************************/ + +xcb_randr_crtc_t * +xcb_randr_get_screen_resources_current_crtcs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_crtcs_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_crtcs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_screen_resources_current_crtcs_end + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_screen_resources_current_crtcs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_randr_output_t * xcb_randr_get_screen_resources_current_outputs + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_output_t * + ** + *****************************************************************************/ + +xcb_randr_output_t * +xcb_randr_get_screen_resources_current_outputs (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_outputs_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_outputs_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_screen_resources_current_outputs_end + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_screen_resources_current_outputs_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_randr_mode_info_t * xcb_randr_get_screen_resources_current_modes + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_mode_info_t * + ** + *****************************************************************************/ + +xcb_randr_mode_info_t * +xcb_randr_get_screen_resources_current_modes (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_modes_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_modes_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_randr_mode_info_iterator_t xcb_randr_get_screen_resources_current_modes_iterator + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_randr_mode_info_iterator_t + ** + *****************************************************************************/ + +xcb_randr_mode_info_iterator_t +xcb_randr_get_screen_resources_current_modes_iterator (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** uint8_t * xcb_randr_get_screen_resources_current_names + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns uint8_t * + ** + *****************************************************************************/ + +uint8_t * +xcb_randr_get_screen_resources_current_names (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_screen_resources_current_names_length + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_screen_resources_current_names_length (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_screen_resources_current_names_end + ** + ** @param const xcb_randr_get_screen_resources_current_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_screen_resources_current_names_end (const xcb_randr_get_screen_resources_current_reply_t *R /**< */); + +/** + * Return the reply + * @param c The connection + * @param cookie The cookie + * @param e The xcb_generic_error_t supplied + * + * Returns the reply of the request asked by + * + * The parameter @p e supplied to this function must be NULL if + * xcb_randr_get_screen_resources_current_unchecked(). is used. + * Otherwise, it stores the error if any. + * + * The returned value must be freed by the caller using free(). + */ + +/***************************************************************************** + ** + ** xcb_randr_get_screen_resources_current_reply_t * xcb_randr_get_screen_resources_current_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_screen_resources_current_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_screen_resources_current_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_screen_resources_current_reply_t * +xcb_randr_get_screen_resources_current_reply (xcb_connection_t *c /**< */, + xcb_randr_get_screen_resources_current_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will not cause + * a reply to be generated. Any returned error will be + * saved for handling by xcb_request_check(). + */ + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_crtc_transform_checked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_render_transform_t transform + ** @param uint16_t filter_len + ** @param const char *filter_name + ** @param uint32_t filter_params_len + ** @param const xcb_render_fixed_t *filter_params + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_crtc_transform_checked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_render_transform_t transform /**< */, + uint16_t filter_len /**< */, + const char *filter_name /**< */, + uint32_t filter_params_len /**< */, + const xcb_render_fixed_t *filter_params /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_crtc_transform + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_render_transform_t transform + ** @param uint16_t filter_len + ** @param const char *filter_name + ** @param uint32_t filter_params_len + ** @param const xcb_render_fixed_t *filter_params + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_crtc_transform (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_render_transform_t transform /**< */, + uint16_t filter_len /**< */, + const char *filter_name /**< */, + uint32_t filter_params_len /**< */, + const xcb_render_fixed_t *filter_params /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_randr_get_crtc_transform_cookie_t xcb_randr_get_crtc_transform + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_crtc_transform_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_crtc_transform_cookie_t +xcb_randr_get_crtc_transform (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will cause + * a reply to be generated. Any returned error will be + * placed in the event queue. + */ + +/***************************************************************************** + ** + ** xcb_randr_get_crtc_transform_cookie_t xcb_randr_get_crtc_transform_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_crtc_transform_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_crtc_transform_cookie_t +xcb_randr_get_crtc_transform_unchecked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */); + + +/***************************************************************************** + ** + ** char * xcb_randr_get_crtc_transform_pending_filter_name + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns char * + ** + *****************************************************************************/ + +char * +xcb_randr_get_crtc_transform_pending_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_pending_filter_name_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_pending_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_pending_filter_name_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_pending_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_render_fixed_t * xcb_randr_get_crtc_transform_pending_params + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_render_fixed_t * + ** + *****************************************************************************/ + +xcb_render_fixed_t * +xcb_randr_get_crtc_transform_pending_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_pending_params_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_pending_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_pending_params_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_pending_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** char * xcb_randr_get_crtc_transform_current_filter_name + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns char * + ** + *****************************************************************************/ + +char * +xcb_randr_get_crtc_transform_current_filter_name (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_current_filter_name_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_current_filter_name_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_current_filter_name_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_current_filter_name_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_render_fixed_t * xcb_randr_get_crtc_transform_current_params + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_render_fixed_t * + ** + *****************************************************************************/ + +xcb_render_fixed_t * +xcb_randr_get_crtc_transform_current_params (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** int xcb_randr_get_crtc_transform_current_params_length + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns int + ** + *****************************************************************************/ + +int +xcb_randr_get_crtc_transform_current_params_length (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + + +/***************************************************************************** + ** + ** xcb_generic_iterator_t xcb_randr_get_crtc_transform_current_params_end + ** + ** @param const xcb_randr_get_crtc_transform_reply_t *R + ** @returns xcb_generic_iterator_t + ** + *****************************************************************************/ + +xcb_generic_iterator_t +xcb_randr_get_crtc_transform_current_params_end (const xcb_randr_get_crtc_transform_reply_t *R /**< */); + +/** + * Return the reply + * @param c The connection + * @param cookie The cookie + * @param e The xcb_generic_error_t supplied + * + * Returns the reply of the request asked by + * + * The parameter @p e supplied to this function must be NULL if + * xcb_randr_get_crtc_transform_unchecked(). is used. + * Otherwise, it stores the error if any. + * + * The returned value must be freed by the caller using free(). + */ + +/***************************************************************************** + ** + ** xcb_randr_get_crtc_transform_reply_t * xcb_randr_get_crtc_transform_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_crtc_transform_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_crtc_transform_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_crtc_transform_reply_t * +xcb_randr_get_crtc_transform_reply (xcb_connection_t *c /**< */, + xcb_randr_get_crtc_transform_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_randr_get_panning_cookie_t xcb_randr_get_panning + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_panning_cookie_t +xcb_randr_get_panning (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will cause + * a reply to be generated. Any returned error will be + * placed in the event queue. + */ + +/***************************************************************************** + ** + ** xcb_randr_get_panning_cookie_t xcb_randr_get_panning_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @returns xcb_randr_get_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_panning_cookie_t +xcb_randr_get_panning_unchecked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */); + +/** + * Return the reply + * @param c The connection + * @param cookie The cookie + * @param e The xcb_generic_error_t supplied + * + * Returns the reply of the request asked by + * + * The parameter @p e supplied to this function must be NULL if + * xcb_randr_get_panning_unchecked(). is used. + * Otherwise, it stores the error if any. + * + * The returned value must be freed by the caller using free(). + */ + +/***************************************************************************** + ** + ** xcb_randr_get_panning_reply_t * xcb_randr_get_panning_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_panning_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_panning_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_panning_reply_t * +xcb_randr_get_panning_reply (xcb_connection_t *c /**< */, + xcb_randr_get_panning_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_randr_set_panning_cookie_t xcb_randr_set_panning + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_timestamp_t timestamp + ** @param uint16_t left + ** @param uint16_t top + ** @param uint16_t width + ** @param uint16_t height + ** @param uint16_t track_left + ** @param uint16_t track_top + ** @param uint16_t track_width + ** @param uint16_t track_height + ** @param int16_t border_left + ** @param int16_t border_top + ** @param int16_t border_right + ** @param int16_t border_bottom + ** @returns xcb_randr_set_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_set_panning_cookie_t +xcb_randr_set_panning (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_timestamp_t timestamp /**< */, + uint16_t left /**< */, + uint16_t top /**< */, + uint16_t width /**< */, + uint16_t height /**< */, + uint16_t track_left /**< */, + uint16_t track_top /**< */, + uint16_t track_width /**< */, + uint16_t track_height /**< */, + int16_t border_left /**< */, + int16_t border_top /**< */, + int16_t border_right /**< */, + int16_t border_bottom /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will cause + * a reply to be generated. Any returned error will be + * placed in the event queue. + */ + +/***************************************************************************** + ** + ** xcb_randr_set_panning_cookie_t xcb_randr_set_panning_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_crtc_t crtc + ** @param xcb_timestamp_t timestamp + ** @param uint16_t left + ** @param uint16_t top + ** @param uint16_t width + ** @param uint16_t height + ** @param uint16_t track_left + ** @param uint16_t track_top + ** @param uint16_t track_width + ** @param uint16_t track_height + ** @param int16_t border_left + ** @param int16_t border_top + ** @param int16_t border_right + ** @param int16_t border_bottom + ** @returns xcb_randr_set_panning_cookie_t + ** + *****************************************************************************/ + +xcb_randr_set_panning_cookie_t +xcb_randr_set_panning_unchecked (xcb_connection_t *c /**< */, + xcb_randr_crtc_t crtc /**< */, + xcb_timestamp_t timestamp /**< */, + uint16_t left /**< */, + uint16_t top /**< */, + uint16_t width /**< */, + uint16_t height /**< */, + uint16_t track_left /**< */, + uint16_t track_top /**< */, + uint16_t track_width /**< */, + uint16_t track_height /**< */, + int16_t border_left /**< */, + int16_t border_top /**< */, + int16_t border_right /**< */, + int16_t border_bottom /**< */); + +/** + * Return the reply + * @param c The connection + * @param cookie The cookie + * @param e The xcb_generic_error_t supplied + * + * Returns the reply of the request asked by + * + * The parameter @p e supplied to this function must be NULL if + * xcb_randr_set_panning_unchecked(). is used. + * Otherwise, it stores the error if any. + * + * The returned value must be freed by the caller using free(). + */ + +/***************************************************************************** + ** + ** xcb_randr_set_panning_reply_t * xcb_randr_set_panning_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_set_panning_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_set_panning_reply_t * + ** + *****************************************************************************/ + +xcb_randr_set_panning_reply_t * +xcb_randr_set_panning_reply (xcb_connection_t *c /**< */, + xcb_randr_set_panning_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will not cause + * a reply to be generated. Any returned error will be + * saved for handling by xcb_request_check(). + */ + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_output_primary_checked + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @param xcb_randr_output_t output + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_output_primary_checked (xcb_connection_t *c /**< */, + xcb_window_t window /**< */, + xcb_randr_output_t output /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_void_cookie_t xcb_randr_set_output_primary + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @param xcb_randr_output_t output + ** @returns xcb_void_cookie_t + ** + *****************************************************************************/ + +xcb_void_cookie_t +xcb_randr_set_output_primary (xcb_connection_t *c /**< */, + xcb_window_t window /**< */, + xcb_randr_output_t output /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + */ + +/***************************************************************************** + ** + ** xcb_randr_get_output_primary_cookie_t xcb_randr_get_output_primary + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_output_primary_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_output_primary_cookie_t +xcb_randr_get_output_primary (xcb_connection_t *c /**< */, + xcb_window_t window /**< */); + +/** + * Delivers a request to the X server + * @param c The connection + * @return A cookie + * + * Delivers a request to the X server. + * + * This form can be used only if the request will cause + * a reply to be generated. Any returned error will be + * placed in the event queue. + */ + +/***************************************************************************** + ** + ** xcb_randr_get_output_primary_cookie_t xcb_randr_get_output_primary_unchecked + ** + ** @param xcb_connection_t *c + ** @param xcb_window_t window + ** @returns xcb_randr_get_output_primary_cookie_t + ** + *****************************************************************************/ + +xcb_randr_get_output_primary_cookie_t +xcb_randr_get_output_primary_unchecked (xcb_connection_t *c /**< */, + xcb_window_t window /**< */); + +/** + * Return the reply + * @param c The connection + * @param cookie The cookie + * @param e The xcb_generic_error_t supplied + * + * Returns the reply of the request asked by + * + * The parameter @p e supplied to this function must be NULL if + * xcb_randr_get_output_primary_unchecked(). is used. + * Otherwise, it stores the error if any. + * + * The returned value must be freed by the caller using free(). + */ + +/***************************************************************************** + ** + ** xcb_randr_get_output_primary_reply_t * xcb_randr_get_output_primary_reply + ** + ** @param xcb_connection_t *c + ** @param xcb_randr_get_output_primary_cookie_t cookie + ** @param xcb_generic_error_t **e + ** @returns xcb_randr_get_output_primary_reply_t * + ** + *****************************************************************************/ + +xcb_randr_get_output_primary_reply_t * +xcb_randr_get_output_primary_reply (xcb_connection_t *c /**< */, + xcb_randr_get_output_primary_cookie_t cookie /**< */, + xcb_generic_error_t **e /**< */); + +/** * Get the next element of the iterator * @param i Pointer to a xcb_randr_crtc_change_iterator_t * diff --git a/lib/libxcb/src/render.h b/lib/libxcb/src/render.h index fb730ce48..0f96ca1fb 100644 --- a/lib/libxcb/src/render.h +++ b/lib/libxcb/src/render.h @@ -29,6 +29,10 @@ typedef enum xcb_render_pict_type_t { XCB_RENDER_PICT_TYPE_DIRECT } xcb_render_pict_type_t; +typedef enum xcb_render_picture_enum_t { + XCB_RENDER_PICTURE_NONE +} xcb_render_picture_enum_t; + typedef enum xcb_render_pict_op_t { XCB_RENDER_PICT_OP_CLEAR, XCB_RENDER_PICT_OP_SRC, diff --git a/lib/libxcb/src/shm.h b/lib/libxcb/src/shm.h index 1e60ba78a..bcb60d81f 100644 --- a/lib/libxcb/src/shm.h +++ b/lib/libxcb/src/shm.h @@ -46,10 +46,10 @@ typedef struct xcb_shm_completion_event_t { uint8_t pad0; /**< */ uint16_t sequence; /**< */ xcb_drawable_t drawable; /**< */ - xcb_shm_seg_t shmseg; /**< */ uint16_t minor_event; /**< */ uint8_t major_event; /**< */ uint8_t pad1; /**< */ + xcb_shm_seg_t shmseg; /**< */ uint32_t offset; /**< */ } xcb_shm_completion_event_t; diff --git a/lib/libxcb/src/sync.h b/lib/libxcb/src/sync.h index f60210ceb..50665c286 100644 --- a/lib/libxcb/src/sync.h +++ b/lib/libxcb/src/sync.h @@ -491,6 +491,8 @@ typedef struct xcb_sync_alarm_notify_event_t { xcb_sync_int64_t counter_value; /**< */ xcb_sync_int64_t alarm_value; /**< */ xcb_timestamp_t timestamp; /**< */ + uint8_t state; /**< */ + uint8_t pad0[3]; /**< */ } xcb_sync_alarm_notify_event_t; /** diff --git a/lib/libxcb/src/xfixes.h b/lib/libxcb/src/xfixes.h index 3f2c83ef5..4d7eb0900 100644 --- a/lib/libxcb/src/xfixes.h +++ b/lib/libxcb/src/xfixes.h @@ -236,6 +236,10 @@ typedef struct xcb_xfixes_bad_region_error_t { uint16_t sequence; /**< */ } xcb_xfixes_bad_region_error_t; +typedef enum xcb_xfixes_region_enum_t { + XCB_XFIXES_REGION_NONE +} xcb_xfixes_region_enum_t; + /** Opcode for xcb_xfixes_create_region. */ #define XCB_XFIXES_CREATE_REGION 5 diff --git a/lib/libxcb/src/xinput.h b/lib/libxcb/src/xinput.h index a07d0c929..b4d3c47a6 100644 --- a/lib/libxcb/src/xinput.h +++ b/lib/libxcb/src/xinput.h @@ -91,6 +91,14 @@ typedef struct xcb_input_get_extension_version_reply_t { uint8_t pad1[19]; /**< */ } xcb_input_get_extension_version_reply_t; +typedef enum xcb_input_device_use_t { + XCB_INPUT_DEVICE_USE_IS_X_POINTER = 0, + XCB_INPUT_DEVICE_USE_IS_X_KEYBOARD = 1, + XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_DEVICE = 2, + XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_KEYBOARD = 3, + XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_POINTER = 4 +} xcb_input_device_use_t; + /** * @brief xcb_input_device_info_t **/ @@ -142,13 +150,15 @@ typedef struct xcb_input_list_input_devices_reply_t { uint8_t pad1[23]; /**< */ } xcb_input_list_input_devices_reply_t; -typedef enum xcb_input_device_use_t { - XCB_INPUT_DEVICE_USE_IS_X_POINTER = 0, - XCB_INPUT_DEVICE_USE_IS_X_KEYBOARD = 1, - XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_DEVICE = 2, - XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_KEYBOARD = 3, - XCB_INPUT_DEVICE_USE_IS_X_EXTENSION_POINTER = 4 -} xcb_input_device_use_t; +typedef enum xcb_input_input_class_t { + XCB_INPUT_INPUT_CLASS_KEY = 0, + XCB_INPUT_INPUT_CLASS_BUTTON = 1, + XCB_INPUT_INPUT_CLASS_VALUATOR = 2, + XCB_INPUT_INPUT_CLASS_FEEDBACK = 3, + XCB_INPUT_INPUT_CLASS_PROXIMITY = 4, + XCB_INPUT_INPUT_CLASS_FOCUS = 5, + XCB_INPUT_INPUT_CLASS_OTHER = 6 +} xcb_input_input_class_t; /** * @brief xcb_input_input_info_t @@ -211,8 +221,8 @@ typedef struct xcb_input_button_info_iterator_t { **/ typedef struct xcb_input_axis_info_t { uint32_t resolution; /**< */ - uint32_t minimum; /**< */ - uint32_t maximum; /**< */ + int32_t minimum; /**< */ + int32_t maximum; /**< */ } xcb_input_axis_info_t; /** @@ -294,16 +304,6 @@ typedef struct xcb_input_open_device_reply_t { uint8_t pad1[23]; /**< */ } xcb_input_open_device_reply_t; -typedef enum xcb_input_input_class_t { - XCB_INPUT_INPUT_CLASS_KEY = 0, - XCB_INPUT_INPUT_CLASS_BUTTON = 1, - XCB_INPUT_INPUT_CLASS_VALUATOR = 2, - XCB_INPUT_INPUT_CLASS_FEEDBACK = 3, - XCB_INPUT_INPUT_CLASS_PROXIMITY = 4, - XCB_INPUT_INPUT_CLASS_FOCUS = 5, - XCB_INPUT_INPUT_CLASS_OTHER = 6 -} xcb_input_input_class_t; - /** Opcode for xcb_input_close_device. */ #define XCB_INPUT_CLOSE_DEVICE 4 @@ -699,6 +699,15 @@ typedef struct xcb_input_ungrab_device_button_request_t { uint8_t grabbed_device; /**< */ } xcb_input_ungrab_device_button_request_t; +typedef enum xcb_input_device_input_mode_t { + XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_THIS_DEVICE, + XCB_INPUT_DEVICE_INPUT_MODE_SYNC_THIS_DEVICE, + XCB_INPUT_DEVICE_INPUT_MODE_REPLAY_THIS_DEVICE, + XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_OTHER_DEVICES, + XCB_INPUT_DEVICE_INPUT_MODE_ASYNC_ALL, + XCB_INPUT_DEVICE_INPUT_MODE_SYNC_ALL +} xcb_input_device_input_mode_t; + /** Opcode for xcb_input_allow_device_events. */ #define XCB_INPUT_ALLOW_DEVICE_EVENTS 19 @@ -798,6 +807,15 @@ typedef struct xcb_input_get_feedback_control_reply_t { uint8_t pad1[22]; /**< */ } xcb_input_get_feedback_control_reply_t; +typedef enum xcb_input_feedback_class_t { + XCB_INPUT_FEEDBACK_CLASS_KEYBOARD, + XCB_INPUT_FEEDBACK_CLASS_POINTER, + XCB_INPUT_FEEDBACK_CLASS_STRING, + XCB_INPUT_FEEDBACK_CLASS_INTEGER, + XCB_INPUT_FEEDBACK_CLASS_LED, + XCB_INPUT_FEEDBACK_CLASS_BELL +} xcb_input_feedback_class_t; + /** * @brief xcb_input_feedback_state_t **/ @@ -1825,7 +1843,7 @@ typedef struct xcb_input_focus_in_event_t { /** Opcode for xcb_input_focus_out. */ #define XCB_INPUT_FOCUS_OUT 7 -typedef xcb_input_device_key_press_event_t xcb_input_focus_out_event_t; +typedef xcb_input_focus_in_event_t xcb_input_focus_out_event_t; /** Opcode for xcb_input_device_state_notify. */ #define XCB_INPUT_DEVICE_STATE_NOTIFY 10 @@ -1923,6 +1941,66 @@ typedef struct xcb_input_device_presence_notify_event_t { uint8_t pad1[20]; /**< */ } xcb_input_device_presence_notify_event_t; +/** Opcode for xcb_input_device. */ +#define XCB_INPUT_DEVICE 0 + +/** + * @brief xcb_input_device_error_t + **/ +typedef struct xcb_input_device_error_t { + uint8_t response_type; /**< */ + uint8_t error_code; /**< */ + uint16_t sequence; /**< */ +} xcb_input_device_error_t; + +/** Opcode for xcb_input_event. */ +#define XCB_INPUT_EVENT 1 + +/** + * @brief xcb_input_event_error_t + **/ +typedef struct xcb_input_event_error_t { + uint8_t response_type; /**< */ + uint8_t error_code; /**< */ + uint16_t sequence; /**< */ +} xcb_input_event_error_t; + +/** Opcode for xcb_input_mode. */ +#define XCB_INPUT_MODE 2 + +/** + * @brief xcb_input_mode_error_t + **/ +typedef struct xcb_input_mode_error_t { + uint8_t response_type; /**< */ + uint8_t error_code; /**< */ + uint16_t sequence; /**< */ +} xcb_input_mode_error_t; + +/** Opcode for xcb_input_device_busy. */ +#define XCB_INPUT_DEVICE_BUSY 3 + +/** + * @brief xcb_input_device_busy_error_t + **/ +typedef struct xcb_input_device_busy_error_t { + uint8_t response_type; /**< */ + uint8_t error_code; /**< */ + uint16_t sequence; /**< */ +} xcb_input_device_busy_error_t; + +/** Opcode for xcb_input_class. */ +#define XCB_INPUT_CLASS 4 + +/** + * @brief xcb_input_class_error_t + **/ +typedef struct xcb_input_class_error_t { + uint8_t response_type; /**< */ + uint8_t error_code; /**< */ + uint16_t sequence; /**< */ +} xcb_input_class_error_t; + /** * Get the next element of the iterator * @param i Pointer to a xcb_input_key_code_iterator_t diff --git a/lib/libxcb/src/xproto.c b/lib/libxcb/src/xproto.c index 97b520aaf..67bec02df 100644 --- a/lib/libxcb/src/xproto.c +++ b/lib/libxcb/src/xproto.c @@ -3440,7 +3440,7 @@ xcb_get_property_value (const xcb_get_property_reply_t *R /**< */) int xcb_get_property_value_length (const xcb_get_property_reply_t *R /**< */) { - return R->value_len; + return (R->value_len * (R->format / 8)); } @@ -3457,7 +3457,7 @@ xcb_generic_iterator_t xcb_get_property_value_end (const xcb_get_property_reply_t *R /**< */) { xcb_generic_iterator_t i; - i.data = ((char *) (R + 1)) + (R->value_len); + i.data = ((char *) (R + 1)) + ((R->value_len * (R->format / 8))); i.rem = 0; i.index = (char *) i.data - (char *) R; return i; diff --git a/lib/libxcb/src/xproto.h b/lib/libxcb/src/xproto.h index 27a3c3f45..f8c0716bd 100644 --- a/lib/libxcb/src/xproto.h +++ b/lib/libxcb/src/xproto.h @@ -316,6 +316,41 @@ typedef struct xcb_depth_iterator_t { int index; /**< */ } xcb_depth_iterator_t; +typedef enum xcb_event_mask_t { + XCB_EVENT_MASK_NO_EVENT = 0, + XCB_EVENT_MASK_KEY_PRESS = 1, + XCB_EVENT_MASK_KEY_RELEASE = 2, + XCB_EVENT_MASK_BUTTON_PRESS = 4, + XCB_EVENT_MASK_BUTTON_RELEASE = 8, + XCB_EVENT_MASK_ENTER_WINDOW = 16, + XCB_EVENT_MASK_LEAVE_WINDOW = 32, + XCB_EVENT_MASK_POINTER_MOTION = 64, + XCB_EVENT_MASK_POINTER_MOTION_HINT = 128, + XCB_EVENT_MASK_BUTTON_1_MOTION = 256, + XCB_EVENT_MASK_BUTTON_2_MOTION = 512, + XCB_EVENT_MASK_BUTTON_3_MOTION = 1024, + XCB_EVENT_MASK_BUTTON_4_MOTION = 2048, + XCB_EVENT_MASK_BUTTON_5_MOTION = 4096, + XCB_EVENT_MASK_BUTTON_MOTION = 8192, + XCB_EVENT_MASK_KEYMAP_STATE = 16384, + XCB_EVENT_MASK_EXPOSURE = 32768, + XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536, + XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072, + XCB_EVENT_MASK_RESIZE_REDIRECT = 262144, + XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288, + XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576, + XCB_EVENT_MASK_FOCUS_CHANGE = 2097152, + XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304, + XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608, + XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216 +} xcb_event_mask_t; + +typedef enum xcb_backing_store_t { + XCB_BACKING_STORE_NOT_USEFUL = 0, + XCB_BACKING_STORE_WHEN_MAPPED = 1, + XCB_BACKING_STORE_ALWAYS = 2 +} xcb_backing_store_t; + /** * @brief xcb_screen_t **/ @@ -455,9 +490,30 @@ typedef enum xcb_mod_mask_t { XCB_MOD_MASK_2 = 16, XCB_MOD_MASK_3 = 32, XCB_MOD_MASK_4 = 64, - XCB_MOD_MASK_5 = 128 + XCB_MOD_MASK_5 = 128, + XCB_MOD_MASK_ANY = 32768 } xcb_mod_mask_t; +typedef enum xcb_key_but_mask_t { + XCB_KEY_BUT_MASK_SHIFT = 1, + XCB_KEY_BUT_MASK_LOCK = 2, + XCB_KEY_BUT_MASK_CONTROL = 4, + XCB_KEY_BUT_MASK_MOD_1 = 8, + XCB_KEY_BUT_MASK_MOD_2 = 16, + XCB_KEY_BUT_MASK_MOD_3 = 32, + XCB_KEY_BUT_MASK_MOD_4 = 64, + XCB_KEY_BUT_MASK_MOD_5 = 128, + XCB_KEY_BUT_MASK_BUTTON_1 = 256, + XCB_KEY_BUT_MASK_BUTTON_2 = 512, + XCB_KEY_BUT_MASK_BUTTON_3 = 1024, + XCB_KEY_BUT_MASK_BUTTON_4 = 2048, + XCB_KEY_BUT_MASK_BUTTON_5 = 4096 +} xcb_key_but_mask_t; + +typedef enum xcb_window_enum_t { + XCB_WINDOW_NONE = 0 +} xcb_window_enum_t; + /** Opcode for xcb_key_press. */ #define XCB_KEY_PRESS 2 @@ -943,6 +999,14 @@ typedef struct xcb_selection_clear_event_t { xcb_atom_t selection; /**< */ } xcb_selection_clear_event_t; +typedef enum xcb_time_t { + XCB_TIME_CURRENT_TIME = 0 +} xcb_time_t; + +typedef enum xcb_atom_enum_t { + XCB_ATOM_NONE = 0 +} xcb_atom_enum_t; + /** Opcode for xcb_selection_request. */ #define XCB_SELECTION_REQUEST 30 @@ -983,6 +1047,10 @@ typedef enum xcb_colormap_state_t { XCB_COLORMAP_STATE_INSTALLED = 1 } xcb_colormap_state_t; +typedef enum xcb_colormap_enum_t { + XCB_COLORMAP_NONE = 0 +} xcb_colormap_enum_t; + /** Opcode for xcb_colormap_notify. */ #define XCB_COLORMAP_NOTIFY 32 @@ -1206,41 +1274,6 @@ typedef enum xcb_gravity_t { XCB_GRAVITY_STATIC = 10 } xcb_gravity_t; -typedef enum xcb_backing_store_t { - XCB_BACKING_STORE_NOT_USEFUL = 0, - XCB_BACKING_STORE_WHEN_MAPPED = 1, - XCB_BACKING_STORE_ALWAYS = 2 -} xcb_backing_store_t; - -typedef enum xcb_event_mask_t { - XCB_EVENT_MASK_NO_EVENT = 0, - XCB_EVENT_MASK_KEY_PRESS = 1, - XCB_EVENT_MASK_KEY_RELEASE = 2, - XCB_EVENT_MASK_BUTTON_PRESS = 4, - XCB_EVENT_MASK_BUTTON_RELEASE = 8, - XCB_EVENT_MASK_ENTER_WINDOW = 16, - XCB_EVENT_MASK_LEAVE_WINDOW = 32, - XCB_EVENT_MASK_POINTER_MOTION = 64, - XCB_EVENT_MASK_POINTER_MOTION_HINT = 128, - XCB_EVENT_MASK_BUTTON_1_MOTION = 256, - XCB_EVENT_MASK_BUTTON_2_MOTION = 512, - XCB_EVENT_MASK_BUTTON_3_MOTION = 1024, - XCB_EVENT_MASK_BUTTON_4_MOTION = 2048, - XCB_EVENT_MASK_BUTTON_5_MOTION = 4096, - XCB_EVENT_MASK_BUTTON_MOTION = 8192, - XCB_EVENT_MASK_KEYMAP_STATE = 16384, - XCB_EVENT_MASK_EXPOSURE = 32768, - XCB_EVENT_MASK_VISIBILITY_CHANGE = 65536, - XCB_EVENT_MASK_STRUCTURE_NOTIFY = 131072, - XCB_EVENT_MASK_RESIZE_REDIRECT = 262144, - XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY = 524288, - XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT = 1048576, - XCB_EVENT_MASK_FOCUS_CHANGE = 2097152, - XCB_EVENT_MASK_PROPERTY_CHANGE = 4194304, - XCB_EVENT_MASK_COLOR_MAP_CHANGE = 8388608, - XCB_EVENT_MASK_OWNER_GRAB_BUTTON = 16777216 -} xcb_event_mask_t; - /** Opcode for xcb_create_window. */ #define XCB_CREATE_WINDOW 1 @@ -1834,6 +1867,10 @@ typedef enum xcb_grab_status_t { XCB_GRAB_STATUS_FROZEN = 4 } xcb_grab_status_t; +typedef enum xcb_cursor_enum_t { + XCB_CURSOR_NONE = 0 +} xcb_cursor_enum_t; + /** * @brief xcb_grab_pointer_cookie_t **/ @@ -2225,7 +2262,8 @@ typedef struct xcb_warp_pointer_request_t { typedef enum xcb_input_focus_t { XCB_INPUT_FOCUS_NONE = 0, XCB_INPUT_FOCUS_POINTER_ROOT = 1, - XCB_INPUT_FOCUS_PARENT = 2 + XCB_INPUT_FOCUS_PARENT = 2, + XCB_INPUT_FOCUS_FOLLOW_KEYBOARD = 3 } xcb_input_focus_t; /** Opcode for xcb_set_input_focus. */ @@ -2682,7 +2720,7 @@ typedef enum xcb_cap_style_t { } xcb_cap_style_t; typedef enum xcb_join_style_t { - XCB_JOIN_STYLE_MITRE = 0, + XCB_JOIN_STYLE_MITER = 0, XCB_JOIN_STYLE_ROUND = 1, XCB_JOIN_STYLE_BEVEL = 2 } xcb_join_style_t; @@ -3553,6 +3591,10 @@ typedef struct xcb_lookup_color_reply_t { uint16_t visual_blue; /**< */ } xcb_lookup_color_reply_t; +typedef enum xcb_pixmap_enum_t { + XCB_PIXMAP_NONE = 0 +} xcb_pixmap_enum_t; + /** Opcode for xcb_create_cursor. */ #define XCB_CREATE_CURSOR 93 @@ -3576,6 +3618,10 @@ typedef struct xcb_create_cursor_request_t { uint16_t y; /**< */ } xcb_create_cursor_request_t; +typedef enum xcb_font_enum_t { + XCB_FONT_NONE = 0 +} xcb_font_enum_t; + /** Opcode for xcb_create_glyph_cursor. */ #define XCB_CREATE_GLYPH_CURSOR 94 diff --git a/lib/libxcb/src/xtest.c b/lib/libxcb/src/xtest.c index a9cd98985..70ceeba46 100644 --- a/lib/libxcb/src/xtest.c +++ b/lib/libxcb/src/xtest.c @@ -218,7 +218,7 @@ xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */, ** @param uint8_t type ** @param uint8_t detail ** @param uint32_t time - ** @param xcb_window_t window + ** @param xcb_window_t root ** @param uint16_t rootX ** @param uint16_t rootY ** @param uint8_t deviceid @@ -231,7 +231,7 @@ xcb_test_fake_input_checked (xcb_connection_t *c /**< */, uint8_t type /**< */, uint8_t detail /**< */, uint32_t time /**< */, - xcb_window_t window /**< */, + xcb_window_t root /**< */, uint16_t rootX /**< */, uint16_t rootY /**< */, uint8_t deviceid /**< */) @@ -251,7 +251,7 @@ xcb_test_fake_input_checked (xcb_connection_t *c /**< */, xcb_out.detail = detail; memset(xcb_out.pad0, 0, 2); xcb_out.time = time; - xcb_out.window = window; + xcb_out.root = root; memset(xcb_out.pad1, 0, 8); xcb_out.rootX = rootX; xcb_out.rootY = rootY; @@ -275,7 +275,7 @@ xcb_test_fake_input_checked (xcb_connection_t *c /**< */, ** @param uint8_t type ** @param uint8_t detail ** @param uint32_t time - ** @param xcb_window_t window + ** @param xcb_window_t root ** @param uint16_t rootX ** @param uint16_t rootY ** @param uint8_t deviceid @@ -288,7 +288,7 @@ xcb_test_fake_input (xcb_connection_t *c /**< */, uint8_t type /**< */, uint8_t detail /**< */, uint32_t time /**< */, - xcb_window_t window /**< */, + xcb_window_t root /**< */, uint16_t rootX /**< */, uint16_t rootY /**< */, uint8_t deviceid /**< */) @@ -308,7 +308,7 @@ xcb_test_fake_input (xcb_connection_t *c /**< */, xcb_out.detail = detail; memset(xcb_out.pad0, 0, 2); xcb_out.time = time; - xcb_out.window = window; + xcb_out.root = root; memset(xcb_out.pad1, 0, 8); xcb_out.rootX = rootX; xcb_out.rootY = rootY; diff --git a/lib/libxcb/src/xtest.h b/lib/libxcb/src/xtest.h index 15385386e..dba34bc36 100644 --- a/lib/libxcb/src/xtest.h +++ b/lib/libxcb/src/xtest.h @@ -107,7 +107,7 @@ typedef struct xcb_test_fake_input_request_t { uint8_t detail; /**< */ uint8_t pad0[2]; /**< */ uint32_t time; /**< */ - xcb_window_t window; /**< */ + xcb_window_t root; /**< */ uint8_t pad1[8]; /**< */ uint16_t rootX; /**< */ uint16_t rootY; /**< */ @@ -317,7 +317,7 @@ xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */, ** @param uint8_t type ** @param uint8_t detail ** @param uint32_t time - ** @param xcb_window_t window + ** @param xcb_window_t root ** @param uint16_t rootX ** @param uint16_t rootY ** @param uint8_t deviceid @@ -330,7 +330,7 @@ xcb_test_fake_input_checked (xcb_connection_t *c /**< */, uint8_t type /**< */, uint8_t detail /**< */, uint32_t time /**< */, - xcb_window_t window /**< */, + xcb_window_t root /**< */, uint16_t rootX /**< */, uint16_t rootY /**< */, uint8_t deviceid /**< */); @@ -352,7 +352,7 @@ xcb_test_fake_input_checked (xcb_connection_t *c /**< */, ** @param uint8_t type ** @param uint8_t detail ** @param uint32_t time - ** @param xcb_window_t window + ** @param xcb_window_t root ** @param uint16_t rootX ** @param uint16_t rootY ** @param uint8_t deviceid @@ -365,7 +365,7 @@ xcb_test_fake_input (xcb_connection_t *c /**< */, uint8_t type /**< */, uint8_t detail /**< */, uint32_t time /**< */, - xcb_window_t window /**< */, + xcb_window_t root /**< */, uint16_t rootX /**< */, uint16_t rootY /**< */, uint8_t deviceid /**< */); diff --git a/lib/libxcb/src/xv.h b/lib/libxcb/src/xv.h index 66232a97e..7009bbd25 100644 --- a/lib/libxcb/src/xv.h +++ b/lib/libxcb/src/xv.h @@ -70,6 +70,28 @@ typedef enum xcb_xv_attribute_flag_t { XCB_XV_ATTRIBUTE_FLAG_SETTABLE = 2 } xcb_xv_attribute_flag_t; +typedef enum xcb_xv_video_notify_reason_t { + XCB_XV_VIDEO_NOTIFY_REASON_STARTED, + XCB_XV_VIDEO_NOTIFY_REASON_STOPPED, + XCB_XV_VIDEO_NOTIFY_REASON_BUSY, + XCB_XV_VIDEO_NOTIFY_REASON_PREEMPTED, + XCB_XV_VIDEO_NOTIFY_REASON_HARD_ERROR +} xcb_xv_video_notify_reason_t; + +typedef enum xcb_xv_scanline_order_t { + XCB_XV_SCANLINE_ORDER_TOP_TO_BOTTOM, + XCB_XV_SCANLINE_ORDER_BOTTOM_TO_TOP +} xcb_xv_scanline_order_t; + +typedef enum xcb_xv_grab_port_status_t { + XCB_XV_GRAB_PORT_STATUS_SUCCESS, + XCB_XV_GRAB_PORT_STATUS_BAD_EXTENSION, + XCB_XV_GRAB_PORT_STATUS_ALREADY_GRABBED, + XCB_XV_GRAB_PORT_STATUS_INVALID_TIME, + XCB_XV_GRAB_PORT_STATUS_BAD_REPLY, + XCB_XV_GRAB_PORT_STATUS_BAD_ALLOC +} xcb_xv_grab_port_status_t; + /** * @brief xcb_xv_rational_t **/ |