jpayne@69: /* jpayne@69: * This file generated automatically from xinerama.xml by c_client.py. jpayne@69: * Edit at your peril. jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * @defgroup XCB_Xinerama_API XCB Xinerama API jpayne@69: * @brief Xinerama XCB Protocol Implementation. jpayne@69: * @{ jpayne@69: **/ jpayne@69: jpayne@69: #ifndef __XINERAMA_H jpayne@69: #define __XINERAMA_H jpayne@69: jpayne@69: #include "xcb.h" jpayne@69: #include "xproto.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #define XCB_XINERAMA_MAJOR_VERSION 1 jpayne@69: #define XCB_XINERAMA_MINOR_VERSION 1 jpayne@69: jpayne@69: extern xcb_extension_t xcb_xinerama_id; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_screen_info_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_screen_info_t { jpayne@69: int16_t x_org; jpayne@69: int16_t y_org; jpayne@69: uint16_t width; jpayne@69: uint16_t height; jpayne@69: } xcb_xinerama_screen_info_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_screen_info_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_screen_info_iterator_t { jpayne@69: xcb_xinerama_screen_info_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_xinerama_screen_info_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_query_version_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_query_version_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xinerama_query_version_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xinerama_query_version. */ jpayne@69: #define XCB_XINERAMA_QUERY_VERSION 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_query_version_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_query_version_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint8_t major; jpayne@69: uint8_t minor; jpayne@69: } xcb_xinerama_query_version_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_query_version_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_query_version_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t major; jpayne@69: uint16_t minor; jpayne@69: } xcb_xinerama_query_version_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_state_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_state_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xinerama_get_state_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xinerama_get_state. */ jpayne@69: #define XCB_XINERAMA_GET_STATE 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_state_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_state_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_xinerama_get_state_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_state_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_state_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t state; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_xinerama_get_state_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_screen_count_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_screen_count_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xinerama_get_screen_count_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xinerama_get_screen_count. */ jpayne@69: #define XCB_XINERAMA_GET_SCREEN_COUNT 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_screen_count_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_screen_count_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_xinerama_get_screen_count_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_screen_count_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_screen_count_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t screen_count; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: xcb_window_t window; jpayne@69: } xcb_xinerama_get_screen_count_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_screen_size_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_screen_size_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xinerama_get_screen_size_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xinerama_get_screen_size. */ jpayne@69: #define XCB_XINERAMA_GET_SCREEN_SIZE 3 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_screen_size_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_screen_size_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: xcb_window_t window; jpayne@69: uint32_t screen; jpayne@69: } xcb_xinerama_get_screen_size_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_get_screen_size_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_get_screen_size_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t width; jpayne@69: uint32_t height; jpayne@69: xcb_window_t window; jpayne@69: uint32_t screen; jpayne@69: } xcb_xinerama_get_screen_size_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_is_active_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_is_active_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xinerama_is_active_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xinerama_is_active. */ jpayne@69: #define XCB_XINERAMA_IS_ACTIVE 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_is_active_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_is_active_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_xinerama_is_active_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_is_active_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_is_active_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t state; jpayne@69: } xcb_xinerama_is_active_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_query_screens_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_query_screens_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_xinerama_query_screens_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_xinerama_query_screens. */ jpayne@69: #define XCB_XINERAMA_QUERY_SCREENS 5 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_query_screens_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_query_screens_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_xinerama_query_screens_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_xinerama_query_screens_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_xinerama_query_screens_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t number; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_xinerama_query_screens_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_xinerama_screen_info_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_xinerama_screen_info_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_xinerama_screen_info_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xinerama_query_version_cookie_t jpayne@69: xcb_xinerama_query_version (xcb_connection_t *c, jpayne@69: uint8_t major, jpayne@69: uint8_t minor); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xinerama_query_version_cookie_t jpayne@69: xcb_xinerama_query_version_unchecked (xcb_connection_t *c, jpayne@69: uint8_t major, jpayne@69: uint8_t minor); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xinerama_query_version_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xinerama_query_version_reply_t * jpayne@69: xcb_xinerama_query_version_reply (xcb_connection_t *c, jpayne@69: xcb_xinerama_query_version_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xinerama_get_state_cookie_t jpayne@69: xcb_xinerama_get_state (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xinerama_get_state_cookie_t jpayne@69: xcb_xinerama_get_state_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xinerama_get_state_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xinerama_get_state_reply_t * jpayne@69: xcb_xinerama_get_state_reply (xcb_connection_t *c, jpayne@69: xcb_xinerama_get_state_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xinerama_get_screen_count_cookie_t jpayne@69: xcb_xinerama_get_screen_count (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xinerama_get_screen_count_cookie_t jpayne@69: xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xinerama_get_screen_count_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xinerama_get_screen_count_reply_t * jpayne@69: xcb_xinerama_get_screen_count_reply (xcb_connection_t *c, jpayne@69: xcb_xinerama_get_screen_count_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xinerama_get_screen_size_cookie_t jpayne@69: xcb_xinerama_get_screen_size (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xinerama_get_screen_size_cookie_t jpayne@69: xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c, jpayne@69: xcb_window_t window, jpayne@69: uint32_t screen); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xinerama_get_screen_size_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xinerama_get_screen_size_reply_t * jpayne@69: xcb_xinerama_get_screen_size_reply (xcb_connection_t *c, jpayne@69: xcb_xinerama_get_screen_size_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xinerama_is_active_cookie_t jpayne@69: xcb_xinerama_is_active (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xinerama_is_active_cookie_t jpayne@69: xcb_xinerama_is_active_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xinerama_is_active_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xinerama_is_active_reply_t * jpayne@69: xcb_xinerama_is_active_reply (xcb_connection_t *c, jpayne@69: xcb_xinerama_is_active_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_xinerama_query_screens_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_xinerama_query_screens_cookie_t jpayne@69: xcb_xinerama_query_screens (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_xinerama_query_screens_cookie_t jpayne@69: xcb_xinerama_query_screens_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: xcb_xinerama_screen_info_t * jpayne@69: xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R); jpayne@69: jpayne@69: xcb_xinerama_screen_info_iterator_t jpayne@69: xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_xinerama_query_screens_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_xinerama_query_screens_reply_t * jpayne@69: xcb_xinerama_query_screens_reply (xcb_connection_t *c, jpayne@69: xcb_xinerama_query_screens_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @} jpayne@69: */