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