XCB  1.11
shape.h
1 /*
2  * This file generated automatically from shape.xml by c_client.py.
3  * Edit at your peril.
4  */
5 
12 #ifndef __SHAPE_H
13 #define __SHAPE_H
14 
15 #include "xcb.h"
16 #include "xproto.h"
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 #define XCB_SHAPE_MAJOR_VERSION 1
23 #define XCB_SHAPE_MINOR_VERSION 1
24 
25 extern xcb_extension_t xcb_shape_id;
26 
27 typedef uint8_t xcb_shape_op_t;
28 
32 typedef struct xcb_shape_op_iterator_t {
33  xcb_shape_op_t *data;
34  int rem;
35  int index;
37 
38 typedef uint8_t xcb_shape_kind_t;
39 
43 typedef struct xcb_shape_kind_iterator_t {
44  xcb_shape_kind_t *data;
45  int rem;
46  int index;
48 
49 typedef enum xcb_shape_so_t {
50  XCB_SHAPE_SO_SET = 0,
51  XCB_SHAPE_SO_UNION = 1,
52  XCB_SHAPE_SO_INTERSECT = 2,
53  XCB_SHAPE_SO_SUBTRACT = 3,
54  XCB_SHAPE_SO_INVERT = 4
55 } xcb_shape_so_t;
56 
57 typedef enum xcb_shape_sk_t {
58  XCB_SHAPE_SK_BOUNDING = 0,
59  XCB_SHAPE_SK_CLIP = 1,
60  XCB_SHAPE_SK_INPUT = 2
61 } xcb_shape_sk_t;
62 
64 #define XCB_SHAPE_NOTIFY 0
65 
69 typedef struct xcb_shape_notify_event_t {
70  uint8_t response_type;
71  xcb_shape_kind_t shape_kind;
72  uint16_t sequence;
73  xcb_window_t affected_window;
74  int16_t extents_x;
75  int16_t extents_y;
76  uint16_t extents_width;
77  uint16_t extents_height;
78  xcb_timestamp_t server_time;
79  uint8_t shaped;
80  uint8_t pad0[11];
82 
87  unsigned int sequence;
89 
91 #define XCB_SHAPE_QUERY_VERSION 0
92 
97  uint8_t major_opcode;
98  uint8_t minor_opcode;
99  uint16_t length;
101 
106  uint8_t response_type;
107  uint8_t pad0;
108  uint16_t sequence;
109  uint32_t length;
110  uint16_t major_version;
111  uint16_t minor_version;
113 
115 #define XCB_SHAPE_RECTANGLES 1
116 
121  uint8_t major_opcode;
122  uint8_t minor_opcode;
123  uint16_t length;
124  xcb_shape_op_t operation;
125  xcb_shape_kind_t destination_kind;
126  uint8_t ordering;
127  uint8_t pad0;
128  xcb_window_t destination_window;
129  int16_t x_offset;
130  int16_t y_offset;
132 
134 #define XCB_SHAPE_MASK 2
135 
139 typedef struct xcb_shape_mask_request_t {
140  uint8_t major_opcode;
141  uint8_t minor_opcode;
142  uint16_t length;
143  xcb_shape_op_t operation;
144  xcb_shape_kind_t destination_kind;
145  uint8_t pad0[2];
146  xcb_window_t destination_window;
147  int16_t x_offset;
148  int16_t y_offset;
149  xcb_pixmap_t source_bitmap;
151 
153 #define XCB_SHAPE_COMBINE 3
154 
159  uint8_t major_opcode;
160  uint8_t minor_opcode;
161  uint16_t length;
162  xcb_shape_op_t operation;
163  xcb_shape_kind_t destination_kind;
164  xcb_shape_kind_t source_kind;
165  uint8_t pad0;
166  xcb_window_t destination_window;
167  int16_t x_offset;
168  int16_t y_offset;
169  xcb_window_t source_window;
171 
173 #define XCB_SHAPE_OFFSET 4
174 
179  uint8_t major_opcode;
180  uint8_t minor_opcode;
181  uint16_t length;
182  xcb_shape_kind_t destination_kind;
183  uint8_t pad0[3];
184  xcb_window_t destination_window;
185  int16_t x_offset;
186  int16_t y_offset;
188 
193  unsigned int sequence;
195 
197 #define XCB_SHAPE_QUERY_EXTENTS 5
198 
203  uint8_t major_opcode;
204  uint8_t minor_opcode;
205  uint16_t length;
206  xcb_window_t destination_window;
208 
213  uint8_t response_type;
214  uint8_t pad0;
215  uint16_t sequence;
216  uint32_t length;
217  uint8_t bounding_shaped;
218  uint8_t clip_shaped;
219  uint8_t pad1[2];
220  int16_t bounding_shape_extents_x;
221  int16_t bounding_shape_extents_y;
222  uint16_t bounding_shape_extents_width;
223  uint16_t bounding_shape_extents_height;
224  int16_t clip_shape_extents_x;
225  int16_t clip_shape_extents_y;
226  uint16_t clip_shape_extents_width;
227  uint16_t clip_shape_extents_height;
229 
231 #define XCB_SHAPE_SELECT_INPUT 6
232 
237  uint8_t major_opcode;
238  uint8_t minor_opcode;
239  uint16_t length;
240  xcb_window_t destination_window;
241  uint8_t enable;
242  uint8_t pad0[3];
244 
249  unsigned int sequence;
251 
253 #define XCB_SHAPE_INPUT_SELECTED 7
254 
259  uint8_t major_opcode;
260  uint8_t minor_opcode;
261  uint16_t length;
262  xcb_window_t destination_window;
264 
269  uint8_t response_type;
270  uint8_t enabled;
271  uint16_t sequence;
272  uint32_t length;
274 
279  unsigned int sequence;
281 
283 #define XCB_SHAPE_GET_RECTANGLES 8
284 
289  uint8_t major_opcode;
290  uint8_t minor_opcode;
291  uint16_t length;
292  xcb_window_t window;
293  xcb_shape_kind_t source_kind;
294  uint8_t pad0[3];
296 
301  uint8_t response_type;
302  uint8_t ordering;
303  uint16_t sequence;
304  uint32_t length;
305  uint32_t rectangles_len;
306  uint8_t pad0[20];
308 
317 void
319 
331 
340 void
342 
354 
365 
379 
397  xcb_generic_error_t **e );
398 
399 int
400 xcb_shape_rectangles_sizeof (const void *_buffer ,
401  uint32_t rectangles_len );
402 
416  xcb_shape_op_t operation ,
417  xcb_shape_kind_t destination_kind ,
418  uint8_t ordering ,
419  xcb_window_t destination_window ,
420  int16_t x_offset ,
421  int16_t y_offset ,
422  uint32_t rectangles_len ,
423  const xcb_rectangle_t *rectangles );
424 
435  xcb_shape_op_t operation ,
436  xcb_shape_kind_t destination_kind ,
437  uint8_t ordering ,
438  xcb_window_t destination_window ,
439  int16_t x_offset ,
440  int16_t y_offset ,
441  uint32_t rectangles_len ,
442  const xcb_rectangle_t *rectangles );
443 
457  xcb_shape_op_t operation ,
458  xcb_shape_kind_t destination_kind ,
459  xcb_window_t destination_window ,
460  int16_t x_offset ,
461  int16_t y_offset ,
462  xcb_pixmap_t source_bitmap );
463 
474  xcb_shape_op_t operation ,
475  xcb_shape_kind_t destination_kind ,
476  xcb_window_t destination_window ,
477  int16_t x_offset ,
478  int16_t y_offset ,
479  xcb_pixmap_t source_bitmap );
480 
494  xcb_shape_op_t operation ,
495  xcb_shape_kind_t destination_kind ,
496  xcb_shape_kind_t source_kind ,
497  xcb_window_t destination_window ,
498  int16_t x_offset ,
499  int16_t y_offset ,
500  xcb_window_t source_window );
501 
512  xcb_shape_op_t operation ,
513  xcb_shape_kind_t destination_kind ,
514  xcb_shape_kind_t source_kind ,
515  xcb_window_t destination_window ,
516  int16_t x_offset ,
517  int16_t y_offset ,
518  xcb_window_t source_window );
519 
533  xcb_shape_kind_t destination_kind ,
534  xcb_window_t destination_window ,
535  int16_t x_offset ,
536  int16_t y_offset );
537 
548  xcb_shape_kind_t destination_kind ,
549  xcb_window_t destination_window ,
550  int16_t x_offset ,
551  int16_t y_offset );
552 
563  xcb_window_t destination_window );
564 
578  xcb_window_t destination_window );
579 
597  xcb_generic_error_t **e );
598 
612  xcb_window_t destination_window ,
613  uint8_t enable );
614 
625  xcb_window_t destination_window ,
626  uint8_t enable );
627 
638  xcb_window_t destination_window );
639 
653  xcb_window_t destination_window );
654 
672  xcb_generic_error_t **e );
673 
674 int
675 xcb_shape_get_rectangles_sizeof (const void *_buffer );
676 
687  xcb_window_t window ,
688  xcb_shape_kind_t source_kind );
689 
703  xcb_window_t window ,
704  xcb_shape_kind_t source_kind );
705 
707 xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R );
708 
709 int
710 xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R );
711 
713 xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R );
714 
732  xcb_generic_error_t **e );
733 
734 
735 #ifdef __cplusplus
736 }
737 #endif
738 
739 #endif
740 
struct xcb_shape_query_extents_reply_t xcb_shape_query_extents_reply_t
xcb_shape_query_extents_reply_t
xcb_shape_query_extents_cookie_t xcb_shape_query_extents_unchecked(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:477
Generic error.
Definition: xcb.h:170
xcb_void_cookie_t xcb_shape_select_input_checked(xcb_connection_t *c, xcb_window_t destination_window, uint8_t enable)
Definition: shape.c:511
xcb_shape_input_selected_cookie_t xcb_shape_input_selected_unchecked(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:595
xcb_shape_query_version_cookie_t xcb_shape_query_version_unchecked(xcb_connection_t *c)
Definition: shape.c:82
xcb_shape_get_rectangles_request_t
Definition: shape.h:288
xcb_shape_combine_request_t
Definition: shape.h:158
struct xcb_shape_input_selected_request_t xcb_shape_input_selected_request_t
xcb_shape_input_selected_request_t
xcb_shape_get_rectangles_reply_t
Definition: shape.h:300
xcb_shape_query_extents_reply_t * xcb_shape_query_extents_reply(xcb_connection_t *c, xcb_shape_query_extents_cookie_t cookie, xcb_generic_error_t **e)
Definition: shape.c:503
struct xcb_shape_kind_iterator_t xcb_shape_kind_iterator_t
xcb_shape_kind_iterator_t
xcb_shape_get_rectangles_reply_t * xcb_shape_get_rectangles_reply(xcb_connection_t *c, xcb_shape_get_rectangles_cookie_t cookie, xcb_generic_error_t **e)
Definition: shape.c:740
struct xcb_shape_query_version_cookie_t xcb_shape_query_version_cookie_t
xcb_shape_query_version_cookie_t
xcb_shape_query_extents_reply_t
Definition: shape.h:212
struct xcb_shape_query_extents_request_t xcb_shape_query_extents_request_t
xcb_shape_query_extents_request_t
xcb_shape_input_selected_reply_t
Definition: shape.h:268
xcb_void_cookie_t xcb_shape_combine(xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_shape_kind_t source_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_window_t source_window)
Definition: shape.c:346
xcb_void_cookie_t xcb_shape_mask(xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_pixmap_t source_bitmap)
Definition: shape.c:270
Definition: xcbext.h:39
xcb_shape_rectangles_request_t
Definition: shape.h:120
xcb_shape_mask_request_t
Definition: shape.h:139
xcb_shape_query_version_cookie_t xcb_shape_query_version(xcb_connection_t *c)
Definition: shape.c:58
xcb_shape_query_extents_request_t
Definition: shape.h:202
struct xcb_shape_combine_request_t xcb_shape_combine_request_t
xcb_shape_combine_request_t
Generic iterator.
Definition: xcb.h:114
xcb_void_cookie_t xcb_shape_select_input(xcb_connection_t *c, xcb_window_t destination_window, uint8_t enable)
Definition: shape.c:540
xcb_shape_input_selected_reply_t * xcb_shape_input_selected_reply(xcb_connection_t *c, xcb_shape_input_selected_cookie_t cookie, xcb_generic_error_t **e)
Definition: shape.c:621
xcb_void_cookie_t xcb_shape_mask_checked(xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_pixmap_t source_bitmap)
Definition: shape.c:233
xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles(xcb_connection_t *c, xcb_window_t window, xcb_shape_kind_t source_kind)
Definition: shape.c:660
struct xcb_shape_rectangles_request_t xcb_shape_rectangles_request_t
xcb_shape_rectangles_request_t
struct xcb_shape_input_selected_cookie_t xcb_shape_input_selected_cookie_t
xcb_shape_input_selected_cookie_t
struct xcb_shape_input_selected_reply_t xcb_shape_input_selected_reply_t
xcb_shape_input_selected_reply_t
xcb_shape_input_selected_request_t
Definition: shape.h:258
xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_unchecked(xcb_connection_t *c, xcb_window_t window, xcb_shape_kind_t source_kind)
Definition: shape.c:689
struct xcb_shape_select_input_request_t xcb_shape_select_input_request_t
xcb_shape_select_input_request_t
xcb_shape_query_version_request_t
Definition: shape.h:96
struct xcb_shape_query_extents_cookie_t xcb_shape_query_extents_cookie_t
xcb_shape_query_extents_cookie_t
struct xcb_shape_get_rectangles_request_t xcb_shape_get_rectangles_request_t
xcb_shape_get_rectangles_request_t
xcb_shape_kind_iterator_t
Definition: shape.h:43
struct xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_cookie_t
xcb_shape_get_rectangles_cookie_t
xcb_void_cookie_t xcb_shape_offset_checked(xcb_connection_t *c, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset)
Definition: shape.c:385
xcb_void_cookie_t xcb_shape_offset(xcb_connection_t *c, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset)
Definition: shape.c:418
xcb_shape_input_selected_cookie_t xcb_shape_input_selected(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:569
struct xcb_shape_mask_request_t xcb_shape_mask_request_t
xcb_shape_mask_request_t
struct xcb_shape_notify_event_t xcb_shape_notify_event_t
xcb_shape_notify_event_t
struct xcb_shape_query_version_reply_t xcb_shape_query_version_reply_t
xcb_shape_query_version_reply_t
xcb_shape_select_input_request_t
Definition: shape.h:236
void xcb_shape_kind_next(xcb_shape_kind_iterator_t *i)
Definition: shape.c:40
xcb_rectangle_t
Definition: xproto.h:212
struct xcb_shape_get_rectangles_reply_t xcb_shape_get_rectangles_reply_t
xcb_shape_get_rectangles_reply_t
xcb_rectangle_iterator_t
Definition: xproto.h:222
xcb_shape_query_extents_cookie_t xcb_shape_query_extents(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:451
xcb_void_cookie_t xcb_shape_combine_checked(xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_shape_kind_t source_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_window_t source_window)
Definition: shape.c:307
xcb_void_cookie_t xcb_shape_rectangles_checked(xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, uint8_t ordering, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, uint32_t rectangles_len, const xcb_rectangle_t *rectangles)
Definition: shape.c:145
xcb_shape_op_iterator_t
Definition: shape.h:32
struct xcb_shape_offset_request_t xcb_shape_offset_request_t
xcb_shape_offset_request_t
struct xcb_shape_op_iterator_t xcb_shape_op_iterator_t
xcb_shape_op_iterator_t
xcb_shape_notify_event_t
Definition: shape.h:69
xcb_void_cookie_t xcb_shape_rectangles(xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, uint8_t ordering, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, uint32_t rectangles_len, const xcb_rectangle_t *rectangles)
Definition: shape.c:189
struct xcb_shape_query_version_request_t xcb_shape_query_version_request_t
xcb_shape_query_version_request_t
xcb_shape_offset_request_t
Definition: shape.h:178
xcb_shape_query_version_reply_t
Definition: shape.h:105
Definition: xcbint.h:194
xcb_generic_iterator_t xcb_shape_op_end(xcb_shape_op_iterator_t i)
Definition: shape.c:30
void xcb_shape_op_next(xcb_shape_op_iterator_t *i)
Definition: shape.c:22
xcb_shape_query_version_reply_t * xcb_shape_query_version_reply(xcb_connection_t *c, xcb_shape_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: shape.c:106
xcb_generic_iterator_t xcb_shape_kind_end(xcb_shape_kind_iterator_t i)
Definition: shape.c:48