etc/protocols - sync with NetBSD-8
[minix.git] / external / mit / xorg / lib / libxcb / files / xfixes.h
blob1752ebb3f3ab27676a2c104a450ea9ac64cfeb3a
1 /*
2 * This file generated automatically from xfixes.xml by c_client.py.
3 * Edit at your peril.
4 */
6 /**
7 * @defgroup XCB_XFixes_API XCB XFixes API
8 * @brief XFixes XCB Protocol Implementation.
9 * @{
10 **/
12 #ifndef __XFIXES_H
13 #define __XFIXES_H
15 #include "xcb.h"
16 #include "xproto.h"
17 #include "render.h"
18 #include "shape.h"
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 #define XCB_XFIXES_MAJOR_VERSION 5
25 #define XCB_XFIXES_MINOR_VERSION 0
27 extern xcb_extension_t xcb_xfixes_id;
29 /**
30 * @brief xcb_xfixes_query_version_cookie_t
31 **/
32 typedef struct xcb_xfixes_query_version_cookie_t {
33 unsigned int sequence; /**< */
34 } xcb_xfixes_query_version_cookie_t;
36 /** Opcode for xcb_xfixes_query_version. */
37 #define XCB_XFIXES_QUERY_VERSION 0
39 /**
40 * @brief xcb_xfixes_query_version_request_t
41 **/
42 typedef struct xcb_xfixes_query_version_request_t {
43 uint8_t major_opcode; /**< */
44 uint8_t minor_opcode; /**< */
45 uint16_t length; /**< */
46 uint32_t client_major_version; /**< */
47 uint32_t client_minor_version; /**< */
48 } xcb_xfixes_query_version_request_t;
50 /**
51 * @brief xcb_xfixes_query_version_reply_t
52 **/
53 typedef struct xcb_xfixes_query_version_reply_t {
54 uint8_t response_type; /**< */
55 uint8_t pad0; /**< */
56 uint16_t sequence; /**< */
57 uint32_t length; /**< */
58 uint32_t major_version; /**< */
59 uint32_t minor_version; /**< */
60 uint8_t pad1[16]; /**< */
61 } xcb_xfixes_query_version_reply_t;
63 typedef enum xcb_xfixes_save_set_mode_t {
64 XCB_XFIXES_SAVE_SET_MODE_INSERT = 0,
65 XCB_XFIXES_SAVE_SET_MODE_DELETE = 1
66 } xcb_xfixes_save_set_mode_t;
68 typedef enum xcb_xfixes_save_set_target_t {
69 XCB_XFIXES_SAVE_SET_TARGET_NEAREST = 0,
70 XCB_XFIXES_SAVE_SET_TARGET_ROOT = 1
71 } xcb_xfixes_save_set_target_t;
73 typedef enum xcb_xfixes_save_set_mapping_t {
74 XCB_XFIXES_SAVE_SET_MAPPING_MAP = 0,
75 XCB_XFIXES_SAVE_SET_MAPPING_UNMAP = 1
76 } xcb_xfixes_save_set_mapping_t;
78 /** Opcode for xcb_xfixes_change_save_set. */
79 #define XCB_XFIXES_CHANGE_SAVE_SET 1
81 /**
82 * @brief xcb_xfixes_change_save_set_request_t
83 **/
84 typedef struct xcb_xfixes_change_save_set_request_t {
85 uint8_t major_opcode; /**< */
86 uint8_t minor_opcode; /**< */
87 uint16_t length; /**< */
88 uint8_t mode; /**< */
89 uint8_t target; /**< */
90 uint8_t map; /**< */
91 uint8_t pad0; /**< */
92 xcb_window_t window; /**< */
93 } xcb_xfixes_change_save_set_request_t;
95 typedef enum xcb_xfixes_selection_event_t {
96 XCB_XFIXES_SELECTION_EVENT_SET_SELECTION_OWNER = 0,
97 XCB_XFIXES_SELECTION_EVENT_SELECTION_WINDOW_DESTROY = 1,
98 XCB_XFIXES_SELECTION_EVENT_SELECTION_CLIENT_CLOSE = 2
99 } xcb_xfixes_selection_event_t;
101 typedef enum xcb_xfixes_selection_event_mask_t {
102 XCB_XFIXES_SELECTION_EVENT_MASK_SET_SELECTION_OWNER = 1,
103 XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_WINDOW_DESTROY = 2,
104 XCB_XFIXES_SELECTION_EVENT_MASK_SELECTION_CLIENT_CLOSE = 4
105 } xcb_xfixes_selection_event_mask_t;
107 /** Opcode for xcb_xfixes_selection_notify. */
108 #define XCB_XFIXES_SELECTION_NOTIFY 0
111 * @brief xcb_xfixes_selection_notify_event_t
113 typedef struct xcb_xfixes_selection_notify_event_t {
114 uint8_t response_type; /**< */
115 uint8_t subtype; /**< */
116 uint16_t sequence; /**< */
117 xcb_window_t window; /**< */
118 xcb_window_t owner; /**< */
119 xcb_atom_t selection; /**< */
120 xcb_timestamp_t timestamp; /**< */
121 xcb_timestamp_t selection_timestamp; /**< */
122 uint8_t pad0[8]; /**< */
123 } xcb_xfixes_selection_notify_event_t;
125 /** Opcode for xcb_xfixes_select_selection_input. */
126 #define XCB_XFIXES_SELECT_SELECTION_INPUT 2
129 * @brief xcb_xfixes_select_selection_input_request_t
131 typedef struct xcb_xfixes_select_selection_input_request_t {
132 uint8_t major_opcode; /**< */
133 uint8_t minor_opcode; /**< */
134 uint16_t length; /**< */
135 xcb_window_t window; /**< */
136 xcb_atom_t selection; /**< */
137 uint32_t event_mask; /**< */
138 } xcb_xfixes_select_selection_input_request_t;
140 typedef enum xcb_xfixes_cursor_notify_t {
141 XCB_XFIXES_CURSOR_NOTIFY_DISPLAY_CURSOR = 0
142 } xcb_xfixes_cursor_notify_t;
144 typedef enum xcb_xfixes_cursor_notify_mask_t {
145 XCB_XFIXES_CURSOR_NOTIFY_MASK_DISPLAY_CURSOR = 1
146 } xcb_xfixes_cursor_notify_mask_t;
148 /** Opcode for xcb_xfixes_cursor_notify. */
149 #define XCB_XFIXES_CURSOR_NOTIFY 1
152 * @brief xcb_xfixes_cursor_notify_event_t
154 typedef struct xcb_xfixes_cursor_notify_event_t {
155 uint8_t response_type; /**< */
156 uint8_t subtype; /**< */
157 uint16_t sequence; /**< */
158 xcb_window_t window; /**< */
159 uint32_t cursor_serial; /**< */
160 xcb_timestamp_t timestamp; /**< */
161 xcb_atom_t name; /**< */
162 uint8_t pad0[12]; /**< */
163 } xcb_xfixes_cursor_notify_event_t;
165 /** Opcode for xcb_xfixes_select_cursor_input. */
166 #define XCB_XFIXES_SELECT_CURSOR_INPUT 3
169 * @brief xcb_xfixes_select_cursor_input_request_t
171 typedef struct xcb_xfixes_select_cursor_input_request_t {
172 uint8_t major_opcode; /**< */
173 uint8_t minor_opcode; /**< */
174 uint16_t length; /**< */
175 xcb_window_t window; /**< */
176 uint32_t event_mask; /**< */
177 } xcb_xfixes_select_cursor_input_request_t;
180 * @brief xcb_xfixes_get_cursor_image_cookie_t
182 typedef struct xcb_xfixes_get_cursor_image_cookie_t {
183 unsigned int sequence; /**< */
184 } xcb_xfixes_get_cursor_image_cookie_t;
186 /** Opcode for xcb_xfixes_get_cursor_image. */
187 #define XCB_XFIXES_GET_CURSOR_IMAGE 4
190 * @brief xcb_xfixes_get_cursor_image_request_t
192 typedef struct xcb_xfixes_get_cursor_image_request_t {
193 uint8_t major_opcode; /**< */
194 uint8_t minor_opcode; /**< */
195 uint16_t length; /**< */
196 } xcb_xfixes_get_cursor_image_request_t;
199 * @brief xcb_xfixes_get_cursor_image_reply_t
201 typedef struct xcb_xfixes_get_cursor_image_reply_t {
202 uint8_t response_type; /**< */
203 uint8_t pad0; /**< */
204 uint16_t sequence; /**< */
205 uint32_t length; /**< */
206 int16_t x; /**< */
207 int16_t y; /**< */
208 uint16_t width; /**< */
209 uint16_t height; /**< */
210 uint16_t xhot; /**< */
211 uint16_t yhot; /**< */
212 uint32_t cursor_serial; /**< */
213 uint8_t pad1[8]; /**< */
214 } xcb_xfixes_get_cursor_image_reply_t;
216 typedef uint32_t xcb_xfixes_region_t;
219 * @brief xcb_xfixes_region_iterator_t
221 typedef struct xcb_xfixes_region_iterator_t {
222 xcb_xfixes_region_t *data; /**< */
223 int rem; /**< */
224 int index; /**< */
225 } xcb_xfixes_region_iterator_t;
227 /** Opcode for xcb_xfixes_bad_region. */
228 #define XCB_XFIXES_BAD_REGION 0
231 * @brief xcb_xfixes_bad_region_error_t
233 typedef struct xcb_xfixes_bad_region_error_t {
234 uint8_t response_type; /**< */
235 uint8_t error_code; /**< */
236 uint16_t sequence; /**< */
237 } xcb_xfixes_bad_region_error_t;
239 typedef enum xcb_xfixes_region_enum_t {
240 XCB_XFIXES_REGION_NONE = 0
241 } xcb_xfixes_region_enum_t;
243 /** Opcode for xcb_xfixes_create_region. */
244 #define XCB_XFIXES_CREATE_REGION 5
247 * @brief xcb_xfixes_create_region_request_t
249 typedef struct xcb_xfixes_create_region_request_t {
250 uint8_t major_opcode; /**< */
251 uint8_t minor_opcode; /**< */
252 uint16_t length; /**< */
253 xcb_xfixes_region_t region; /**< */
254 } xcb_xfixes_create_region_request_t;
256 /** Opcode for xcb_xfixes_create_region_from_bitmap. */
257 #define XCB_XFIXES_CREATE_REGION_FROM_BITMAP 6
260 * @brief xcb_xfixes_create_region_from_bitmap_request_t
262 typedef struct xcb_xfixes_create_region_from_bitmap_request_t {
263 uint8_t major_opcode; /**< */
264 uint8_t minor_opcode; /**< */
265 uint16_t length; /**< */
266 xcb_xfixes_region_t region; /**< */
267 xcb_pixmap_t bitmap; /**< */
268 } xcb_xfixes_create_region_from_bitmap_request_t;
270 /** Opcode for xcb_xfixes_create_region_from_window. */
271 #define XCB_XFIXES_CREATE_REGION_FROM_WINDOW 7
274 * @brief xcb_xfixes_create_region_from_window_request_t
276 typedef struct xcb_xfixes_create_region_from_window_request_t {
277 uint8_t major_opcode; /**< */
278 uint8_t minor_opcode; /**< */
279 uint16_t length; /**< */
280 xcb_xfixes_region_t region; /**< */
281 xcb_window_t window; /**< */
282 xcb_shape_kind_t kind; /**< */
283 uint8_t pad0[3]; /**< */
284 } xcb_xfixes_create_region_from_window_request_t;
286 /** Opcode for xcb_xfixes_create_region_from_gc. */
287 #define XCB_XFIXES_CREATE_REGION_FROM_GC 8
290 * @brief xcb_xfixes_create_region_from_gc_request_t
292 typedef struct xcb_xfixes_create_region_from_gc_request_t {
293 uint8_t major_opcode; /**< */
294 uint8_t minor_opcode; /**< */
295 uint16_t length; /**< */
296 xcb_xfixes_region_t region; /**< */
297 xcb_gcontext_t gc; /**< */
298 } xcb_xfixes_create_region_from_gc_request_t;
300 /** Opcode for xcb_xfixes_create_region_from_picture. */
301 #define XCB_XFIXES_CREATE_REGION_FROM_PICTURE 9
304 * @brief xcb_xfixes_create_region_from_picture_request_t
306 typedef struct xcb_xfixes_create_region_from_picture_request_t {
307 uint8_t major_opcode; /**< */
308 uint8_t minor_opcode; /**< */
309 uint16_t length; /**< */
310 xcb_xfixes_region_t region; /**< */
311 xcb_render_picture_t picture; /**< */
312 } xcb_xfixes_create_region_from_picture_request_t;
314 /** Opcode for xcb_xfixes_destroy_region. */
315 #define XCB_XFIXES_DESTROY_REGION 10
318 * @brief xcb_xfixes_destroy_region_request_t
320 typedef struct xcb_xfixes_destroy_region_request_t {
321 uint8_t major_opcode; /**< */
322 uint8_t minor_opcode; /**< */
323 uint16_t length; /**< */
324 xcb_xfixes_region_t region; /**< */
325 } xcb_xfixes_destroy_region_request_t;
327 /** Opcode for xcb_xfixes_set_region. */
328 #define XCB_XFIXES_SET_REGION 11
331 * @brief xcb_xfixes_set_region_request_t
333 typedef struct xcb_xfixes_set_region_request_t {
334 uint8_t major_opcode; /**< */
335 uint8_t minor_opcode; /**< */
336 uint16_t length; /**< */
337 xcb_xfixes_region_t region; /**< */
338 } xcb_xfixes_set_region_request_t;
340 /** Opcode for xcb_xfixes_copy_region. */
341 #define XCB_XFIXES_COPY_REGION 12
344 * @brief xcb_xfixes_copy_region_request_t
346 typedef struct xcb_xfixes_copy_region_request_t {
347 uint8_t major_opcode; /**< */
348 uint8_t minor_opcode; /**< */
349 uint16_t length; /**< */
350 xcb_xfixes_region_t source; /**< */
351 xcb_xfixes_region_t destination; /**< */
352 } xcb_xfixes_copy_region_request_t;
354 /** Opcode for xcb_xfixes_union_region. */
355 #define XCB_XFIXES_UNION_REGION 13
358 * @brief xcb_xfixes_union_region_request_t
360 typedef struct xcb_xfixes_union_region_request_t {
361 uint8_t major_opcode; /**< */
362 uint8_t minor_opcode; /**< */
363 uint16_t length; /**< */
364 xcb_xfixes_region_t source1; /**< */
365 xcb_xfixes_region_t source2; /**< */
366 xcb_xfixes_region_t destination; /**< */
367 } xcb_xfixes_union_region_request_t;
369 /** Opcode for xcb_xfixes_intersect_region. */
370 #define XCB_XFIXES_INTERSECT_REGION 14
373 * @brief xcb_xfixes_intersect_region_request_t
375 typedef struct xcb_xfixes_intersect_region_request_t {
376 uint8_t major_opcode; /**< */
377 uint8_t minor_opcode; /**< */
378 uint16_t length; /**< */
379 xcb_xfixes_region_t source1; /**< */
380 xcb_xfixes_region_t source2; /**< */
381 xcb_xfixes_region_t destination; /**< */
382 } xcb_xfixes_intersect_region_request_t;
384 /** Opcode for xcb_xfixes_subtract_region. */
385 #define XCB_XFIXES_SUBTRACT_REGION 15
388 * @brief xcb_xfixes_subtract_region_request_t
390 typedef struct xcb_xfixes_subtract_region_request_t {
391 uint8_t major_opcode; /**< */
392 uint8_t minor_opcode; /**< */
393 uint16_t length; /**< */
394 xcb_xfixes_region_t source1; /**< */
395 xcb_xfixes_region_t source2; /**< */
396 xcb_xfixes_region_t destination; /**< */
397 } xcb_xfixes_subtract_region_request_t;
399 /** Opcode for xcb_xfixes_invert_region. */
400 #define XCB_XFIXES_INVERT_REGION 16
403 * @brief xcb_xfixes_invert_region_request_t
405 typedef struct xcb_xfixes_invert_region_request_t {
406 uint8_t major_opcode; /**< */
407 uint8_t minor_opcode; /**< */
408 uint16_t length; /**< */
409 xcb_xfixes_region_t source; /**< */
410 xcb_rectangle_t bounds; /**< */
411 xcb_xfixes_region_t destination; /**< */
412 } xcb_xfixes_invert_region_request_t;
414 /** Opcode for xcb_xfixes_translate_region. */
415 #define XCB_XFIXES_TRANSLATE_REGION 17
418 * @brief xcb_xfixes_translate_region_request_t
420 typedef struct xcb_xfixes_translate_region_request_t {
421 uint8_t major_opcode; /**< */
422 uint8_t minor_opcode; /**< */
423 uint16_t length; /**< */
424 xcb_xfixes_region_t region; /**< */
425 int16_t dx; /**< */
426 int16_t dy; /**< */
427 } xcb_xfixes_translate_region_request_t;
429 /** Opcode for xcb_xfixes_region_extents. */
430 #define XCB_XFIXES_REGION_EXTENTS 18
433 * @brief xcb_xfixes_region_extents_request_t
435 typedef struct xcb_xfixes_region_extents_request_t {
436 uint8_t major_opcode; /**< */
437 uint8_t minor_opcode; /**< */
438 uint16_t length; /**< */
439 xcb_xfixes_region_t source; /**< */
440 xcb_xfixes_region_t destination; /**< */
441 } xcb_xfixes_region_extents_request_t;
444 * @brief xcb_xfixes_fetch_region_cookie_t
446 typedef struct xcb_xfixes_fetch_region_cookie_t {
447 unsigned int sequence; /**< */
448 } xcb_xfixes_fetch_region_cookie_t;
450 /** Opcode for xcb_xfixes_fetch_region. */
451 #define XCB_XFIXES_FETCH_REGION 19
454 * @brief xcb_xfixes_fetch_region_request_t
456 typedef struct xcb_xfixes_fetch_region_request_t {
457 uint8_t major_opcode; /**< */
458 uint8_t minor_opcode; /**< */
459 uint16_t length; /**< */
460 xcb_xfixes_region_t region; /**< */
461 } xcb_xfixes_fetch_region_request_t;
464 * @brief xcb_xfixes_fetch_region_reply_t
466 typedef struct xcb_xfixes_fetch_region_reply_t {
467 uint8_t response_type; /**< */
468 uint8_t pad0; /**< */
469 uint16_t sequence; /**< */
470 uint32_t length; /**< */
471 xcb_rectangle_t extents; /**< */
472 uint8_t pad1[16]; /**< */
473 } xcb_xfixes_fetch_region_reply_t;
475 /** Opcode for xcb_xfixes_set_gc_clip_region. */
476 #define XCB_XFIXES_SET_GC_CLIP_REGION 20
479 * @brief xcb_xfixes_set_gc_clip_region_request_t
481 typedef struct xcb_xfixes_set_gc_clip_region_request_t {
482 uint8_t major_opcode; /**< */
483 uint8_t minor_opcode; /**< */
484 uint16_t length; /**< */
485 xcb_gcontext_t gc; /**< */
486 xcb_xfixes_region_t region; /**< */
487 int16_t x_origin; /**< */
488 int16_t y_origin; /**< */
489 } xcb_xfixes_set_gc_clip_region_request_t;
491 /** Opcode for xcb_xfixes_set_window_shape_region. */
492 #define XCB_XFIXES_SET_WINDOW_SHAPE_REGION 21
495 * @brief xcb_xfixes_set_window_shape_region_request_t
497 typedef struct xcb_xfixes_set_window_shape_region_request_t {
498 uint8_t major_opcode; /**< */
499 uint8_t minor_opcode; /**< */
500 uint16_t length; /**< */
501 xcb_window_t dest; /**< */
502 xcb_shape_kind_t dest_kind; /**< */
503 uint8_t pad0[3]; /**< */
504 int16_t x_offset; /**< */
505 int16_t y_offset; /**< */
506 xcb_xfixes_region_t region; /**< */
507 } xcb_xfixes_set_window_shape_region_request_t;
509 /** Opcode for xcb_xfixes_set_picture_clip_region. */
510 #define XCB_XFIXES_SET_PICTURE_CLIP_REGION 22
513 * @brief xcb_xfixes_set_picture_clip_region_request_t
515 typedef struct xcb_xfixes_set_picture_clip_region_request_t {
516 uint8_t major_opcode; /**< */
517 uint8_t minor_opcode; /**< */
518 uint16_t length; /**< */
519 xcb_render_picture_t picture; /**< */
520 xcb_xfixes_region_t region; /**< */
521 int16_t x_origin; /**< */
522 int16_t y_origin; /**< */
523 } xcb_xfixes_set_picture_clip_region_request_t;
525 /** Opcode for xcb_xfixes_set_cursor_name. */
526 #define XCB_XFIXES_SET_CURSOR_NAME 23
529 * @brief xcb_xfixes_set_cursor_name_request_t
531 typedef struct xcb_xfixes_set_cursor_name_request_t {
532 uint8_t major_opcode; /**< */
533 uint8_t minor_opcode; /**< */
534 uint16_t length; /**< */
535 xcb_cursor_t cursor; /**< */
536 uint16_t nbytes; /**< */
537 uint8_t pad0[2]; /**< */
538 } xcb_xfixes_set_cursor_name_request_t;
541 * @brief xcb_xfixes_get_cursor_name_cookie_t
543 typedef struct xcb_xfixes_get_cursor_name_cookie_t {
544 unsigned int sequence; /**< */
545 } xcb_xfixes_get_cursor_name_cookie_t;
547 /** Opcode for xcb_xfixes_get_cursor_name. */
548 #define XCB_XFIXES_GET_CURSOR_NAME 24
551 * @brief xcb_xfixes_get_cursor_name_request_t
553 typedef struct xcb_xfixes_get_cursor_name_request_t {
554 uint8_t major_opcode; /**< */
555 uint8_t minor_opcode; /**< */
556 uint16_t length; /**< */
557 xcb_cursor_t cursor; /**< */
558 } xcb_xfixes_get_cursor_name_request_t;
561 * @brief xcb_xfixes_get_cursor_name_reply_t
563 typedef struct xcb_xfixes_get_cursor_name_reply_t {
564 uint8_t response_type; /**< */
565 uint8_t pad0; /**< */
566 uint16_t sequence; /**< */
567 uint32_t length; /**< */
568 xcb_atom_t atom; /**< */
569 uint16_t nbytes; /**< */
570 uint8_t pad1[18]; /**< */
571 } xcb_xfixes_get_cursor_name_reply_t;
574 * @brief xcb_xfixes_get_cursor_image_and_name_cookie_t
576 typedef struct xcb_xfixes_get_cursor_image_and_name_cookie_t {
577 unsigned int sequence; /**< */
578 } xcb_xfixes_get_cursor_image_and_name_cookie_t;
580 /** Opcode for xcb_xfixes_get_cursor_image_and_name. */
581 #define XCB_XFIXES_GET_CURSOR_IMAGE_AND_NAME 25
584 * @brief xcb_xfixes_get_cursor_image_and_name_request_t
586 typedef struct xcb_xfixes_get_cursor_image_and_name_request_t {
587 uint8_t major_opcode; /**< */
588 uint8_t minor_opcode; /**< */
589 uint16_t length; /**< */
590 } xcb_xfixes_get_cursor_image_and_name_request_t;
593 * @brief xcb_xfixes_get_cursor_image_and_name_reply_t
595 typedef struct xcb_xfixes_get_cursor_image_and_name_reply_t {
596 uint8_t response_type; /**< */
597 uint8_t pad0; /**< */
598 uint16_t sequence; /**< */
599 uint32_t length; /**< */
600 int16_t x; /**< */
601 int16_t y; /**< */
602 uint16_t width; /**< */
603 uint16_t height; /**< */
604 uint16_t xhot; /**< */
605 uint16_t yhot; /**< */
606 uint32_t cursor_serial; /**< */
607 xcb_atom_t cursor_atom; /**< */
608 uint16_t nbytes; /**< */
609 uint8_t pad1[2]; /**< */
610 } xcb_xfixes_get_cursor_image_and_name_reply_t;
612 /** Opcode for xcb_xfixes_change_cursor. */
613 #define XCB_XFIXES_CHANGE_CURSOR 26
616 * @brief xcb_xfixes_change_cursor_request_t
618 typedef struct xcb_xfixes_change_cursor_request_t {
619 uint8_t major_opcode; /**< */
620 uint8_t minor_opcode; /**< */
621 uint16_t length; /**< */
622 xcb_cursor_t source; /**< */
623 xcb_cursor_t destination; /**< */
624 } xcb_xfixes_change_cursor_request_t;
626 /** Opcode for xcb_xfixes_change_cursor_by_name. */
627 #define XCB_XFIXES_CHANGE_CURSOR_BY_NAME 27
630 * @brief xcb_xfixes_change_cursor_by_name_request_t
632 typedef struct xcb_xfixes_change_cursor_by_name_request_t {
633 uint8_t major_opcode; /**< */
634 uint8_t minor_opcode; /**< */
635 uint16_t length; /**< */
636 xcb_cursor_t src; /**< */
637 uint16_t nbytes; /**< */
638 uint8_t pad0[2]; /**< */
639 } xcb_xfixes_change_cursor_by_name_request_t;
641 /** Opcode for xcb_xfixes_expand_region. */
642 #define XCB_XFIXES_EXPAND_REGION 28
645 * @brief xcb_xfixes_expand_region_request_t
647 typedef struct xcb_xfixes_expand_region_request_t {
648 uint8_t major_opcode; /**< */
649 uint8_t minor_opcode; /**< */
650 uint16_t length; /**< */
651 xcb_xfixes_region_t source; /**< */
652 xcb_xfixes_region_t destination; /**< */
653 uint16_t left; /**< */
654 uint16_t right; /**< */
655 uint16_t top; /**< */
656 uint16_t bottom; /**< */
657 } xcb_xfixes_expand_region_request_t;
659 /** Opcode for xcb_xfixes_hide_cursor. */
660 #define XCB_XFIXES_HIDE_CURSOR 29
663 * @brief xcb_xfixes_hide_cursor_request_t
665 typedef struct xcb_xfixes_hide_cursor_request_t {
666 uint8_t major_opcode; /**< */
667 uint8_t minor_opcode; /**< */
668 uint16_t length; /**< */
669 xcb_window_t window; /**< */
670 } xcb_xfixes_hide_cursor_request_t;
672 /** Opcode for xcb_xfixes_show_cursor. */
673 #define XCB_XFIXES_SHOW_CURSOR 30
676 * @brief xcb_xfixes_show_cursor_request_t
678 typedef struct xcb_xfixes_show_cursor_request_t {
679 uint8_t major_opcode; /**< */
680 uint8_t minor_opcode; /**< */
681 uint16_t length; /**< */
682 xcb_window_t window; /**< */
683 } xcb_xfixes_show_cursor_request_t;
685 typedef uint32_t xcb_xfixes_barrier_t;
688 * @brief xcb_xfixes_barrier_iterator_t
690 typedef struct xcb_xfixes_barrier_iterator_t {
691 xcb_xfixes_barrier_t *data; /**< */
692 int rem; /**< */
693 int index; /**< */
694 } xcb_xfixes_barrier_iterator_t;
696 typedef enum xcb_xfixes_barrier_directions_t {
697 XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_X = 1,
698 XCB_XFIXES_BARRIER_DIRECTIONS_POSITIVE_Y = 2,
699 XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_X = 4,
700 XCB_XFIXES_BARRIER_DIRECTIONS_NEGATIVE_Y = 8
701 } xcb_xfixes_barrier_directions_t;
703 /** Opcode for xcb_xfixes_create_pointer_barrier. */
704 #define XCB_XFIXES_CREATE_POINTER_BARRIER 31
707 * @brief xcb_xfixes_create_pointer_barrier_request_t
709 typedef struct xcb_xfixes_create_pointer_barrier_request_t {
710 uint8_t major_opcode; /**< */
711 uint8_t minor_opcode; /**< */
712 uint16_t length; /**< */
713 xcb_xfixes_barrier_t barrier; /**< */
714 xcb_window_t window; /**< */
715 uint16_t x1; /**< */
716 uint16_t y1; /**< */
717 uint16_t x2; /**< */
718 uint16_t y2; /**< */
719 uint32_t directions; /**< */
720 uint8_t pad0[2]; /**< */
721 uint16_t num_devices; /**< */
722 } xcb_xfixes_create_pointer_barrier_request_t;
724 /** Opcode for xcb_xfixes_delete_pointer_barrier. */
725 #define XCB_XFIXES_DELETE_POINTER_BARRIER 32
728 * @brief xcb_xfixes_delete_pointer_barrier_request_t
730 typedef struct xcb_xfixes_delete_pointer_barrier_request_t {
731 uint8_t major_opcode; /**< */
732 uint8_t minor_opcode; /**< */
733 uint16_t length; /**< */
734 xcb_xfixes_barrier_t barrier; /**< */
735 } xcb_xfixes_delete_pointer_barrier_request_t;
739 * @param c The connection
740 * @return A cookie
742 * Delivers a request to the X server.
745 xcb_xfixes_query_version_cookie_t
746 xcb_xfixes_query_version (xcb_connection_t *c /**< */,
747 uint32_t client_major_version /**< */,
748 uint32_t client_minor_version /**< */);
752 * @param c The connection
753 * @return A cookie
755 * Delivers a request to the X server.
757 * This form can be used only if the request will cause
758 * a reply to be generated. Any returned error will be
759 * placed in the event queue.
761 xcb_xfixes_query_version_cookie_t
762 xcb_xfixes_query_version_unchecked (xcb_connection_t *c /**< */,
763 uint32_t client_major_version /**< */,
764 uint32_t client_minor_version /**< */);
767 * Return the reply
768 * @param c The connection
769 * @param cookie The cookie
770 * @param e The xcb_generic_error_t supplied
772 * Returns the reply of the request asked by
774 * The parameter @p e supplied to this function must be NULL if
775 * xcb_xfixes_query_version_unchecked(). is used.
776 * Otherwise, it stores the error if any.
778 * The returned value must be freed by the caller using free().
780 xcb_xfixes_query_version_reply_t *
781 xcb_xfixes_query_version_reply (xcb_connection_t *c /**< */,
782 xcb_xfixes_query_version_cookie_t cookie /**< */,
783 xcb_generic_error_t **e /**< */);
787 * @param c The connection
788 * @return A cookie
790 * Delivers a request to the X server.
792 * This form can be used only if the request will not cause
793 * a reply to be generated. Any returned error will be
794 * saved for handling by xcb_request_check().
796 xcb_void_cookie_t
797 xcb_xfixes_change_save_set_checked (xcb_connection_t *c /**< */,
798 uint8_t mode /**< */,
799 uint8_t target /**< */,
800 uint8_t map /**< */,
801 xcb_window_t window /**< */);
805 * @param c The connection
806 * @return A cookie
808 * Delivers a request to the X server.
811 xcb_void_cookie_t
812 xcb_xfixes_change_save_set (xcb_connection_t *c /**< */,
813 uint8_t mode /**< */,
814 uint8_t target /**< */,
815 uint8_t map /**< */,
816 xcb_window_t window /**< */);
820 * @param c The connection
821 * @return A cookie
823 * Delivers a request to the X server.
825 * This form can be used only if the request will not cause
826 * a reply to be generated. Any returned error will be
827 * saved for handling by xcb_request_check().
829 xcb_void_cookie_t
830 xcb_xfixes_select_selection_input_checked (xcb_connection_t *c /**< */,
831 xcb_window_t window /**< */,
832 xcb_atom_t selection /**< */,
833 uint32_t event_mask /**< */);
837 * @param c The connection
838 * @return A cookie
840 * Delivers a request to the X server.
843 xcb_void_cookie_t
844 xcb_xfixes_select_selection_input (xcb_connection_t *c /**< */,
845 xcb_window_t window /**< */,
846 xcb_atom_t selection /**< */,
847 uint32_t event_mask /**< */);
851 * @param c The connection
852 * @return A cookie
854 * Delivers a request to the X server.
856 * This form can be used only if the request will not cause
857 * a reply to be generated. Any returned error will be
858 * saved for handling by xcb_request_check().
860 xcb_void_cookie_t
861 xcb_xfixes_select_cursor_input_checked (xcb_connection_t *c /**< */,
862 xcb_window_t window /**< */,
863 uint32_t event_mask /**< */);
867 * @param c The connection
868 * @return A cookie
870 * Delivers a request to the X server.
873 xcb_void_cookie_t
874 xcb_xfixes_select_cursor_input (xcb_connection_t *c /**< */,
875 xcb_window_t window /**< */,
876 uint32_t event_mask /**< */);
879 xcb_xfixes_get_cursor_image_sizeof (const void *_buffer /**< */);
883 * @param c The connection
884 * @return A cookie
886 * Delivers a request to the X server.
889 xcb_xfixes_get_cursor_image_cookie_t
890 xcb_xfixes_get_cursor_image (xcb_connection_t *c /**< */);
894 * @param c The connection
895 * @return A cookie
897 * Delivers a request to the X server.
899 * This form can be used only if the request will cause
900 * a reply to be generated. Any returned error will be
901 * placed in the event queue.
903 xcb_xfixes_get_cursor_image_cookie_t
904 xcb_xfixes_get_cursor_image_unchecked (xcb_connection_t *c /**< */);
906 uint32_t *
907 xcb_xfixes_get_cursor_image_cursor_image (const xcb_xfixes_get_cursor_image_reply_t *R /**< */);
910 xcb_xfixes_get_cursor_image_cursor_image_length (const xcb_xfixes_get_cursor_image_reply_t *R /**< */);
912 xcb_generic_iterator_t
913 xcb_xfixes_get_cursor_image_cursor_image_end (const xcb_xfixes_get_cursor_image_reply_t *R /**< */);
916 * Return the reply
917 * @param c The connection
918 * @param cookie The cookie
919 * @param e The xcb_generic_error_t supplied
921 * Returns the reply of the request asked by
923 * The parameter @p e supplied to this function must be NULL if
924 * xcb_xfixes_get_cursor_image_unchecked(). is used.
925 * Otherwise, it stores the error if any.
927 * The returned value must be freed by the caller using free().
929 xcb_xfixes_get_cursor_image_reply_t *
930 xcb_xfixes_get_cursor_image_reply (xcb_connection_t *c /**< */,
931 xcb_xfixes_get_cursor_image_cookie_t cookie /**< */,
932 xcb_generic_error_t **e /**< */);
935 * Get the next element of the iterator
936 * @param i Pointer to a xcb_xfixes_region_iterator_t
938 * Get the next element in the iterator. The member rem is
939 * decreased by one. The member data points to the next
940 * element. The member index is increased by sizeof(xcb_xfixes_region_t)
942 void
943 xcb_xfixes_region_next (xcb_xfixes_region_iterator_t *i /**< */);
946 * Return the iterator pointing to the last element
947 * @param i An xcb_xfixes_region_iterator_t
948 * @return The iterator pointing to the last element
950 * Set the current element in the iterator to the last element.
951 * The member rem is set to 0. The member data points to the
952 * last element.
954 xcb_generic_iterator_t
955 xcb_xfixes_region_end (xcb_xfixes_region_iterator_t i /**< */);
958 xcb_xfixes_create_region_sizeof (const void *_buffer /**< */,
959 uint32_t rectangles_len /**< */);
963 * @param c The connection
964 * @return A cookie
966 * Delivers a request to the X server.
968 * This form can be used only if the request will not cause
969 * a reply to be generated. Any returned error will be
970 * saved for handling by xcb_request_check().
972 xcb_void_cookie_t
973 xcb_xfixes_create_region_checked (xcb_connection_t *c /**< */,
974 xcb_xfixes_region_t region /**< */,
975 uint32_t rectangles_len /**< */,
976 const xcb_rectangle_t *rectangles /**< */);
980 * @param c The connection
981 * @return A cookie
983 * Delivers a request to the X server.
986 xcb_void_cookie_t
987 xcb_xfixes_create_region (xcb_connection_t *c /**< */,
988 xcb_xfixes_region_t region /**< */,
989 uint32_t rectangles_len /**< */,
990 const xcb_rectangle_t *rectangles /**< */);
994 * @param c The connection
995 * @return A cookie
997 * Delivers a request to the X server.
999 * This form can be used only if the request will not cause
1000 * a reply to be generated. Any returned error will be
1001 * saved for handling by xcb_request_check().
1003 xcb_void_cookie_t
1004 xcb_xfixes_create_region_from_bitmap_checked (xcb_connection_t *c /**< */,
1005 xcb_xfixes_region_t region /**< */,
1006 xcb_pixmap_t bitmap /**< */);
1010 * @param c The connection
1011 * @return A cookie
1013 * Delivers a request to the X server.
1016 xcb_void_cookie_t
1017 xcb_xfixes_create_region_from_bitmap (xcb_connection_t *c /**< */,
1018 xcb_xfixes_region_t region /**< */,
1019 xcb_pixmap_t bitmap /**< */);
1023 * @param c The connection
1024 * @return A cookie
1026 * Delivers a request to the X server.
1028 * This form can be used only if the request will not cause
1029 * a reply to be generated. Any returned error will be
1030 * saved for handling by xcb_request_check().
1032 xcb_void_cookie_t
1033 xcb_xfixes_create_region_from_window_checked (xcb_connection_t *c /**< */,
1034 xcb_xfixes_region_t region /**< */,
1035 xcb_window_t window /**< */,
1036 xcb_shape_kind_t kind /**< */);
1040 * @param c The connection
1041 * @return A cookie
1043 * Delivers a request to the X server.
1046 xcb_void_cookie_t
1047 xcb_xfixes_create_region_from_window (xcb_connection_t *c /**< */,
1048 xcb_xfixes_region_t region /**< */,
1049 xcb_window_t window /**< */,
1050 xcb_shape_kind_t kind /**< */);
1054 * @param c The connection
1055 * @return A cookie
1057 * Delivers a request to the X server.
1059 * This form can be used only if the request will not cause
1060 * a reply to be generated. Any returned error will be
1061 * saved for handling by xcb_request_check().
1063 xcb_void_cookie_t
1064 xcb_xfixes_create_region_from_gc_checked (xcb_connection_t *c /**< */,
1065 xcb_xfixes_region_t region /**< */,
1066 xcb_gcontext_t gc /**< */);
1070 * @param c The connection
1071 * @return A cookie
1073 * Delivers a request to the X server.
1076 xcb_void_cookie_t
1077 xcb_xfixes_create_region_from_gc (xcb_connection_t *c /**< */,
1078 xcb_xfixes_region_t region /**< */,
1079 xcb_gcontext_t gc /**< */);
1083 * @param c The connection
1084 * @return A cookie
1086 * Delivers a request to the X server.
1088 * This form can be used only if the request will not cause
1089 * a reply to be generated. Any returned error will be
1090 * saved for handling by xcb_request_check().
1092 xcb_void_cookie_t
1093 xcb_xfixes_create_region_from_picture_checked (xcb_connection_t *c /**< */,
1094 xcb_xfixes_region_t region /**< */,
1095 xcb_render_picture_t picture /**< */);
1099 * @param c The connection
1100 * @return A cookie
1102 * Delivers a request to the X server.
1105 xcb_void_cookie_t
1106 xcb_xfixes_create_region_from_picture (xcb_connection_t *c /**< */,
1107 xcb_xfixes_region_t region /**< */,
1108 xcb_render_picture_t picture /**< */);
1112 * @param c The connection
1113 * @return A cookie
1115 * Delivers a request to the X server.
1117 * This form can be used only if the request will not cause
1118 * a reply to be generated. Any returned error will be
1119 * saved for handling by xcb_request_check().
1121 xcb_void_cookie_t
1122 xcb_xfixes_destroy_region_checked (xcb_connection_t *c /**< */,
1123 xcb_xfixes_region_t region /**< */);
1127 * @param c The connection
1128 * @return A cookie
1130 * Delivers a request to the X server.
1133 xcb_void_cookie_t
1134 xcb_xfixes_destroy_region (xcb_connection_t *c /**< */,
1135 xcb_xfixes_region_t region /**< */);
1138 xcb_xfixes_set_region_sizeof (const void *_buffer /**< */,
1139 uint32_t rectangles_len /**< */);
1143 * @param c The connection
1144 * @return A cookie
1146 * Delivers a request to the X server.
1148 * This form can be used only if the request will not cause
1149 * a reply to be generated. Any returned error will be
1150 * saved for handling by xcb_request_check().
1152 xcb_void_cookie_t
1153 xcb_xfixes_set_region_checked (xcb_connection_t *c /**< */,
1154 xcb_xfixes_region_t region /**< */,
1155 uint32_t rectangles_len /**< */,
1156 const xcb_rectangle_t *rectangles /**< */);
1160 * @param c The connection
1161 * @return A cookie
1163 * Delivers a request to the X server.
1166 xcb_void_cookie_t
1167 xcb_xfixes_set_region (xcb_connection_t *c /**< */,
1168 xcb_xfixes_region_t region /**< */,
1169 uint32_t rectangles_len /**< */,
1170 const xcb_rectangle_t *rectangles /**< */);
1174 * @param c The connection
1175 * @return A cookie
1177 * Delivers a request to the X server.
1179 * This form can be used only if the request will not cause
1180 * a reply to be generated. Any returned error will be
1181 * saved for handling by xcb_request_check().
1183 xcb_void_cookie_t
1184 xcb_xfixes_copy_region_checked (xcb_connection_t *c /**< */,
1185 xcb_xfixes_region_t source /**< */,
1186 xcb_xfixes_region_t destination /**< */);
1190 * @param c The connection
1191 * @return A cookie
1193 * Delivers a request to the X server.
1196 xcb_void_cookie_t
1197 xcb_xfixes_copy_region (xcb_connection_t *c /**< */,
1198 xcb_xfixes_region_t source /**< */,
1199 xcb_xfixes_region_t destination /**< */);
1203 * @param c The connection
1204 * @return A cookie
1206 * Delivers a request to the X server.
1208 * This form can be used only if the request will not cause
1209 * a reply to be generated. Any returned error will be
1210 * saved for handling by xcb_request_check().
1212 xcb_void_cookie_t
1213 xcb_xfixes_union_region_checked (xcb_connection_t *c /**< */,
1214 xcb_xfixes_region_t source1 /**< */,
1215 xcb_xfixes_region_t source2 /**< */,
1216 xcb_xfixes_region_t destination /**< */);
1220 * @param c The connection
1221 * @return A cookie
1223 * Delivers a request to the X server.
1226 xcb_void_cookie_t
1227 xcb_xfixes_union_region (xcb_connection_t *c /**< */,
1228 xcb_xfixes_region_t source1 /**< */,
1229 xcb_xfixes_region_t source2 /**< */,
1230 xcb_xfixes_region_t destination /**< */);
1234 * @param c The connection
1235 * @return A cookie
1237 * Delivers a request to the X server.
1239 * This form can be used only if the request will not cause
1240 * a reply to be generated. Any returned error will be
1241 * saved for handling by xcb_request_check().
1243 xcb_void_cookie_t
1244 xcb_xfixes_intersect_region_checked (xcb_connection_t *c /**< */,
1245 xcb_xfixes_region_t source1 /**< */,
1246 xcb_xfixes_region_t source2 /**< */,
1247 xcb_xfixes_region_t destination /**< */);
1251 * @param c The connection
1252 * @return A cookie
1254 * Delivers a request to the X server.
1257 xcb_void_cookie_t
1258 xcb_xfixes_intersect_region (xcb_connection_t *c /**< */,
1259 xcb_xfixes_region_t source1 /**< */,
1260 xcb_xfixes_region_t source2 /**< */,
1261 xcb_xfixes_region_t destination /**< */);
1265 * @param c The connection
1266 * @return A cookie
1268 * Delivers a request to the X server.
1270 * This form can be used only if the request will not cause
1271 * a reply to be generated. Any returned error will be
1272 * saved for handling by xcb_request_check().
1274 xcb_void_cookie_t
1275 xcb_xfixes_subtract_region_checked (xcb_connection_t *c /**< */,
1276 xcb_xfixes_region_t source1 /**< */,
1277 xcb_xfixes_region_t source2 /**< */,
1278 xcb_xfixes_region_t destination /**< */);
1282 * @param c The connection
1283 * @return A cookie
1285 * Delivers a request to the X server.
1288 xcb_void_cookie_t
1289 xcb_xfixes_subtract_region (xcb_connection_t *c /**< */,
1290 xcb_xfixes_region_t source1 /**< */,
1291 xcb_xfixes_region_t source2 /**< */,
1292 xcb_xfixes_region_t destination /**< */);
1296 * @param c The connection
1297 * @return A cookie
1299 * Delivers a request to the X server.
1301 * This form can be used only if the request will not cause
1302 * a reply to be generated. Any returned error will be
1303 * saved for handling by xcb_request_check().
1305 xcb_void_cookie_t
1306 xcb_xfixes_invert_region_checked (xcb_connection_t *c /**< */,
1307 xcb_xfixes_region_t source /**< */,
1308 xcb_rectangle_t bounds /**< */,
1309 xcb_xfixes_region_t destination /**< */);
1313 * @param c The connection
1314 * @return A cookie
1316 * Delivers a request to the X server.
1319 xcb_void_cookie_t
1320 xcb_xfixes_invert_region (xcb_connection_t *c /**< */,
1321 xcb_xfixes_region_t source /**< */,
1322 xcb_rectangle_t bounds /**< */,
1323 xcb_xfixes_region_t destination /**< */);
1327 * @param c The connection
1328 * @return A cookie
1330 * Delivers a request to the X server.
1332 * This form can be used only if the request will not cause
1333 * a reply to be generated. Any returned error will be
1334 * saved for handling by xcb_request_check().
1336 xcb_void_cookie_t
1337 xcb_xfixes_translate_region_checked (xcb_connection_t *c /**< */,
1338 xcb_xfixes_region_t region /**< */,
1339 int16_t dx /**< */,
1340 int16_t dy /**< */);
1344 * @param c The connection
1345 * @return A cookie
1347 * Delivers a request to the X server.
1350 xcb_void_cookie_t
1351 xcb_xfixes_translate_region (xcb_connection_t *c /**< */,
1352 xcb_xfixes_region_t region /**< */,
1353 int16_t dx /**< */,
1354 int16_t dy /**< */);
1358 * @param c The connection
1359 * @return A cookie
1361 * Delivers a request to the X server.
1363 * This form can be used only if the request will not cause
1364 * a reply to be generated. Any returned error will be
1365 * saved for handling by xcb_request_check().
1367 xcb_void_cookie_t
1368 xcb_xfixes_region_extents_checked (xcb_connection_t *c /**< */,
1369 xcb_xfixes_region_t source /**< */,
1370 xcb_xfixes_region_t destination /**< */);
1374 * @param c The connection
1375 * @return A cookie
1377 * Delivers a request to the X server.
1380 xcb_void_cookie_t
1381 xcb_xfixes_region_extents (xcb_connection_t *c /**< */,
1382 xcb_xfixes_region_t source /**< */,
1383 xcb_xfixes_region_t destination /**< */);
1386 xcb_xfixes_fetch_region_sizeof (const void *_buffer /**< */);
1390 * @param c The connection
1391 * @return A cookie
1393 * Delivers a request to the X server.
1396 xcb_xfixes_fetch_region_cookie_t
1397 xcb_xfixes_fetch_region (xcb_connection_t *c /**< */,
1398 xcb_xfixes_region_t region /**< */);
1402 * @param c The connection
1403 * @return A cookie
1405 * Delivers a request to the X server.
1407 * This form can be used only if the request will cause
1408 * a reply to be generated. Any returned error will be
1409 * placed in the event queue.
1411 xcb_xfixes_fetch_region_cookie_t
1412 xcb_xfixes_fetch_region_unchecked (xcb_connection_t *c /**< */,
1413 xcb_xfixes_region_t region /**< */);
1415 xcb_rectangle_t *
1416 xcb_xfixes_fetch_region_rectangles (const xcb_xfixes_fetch_region_reply_t *R /**< */);
1419 xcb_xfixes_fetch_region_rectangles_length (const xcb_xfixes_fetch_region_reply_t *R /**< */);
1421 xcb_rectangle_iterator_t
1422 xcb_xfixes_fetch_region_rectangles_iterator (const xcb_xfixes_fetch_region_reply_t *R /**< */);
1425 * Return the reply
1426 * @param c The connection
1427 * @param cookie The cookie
1428 * @param e The xcb_generic_error_t supplied
1430 * Returns the reply of the request asked by
1432 * The parameter @p e supplied to this function must be NULL if
1433 * xcb_xfixes_fetch_region_unchecked(). is used.
1434 * Otherwise, it stores the error if any.
1436 * The returned value must be freed by the caller using free().
1438 xcb_xfixes_fetch_region_reply_t *
1439 xcb_xfixes_fetch_region_reply (xcb_connection_t *c /**< */,
1440 xcb_xfixes_fetch_region_cookie_t cookie /**< */,
1441 xcb_generic_error_t **e /**< */);
1445 * @param c The connection
1446 * @return A cookie
1448 * Delivers a request to the X server.
1450 * This form can be used only if the request will not cause
1451 * a reply to be generated. Any returned error will be
1452 * saved for handling by xcb_request_check().
1454 xcb_void_cookie_t
1455 xcb_xfixes_set_gc_clip_region_checked (xcb_connection_t *c /**< */,
1456 xcb_gcontext_t gc /**< */,
1457 xcb_xfixes_region_t region /**< */,
1458 int16_t x_origin /**< */,
1459 int16_t y_origin /**< */);
1463 * @param c The connection
1464 * @return A cookie
1466 * Delivers a request to the X server.
1469 xcb_void_cookie_t
1470 xcb_xfixes_set_gc_clip_region (xcb_connection_t *c /**< */,
1471 xcb_gcontext_t gc /**< */,
1472 xcb_xfixes_region_t region /**< */,
1473 int16_t x_origin /**< */,
1474 int16_t y_origin /**< */);
1478 * @param c The connection
1479 * @return A cookie
1481 * Delivers a request to the X server.
1483 * This form can be used only if the request will not cause
1484 * a reply to be generated. Any returned error will be
1485 * saved for handling by xcb_request_check().
1487 xcb_void_cookie_t
1488 xcb_xfixes_set_window_shape_region_checked (xcb_connection_t *c /**< */,
1489 xcb_window_t dest /**< */,
1490 xcb_shape_kind_t dest_kind /**< */,
1491 int16_t x_offset /**< */,
1492 int16_t y_offset /**< */,
1493 xcb_xfixes_region_t region /**< */);
1497 * @param c The connection
1498 * @return A cookie
1500 * Delivers a request to the X server.
1503 xcb_void_cookie_t
1504 xcb_xfixes_set_window_shape_region (xcb_connection_t *c /**< */,
1505 xcb_window_t dest /**< */,
1506 xcb_shape_kind_t dest_kind /**< */,
1507 int16_t x_offset /**< */,
1508 int16_t y_offset /**< */,
1509 xcb_xfixes_region_t region /**< */);
1513 * @param c The connection
1514 * @return A cookie
1516 * Delivers a request to the X server.
1518 * This form can be used only if the request will not cause
1519 * a reply to be generated. Any returned error will be
1520 * saved for handling by xcb_request_check().
1522 xcb_void_cookie_t
1523 xcb_xfixes_set_picture_clip_region_checked (xcb_connection_t *c /**< */,
1524 xcb_render_picture_t picture /**< */,
1525 xcb_xfixes_region_t region /**< */,
1526 int16_t x_origin /**< */,
1527 int16_t y_origin /**< */);
1531 * @param c The connection
1532 * @return A cookie
1534 * Delivers a request to the X server.
1537 xcb_void_cookie_t
1538 xcb_xfixes_set_picture_clip_region (xcb_connection_t *c /**< */,
1539 xcb_render_picture_t picture /**< */,
1540 xcb_xfixes_region_t region /**< */,
1541 int16_t x_origin /**< */,
1542 int16_t y_origin /**< */);
1545 xcb_xfixes_set_cursor_name_sizeof (const void *_buffer /**< */);
1549 * @param c The connection
1550 * @return A cookie
1552 * Delivers a request to the X server.
1554 * This form can be used only if the request will not cause
1555 * a reply to be generated. Any returned error will be
1556 * saved for handling by xcb_request_check().
1558 xcb_void_cookie_t
1559 xcb_xfixes_set_cursor_name_checked (xcb_connection_t *c /**< */,
1560 xcb_cursor_t cursor /**< */,
1561 uint16_t nbytes /**< */,
1562 const char *name /**< */);
1566 * @param c The connection
1567 * @return A cookie
1569 * Delivers a request to the X server.
1572 xcb_void_cookie_t
1573 xcb_xfixes_set_cursor_name (xcb_connection_t *c /**< */,
1574 xcb_cursor_t cursor /**< */,
1575 uint16_t nbytes /**< */,
1576 const char *name /**< */);
1579 xcb_xfixes_get_cursor_name_sizeof (const void *_buffer /**< */);
1583 * @param c The connection
1584 * @return A cookie
1586 * Delivers a request to the X server.
1589 xcb_xfixes_get_cursor_name_cookie_t
1590 xcb_xfixes_get_cursor_name (xcb_connection_t *c /**< */,
1591 xcb_cursor_t cursor /**< */);
1595 * @param c The connection
1596 * @return A cookie
1598 * Delivers a request to the X server.
1600 * This form can be used only if the request will cause
1601 * a reply to be generated. Any returned error will be
1602 * placed in the event queue.
1604 xcb_xfixes_get_cursor_name_cookie_t
1605 xcb_xfixes_get_cursor_name_unchecked (xcb_connection_t *c /**< */,
1606 xcb_cursor_t cursor /**< */);
1608 char *
1609 xcb_xfixes_get_cursor_name_name (const xcb_xfixes_get_cursor_name_reply_t *R /**< */);
1612 xcb_xfixes_get_cursor_name_name_length (const xcb_xfixes_get_cursor_name_reply_t *R /**< */);
1614 xcb_generic_iterator_t
1615 xcb_xfixes_get_cursor_name_name_end (const xcb_xfixes_get_cursor_name_reply_t *R /**< */);
1618 * Return the reply
1619 * @param c The connection
1620 * @param cookie The cookie
1621 * @param e The xcb_generic_error_t supplied
1623 * Returns the reply of the request asked by
1625 * The parameter @p e supplied to this function must be NULL if
1626 * xcb_xfixes_get_cursor_name_unchecked(). is used.
1627 * Otherwise, it stores the error if any.
1629 * The returned value must be freed by the caller using free().
1631 xcb_xfixes_get_cursor_name_reply_t *
1632 xcb_xfixes_get_cursor_name_reply (xcb_connection_t *c /**< */,
1633 xcb_xfixes_get_cursor_name_cookie_t cookie /**< */,
1634 xcb_generic_error_t **e /**< */);
1637 xcb_xfixes_get_cursor_image_and_name_sizeof (const void *_buffer /**< */);
1641 * @param c The connection
1642 * @return A cookie
1644 * Delivers a request to the X server.
1647 xcb_xfixes_get_cursor_image_and_name_cookie_t
1648 xcb_xfixes_get_cursor_image_and_name (xcb_connection_t *c /**< */);
1652 * @param c The connection
1653 * @return A cookie
1655 * Delivers a request to the X server.
1657 * This form can be used only if the request will cause
1658 * a reply to be generated. Any returned error will be
1659 * placed in the event queue.
1661 xcb_xfixes_get_cursor_image_and_name_cookie_t
1662 xcb_xfixes_get_cursor_image_and_name_unchecked (xcb_connection_t *c /**< */);
1664 char *
1665 xcb_xfixes_get_cursor_image_and_name_name (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */);
1668 xcb_xfixes_get_cursor_image_and_name_name_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */);
1670 xcb_generic_iterator_t
1671 xcb_xfixes_get_cursor_image_and_name_name_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */);
1673 uint32_t *
1674 xcb_xfixes_get_cursor_image_and_name_cursor_image (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */);
1677 xcb_xfixes_get_cursor_image_and_name_cursor_image_length (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */);
1679 xcb_generic_iterator_t
1680 xcb_xfixes_get_cursor_image_and_name_cursor_image_end (const xcb_xfixes_get_cursor_image_and_name_reply_t *R /**< */);
1683 * Return the reply
1684 * @param c The connection
1685 * @param cookie The cookie
1686 * @param e The xcb_generic_error_t supplied
1688 * Returns the reply of the request asked by
1690 * The parameter @p e supplied to this function must be NULL if
1691 * xcb_xfixes_get_cursor_image_and_name_unchecked(). is used.
1692 * Otherwise, it stores the error if any.
1694 * The returned value must be freed by the caller using free().
1696 xcb_xfixes_get_cursor_image_and_name_reply_t *
1697 xcb_xfixes_get_cursor_image_and_name_reply (xcb_connection_t *c /**< */,
1698 xcb_xfixes_get_cursor_image_and_name_cookie_t cookie /**< */,
1699 xcb_generic_error_t **e /**< */);
1703 * @param c The connection
1704 * @return A cookie
1706 * Delivers a request to the X server.
1708 * This form can be used only if the request will not cause
1709 * a reply to be generated. Any returned error will be
1710 * saved for handling by xcb_request_check().
1712 xcb_void_cookie_t
1713 xcb_xfixes_change_cursor_checked (xcb_connection_t *c /**< */,
1714 xcb_cursor_t source /**< */,
1715 xcb_cursor_t destination /**< */);
1719 * @param c The connection
1720 * @return A cookie
1722 * Delivers a request to the X server.
1725 xcb_void_cookie_t
1726 xcb_xfixes_change_cursor (xcb_connection_t *c /**< */,
1727 xcb_cursor_t source /**< */,
1728 xcb_cursor_t destination /**< */);
1731 xcb_xfixes_change_cursor_by_name_sizeof (const void *_buffer /**< */);
1735 * @param c The connection
1736 * @return A cookie
1738 * Delivers a request to the X server.
1740 * This form can be used only if the request will not cause
1741 * a reply to be generated. Any returned error will be
1742 * saved for handling by xcb_request_check().
1744 xcb_void_cookie_t
1745 xcb_xfixes_change_cursor_by_name_checked (xcb_connection_t *c /**< */,
1746 xcb_cursor_t src /**< */,
1747 uint16_t nbytes /**< */,
1748 const char *name /**< */);
1752 * @param c The connection
1753 * @return A cookie
1755 * Delivers a request to the X server.
1758 xcb_void_cookie_t
1759 xcb_xfixes_change_cursor_by_name (xcb_connection_t *c /**< */,
1760 xcb_cursor_t src /**< */,
1761 uint16_t nbytes /**< */,
1762 const char *name /**< */);
1766 * @param c The connection
1767 * @return A cookie
1769 * Delivers a request to the X server.
1771 * This form can be used only if the request will not cause
1772 * a reply to be generated. Any returned error will be
1773 * saved for handling by xcb_request_check().
1775 xcb_void_cookie_t
1776 xcb_xfixes_expand_region_checked (xcb_connection_t *c /**< */,
1777 xcb_xfixes_region_t source /**< */,
1778 xcb_xfixes_region_t destination /**< */,
1779 uint16_t left /**< */,
1780 uint16_t right /**< */,
1781 uint16_t top /**< */,
1782 uint16_t bottom /**< */);
1786 * @param c The connection
1787 * @return A cookie
1789 * Delivers a request to the X server.
1792 xcb_void_cookie_t
1793 xcb_xfixes_expand_region (xcb_connection_t *c /**< */,
1794 xcb_xfixes_region_t source /**< */,
1795 xcb_xfixes_region_t destination /**< */,
1796 uint16_t left /**< */,
1797 uint16_t right /**< */,
1798 uint16_t top /**< */,
1799 uint16_t bottom /**< */);
1803 * @param c The connection
1804 * @return A cookie
1806 * Delivers a request to the X server.
1808 * This form can be used only if the request will not cause
1809 * a reply to be generated. Any returned error will be
1810 * saved for handling by xcb_request_check().
1812 xcb_void_cookie_t
1813 xcb_xfixes_hide_cursor_checked (xcb_connection_t *c /**< */,
1814 xcb_window_t window /**< */);
1818 * @param c The connection
1819 * @return A cookie
1821 * Delivers a request to the X server.
1824 xcb_void_cookie_t
1825 xcb_xfixes_hide_cursor (xcb_connection_t *c /**< */,
1826 xcb_window_t window /**< */);
1830 * @param c The connection
1831 * @return A cookie
1833 * Delivers a request to the X server.
1835 * This form can be used only if the request will not cause
1836 * a reply to be generated. Any returned error will be
1837 * saved for handling by xcb_request_check().
1839 xcb_void_cookie_t
1840 xcb_xfixes_show_cursor_checked (xcb_connection_t *c /**< */,
1841 xcb_window_t window /**< */);
1845 * @param c The connection
1846 * @return A cookie
1848 * Delivers a request to the X server.
1851 xcb_void_cookie_t
1852 xcb_xfixes_show_cursor (xcb_connection_t *c /**< */,
1853 xcb_window_t window /**< */);
1856 * Get the next element of the iterator
1857 * @param i Pointer to a xcb_xfixes_barrier_iterator_t
1859 * Get the next element in the iterator. The member rem is
1860 * decreased by one. The member data points to the next
1861 * element. The member index is increased by sizeof(xcb_xfixes_barrier_t)
1863 void
1864 xcb_xfixes_barrier_next (xcb_xfixes_barrier_iterator_t *i /**< */);
1867 * Return the iterator pointing to the last element
1868 * @param i An xcb_xfixes_barrier_iterator_t
1869 * @return The iterator pointing to the last element
1871 * Set the current element in the iterator to the last element.
1872 * The member rem is set to 0. The member data points to the
1873 * last element.
1875 xcb_generic_iterator_t
1876 xcb_xfixes_barrier_end (xcb_xfixes_barrier_iterator_t i /**< */);
1879 xcb_xfixes_create_pointer_barrier_sizeof (const void *_buffer /**< */);
1883 * @param c The connection
1884 * @return A cookie
1886 * Delivers a request to the X server.
1888 * This form can be used only if the request will not cause
1889 * a reply to be generated. Any returned error will be
1890 * saved for handling by xcb_request_check().
1892 xcb_void_cookie_t
1893 xcb_xfixes_create_pointer_barrier_checked (xcb_connection_t *c /**< */,
1894 xcb_xfixes_barrier_t barrier /**< */,
1895 xcb_window_t window /**< */,
1896 uint16_t x1 /**< */,
1897 uint16_t y1 /**< */,
1898 uint16_t x2 /**< */,
1899 uint16_t y2 /**< */,
1900 uint32_t directions /**< */,
1901 uint16_t num_devices /**< */,
1902 const uint16_t *devices /**< */);
1906 * @param c The connection
1907 * @return A cookie
1909 * Delivers a request to the X server.
1912 xcb_void_cookie_t
1913 xcb_xfixes_create_pointer_barrier (xcb_connection_t *c /**< */,
1914 xcb_xfixes_barrier_t barrier /**< */,
1915 xcb_window_t window /**< */,
1916 uint16_t x1 /**< */,
1917 uint16_t y1 /**< */,
1918 uint16_t x2 /**< */,
1919 uint16_t y2 /**< */,
1920 uint32_t directions /**< */,
1921 uint16_t num_devices /**< */,
1922 const uint16_t *devices /**< */);
1926 * @param c The connection
1927 * @return A cookie
1929 * Delivers a request to the X server.
1931 * This form can be used only if the request will not cause
1932 * a reply to be generated. Any returned error will be
1933 * saved for handling by xcb_request_check().
1935 xcb_void_cookie_t
1936 xcb_xfixes_delete_pointer_barrier_checked (xcb_connection_t *c /**< */,
1937 xcb_xfixes_barrier_t barrier /**< */);
1941 * @param c The connection
1942 * @return A cookie
1944 * Delivers a request to the X server.
1947 xcb_void_cookie_t
1948 xcb_xfixes_delete_pointer_barrier (xcb_connection_t *c /**< */,
1949 xcb_xfixes_barrier_t barrier /**< */);
1952 #ifdef __cplusplus
1954 #endif
1956 #endif
1959 * @}