2 * This file generated automatically from xinerama.xml by c_client.py.
7 * @defgroup XCB_Xinerama_API XCB Xinerama API
8 * @brief Xinerama XCB Protocol Implementation.
22 #define XCB_XINERAMA_MAJOR_VERSION 1
23 #define XCB_XINERAMA_MINOR_VERSION 1
25 extern xcb_extension_t xcb_xinerama_id
;
28 * @brief xcb_xinerama_screen_info_t
30 typedef struct xcb_xinerama_screen_info_t
{
31 int16_t x_org
; /**< */
32 int16_t y_org
; /**< */
33 uint16_t width
; /**< */
34 uint16_t height
; /**< */
35 } xcb_xinerama_screen_info_t
;
38 * @brief xcb_xinerama_screen_info_iterator_t
40 typedef struct xcb_xinerama_screen_info_iterator_t
{
41 xcb_xinerama_screen_info_t
*data
; /**< */
44 } xcb_xinerama_screen_info_iterator_t
;
47 * @brief xcb_xinerama_query_version_cookie_t
49 typedef struct xcb_xinerama_query_version_cookie_t
{
50 unsigned int sequence
; /**< */
51 } xcb_xinerama_query_version_cookie_t
;
53 /** Opcode for xcb_xinerama_query_version. */
54 #define XCB_XINERAMA_QUERY_VERSION 0
57 * @brief xcb_xinerama_query_version_request_t
59 typedef struct xcb_xinerama_query_version_request_t
{
60 uint8_t major_opcode
; /**< */
61 uint8_t minor_opcode
; /**< */
62 uint16_t length
; /**< */
63 uint8_t major
; /**< */
64 uint8_t minor
; /**< */
65 } xcb_xinerama_query_version_request_t
;
68 * @brief xcb_xinerama_query_version_reply_t
70 typedef struct xcb_xinerama_query_version_reply_t
{
71 uint8_t response_type
; /**< */
73 uint16_t sequence
; /**< */
74 uint32_t length
; /**< */
75 uint16_t major
; /**< */
76 uint16_t minor
; /**< */
77 } xcb_xinerama_query_version_reply_t
;
80 * @brief xcb_xinerama_get_state_cookie_t
82 typedef struct xcb_xinerama_get_state_cookie_t
{
83 unsigned int sequence
; /**< */
84 } xcb_xinerama_get_state_cookie_t
;
86 /** Opcode for xcb_xinerama_get_state. */
87 #define XCB_XINERAMA_GET_STATE 1
90 * @brief xcb_xinerama_get_state_request_t
92 typedef struct xcb_xinerama_get_state_request_t
{
93 uint8_t major_opcode
; /**< */
94 uint8_t minor_opcode
; /**< */
95 uint16_t length
; /**< */
96 xcb_window_t window
; /**< */
97 } xcb_xinerama_get_state_request_t
;
100 * @brief xcb_xinerama_get_state_reply_t
102 typedef struct xcb_xinerama_get_state_reply_t
{
103 uint8_t response_type
; /**< */
104 uint8_t state
; /**< */
105 uint16_t sequence
; /**< */
106 uint32_t length
; /**< */
107 xcb_window_t window
; /**< */
108 } xcb_xinerama_get_state_reply_t
;
111 * @brief xcb_xinerama_get_screen_count_cookie_t
113 typedef struct xcb_xinerama_get_screen_count_cookie_t
{
114 unsigned int sequence
; /**< */
115 } xcb_xinerama_get_screen_count_cookie_t
;
117 /** Opcode for xcb_xinerama_get_screen_count. */
118 #define XCB_XINERAMA_GET_SCREEN_COUNT 2
121 * @brief xcb_xinerama_get_screen_count_request_t
123 typedef struct xcb_xinerama_get_screen_count_request_t
{
124 uint8_t major_opcode
; /**< */
125 uint8_t minor_opcode
; /**< */
126 uint16_t length
; /**< */
127 xcb_window_t window
; /**< */
128 } xcb_xinerama_get_screen_count_request_t
;
131 * @brief xcb_xinerama_get_screen_count_reply_t
133 typedef struct xcb_xinerama_get_screen_count_reply_t
{
134 uint8_t response_type
; /**< */
135 uint8_t screen_count
; /**< */
136 uint16_t sequence
; /**< */
137 uint32_t length
; /**< */
138 xcb_window_t window
; /**< */
139 } xcb_xinerama_get_screen_count_reply_t
;
142 * @brief xcb_xinerama_get_screen_size_cookie_t
144 typedef struct xcb_xinerama_get_screen_size_cookie_t
{
145 unsigned int sequence
; /**< */
146 } xcb_xinerama_get_screen_size_cookie_t
;
148 /** Opcode for xcb_xinerama_get_screen_size. */
149 #define XCB_XINERAMA_GET_SCREEN_SIZE 3
152 * @brief xcb_xinerama_get_screen_size_request_t
154 typedef struct xcb_xinerama_get_screen_size_request_t
{
155 uint8_t major_opcode
; /**< */
156 uint8_t minor_opcode
; /**< */
157 uint16_t length
; /**< */
158 xcb_window_t window
; /**< */
159 uint32_t screen
; /**< */
160 } xcb_xinerama_get_screen_size_request_t
;
163 * @brief xcb_xinerama_get_screen_size_reply_t
165 typedef struct xcb_xinerama_get_screen_size_reply_t
{
166 uint8_t response_type
; /**< */
167 uint8_t pad0
; /**< */
168 uint16_t sequence
; /**< */
169 uint32_t length
; /**< */
170 uint32_t width
; /**< */
171 uint32_t height
; /**< */
172 xcb_window_t window
; /**< */
173 uint32_t screen
; /**< */
174 } xcb_xinerama_get_screen_size_reply_t
;
177 * @brief xcb_xinerama_is_active_cookie_t
179 typedef struct xcb_xinerama_is_active_cookie_t
{
180 unsigned int sequence
; /**< */
181 } xcb_xinerama_is_active_cookie_t
;
183 /** Opcode for xcb_xinerama_is_active. */
184 #define XCB_XINERAMA_IS_ACTIVE 4
187 * @brief xcb_xinerama_is_active_request_t
189 typedef struct xcb_xinerama_is_active_request_t
{
190 uint8_t major_opcode
; /**< */
191 uint8_t minor_opcode
; /**< */
192 uint16_t length
; /**< */
193 } xcb_xinerama_is_active_request_t
;
196 * @brief xcb_xinerama_is_active_reply_t
198 typedef struct xcb_xinerama_is_active_reply_t
{
199 uint8_t response_type
; /**< */
200 uint8_t pad0
; /**< */
201 uint16_t sequence
; /**< */
202 uint32_t length
; /**< */
203 uint32_t state
; /**< */
204 } xcb_xinerama_is_active_reply_t
;
207 * @brief xcb_xinerama_query_screens_cookie_t
209 typedef struct xcb_xinerama_query_screens_cookie_t
{
210 unsigned int sequence
; /**< */
211 } xcb_xinerama_query_screens_cookie_t
;
213 /** Opcode for xcb_xinerama_query_screens. */
214 #define XCB_XINERAMA_QUERY_SCREENS 5
217 * @brief xcb_xinerama_query_screens_request_t
219 typedef struct xcb_xinerama_query_screens_request_t
{
220 uint8_t major_opcode
; /**< */
221 uint8_t minor_opcode
; /**< */
222 uint16_t length
; /**< */
223 } xcb_xinerama_query_screens_request_t
;
226 * @brief xcb_xinerama_query_screens_reply_t
228 typedef struct xcb_xinerama_query_screens_reply_t
{
229 uint8_t response_type
; /**< */
230 uint8_t pad0
; /**< */
231 uint16_t sequence
; /**< */
232 uint32_t length
; /**< */
233 uint32_t number
; /**< */
234 uint8_t pad1
[20]; /**< */
235 } xcb_xinerama_query_screens_reply_t
;
238 * Get the next element of the iterator
239 * @param i Pointer to a xcb_xinerama_screen_info_iterator_t
241 * Get the next element in the iterator. The member rem is
242 * decreased by one. The member data points to the next
243 * element. The member index is increased by sizeof(xcb_xinerama_screen_info_t)
246 xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t
*i
/**< */);
249 * Return the iterator pointing to the last element
250 * @param i An xcb_xinerama_screen_info_iterator_t
251 * @return The iterator pointing to the last element
253 * Set the current element in the iterator to the last element.
254 * The member rem is set to 0. The member data points to the
257 xcb_generic_iterator_t
258 xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i
/**< */);
262 * @param c The connection
265 * Delivers a request to the X server.
268 xcb_xinerama_query_version_cookie_t
269 xcb_xinerama_query_version (xcb_connection_t
*c
/**< */,
270 uint8_t major
/**< */,
271 uint8_t minor
/**< */);
275 * @param c The connection
278 * Delivers a request to the X server.
280 * This form can be used only if the request will cause
281 * a reply to be generated. Any returned error will be
282 * placed in the event queue.
284 xcb_xinerama_query_version_cookie_t
285 xcb_xinerama_query_version_unchecked (xcb_connection_t
*c
/**< */,
286 uint8_t major
/**< */,
287 uint8_t minor
/**< */);
291 * @param c The connection
292 * @param cookie The cookie
293 * @param e The xcb_generic_error_t supplied
295 * Returns the reply of the request asked by
297 * The parameter @p e supplied to this function must be NULL if
298 * xcb_xinerama_query_version_unchecked(). is used.
299 * Otherwise, it stores the error if any.
301 * The returned value must be freed by the caller using free().
303 xcb_xinerama_query_version_reply_t
*
304 xcb_xinerama_query_version_reply (xcb_connection_t
*c
/**< */,
305 xcb_xinerama_query_version_cookie_t cookie
/**< */,
306 xcb_generic_error_t
**e
/**< */);
310 * @param c The connection
313 * Delivers a request to the X server.
316 xcb_xinerama_get_state_cookie_t
317 xcb_xinerama_get_state (xcb_connection_t
*c
/**< */,
318 xcb_window_t window
/**< */);
322 * @param c The connection
325 * Delivers a request to the X server.
327 * This form can be used only if the request will cause
328 * a reply to be generated. Any returned error will be
329 * placed in the event queue.
331 xcb_xinerama_get_state_cookie_t
332 xcb_xinerama_get_state_unchecked (xcb_connection_t
*c
/**< */,
333 xcb_window_t window
/**< */);
337 * @param c The connection
338 * @param cookie The cookie
339 * @param e The xcb_generic_error_t supplied
341 * Returns the reply of the request asked by
343 * The parameter @p e supplied to this function must be NULL if
344 * xcb_xinerama_get_state_unchecked(). is used.
345 * Otherwise, it stores the error if any.
347 * The returned value must be freed by the caller using free().
349 xcb_xinerama_get_state_reply_t
*
350 xcb_xinerama_get_state_reply (xcb_connection_t
*c
/**< */,
351 xcb_xinerama_get_state_cookie_t cookie
/**< */,
352 xcb_generic_error_t
**e
/**< */);
356 * @param c The connection
359 * Delivers a request to the X server.
362 xcb_xinerama_get_screen_count_cookie_t
363 xcb_xinerama_get_screen_count (xcb_connection_t
*c
/**< */,
364 xcb_window_t window
/**< */);
368 * @param c The connection
371 * Delivers a request to the X server.
373 * This form can be used only if the request will cause
374 * a reply to be generated. Any returned error will be
375 * placed in the event queue.
377 xcb_xinerama_get_screen_count_cookie_t
378 xcb_xinerama_get_screen_count_unchecked (xcb_connection_t
*c
/**< */,
379 xcb_window_t window
/**< */);
383 * @param c The connection
384 * @param cookie The cookie
385 * @param e The xcb_generic_error_t supplied
387 * Returns the reply of the request asked by
389 * The parameter @p e supplied to this function must be NULL if
390 * xcb_xinerama_get_screen_count_unchecked(). is used.
391 * Otherwise, it stores the error if any.
393 * The returned value must be freed by the caller using free().
395 xcb_xinerama_get_screen_count_reply_t
*
396 xcb_xinerama_get_screen_count_reply (xcb_connection_t
*c
/**< */,
397 xcb_xinerama_get_screen_count_cookie_t cookie
/**< */,
398 xcb_generic_error_t
**e
/**< */);
402 * @param c The connection
405 * Delivers a request to the X server.
408 xcb_xinerama_get_screen_size_cookie_t
409 xcb_xinerama_get_screen_size (xcb_connection_t
*c
/**< */,
410 xcb_window_t window
/**< */,
411 uint32_t screen
/**< */);
415 * @param c The connection
418 * Delivers a request to the X server.
420 * This form can be used only if the request will cause
421 * a reply to be generated. Any returned error will be
422 * placed in the event queue.
424 xcb_xinerama_get_screen_size_cookie_t
425 xcb_xinerama_get_screen_size_unchecked (xcb_connection_t
*c
/**< */,
426 xcb_window_t window
/**< */,
427 uint32_t screen
/**< */);
431 * @param c The connection
432 * @param cookie The cookie
433 * @param e The xcb_generic_error_t supplied
435 * Returns the reply of the request asked by
437 * The parameter @p e supplied to this function must be NULL if
438 * xcb_xinerama_get_screen_size_unchecked(). is used.
439 * Otherwise, it stores the error if any.
441 * The returned value must be freed by the caller using free().
443 xcb_xinerama_get_screen_size_reply_t
*
444 xcb_xinerama_get_screen_size_reply (xcb_connection_t
*c
/**< */,
445 xcb_xinerama_get_screen_size_cookie_t cookie
/**< */,
446 xcb_generic_error_t
**e
/**< */);
450 * @param c The connection
453 * Delivers a request to the X server.
456 xcb_xinerama_is_active_cookie_t
457 xcb_xinerama_is_active (xcb_connection_t
*c
/**< */);
461 * @param c The connection
464 * Delivers a request to the X server.
466 * This form can be used only if the request will cause
467 * a reply to be generated. Any returned error will be
468 * placed in the event queue.
470 xcb_xinerama_is_active_cookie_t
471 xcb_xinerama_is_active_unchecked (xcb_connection_t
*c
/**< */);
475 * @param c The connection
476 * @param cookie The cookie
477 * @param e The xcb_generic_error_t supplied
479 * Returns the reply of the request asked by
481 * The parameter @p e supplied to this function must be NULL if
482 * xcb_xinerama_is_active_unchecked(). is used.
483 * Otherwise, it stores the error if any.
485 * The returned value must be freed by the caller using free().
487 xcb_xinerama_is_active_reply_t
*
488 xcb_xinerama_is_active_reply (xcb_connection_t
*c
/**< */,
489 xcb_xinerama_is_active_cookie_t cookie
/**< */,
490 xcb_generic_error_t
**e
/**< */);
493 xcb_xinerama_query_screens_sizeof (const void *_buffer
/**< */);
497 * @param c The connection
500 * Delivers a request to the X server.
503 xcb_xinerama_query_screens_cookie_t
504 xcb_xinerama_query_screens (xcb_connection_t
*c
/**< */);
508 * @param c The connection
511 * Delivers a request to the X server.
513 * This form can be used only if the request will cause
514 * a reply to be generated. Any returned error will be
515 * placed in the event queue.
517 xcb_xinerama_query_screens_cookie_t
518 xcb_xinerama_query_screens_unchecked (xcb_connection_t
*c
/**< */);
520 xcb_xinerama_screen_info_t
*
521 xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t
*R
/**< */);
524 xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t
*R
/**< */);
526 xcb_xinerama_screen_info_iterator_t
527 xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t
*R
/**< */);
531 * @param c The connection
532 * @param cookie The cookie
533 * @param e The xcb_generic_error_t supplied
535 * Returns the reply of the request asked by
537 * The parameter @p e supplied to this function must be NULL if
538 * xcb_xinerama_query_screens_unchecked(). is used.
539 * Otherwise, it stores the error if any.
541 * The returned value must be freed by the caller using free().
543 xcb_xinerama_query_screens_reply_t
*
544 xcb_xinerama_query_screens_reply (xcb_connection_t
*c
/**< */,
545 xcb_xinerama_query_screens_cookie_t cookie
/**< */,
546 xcb_generic_error_t
**e
/**< */);