1*971bb1a5SLionel Sambuc /* 2*971bb1a5SLionel Sambuc * This file generated automatically from xinerama.xml by c_client.py. 3*971bb1a5SLionel Sambuc * Edit at your peril. 4*971bb1a5SLionel Sambuc */ 5*971bb1a5SLionel Sambuc 6*971bb1a5SLionel Sambuc /** 7*971bb1a5SLionel Sambuc * @defgroup XCB_Xinerama_API XCB Xinerama API 8*971bb1a5SLionel Sambuc * @brief Xinerama XCB Protocol Implementation. 9*971bb1a5SLionel Sambuc * @{ 10*971bb1a5SLionel Sambuc **/ 11*971bb1a5SLionel Sambuc 12*971bb1a5SLionel Sambuc #ifndef __XINERAMA_H 13*971bb1a5SLionel Sambuc #define __XINERAMA_H 14*971bb1a5SLionel Sambuc 15*971bb1a5SLionel Sambuc #include "xcb.h" 16*971bb1a5SLionel Sambuc #include "xproto.h" 17*971bb1a5SLionel Sambuc 18*971bb1a5SLionel Sambuc #ifdef __cplusplus 19*971bb1a5SLionel Sambuc extern "C" { 20*971bb1a5SLionel Sambuc #endif 21*971bb1a5SLionel Sambuc 22*971bb1a5SLionel Sambuc #define XCB_XINERAMA_MAJOR_VERSION 1 23*971bb1a5SLionel Sambuc #define XCB_XINERAMA_MINOR_VERSION 1 24*971bb1a5SLionel Sambuc 25*971bb1a5SLionel Sambuc extern xcb_extension_t xcb_xinerama_id; 26*971bb1a5SLionel Sambuc 27*971bb1a5SLionel Sambuc /** 28*971bb1a5SLionel Sambuc * @brief xcb_xinerama_screen_info_t 29*971bb1a5SLionel Sambuc **/ 30*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_screen_info_t { 31*971bb1a5SLionel Sambuc int16_t x_org; /**< */ 32*971bb1a5SLionel Sambuc int16_t y_org; /**< */ 33*971bb1a5SLionel Sambuc uint16_t width; /**< */ 34*971bb1a5SLionel Sambuc uint16_t height; /**< */ 35*971bb1a5SLionel Sambuc } xcb_xinerama_screen_info_t; 36*971bb1a5SLionel Sambuc 37*971bb1a5SLionel Sambuc /** 38*971bb1a5SLionel Sambuc * @brief xcb_xinerama_screen_info_iterator_t 39*971bb1a5SLionel Sambuc **/ 40*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_screen_info_iterator_t { 41*971bb1a5SLionel Sambuc xcb_xinerama_screen_info_t *data; /**< */ 42*971bb1a5SLionel Sambuc int rem; /**< */ 43*971bb1a5SLionel Sambuc int index; /**< */ 44*971bb1a5SLionel Sambuc } xcb_xinerama_screen_info_iterator_t; 45*971bb1a5SLionel Sambuc 46*971bb1a5SLionel Sambuc /** 47*971bb1a5SLionel Sambuc * @brief xcb_xinerama_query_version_cookie_t 48*971bb1a5SLionel Sambuc **/ 49*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_query_version_cookie_t { 50*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 51*971bb1a5SLionel Sambuc } xcb_xinerama_query_version_cookie_t; 52*971bb1a5SLionel Sambuc 53*971bb1a5SLionel Sambuc /** Opcode for xcb_xinerama_query_version. */ 54*971bb1a5SLionel Sambuc #define XCB_XINERAMA_QUERY_VERSION 0 55*971bb1a5SLionel Sambuc 56*971bb1a5SLionel Sambuc /** 57*971bb1a5SLionel Sambuc * @brief xcb_xinerama_query_version_request_t 58*971bb1a5SLionel Sambuc **/ 59*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_query_version_request_t { 60*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 61*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 62*971bb1a5SLionel Sambuc uint16_t length; /**< */ 63*971bb1a5SLionel Sambuc uint8_t major; /**< */ 64*971bb1a5SLionel Sambuc uint8_t minor; /**< */ 65*971bb1a5SLionel Sambuc } xcb_xinerama_query_version_request_t; 66*971bb1a5SLionel Sambuc 67*971bb1a5SLionel Sambuc /** 68*971bb1a5SLionel Sambuc * @brief xcb_xinerama_query_version_reply_t 69*971bb1a5SLionel Sambuc **/ 70*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_query_version_reply_t { 71*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 72*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 73*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 74*971bb1a5SLionel Sambuc uint32_t length; /**< */ 75*971bb1a5SLionel Sambuc uint16_t major; /**< */ 76*971bb1a5SLionel Sambuc uint16_t minor; /**< */ 77*971bb1a5SLionel Sambuc } xcb_xinerama_query_version_reply_t; 78*971bb1a5SLionel Sambuc 79*971bb1a5SLionel Sambuc /** 80*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_state_cookie_t 81*971bb1a5SLionel Sambuc **/ 82*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_state_cookie_t { 83*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 84*971bb1a5SLionel Sambuc } xcb_xinerama_get_state_cookie_t; 85*971bb1a5SLionel Sambuc 86*971bb1a5SLionel Sambuc /** Opcode for xcb_xinerama_get_state. */ 87*971bb1a5SLionel Sambuc #define XCB_XINERAMA_GET_STATE 1 88*971bb1a5SLionel Sambuc 89*971bb1a5SLionel Sambuc /** 90*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_state_request_t 91*971bb1a5SLionel Sambuc **/ 92*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_state_request_t { 93*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 94*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 95*971bb1a5SLionel Sambuc uint16_t length; /**< */ 96*971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 97*971bb1a5SLionel Sambuc } xcb_xinerama_get_state_request_t; 98*971bb1a5SLionel Sambuc 99*971bb1a5SLionel Sambuc /** 100*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_state_reply_t 101*971bb1a5SLionel Sambuc **/ 102*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_state_reply_t { 103*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 104*971bb1a5SLionel Sambuc uint8_t state; /**< */ 105*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 106*971bb1a5SLionel Sambuc uint32_t length; /**< */ 107*971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 108*971bb1a5SLionel Sambuc } xcb_xinerama_get_state_reply_t; 109*971bb1a5SLionel Sambuc 110*971bb1a5SLionel Sambuc /** 111*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_screen_count_cookie_t 112*971bb1a5SLionel Sambuc **/ 113*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_screen_count_cookie_t { 114*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 115*971bb1a5SLionel Sambuc } xcb_xinerama_get_screen_count_cookie_t; 116*971bb1a5SLionel Sambuc 117*971bb1a5SLionel Sambuc /** Opcode for xcb_xinerama_get_screen_count. */ 118*971bb1a5SLionel Sambuc #define XCB_XINERAMA_GET_SCREEN_COUNT 2 119*971bb1a5SLionel Sambuc 120*971bb1a5SLionel Sambuc /** 121*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_screen_count_request_t 122*971bb1a5SLionel Sambuc **/ 123*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_screen_count_request_t { 124*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 125*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 126*971bb1a5SLionel Sambuc uint16_t length; /**< */ 127*971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 128*971bb1a5SLionel Sambuc } xcb_xinerama_get_screen_count_request_t; 129*971bb1a5SLionel Sambuc 130*971bb1a5SLionel Sambuc /** 131*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_screen_count_reply_t 132*971bb1a5SLionel Sambuc **/ 133*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_screen_count_reply_t { 134*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 135*971bb1a5SLionel Sambuc uint8_t screen_count; /**< */ 136*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 137*971bb1a5SLionel Sambuc uint32_t length; /**< */ 138*971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 139*971bb1a5SLionel Sambuc } xcb_xinerama_get_screen_count_reply_t; 140*971bb1a5SLionel Sambuc 141*971bb1a5SLionel Sambuc /** 142*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_screen_size_cookie_t 143*971bb1a5SLionel Sambuc **/ 144*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_screen_size_cookie_t { 145*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 146*971bb1a5SLionel Sambuc } xcb_xinerama_get_screen_size_cookie_t; 147*971bb1a5SLionel Sambuc 148*971bb1a5SLionel Sambuc /** Opcode for xcb_xinerama_get_screen_size. */ 149*971bb1a5SLionel Sambuc #define XCB_XINERAMA_GET_SCREEN_SIZE 3 150*971bb1a5SLionel Sambuc 151*971bb1a5SLionel Sambuc /** 152*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_screen_size_request_t 153*971bb1a5SLionel Sambuc **/ 154*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_screen_size_request_t { 155*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 156*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 157*971bb1a5SLionel Sambuc uint16_t length; /**< */ 158*971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 159*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 160*971bb1a5SLionel Sambuc } xcb_xinerama_get_screen_size_request_t; 161*971bb1a5SLionel Sambuc 162*971bb1a5SLionel Sambuc /** 163*971bb1a5SLionel Sambuc * @brief xcb_xinerama_get_screen_size_reply_t 164*971bb1a5SLionel Sambuc **/ 165*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_get_screen_size_reply_t { 166*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 167*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 168*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 169*971bb1a5SLionel Sambuc uint32_t length; /**< */ 170*971bb1a5SLionel Sambuc uint32_t width; /**< */ 171*971bb1a5SLionel Sambuc uint32_t height; /**< */ 172*971bb1a5SLionel Sambuc xcb_window_t window; /**< */ 173*971bb1a5SLionel Sambuc uint32_t screen; /**< */ 174*971bb1a5SLionel Sambuc } xcb_xinerama_get_screen_size_reply_t; 175*971bb1a5SLionel Sambuc 176*971bb1a5SLionel Sambuc /** 177*971bb1a5SLionel Sambuc * @brief xcb_xinerama_is_active_cookie_t 178*971bb1a5SLionel Sambuc **/ 179*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_is_active_cookie_t { 180*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 181*971bb1a5SLionel Sambuc } xcb_xinerama_is_active_cookie_t; 182*971bb1a5SLionel Sambuc 183*971bb1a5SLionel Sambuc /** Opcode for xcb_xinerama_is_active. */ 184*971bb1a5SLionel Sambuc #define XCB_XINERAMA_IS_ACTIVE 4 185*971bb1a5SLionel Sambuc 186*971bb1a5SLionel Sambuc /** 187*971bb1a5SLionel Sambuc * @brief xcb_xinerama_is_active_request_t 188*971bb1a5SLionel Sambuc **/ 189*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_is_active_request_t { 190*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 191*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 192*971bb1a5SLionel Sambuc uint16_t length; /**< */ 193*971bb1a5SLionel Sambuc } xcb_xinerama_is_active_request_t; 194*971bb1a5SLionel Sambuc 195*971bb1a5SLionel Sambuc /** 196*971bb1a5SLionel Sambuc * @brief xcb_xinerama_is_active_reply_t 197*971bb1a5SLionel Sambuc **/ 198*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_is_active_reply_t { 199*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 200*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 201*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 202*971bb1a5SLionel Sambuc uint32_t length; /**< */ 203*971bb1a5SLionel Sambuc uint32_t state; /**< */ 204*971bb1a5SLionel Sambuc } xcb_xinerama_is_active_reply_t; 205*971bb1a5SLionel Sambuc 206*971bb1a5SLionel Sambuc /** 207*971bb1a5SLionel Sambuc * @brief xcb_xinerama_query_screens_cookie_t 208*971bb1a5SLionel Sambuc **/ 209*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_query_screens_cookie_t { 210*971bb1a5SLionel Sambuc unsigned int sequence; /**< */ 211*971bb1a5SLionel Sambuc } xcb_xinerama_query_screens_cookie_t; 212*971bb1a5SLionel Sambuc 213*971bb1a5SLionel Sambuc /** Opcode for xcb_xinerama_query_screens. */ 214*971bb1a5SLionel Sambuc #define XCB_XINERAMA_QUERY_SCREENS 5 215*971bb1a5SLionel Sambuc 216*971bb1a5SLionel Sambuc /** 217*971bb1a5SLionel Sambuc * @brief xcb_xinerama_query_screens_request_t 218*971bb1a5SLionel Sambuc **/ 219*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_query_screens_request_t { 220*971bb1a5SLionel Sambuc uint8_t major_opcode; /**< */ 221*971bb1a5SLionel Sambuc uint8_t minor_opcode; /**< */ 222*971bb1a5SLionel Sambuc uint16_t length; /**< */ 223*971bb1a5SLionel Sambuc } xcb_xinerama_query_screens_request_t; 224*971bb1a5SLionel Sambuc 225*971bb1a5SLionel Sambuc /** 226*971bb1a5SLionel Sambuc * @brief xcb_xinerama_query_screens_reply_t 227*971bb1a5SLionel Sambuc **/ 228*971bb1a5SLionel Sambuc typedef struct xcb_xinerama_query_screens_reply_t { 229*971bb1a5SLionel Sambuc uint8_t response_type; /**< */ 230*971bb1a5SLionel Sambuc uint8_t pad0; /**< */ 231*971bb1a5SLionel Sambuc uint16_t sequence; /**< */ 232*971bb1a5SLionel Sambuc uint32_t length; /**< */ 233*971bb1a5SLionel Sambuc uint32_t number; /**< */ 234*971bb1a5SLionel Sambuc uint8_t pad1[20]; /**< */ 235*971bb1a5SLionel Sambuc } xcb_xinerama_query_screens_reply_t; 236*971bb1a5SLionel Sambuc 237*971bb1a5SLionel Sambuc /** 238*971bb1a5SLionel Sambuc * Get the next element of the iterator 239*971bb1a5SLionel Sambuc * @param i Pointer to a xcb_xinerama_screen_info_iterator_t 240*971bb1a5SLionel Sambuc * 241*971bb1a5SLionel Sambuc * Get the next element in the iterator. The member rem is 242*971bb1a5SLionel Sambuc * decreased by one. The member data points to the next 243*971bb1a5SLionel Sambuc * element. The member index is increased by sizeof(xcb_xinerama_screen_info_t) 244*971bb1a5SLionel Sambuc */ 245*971bb1a5SLionel Sambuc void 246*971bb1a5SLionel Sambuc xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i /**< */); 247*971bb1a5SLionel Sambuc 248*971bb1a5SLionel Sambuc /** 249*971bb1a5SLionel Sambuc * Return the iterator pointing to the last element 250*971bb1a5SLionel Sambuc * @param i An xcb_xinerama_screen_info_iterator_t 251*971bb1a5SLionel Sambuc * @return The iterator pointing to the last element 252*971bb1a5SLionel Sambuc * 253*971bb1a5SLionel Sambuc * Set the current element in the iterator to the last element. 254*971bb1a5SLionel Sambuc * The member rem is set to 0. The member data points to the 255*971bb1a5SLionel Sambuc * last element. 256*971bb1a5SLionel Sambuc */ 257*971bb1a5SLionel Sambuc xcb_generic_iterator_t 258*971bb1a5SLionel Sambuc xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i /**< */); 259*971bb1a5SLionel Sambuc 260*971bb1a5SLionel Sambuc /** 261*971bb1a5SLionel Sambuc * 262*971bb1a5SLionel Sambuc * @param c The connection 263*971bb1a5SLionel Sambuc * @return A cookie 264*971bb1a5SLionel Sambuc * 265*971bb1a5SLionel Sambuc * Delivers a request to the X server. 266*971bb1a5SLionel Sambuc * 267*971bb1a5SLionel Sambuc */ 268*971bb1a5SLionel Sambuc xcb_xinerama_query_version_cookie_t 269*971bb1a5SLionel Sambuc xcb_xinerama_query_version (xcb_connection_t *c /**< */, 270*971bb1a5SLionel Sambuc uint8_t major /**< */, 271*971bb1a5SLionel Sambuc uint8_t minor /**< */); 272*971bb1a5SLionel Sambuc 273*971bb1a5SLionel Sambuc /** 274*971bb1a5SLionel Sambuc * 275*971bb1a5SLionel Sambuc * @param c The connection 276*971bb1a5SLionel Sambuc * @return A cookie 277*971bb1a5SLionel Sambuc * 278*971bb1a5SLionel Sambuc * Delivers a request to the X server. 279*971bb1a5SLionel Sambuc * 280*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 281*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 282*971bb1a5SLionel Sambuc * placed in the event queue. 283*971bb1a5SLionel Sambuc */ 284*971bb1a5SLionel Sambuc xcb_xinerama_query_version_cookie_t 285*971bb1a5SLionel Sambuc xcb_xinerama_query_version_unchecked (xcb_connection_t *c /**< */, 286*971bb1a5SLionel Sambuc uint8_t major /**< */, 287*971bb1a5SLionel Sambuc uint8_t minor /**< */); 288*971bb1a5SLionel Sambuc 289*971bb1a5SLionel Sambuc /** 290*971bb1a5SLionel Sambuc * Return the reply 291*971bb1a5SLionel Sambuc * @param c The connection 292*971bb1a5SLionel Sambuc * @param cookie The cookie 293*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 294*971bb1a5SLionel Sambuc * 295*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 296*971bb1a5SLionel Sambuc * 297*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 298*971bb1a5SLionel Sambuc * xcb_xinerama_query_version_unchecked(). is used. 299*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 300*971bb1a5SLionel Sambuc * 301*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 302*971bb1a5SLionel Sambuc */ 303*971bb1a5SLionel Sambuc xcb_xinerama_query_version_reply_t * 304*971bb1a5SLionel Sambuc xcb_xinerama_query_version_reply (xcb_connection_t *c /**< */, 305*971bb1a5SLionel Sambuc xcb_xinerama_query_version_cookie_t cookie /**< */, 306*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 307*971bb1a5SLionel Sambuc 308*971bb1a5SLionel Sambuc /** 309*971bb1a5SLionel Sambuc * 310*971bb1a5SLionel Sambuc * @param c The connection 311*971bb1a5SLionel Sambuc * @return A cookie 312*971bb1a5SLionel Sambuc * 313*971bb1a5SLionel Sambuc * Delivers a request to the X server. 314*971bb1a5SLionel Sambuc * 315*971bb1a5SLionel Sambuc */ 316*971bb1a5SLionel Sambuc xcb_xinerama_get_state_cookie_t 317*971bb1a5SLionel Sambuc xcb_xinerama_get_state (xcb_connection_t *c /**< */, 318*971bb1a5SLionel Sambuc xcb_window_t window /**< */); 319*971bb1a5SLionel Sambuc 320*971bb1a5SLionel Sambuc /** 321*971bb1a5SLionel Sambuc * 322*971bb1a5SLionel Sambuc * @param c The connection 323*971bb1a5SLionel Sambuc * @return A cookie 324*971bb1a5SLionel Sambuc * 325*971bb1a5SLionel Sambuc * Delivers a request to the X server. 326*971bb1a5SLionel Sambuc * 327*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 328*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 329*971bb1a5SLionel Sambuc * placed in the event queue. 330*971bb1a5SLionel Sambuc */ 331*971bb1a5SLionel Sambuc xcb_xinerama_get_state_cookie_t 332*971bb1a5SLionel Sambuc xcb_xinerama_get_state_unchecked (xcb_connection_t *c /**< */, 333*971bb1a5SLionel Sambuc xcb_window_t window /**< */); 334*971bb1a5SLionel Sambuc 335*971bb1a5SLionel Sambuc /** 336*971bb1a5SLionel Sambuc * Return the reply 337*971bb1a5SLionel Sambuc * @param c The connection 338*971bb1a5SLionel Sambuc * @param cookie The cookie 339*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 340*971bb1a5SLionel Sambuc * 341*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 342*971bb1a5SLionel Sambuc * 343*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 344*971bb1a5SLionel Sambuc * xcb_xinerama_get_state_unchecked(). is used. 345*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 346*971bb1a5SLionel Sambuc * 347*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 348*971bb1a5SLionel Sambuc */ 349*971bb1a5SLionel Sambuc xcb_xinerama_get_state_reply_t * 350*971bb1a5SLionel Sambuc xcb_xinerama_get_state_reply (xcb_connection_t *c /**< */, 351*971bb1a5SLionel Sambuc xcb_xinerama_get_state_cookie_t cookie /**< */, 352*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 353*971bb1a5SLionel Sambuc 354*971bb1a5SLionel Sambuc /** 355*971bb1a5SLionel Sambuc * 356*971bb1a5SLionel Sambuc * @param c The connection 357*971bb1a5SLionel Sambuc * @return A cookie 358*971bb1a5SLionel Sambuc * 359*971bb1a5SLionel Sambuc * Delivers a request to the X server. 360*971bb1a5SLionel Sambuc * 361*971bb1a5SLionel Sambuc */ 362*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count_cookie_t 363*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count (xcb_connection_t *c /**< */, 364*971bb1a5SLionel Sambuc xcb_window_t window /**< */); 365*971bb1a5SLionel Sambuc 366*971bb1a5SLionel Sambuc /** 367*971bb1a5SLionel Sambuc * 368*971bb1a5SLionel Sambuc * @param c The connection 369*971bb1a5SLionel Sambuc * @return A cookie 370*971bb1a5SLionel Sambuc * 371*971bb1a5SLionel Sambuc * Delivers a request to the X server. 372*971bb1a5SLionel Sambuc * 373*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 374*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 375*971bb1a5SLionel Sambuc * placed in the event queue. 376*971bb1a5SLionel Sambuc */ 377*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count_cookie_t 378*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c /**< */, 379*971bb1a5SLionel Sambuc xcb_window_t window /**< */); 380*971bb1a5SLionel Sambuc 381*971bb1a5SLionel Sambuc /** 382*971bb1a5SLionel Sambuc * Return the reply 383*971bb1a5SLionel Sambuc * @param c The connection 384*971bb1a5SLionel Sambuc * @param cookie The cookie 385*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 386*971bb1a5SLionel Sambuc * 387*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 388*971bb1a5SLionel Sambuc * 389*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 390*971bb1a5SLionel Sambuc * xcb_xinerama_get_screen_count_unchecked(). is used. 391*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 392*971bb1a5SLionel Sambuc * 393*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 394*971bb1a5SLionel Sambuc */ 395*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count_reply_t * 396*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count_reply (xcb_connection_t *c /**< */, 397*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_count_cookie_t cookie /**< */, 398*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 399*971bb1a5SLionel Sambuc 400*971bb1a5SLionel Sambuc /** 401*971bb1a5SLionel Sambuc * 402*971bb1a5SLionel Sambuc * @param c The connection 403*971bb1a5SLionel Sambuc * @return A cookie 404*971bb1a5SLionel Sambuc * 405*971bb1a5SLionel Sambuc * Delivers a request to the X server. 406*971bb1a5SLionel Sambuc * 407*971bb1a5SLionel Sambuc */ 408*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size_cookie_t 409*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size (xcb_connection_t *c /**< */, 410*971bb1a5SLionel Sambuc xcb_window_t window /**< */, 411*971bb1a5SLionel Sambuc uint32_t screen /**< */); 412*971bb1a5SLionel Sambuc 413*971bb1a5SLionel Sambuc /** 414*971bb1a5SLionel Sambuc * 415*971bb1a5SLionel Sambuc * @param c The connection 416*971bb1a5SLionel Sambuc * @return A cookie 417*971bb1a5SLionel Sambuc * 418*971bb1a5SLionel Sambuc * Delivers a request to the X server. 419*971bb1a5SLionel Sambuc * 420*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 421*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 422*971bb1a5SLionel Sambuc * placed in the event queue. 423*971bb1a5SLionel Sambuc */ 424*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size_cookie_t 425*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c /**< */, 426*971bb1a5SLionel Sambuc xcb_window_t window /**< */, 427*971bb1a5SLionel Sambuc uint32_t screen /**< */); 428*971bb1a5SLionel Sambuc 429*971bb1a5SLionel Sambuc /** 430*971bb1a5SLionel Sambuc * Return the reply 431*971bb1a5SLionel Sambuc * @param c The connection 432*971bb1a5SLionel Sambuc * @param cookie The cookie 433*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 434*971bb1a5SLionel Sambuc * 435*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 436*971bb1a5SLionel Sambuc * 437*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 438*971bb1a5SLionel Sambuc * xcb_xinerama_get_screen_size_unchecked(). is used. 439*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 440*971bb1a5SLionel Sambuc * 441*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 442*971bb1a5SLionel Sambuc */ 443*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size_reply_t * 444*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size_reply (xcb_connection_t *c /**< */, 445*971bb1a5SLionel Sambuc xcb_xinerama_get_screen_size_cookie_t cookie /**< */, 446*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 447*971bb1a5SLionel Sambuc 448*971bb1a5SLionel Sambuc /** 449*971bb1a5SLionel Sambuc * 450*971bb1a5SLionel Sambuc * @param c The connection 451*971bb1a5SLionel Sambuc * @return A cookie 452*971bb1a5SLionel Sambuc * 453*971bb1a5SLionel Sambuc * Delivers a request to the X server. 454*971bb1a5SLionel Sambuc * 455*971bb1a5SLionel Sambuc */ 456*971bb1a5SLionel Sambuc xcb_xinerama_is_active_cookie_t 457*971bb1a5SLionel Sambuc xcb_xinerama_is_active (xcb_connection_t *c /**< */); 458*971bb1a5SLionel Sambuc 459*971bb1a5SLionel Sambuc /** 460*971bb1a5SLionel Sambuc * 461*971bb1a5SLionel Sambuc * @param c The connection 462*971bb1a5SLionel Sambuc * @return A cookie 463*971bb1a5SLionel Sambuc * 464*971bb1a5SLionel Sambuc * Delivers a request to the X server. 465*971bb1a5SLionel Sambuc * 466*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 467*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 468*971bb1a5SLionel Sambuc * placed in the event queue. 469*971bb1a5SLionel Sambuc */ 470*971bb1a5SLionel Sambuc xcb_xinerama_is_active_cookie_t 471*971bb1a5SLionel Sambuc xcb_xinerama_is_active_unchecked (xcb_connection_t *c /**< */); 472*971bb1a5SLionel Sambuc 473*971bb1a5SLionel Sambuc /** 474*971bb1a5SLionel Sambuc * Return the reply 475*971bb1a5SLionel Sambuc * @param c The connection 476*971bb1a5SLionel Sambuc * @param cookie The cookie 477*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 478*971bb1a5SLionel Sambuc * 479*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 480*971bb1a5SLionel Sambuc * 481*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 482*971bb1a5SLionel Sambuc * xcb_xinerama_is_active_unchecked(). is used. 483*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 484*971bb1a5SLionel Sambuc * 485*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 486*971bb1a5SLionel Sambuc */ 487*971bb1a5SLionel Sambuc xcb_xinerama_is_active_reply_t * 488*971bb1a5SLionel Sambuc xcb_xinerama_is_active_reply (xcb_connection_t *c /**< */, 489*971bb1a5SLionel Sambuc xcb_xinerama_is_active_cookie_t cookie /**< */, 490*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 491*971bb1a5SLionel Sambuc 492*971bb1a5SLionel Sambuc int 493*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_sizeof (const void *_buffer /**< */); 494*971bb1a5SLionel Sambuc 495*971bb1a5SLionel Sambuc /** 496*971bb1a5SLionel Sambuc * 497*971bb1a5SLionel Sambuc * @param c The connection 498*971bb1a5SLionel Sambuc * @return A cookie 499*971bb1a5SLionel Sambuc * 500*971bb1a5SLionel Sambuc * Delivers a request to the X server. 501*971bb1a5SLionel Sambuc * 502*971bb1a5SLionel Sambuc */ 503*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_cookie_t 504*971bb1a5SLionel Sambuc xcb_xinerama_query_screens (xcb_connection_t *c /**< */); 505*971bb1a5SLionel Sambuc 506*971bb1a5SLionel Sambuc /** 507*971bb1a5SLionel Sambuc * 508*971bb1a5SLionel Sambuc * @param c The connection 509*971bb1a5SLionel Sambuc * @return A cookie 510*971bb1a5SLionel Sambuc * 511*971bb1a5SLionel Sambuc * Delivers a request to the X server. 512*971bb1a5SLionel Sambuc * 513*971bb1a5SLionel Sambuc * This form can be used only if the request will cause 514*971bb1a5SLionel Sambuc * a reply to be generated. Any returned error will be 515*971bb1a5SLionel Sambuc * placed in the event queue. 516*971bb1a5SLionel Sambuc */ 517*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_cookie_t 518*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_unchecked (xcb_connection_t *c /**< */); 519*971bb1a5SLionel Sambuc 520*971bb1a5SLionel Sambuc xcb_xinerama_screen_info_t * 521*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R /**< */); 522*971bb1a5SLionel Sambuc 523*971bb1a5SLionel Sambuc int 524*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R /**< */); 525*971bb1a5SLionel Sambuc 526*971bb1a5SLionel Sambuc xcb_xinerama_screen_info_iterator_t 527*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R /**< */); 528*971bb1a5SLionel Sambuc 529*971bb1a5SLionel Sambuc /** 530*971bb1a5SLionel Sambuc * Return the reply 531*971bb1a5SLionel Sambuc * @param c The connection 532*971bb1a5SLionel Sambuc * @param cookie The cookie 533*971bb1a5SLionel Sambuc * @param e The xcb_generic_error_t supplied 534*971bb1a5SLionel Sambuc * 535*971bb1a5SLionel Sambuc * Returns the reply of the request asked by 536*971bb1a5SLionel Sambuc * 537*971bb1a5SLionel Sambuc * The parameter @p e supplied to this function must be NULL if 538*971bb1a5SLionel Sambuc * xcb_xinerama_query_screens_unchecked(). is used. 539*971bb1a5SLionel Sambuc * Otherwise, it stores the error if any. 540*971bb1a5SLionel Sambuc * 541*971bb1a5SLionel Sambuc * The returned value must be freed by the caller using free(). 542*971bb1a5SLionel Sambuc */ 543*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_reply_t * 544*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_reply (xcb_connection_t *c /**< */, 545*971bb1a5SLionel Sambuc xcb_xinerama_query_screens_cookie_t cookie /**< */, 546*971bb1a5SLionel Sambuc xcb_generic_error_t **e /**< */); 547*971bb1a5SLionel Sambuc 548*971bb1a5SLionel Sambuc 549*971bb1a5SLionel Sambuc #ifdef __cplusplus 550*971bb1a5SLionel Sambuc } 551*971bb1a5SLionel Sambuc #endif 552*971bb1a5SLionel Sambuc 553*971bb1a5SLionel Sambuc #endif 554*971bb1a5SLionel Sambuc 555*971bb1a5SLionel Sambuc /** 556*971bb1a5SLionel Sambuc * @} 557*971bb1a5SLionel Sambuc */ 558