xref: /minix3/external/mit/xorg/lib/libxcb/files/shape.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1971bb1a5SLionel Sambuc /*
2971bb1a5SLionel Sambuc  * This file generated automatically from shape.xml by c_client.py.
3971bb1a5SLionel Sambuc  * Edit at your peril.
4971bb1a5SLionel Sambuc  */
5971bb1a5SLionel Sambuc 
6971bb1a5SLionel Sambuc /**
7971bb1a5SLionel Sambuc  * @defgroup XCB_Shape_API XCB Shape API
8971bb1a5SLionel Sambuc  * @brief Shape XCB Protocol Implementation.
9971bb1a5SLionel Sambuc  * @{
10971bb1a5SLionel Sambuc  **/
11971bb1a5SLionel Sambuc 
12971bb1a5SLionel Sambuc #ifndef __SHAPE_H
13971bb1a5SLionel Sambuc #define __SHAPE_H
14971bb1a5SLionel Sambuc 
15971bb1a5SLionel Sambuc #include "xcb.h"
16971bb1a5SLionel Sambuc #include "xproto.h"
17971bb1a5SLionel Sambuc 
18971bb1a5SLionel Sambuc #ifdef __cplusplus
19971bb1a5SLionel Sambuc extern "C" {
20971bb1a5SLionel Sambuc #endif
21971bb1a5SLionel Sambuc 
22971bb1a5SLionel Sambuc #define XCB_SHAPE_MAJOR_VERSION 1
23971bb1a5SLionel Sambuc #define XCB_SHAPE_MINOR_VERSION 1
24971bb1a5SLionel Sambuc 
25971bb1a5SLionel Sambuc extern xcb_extension_t xcb_shape_id;
26971bb1a5SLionel Sambuc 
27971bb1a5SLionel Sambuc typedef uint8_t xcb_shape_op_t;
28971bb1a5SLionel Sambuc 
29971bb1a5SLionel Sambuc /**
30971bb1a5SLionel Sambuc  * @brief xcb_shape_op_iterator_t
31971bb1a5SLionel Sambuc  **/
32971bb1a5SLionel Sambuc typedef struct xcb_shape_op_iterator_t {
33971bb1a5SLionel Sambuc     xcb_shape_op_t *data; /**<  */
34971bb1a5SLionel Sambuc     int             rem; /**<  */
35971bb1a5SLionel Sambuc     int             index; /**<  */
36971bb1a5SLionel Sambuc } xcb_shape_op_iterator_t;
37971bb1a5SLionel Sambuc 
38971bb1a5SLionel Sambuc typedef uint8_t xcb_shape_kind_t;
39971bb1a5SLionel Sambuc 
40971bb1a5SLionel Sambuc /**
41971bb1a5SLionel Sambuc  * @brief xcb_shape_kind_iterator_t
42971bb1a5SLionel Sambuc  **/
43971bb1a5SLionel Sambuc typedef struct xcb_shape_kind_iterator_t {
44971bb1a5SLionel Sambuc     xcb_shape_kind_t *data; /**<  */
45971bb1a5SLionel Sambuc     int               rem; /**<  */
46971bb1a5SLionel Sambuc     int               index; /**<  */
47971bb1a5SLionel Sambuc } xcb_shape_kind_iterator_t;
48971bb1a5SLionel Sambuc 
49971bb1a5SLionel Sambuc typedef enum xcb_shape_so_t {
50*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SO_SET = 0,
51*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SO_UNION = 1,
52*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SO_INTERSECT = 2,
53*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SO_SUBTRACT = 3,
54*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SO_INVERT = 4
55971bb1a5SLionel Sambuc } xcb_shape_so_t;
56971bb1a5SLionel Sambuc 
57971bb1a5SLionel Sambuc typedef enum xcb_shape_sk_t {
58*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SK_BOUNDING = 0,
59*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SK_CLIP = 1,
60*0a6a1f1dSLionel Sambuc     XCB_SHAPE_SK_INPUT = 2
61971bb1a5SLionel Sambuc } xcb_shape_sk_t;
62971bb1a5SLionel Sambuc 
63971bb1a5SLionel Sambuc /** Opcode for xcb_shape_notify. */
64971bb1a5SLionel Sambuc #define XCB_SHAPE_NOTIFY 0
65971bb1a5SLionel Sambuc 
66971bb1a5SLionel Sambuc /**
67971bb1a5SLionel Sambuc  * @brief xcb_shape_notify_event_t
68971bb1a5SLionel Sambuc  **/
69971bb1a5SLionel Sambuc typedef struct xcb_shape_notify_event_t {
70971bb1a5SLionel Sambuc     uint8_t          response_type; /**<  */
71971bb1a5SLionel Sambuc     xcb_shape_kind_t shape_kind; /**<  */
72971bb1a5SLionel Sambuc     uint16_t         sequence; /**<  */
73971bb1a5SLionel Sambuc     xcb_window_t     affected_window; /**<  */
74971bb1a5SLionel Sambuc     int16_t          extents_x; /**<  */
75971bb1a5SLionel Sambuc     int16_t          extents_y; /**<  */
76971bb1a5SLionel Sambuc     uint16_t         extents_width; /**<  */
77971bb1a5SLionel Sambuc     uint16_t         extents_height; /**<  */
78971bb1a5SLionel Sambuc     xcb_timestamp_t  server_time; /**<  */
79971bb1a5SLionel Sambuc     uint8_t          shaped; /**<  */
80971bb1a5SLionel Sambuc     uint8_t          pad0[11]; /**<  */
81971bb1a5SLionel Sambuc } xcb_shape_notify_event_t;
82971bb1a5SLionel Sambuc 
83971bb1a5SLionel Sambuc /**
84971bb1a5SLionel Sambuc  * @brief xcb_shape_query_version_cookie_t
85971bb1a5SLionel Sambuc  **/
86971bb1a5SLionel Sambuc typedef struct xcb_shape_query_version_cookie_t {
87971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
88971bb1a5SLionel Sambuc } xcb_shape_query_version_cookie_t;
89971bb1a5SLionel Sambuc 
90971bb1a5SLionel Sambuc /** Opcode for xcb_shape_query_version. */
91971bb1a5SLionel Sambuc #define XCB_SHAPE_QUERY_VERSION 0
92971bb1a5SLionel Sambuc 
93971bb1a5SLionel Sambuc /**
94971bb1a5SLionel Sambuc  * @brief xcb_shape_query_version_request_t
95971bb1a5SLionel Sambuc  **/
96971bb1a5SLionel Sambuc typedef struct xcb_shape_query_version_request_t {
97971bb1a5SLionel Sambuc     uint8_t  major_opcode; /**<  */
98971bb1a5SLionel Sambuc     uint8_t  minor_opcode; /**<  */
99971bb1a5SLionel Sambuc     uint16_t length; /**<  */
100971bb1a5SLionel Sambuc } xcb_shape_query_version_request_t;
101971bb1a5SLionel Sambuc 
102971bb1a5SLionel Sambuc /**
103971bb1a5SLionel Sambuc  * @brief xcb_shape_query_version_reply_t
104971bb1a5SLionel Sambuc  **/
105971bb1a5SLionel Sambuc typedef struct xcb_shape_query_version_reply_t {
106971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
107971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
108971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
109971bb1a5SLionel Sambuc     uint32_t length; /**<  */
110971bb1a5SLionel Sambuc     uint16_t major_version; /**<  */
111971bb1a5SLionel Sambuc     uint16_t minor_version; /**<  */
112971bb1a5SLionel Sambuc } xcb_shape_query_version_reply_t;
113971bb1a5SLionel Sambuc 
114971bb1a5SLionel Sambuc /** Opcode for xcb_shape_rectangles. */
115971bb1a5SLionel Sambuc #define XCB_SHAPE_RECTANGLES 1
116971bb1a5SLionel Sambuc 
117971bb1a5SLionel Sambuc /**
118971bb1a5SLionel Sambuc  * @brief xcb_shape_rectangles_request_t
119971bb1a5SLionel Sambuc  **/
120971bb1a5SLionel Sambuc typedef struct xcb_shape_rectangles_request_t {
121971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
122971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
123971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
124971bb1a5SLionel Sambuc     xcb_shape_op_t   operation; /**<  */
125971bb1a5SLionel Sambuc     xcb_shape_kind_t destination_kind; /**<  */
126971bb1a5SLionel Sambuc     uint8_t          ordering; /**<  */
127971bb1a5SLionel Sambuc     uint8_t          pad0; /**<  */
128971bb1a5SLionel Sambuc     xcb_window_t     destination_window; /**<  */
129971bb1a5SLionel Sambuc     int16_t          x_offset; /**<  */
130971bb1a5SLionel Sambuc     int16_t          y_offset; /**<  */
131971bb1a5SLionel Sambuc } xcb_shape_rectangles_request_t;
132971bb1a5SLionel Sambuc 
133971bb1a5SLionel Sambuc /** Opcode for xcb_shape_mask. */
134971bb1a5SLionel Sambuc #define XCB_SHAPE_MASK 2
135971bb1a5SLionel Sambuc 
136971bb1a5SLionel Sambuc /**
137971bb1a5SLionel Sambuc  * @brief xcb_shape_mask_request_t
138971bb1a5SLionel Sambuc  **/
139971bb1a5SLionel Sambuc typedef struct xcb_shape_mask_request_t {
140971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
141971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
142971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
143971bb1a5SLionel Sambuc     xcb_shape_op_t   operation; /**<  */
144971bb1a5SLionel Sambuc     xcb_shape_kind_t destination_kind; /**<  */
145971bb1a5SLionel Sambuc     uint8_t          pad0[2]; /**<  */
146971bb1a5SLionel Sambuc     xcb_window_t     destination_window; /**<  */
147971bb1a5SLionel Sambuc     int16_t          x_offset; /**<  */
148971bb1a5SLionel Sambuc     int16_t          y_offset; /**<  */
149971bb1a5SLionel Sambuc     xcb_pixmap_t     source_bitmap; /**<  */
150971bb1a5SLionel Sambuc } xcb_shape_mask_request_t;
151971bb1a5SLionel Sambuc 
152971bb1a5SLionel Sambuc /** Opcode for xcb_shape_combine. */
153971bb1a5SLionel Sambuc #define XCB_SHAPE_COMBINE 3
154971bb1a5SLionel Sambuc 
155971bb1a5SLionel Sambuc /**
156971bb1a5SLionel Sambuc  * @brief xcb_shape_combine_request_t
157971bb1a5SLionel Sambuc  **/
158971bb1a5SLionel Sambuc typedef struct xcb_shape_combine_request_t {
159971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
160971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
161971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
162971bb1a5SLionel Sambuc     xcb_shape_op_t   operation; /**<  */
163971bb1a5SLionel Sambuc     xcb_shape_kind_t destination_kind; /**<  */
164971bb1a5SLionel Sambuc     xcb_shape_kind_t source_kind; /**<  */
165971bb1a5SLionel Sambuc     uint8_t          pad0; /**<  */
166971bb1a5SLionel Sambuc     xcb_window_t     destination_window; /**<  */
167971bb1a5SLionel Sambuc     int16_t          x_offset; /**<  */
168971bb1a5SLionel Sambuc     int16_t          y_offset; /**<  */
169971bb1a5SLionel Sambuc     xcb_window_t     source_window; /**<  */
170971bb1a5SLionel Sambuc } xcb_shape_combine_request_t;
171971bb1a5SLionel Sambuc 
172971bb1a5SLionel Sambuc /** Opcode for xcb_shape_offset. */
173971bb1a5SLionel Sambuc #define XCB_SHAPE_OFFSET 4
174971bb1a5SLionel Sambuc 
175971bb1a5SLionel Sambuc /**
176971bb1a5SLionel Sambuc  * @brief xcb_shape_offset_request_t
177971bb1a5SLionel Sambuc  **/
178971bb1a5SLionel Sambuc typedef struct xcb_shape_offset_request_t {
179971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
180971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
181971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
182971bb1a5SLionel Sambuc     xcb_shape_kind_t destination_kind; /**<  */
183971bb1a5SLionel Sambuc     uint8_t          pad0[3]; /**<  */
184971bb1a5SLionel Sambuc     xcb_window_t     destination_window; /**<  */
185971bb1a5SLionel Sambuc     int16_t          x_offset; /**<  */
186971bb1a5SLionel Sambuc     int16_t          y_offset; /**<  */
187971bb1a5SLionel Sambuc } xcb_shape_offset_request_t;
188971bb1a5SLionel Sambuc 
189971bb1a5SLionel Sambuc /**
190971bb1a5SLionel Sambuc  * @brief xcb_shape_query_extents_cookie_t
191971bb1a5SLionel Sambuc  **/
192971bb1a5SLionel Sambuc typedef struct xcb_shape_query_extents_cookie_t {
193971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
194971bb1a5SLionel Sambuc } xcb_shape_query_extents_cookie_t;
195971bb1a5SLionel Sambuc 
196971bb1a5SLionel Sambuc /** Opcode for xcb_shape_query_extents. */
197971bb1a5SLionel Sambuc #define XCB_SHAPE_QUERY_EXTENTS 5
198971bb1a5SLionel Sambuc 
199971bb1a5SLionel Sambuc /**
200971bb1a5SLionel Sambuc  * @brief xcb_shape_query_extents_request_t
201971bb1a5SLionel Sambuc  **/
202971bb1a5SLionel Sambuc typedef struct xcb_shape_query_extents_request_t {
203971bb1a5SLionel Sambuc     uint8_t      major_opcode; /**<  */
204971bb1a5SLionel Sambuc     uint8_t      minor_opcode; /**<  */
205971bb1a5SLionel Sambuc     uint16_t     length; /**<  */
206971bb1a5SLionel Sambuc     xcb_window_t destination_window; /**<  */
207971bb1a5SLionel Sambuc } xcb_shape_query_extents_request_t;
208971bb1a5SLionel Sambuc 
209971bb1a5SLionel Sambuc /**
210971bb1a5SLionel Sambuc  * @brief xcb_shape_query_extents_reply_t
211971bb1a5SLionel Sambuc  **/
212971bb1a5SLionel Sambuc typedef struct xcb_shape_query_extents_reply_t {
213971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
214971bb1a5SLionel Sambuc     uint8_t  pad0; /**<  */
215971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
216971bb1a5SLionel Sambuc     uint32_t length; /**<  */
217971bb1a5SLionel Sambuc     uint8_t  bounding_shaped; /**<  */
218971bb1a5SLionel Sambuc     uint8_t  clip_shaped; /**<  */
219971bb1a5SLionel Sambuc     uint8_t  pad1[2]; /**<  */
220971bb1a5SLionel Sambuc     int16_t  bounding_shape_extents_x; /**<  */
221971bb1a5SLionel Sambuc     int16_t  bounding_shape_extents_y; /**<  */
222971bb1a5SLionel Sambuc     uint16_t bounding_shape_extents_width; /**<  */
223971bb1a5SLionel Sambuc     uint16_t bounding_shape_extents_height; /**<  */
224971bb1a5SLionel Sambuc     int16_t  clip_shape_extents_x; /**<  */
225971bb1a5SLionel Sambuc     int16_t  clip_shape_extents_y; /**<  */
226971bb1a5SLionel Sambuc     uint16_t clip_shape_extents_width; /**<  */
227971bb1a5SLionel Sambuc     uint16_t clip_shape_extents_height; /**<  */
228971bb1a5SLionel Sambuc } xcb_shape_query_extents_reply_t;
229971bb1a5SLionel Sambuc 
230971bb1a5SLionel Sambuc /** Opcode for xcb_shape_select_input. */
231971bb1a5SLionel Sambuc #define XCB_SHAPE_SELECT_INPUT 6
232971bb1a5SLionel Sambuc 
233971bb1a5SLionel Sambuc /**
234971bb1a5SLionel Sambuc  * @brief xcb_shape_select_input_request_t
235971bb1a5SLionel Sambuc  **/
236971bb1a5SLionel Sambuc typedef struct xcb_shape_select_input_request_t {
237971bb1a5SLionel Sambuc     uint8_t      major_opcode; /**<  */
238971bb1a5SLionel Sambuc     uint8_t      minor_opcode; /**<  */
239971bb1a5SLionel Sambuc     uint16_t     length; /**<  */
240971bb1a5SLionel Sambuc     xcb_window_t destination_window; /**<  */
241971bb1a5SLionel Sambuc     uint8_t      enable; /**<  */
242971bb1a5SLionel Sambuc     uint8_t      pad0[3]; /**<  */
243971bb1a5SLionel Sambuc } xcb_shape_select_input_request_t;
244971bb1a5SLionel Sambuc 
245971bb1a5SLionel Sambuc /**
246971bb1a5SLionel Sambuc  * @brief xcb_shape_input_selected_cookie_t
247971bb1a5SLionel Sambuc  **/
248971bb1a5SLionel Sambuc typedef struct xcb_shape_input_selected_cookie_t {
249971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
250971bb1a5SLionel Sambuc } xcb_shape_input_selected_cookie_t;
251971bb1a5SLionel Sambuc 
252971bb1a5SLionel Sambuc /** Opcode for xcb_shape_input_selected. */
253971bb1a5SLionel Sambuc #define XCB_SHAPE_INPUT_SELECTED 7
254971bb1a5SLionel Sambuc 
255971bb1a5SLionel Sambuc /**
256971bb1a5SLionel Sambuc  * @brief xcb_shape_input_selected_request_t
257971bb1a5SLionel Sambuc  **/
258971bb1a5SLionel Sambuc typedef struct xcb_shape_input_selected_request_t {
259971bb1a5SLionel Sambuc     uint8_t      major_opcode; /**<  */
260971bb1a5SLionel Sambuc     uint8_t      minor_opcode; /**<  */
261971bb1a5SLionel Sambuc     uint16_t     length; /**<  */
262971bb1a5SLionel Sambuc     xcb_window_t destination_window; /**<  */
263971bb1a5SLionel Sambuc } xcb_shape_input_selected_request_t;
264971bb1a5SLionel Sambuc 
265971bb1a5SLionel Sambuc /**
266971bb1a5SLionel Sambuc  * @brief xcb_shape_input_selected_reply_t
267971bb1a5SLionel Sambuc  **/
268971bb1a5SLionel Sambuc typedef struct xcb_shape_input_selected_reply_t {
269971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
270971bb1a5SLionel Sambuc     uint8_t  enabled; /**<  */
271971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
272971bb1a5SLionel Sambuc     uint32_t length; /**<  */
273971bb1a5SLionel Sambuc } xcb_shape_input_selected_reply_t;
274971bb1a5SLionel Sambuc 
275971bb1a5SLionel Sambuc /**
276971bb1a5SLionel Sambuc  * @brief xcb_shape_get_rectangles_cookie_t
277971bb1a5SLionel Sambuc  **/
278971bb1a5SLionel Sambuc typedef struct xcb_shape_get_rectangles_cookie_t {
279971bb1a5SLionel Sambuc     unsigned int sequence; /**<  */
280971bb1a5SLionel Sambuc } xcb_shape_get_rectangles_cookie_t;
281971bb1a5SLionel Sambuc 
282971bb1a5SLionel Sambuc /** Opcode for xcb_shape_get_rectangles. */
283971bb1a5SLionel Sambuc #define XCB_SHAPE_GET_RECTANGLES 8
284971bb1a5SLionel Sambuc 
285971bb1a5SLionel Sambuc /**
286971bb1a5SLionel Sambuc  * @brief xcb_shape_get_rectangles_request_t
287971bb1a5SLionel Sambuc  **/
288971bb1a5SLionel Sambuc typedef struct xcb_shape_get_rectangles_request_t {
289971bb1a5SLionel Sambuc     uint8_t          major_opcode; /**<  */
290971bb1a5SLionel Sambuc     uint8_t          minor_opcode; /**<  */
291971bb1a5SLionel Sambuc     uint16_t         length; /**<  */
292971bb1a5SLionel Sambuc     xcb_window_t     window; /**<  */
293971bb1a5SLionel Sambuc     xcb_shape_kind_t source_kind; /**<  */
294971bb1a5SLionel Sambuc     uint8_t          pad0[3]; /**<  */
295971bb1a5SLionel Sambuc } xcb_shape_get_rectangles_request_t;
296971bb1a5SLionel Sambuc 
297971bb1a5SLionel Sambuc /**
298971bb1a5SLionel Sambuc  * @brief xcb_shape_get_rectangles_reply_t
299971bb1a5SLionel Sambuc  **/
300971bb1a5SLionel Sambuc typedef struct xcb_shape_get_rectangles_reply_t {
301971bb1a5SLionel Sambuc     uint8_t  response_type; /**<  */
302971bb1a5SLionel Sambuc     uint8_t  ordering; /**<  */
303971bb1a5SLionel Sambuc     uint16_t sequence; /**<  */
304971bb1a5SLionel Sambuc     uint32_t length; /**<  */
305971bb1a5SLionel Sambuc     uint32_t rectangles_len; /**<  */
306971bb1a5SLionel Sambuc     uint8_t  pad0[20]; /**<  */
307971bb1a5SLionel Sambuc } xcb_shape_get_rectangles_reply_t;
308971bb1a5SLionel Sambuc 
309971bb1a5SLionel Sambuc /**
310971bb1a5SLionel Sambuc  * Get the next element of the iterator
311971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_shape_op_iterator_t
312971bb1a5SLionel Sambuc  *
313971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
314971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
315971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_shape_op_t)
316971bb1a5SLionel Sambuc  */
317971bb1a5SLionel Sambuc void
318971bb1a5SLionel Sambuc xcb_shape_op_next (xcb_shape_op_iterator_t *i  /**< */);
319971bb1a5SLionel Sambuc 
320971bb1a5SLionel Sambuc /**
321971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
322971bb1a5SLionel Sambuc  * @param i An xcb_shape_op_iterator_t
323971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
324971bb1a5SLionel Sambuc  *
325971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
326971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
327971bb1a5SLionel Sambuc  * last element.
328971bb1a5SLionel Sambuc  */
329971bb1a5SLionel Sambuc xcb_generic_iterator_t
330971bb1a5SLionel Sambuc xcb_shape_op_end (xcb_shape_op_iterator_t i  /**< */);
331971bb1a5SLionel Sambuc 
332971bb1a5SLionel Sambuc /**
333971bb1a5SLionel Sambuc  * Get the next element of the iterator
334971bb1a5SLionel Sambuc  * @param i Pointer to a xcb_shape_kind_iterator_t
335971bb1a5SLionel Sambuc  *
336971bb1a5SLionel Sambuc  * Get the next element in the iterator. The member rem is
337971bb1a5SLionel Sambuc  * decreased by one. The member data points to the next
338971bb1a5SLionel Sambuc  * element. The member index is increased by sizeof(xcb_shape_kind_t)
339971bb1a5SLionel Sambuc  */
340971bb1a5SLionel Sambuc void
341971bb1a5SLionel Sambuc xcb_shape_kind_next (xcb_shape_kind_iterator_t *i  /**< */);
342971bb1a5SLionel Sambuc 
343971bb1a5SLionel Sambuc /**
344971bb1a5SLionel Sambuc  * Return the iterator pointing to the last element
345971bb1a5SLionel Sambuc  * @param i An xcb_shape_kind_iterator_t
346971bb1a5SLionel Sambuc  * @return  The iterator pointing to the last element
347971bb1a5SLionel Sambuc  *
348971bb1a5SLionel Sambuc  * Set the current element in the iterator to the last element.
349971bb1a5SLionel Sambuc  * The member rem is set to 0. The member data points to the
350971bb1a5SLionel Sambuc  * last element.
351971bb1a5SLionel Sambuc  */
352971bb1a5SLionel Sambuc xcb_generic_iterator_t
353971bb1a5SLionel Sambuc xcb_shape_kind_end (xcb_shape_kind_iterator_t i  /**< */);
354971bb1a5SLionel Sambuc 
355971bb1a5SLionel Sambuc /**
356971bb1a5SLionel Sambuc  *
357971bb1a5SLionel Sambuc  * @param c The connection
358971bb1a5SLionel Sambuc  * @return A cookie
359971bb1a5SLionel Sambuc  *
360971bb1a5SLionel Sambuc  * Delivers a request to the X server.
361971bb1a5SLionel Sambuc  *
362971bb1a5SLionel Sambuc  */
363971bb1a5SLionel Sambuc xcb_shape_query_version_cookie_t
364971bb1a5SLionel Sambuc xcb_shape_query_version (xcb_connection_t *c  /**< */);
365971bb1a5SLionel Sambuc 
366971bb1a5SLionel Sambuc /**
367971bb1a5SLionel Sambuc  *
368971bb1a5SLionel Sambuc  * @param c The connection
369971bb1a5SLionel Sambuc  * @return A cookie
370971bb1a5SLionel Sambuc  *
371971bb1a5SLionel Sambuc  * Delivers a request to the X server.
372971bb1a5SLionel Sambuc  *
373971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
374971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
375971bb1a5SLionel Sambuc  * placed in the event queue.
376971bb1a5SLionel Sambuc  */
377971bb1a5SLionel Sambuc xcb_shape_query_version_cookie_t
378971bb1a5SLionel Sambuc xcb_shape_query_version_unchecked (xcb_connection_t *c  /**< */);
379971bb1a5SLionel Sambuc 
380971bb1a5SLionel Sambuc /**
381971bb1a5SLionel Sambuc  * Return the reply
382971bb1a5SLionel Sambuc  * @param c      The connection
383971bb1a5SLionel Sambuc  * @param cookie The cookie
384971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
385971bb1a5SLionel Sambuc  *
386971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
387971bb1a5SLionel Sambuc  *
388971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
389971bb1a5SLionel Sambuc  * xcb_shape_query_version_unchecked(). is used.
390971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
391971bb1a5SLionel Sambuc  *
392971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
393971bb1a5SLionel Sambuc  */
394971bb1a5SLionel Sambuc xcb_shape_query_version_reply_t *
395971bb1a5SLionel Sambuc xcb_shape_query_version_reply (xcb_connection_t                  *c  /**< */,
396971bb1a5SLionel Sambuc                                xcb_shape_query_version_cookie_t   cookie  /**< */,
397971bb1a5SLionel Sambuc                                xcb_generic_error_t              **e  /**< */);
398971bb1a5SLionel Sambuc 
399971bb1a5SLionel Sambuc int
400971bb1a5SLionel Sambuc xcb_shape_rectangles_sizeof (const void  *_buffer  /**< */,
401971bb1a5SLionel Sambuc                              uint32_t     rectangles_len  /**< */);
402971bb1a5SLionel Sambuc 
403971bb1a5SLionel Sambuc /**
404971bb1a5SLionel Sambuc  *
405971bb1a5SLionel Sambuc  * @param c The connection
406971bb1a5SLionel Sambuc  * @return A cookie
407971bb1a5SLionel Sambuc  *
408971bb1a5SLionel Sambuc  * Delivers a request to the X server.
409971bb1a5SLionel Sambuc  *
410971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
411971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
412971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
413971bb1a5SLionel Sambuc  */
414971bb1a5SLionel Sambuc xcb_void_cookie_t
415971bb1a5SLionel Sambuc xcb_shape_rectangles_checked (xcb_connection_t      *c  /**< */,
416971bb1a5SLionel Sambuc                               xcb_shape_op_t         operation  /**< */,
417971bb1a5SLionel Sambuc                               xcb_shape_kind_t       destination_kind  /**< */,
418971bb1a5SLionel Sambuc                               uint8_t                ordering  /**< */,
419971bb1a5SLionel Sambuc                               xcb_window_t           destination_window  /**< */,
420971bb1a5SLionel Sambuc                               int16_t                x_offset  /**< */,
421971bb1a5SLionel Sambuc                               int16_t                y_offset  /**< */,
422971bb1a5SLionel Sambuc                               uint32_t               rectangles_len  /**< */,
423971bb1a5SLionel Sambuc                               const xcb_rectangle_t *rectangles  /**< */);
424971bb1a5SLionel Sambuc 
425971bb1a5SLionel Sambuc /**
426971bb1a5SLionel Sambuc  *
427971bb1a5SLionel Sambuc  * @param c The connection
428971bb1a5SLionel Sambuc  * @return A cookie
429971bb1a5SLionel Sambuc  *
430971bb1a5SLionel Sambuc  * Delivers a request to the X server.
431971bb1a5SLionel Sambuc  *
432971bb1a5SLionel Sambuc  */
433971bb1a5SLionel Sambuc xcb_void_cookie_t
434971bb1a5SLionel Sambuc xcb_shape_rectangles (xcb_connection_t      *c  /**< */,
435971bb1a5SLionel Sambuc                       xcb_shape_op_t         operation  /**< */,
436971bb1a5SLionel Sambuc                       xcb_shape_kind_t       destination_kind  /**< */,
437971bb1a5SLionel Sambuc                       uint8_t                ordering  /**< */,
438971bb1a5SLionel Sambuc                       xcb_window_t           destination_window  /**< */,
439971bb1a5SLionel Sambuc                       int16_t                x_offset  /**< */,
440971bb1a5SLionel Sambuc                       int16_t                y_offset  /**< */,
441971bb1a5SLionel Sambuc                       uint32_t               rectangles_len  /**< */,
442971bb1a5SLionel Sambuc                       const xcb_rectangle_t *rectangles  /**< */);
443971bb1a5SLionel Sambuc 
444971bb1a5SLionel Sambuc /**
445971bb1a5SLionel Sambuc  *
446971bb1a5SLionel Sambuc  * @param c The connection
447971bb1a5SLionel Sambuc  * @return A cookie
448971bb1a5SLionel Sambuc  *
449971bb1a5SLionel Sambuc  * Delivers a request to the X server.
450971bb1a5SLionel Sambuc  *
451971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
452971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
453971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
454971bb1a5SLionel Sambuc  */
455971bb1a5SLionel Sambuc xcb_void_cookie_t
456971bb1a5SLionel Sambuc xcb_shape_mask_checked (xcb_connection_t *c  /**< */,
457971bb1a5SLionel Sambuc                         xcb_shape_op_t    operation  /**< */,
458971bb1a5SLionel Sambuc                         xcb_shape_kind_t  destination_kind  /**< */,
459971bb1a5SLionel Sambuc                         xcb_window_t      destination_window  /**< */,
460971bb1a5SLionel Sambuc                         int16_t           x_offset  /**< */,
461971bb1a5SLionel Sambuc                         int16_t           y_offset  /**< */,
462971bb1a5SLionel Sambuc                         xcb_pixmap_t      source_bitmap  /**< */);
463971bb1a5SLionel Sambuc 
464971bb1a5SLionel Sambuc /**
465971bb1a5SLionel Sambuc  *
466971bb1a5SLionel Sambuc  * @param c The connection
467971bb1a5SLionel Sambuc  * @return A cookie
468971bb1a5SLionel Sambuc  *
469971bb1a5SLionel Sambuc  * Delivers a request to the X server.
470971bb1a5SLionel Sambuc  *
471971bb1a5SLionel Sambuc  */
472971bb1a5SLionel Sambuc xcb_void_cookie_t
473971bb1a5SLionel Sambuc xcb_shape_mask (xcb_connection_t *c  /**< */,
474971bb1a5SLionel Sambuc                 xcb_shape_op_t    operation  /**< */,
475971bb1a5SLionel Sambuc                 xcb_shape_kind_t  destination_kind  /**< */,
476971bb1a5SLionel Sambuc                 xcb_window_t      destination_window  /**< */,
477971bb1a5SLionel Sambuc                 int16_t           x_offset  /**< */,
478971bb1a5SLionel Sambuc                 int16_t           y_offset  /**< */,
479971bb1a5SLionel Sambuc                 xcb_pixmap_t      source_bitmap  /**< */);
480971bb1a5SLionel Sambuc 
481971bb1a5SLionel Sambuc /**
482971bb1a5SLionel Sambuc  *
483971bb1a5SLionel Sambuc  * @param c The connection
484971bb1a5SLionel Sambuc  * @return A cookie
485971bb1a5SLionel Sambuc  *
486971bb1a5SLionel Sambuc  * Delivers a request to the X server.
487971bb1a5SLionel Sambuc  *
488971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
489971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
490971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
491971bb1a5SLionel Sambuc  */
492971bb1a5SLionel Sambuc xcb_void_cookie_t
493971bb1a5SLionel Sambuc xcb_shape_combine_checked (xcb_connection_t *c  /**< */,
494971bb1a5SLionel Sambuc                            xcb_shape_op_t    operation  /**< */,
495971bb1a5SLionel Sambuc                            xcb_shape_kind_t  destination_kind  /**< */,
496971bb1a5SLionel Sambuc                            xcb_shape_kind_t  source_kind  /**< */,
497971bb1a5SLionel Sambuc                            xcb_window_t      destination_window  /**< */,
498971bb1a5SLionel Sambuc                            int16_t           x_offset  /**< */,
499971bb1a5SLionel Sambuc                            int16_t           y_offset  /**< */,
500971bb1a5SLionel Sambuc                            xcb_window_t      source_window  /**< */);
501971bb1a5SLionel Sambuc 
502971bb1a5SLionel Sambuc /**
503971bb1a5SLionel Sambuc  *
504971bb1a5SLionel Sambuc  * @param c The connection
505971bb1a5SLionel Sambuc  * @return A cookie
506971bb1a5SLionel Sambuc  *
507971bb1a5SLionel Sambuc  * Delivers a request to the X server.
508971bb1a5SLionel Sambuc  *
509971bb1a5SLionel Sambuc  */
510971bb1a5SLionel Sambuc xcb_void_cookie_t
511971bb1a5SLionel Sambuc xcb_shape_combine (xcb_connection_t *c  /**< */,
512971bb1a5SLionel Sambuc                    xcb_shape_op_t    operation  /**< */,
513971bb1a5SLionel Sambuc                    xcb_shape_kind_t  destination_kind  /**< */,
514971bb1a5SLionel Sambuc                    xcb_shape_kind_t  source_kind  /**< */,
515971bb1a5SLionel Sambuc                    xcb_window_t      destination_window  /**< */,
516971bb1a5SLionel Sambuc                    int16_t           x_offset  /**< */,
517971bb1a5SLionel Sambuc                    int16_t           y_offset  /**< */,
518971bb1a5SLionel Sambuc                    xcb_window_t      source_window  /**< */);
519971bb1a5SLionel Sambuc 
520971bb1a5SLionel Sambuc /**
521971bb1a5SLionel Sambuc  *
522971bb1a5SLionel Sambuc  * @param c The connection
523971bb1a5SLionel Sambuc  * @return A cookie
524971bb1a5SLionel Sambuc  *
525971bb1a5SLionel Sambuc  * Delivers a request to the X server.
526971bb1a5SLionel Sambuc  *
527971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
528971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
529971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
530971bb1a5SLionel Sambuc  */
531971bb1a5SLionel Sambuc xcb_void_cookie_t
532971bb1a5SLionel Sambuc xcb_shape_offset_checked (xcb_connection_t *c  /**< */,
533971bb1a5SLionel Sambuc                           xcb_shape_kind_t  destination_kind  /**< */,
534971bb1a5SLionel Sambuc                           xcb_window_t      destination_window  /**< */,
535971bb1a5SLionel Sambuc                           int16_t           x_offset  /**< */,
536971bb1a5SLionel Sambuc                           int16_t           y_offset  /**< */);
537971bb1a5SLionel Sambuc 
538971bb1a5SLionel Sambuc /**
539971bb1a5SLionel Sambuc  *
540971bb1a5SLionel Sambuc  * @param c The connection
541971bb1a5SLionel Sambuc  * @return A cookie
542971bb1a5SLionel Sambuc  *
543971bb1a5SLionel Sambuc  * Delivers a request to the X server.
544971bb1a5SLionel Sambuc  *
545971bb1a5SLionel Sambuc  */
546971bb1a5SLionel Sambuc xcb_void_cookie_t
547971bb1a5SLionel Sambuc xcb_shape_offset (xcb_connection_t *c  /**< */,
548971bb1a5SLionel Sambuc                   xcb_shape_kind_t  destination_kind  /**< */,
549971bb1a5SLionel Sambuc                   xcb_window_t      destination_window  /**< */,
550971bb1a5SLionel Sambuc                   int16_t           x_offset  /**< */,
551971bb1a5SLionel Sambuc                   int16_t           y_offset  /**< */);
552971bb1a5SLionel Sambuc 
553971bb1a5SLionel Sambuc /**
554971bb1a5SLionel Sambuc  *
555971bb1a5SLionel Sambuc  * @param c The connection
556971bb1a5SLionel Sambuc  * @return A cookie
557971bb1a5SLionel Sambuc  *
558971bb1a5SLionel Sambuc  * Delivers a request to the X server.
559971bb1a5SLionel Sambuc  *
560971bb1a5SLionel Sambuc  */
561971bb1a5SLionel Sambuc xcb_shape_query_extents_cookie_t
562971bb1a5SLionel Sambuc xcb_shape_query_extents (xcb_connection_t *c  /**< */,
563971bb1a5SLionel Sambuc                          xcb_window_t      destination_window  /**< */);
564971bb1a5SLionel Sambuc 
565971bb1a5SLionel Sambuc /**
566971bb1a5SLionel Sambuc  *
567971bb1a5SLionel Sambuc  * @param c The connection
568971bb1a5SLionel Sambuc  * @return A cookie
569971bb1a5SLionel Sambuc  *
570971bb1a5SLionel Sambuc  * Delivers a request to the X server.
571971bb1a5SLionel Sambuc  *
572971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
573971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
574971bb1a5SLionel Sambuc  * placed in the event queue.
575971bb1a5SLionel Sambuc  */
576971bb1a5SLionel Sambuc xcb_shape_query_extents_cookie_t
577971bb1a5SLionel Sambuc xcb_shape_query_extents_unchecked (xcb_connection_t *c  /**< */,
578971bb1a5SLionel Sambuc                                    xcb_window_t      destination_window  /**< */);
579971bb1a5SLionel Sambuc 
580971bb1a5SLionel Sambuc /**
581971bb1a5SLionel Sambuc  * Return the reply
582971bb1a5SLionel Sambuc  * @param c      The connection
583971bb1a5SLionel Sambuc  * @param cookie The cookie
584971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
585971bb1a5SLionel Sambuc  *
586971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
587971bb1a5SLionel Sambuc  *
588971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
589971bb1a5SLionel Sambuc  * xcb_shape_query_extents_unchecked(). is used.
590971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
591971bb1a5SLionel Sambuc  *
592971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
593971bb1a5SLionel Sambuc  */
594971bb1a5SLionel Sambuc xcb_shape_query_extents_reply_t *
595971bb1a5SLionel Sambuc xcb_shape_query_extents_reply (xcb_connection_t                  *c  /**< */,
596971bb1a5SLionel Sambuc                                xcb_shape_query_extents_cookie_t   cookie  /**< */,
597971bb1a5SLionel Sambuc                                xcb_generic_error_t              **e  /**< */);
598971bb1a5SLionel Sambuc 
599971bb1a5SLionel Sambuc /**
600971bb1a5SLionel Sambuc  *
601971bb1a5SLionel Sambuc  * @param c The connection
602971bb1a5SLionel Sambuc  * @return A cookie
603971bb1a5SLionel Sambuc  *
604971bb1a5SLionel Sambuc  * Delivers a request to the X server.
605971bb1a5SLionel Sambuc  *
606971bb1a5SLionel Sambuc  * This form can be used only if the request will not cause
607971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
608971bb1a5SLionel Sambuc  * saved for handling by xcb_request_check().
609971bb1a5SLionel Sambuc  */
610971bb1a5SLionel Sambuc xcb_void_cookie_t
611971bb1a5SLionel Sambuc xcb_shape_select_input_checked (xcb_connection_t *c  /**< */,
612971bb1a5SLionel Sambuc                                 xcb_window_t      destination_window  /**< */,
613971bb1a5SLionel Sambuc                                 uint8_t           enable  /**< */);
614971bb1a5SLionel Sambuc 
615971bb1a5SLionel Sambuc /**
616971bb1a5SLionel Sambuc  *
617971bb1a5SLionel Sambuc  * @param c The connection
618971bb1a5SLionel Sambuc  * @return A cookie
619971bb1a5SLionel Sambuc  *
620971bb1a5SLionel Sambuc  * Delivers a request to the X server.
621971bb1a5SLionel Sambuc  *
622971bb1a5SLionel Sambuc  */
623971bb1a5SLionel Sambuc xcb_void_cookie_t
624971bb1a5SLionel Sambuc xcb_shape_select_input (xcb_connection_t *c  /**< */,
625971bb1a5SLionel Sambuc                         xcb_window_t      destination_window  /**< */,
626971bb1a5SLionel Sambuc                         uint8_t           enable  /**< */);
627971bb1a5SLionel Sambuc 
628971bb1a5SLionel Sambuc /**
629971bb1a5SLionel Sambuc  *
630971bb1a5SLionel Sambuc  * @param c The connection
631971bb1a5SLionel Sambuc  * @return A cookie
632971bb1a5SLionel Sambuc  *
633971bb1a5SLionel Sambuc  * Delivers a request to the X server.
634971bb1a5SLionel Sambuc  *
635971bb1a5SLionel Sambuc  */
636971bb1a5SLionel Sambuc xcb_shape_input_selected_cookie_t
637971bb1a5SLionel Sambuc xcb_shape_input_selected (xcb_connection_t *c  /**< */,
638971bb1a5SLionel Sambuc                           xcb_window_t      destination_window  /**< */);
639971bb1a5SLionel Sambuc 
640971bb1a5SLionel Sambuc /**
641971bb1a5SLionel Sambuc  *
642971bb1a5SLionel Sambuc  * @param c The connection
643971bb1a5SLionel Sambuc  * @return A cookie
644971bb1a5SLionel Sambuc  *
645971bb1a5SLionel Sambuc  * Delivers a request to the X server.
646971bb1a5SLionel Sambuc  *
647971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
648971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
649971bb1a5SLionel Sambuc  * placed in the event queue.
650971bb1a5SLionel Sambuc  */
651971bb1a5SLionel Sambuc xcb_shape_input_selected_cookie_t
652971bb1a5SLionel Sambuc xcb_shape_input_selected_unchecked (xcb_connection_t *c  /**< */,
653971bb1a5SLionel Sambuc                                     xcb_window_t      destination_window  /**< */);
654971bb1a5SLionel Sambuc 
655971bb1a5SLionel Sambuc /**
656971bb1a5SLionel Sambuc  * Return the reply
657971bb1a5SLionel Sambuc  * @param c      The connection
658971bb1a5SLionel Sambuc  * @param cookie The cookie
659971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
660971bb1a5SLionel Sambuc  *
661971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
662971bb1a5SLionel Sambuc  *
663971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
664971bb1a5SLionel Sambuc  * xcb_shape_input_selected_unchecked(). is used.
665971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
666971bb1a5SLionel Sambuc  *
667971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
668971bb1a5SLionel Sambuc  */
669971bb1a5SLionel Sambuc xcb_shape_input_selected_reply_t *
670971bb1a5SLionel Sambuc xcb_shape_input_selected_reply (xcb_connection_t                   *c  /**< */,
671971bb1a5SLionel Sambuc                                 xcb_shape_input_selected_cookie_t   cookie  /**< */,
672971bb1a5SLionel Sambuc                                 xcb_generic_error_t               **e  /**< */);
673971bb1a5SLionel Sambuc 
674971bb1a5SLionel Sambuc int
675971bb1a5SLionel Sambuc xcb_shape_get_rectangles_sizeof (const void  *_buffer  /**< */);
676971bb1a5SLionel Sambuc 
677971bb1a5SLionel Sambuc /**
678971bb1a5SLionel Sambuc  *
679971bb1a5SLionel Sambuc  * @param c The connection
680971bb1a5SLionel Sambuc  * @return A cookie
681971bb1a5SLionel Sambuc  *
682971bb1a5SLionel Sambuc  * Delivers a request to the X server.
683971bb1a5SLionel Sambuc  *
684971bb1a5SLionel Sambuc  */
685971bb1a5SLionel Sambuc xcb_shape_get_rectangles_cookie_t
686971bb1a5SLionel Sambuc xcb_shape_get_rectangles (xcb_connection_t *c  /**< */,
687971bb1a5SLionel Sambuc                           xcb_window_t      window  /**< */,
688971bb1a5SLionel Sambuc                           xcb_shape_kind_t  source_kind  /**< */);
689971bb1a5SLionel Sambuc 
690971bb1a5SLionel Sambuc /**
691971bb1a5SLionel Sambuc  *
692971bb1a5SLionel Sambuc  * @param c The connection
693971bb1a5SLionel Sambuc  * @return A cookie
694971bb1a5SLionel Sambuc  *
695971bb1a5SLionel Sambuc  * Delivers a request to the X server.
696971bb1a5SLionel Sambuc  *
697971bb1a5SLionel Sambuc  * This form can be used only if the request will cause
698971bb1a5SLionel Sambuc  * a reply to be generated. Any returned error will be
699971bb1a5SLionel Sambuc  * placed in the event queue.
700971bb1a5SLionel Sambuc  */
701971bb1a5SLionel Sambuc xcb_shape_get_rectangles_cookie_t
702971bb1a5SLionel Sambuc xcb_shape_get_rectangles_unchecked (xcb_connection_t *c  /**< */,
703971bb1a5SLionel Sambuc                                     xcb_window_t      window  /**< */,
704971bb1a5SLionel Sambuc                                     xcb_shape_kind_t  source_kind  /**< */);
705971bb1a5SLionel Sambuc 
706971bb1a5SLionel Sambuc xcb_rectangle_t *
707971bb1a5SLionel Sambuc xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R  /**< */);
708971bb1a5SLionel Sambuc 
709971bb1a5SLionel Sambuc int
710971bb1a5SLionel Sambuc xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R  /**< */);
711971bb1a5SLionel Sambuc 
712971bb1a5SLionel Sambuc xcb_rectangle_iterator_t
713971bb1a5SLionel Sambuc xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R  /**< */);
714971bb1a5SLionel Sambuc 
715971bb1a5SLionel Sambuc /**
716971bb1a5SLionel Sambuc  * Return the reply
717971bb1a5SLionel Sambuc  * @param c      The connection
718971bb1a5SLionel Sambuc  * @param cookie The cookie
719971bb1a5SLionel Sambuc  * @param e      The xcb_generic_error_t supplied
720971bb1a5SLionel Sambuc  *
721971bb1a5SLionel Sambuc  * Returns the reply of the request asked by
722971bb1a5SLionel Sambuc  *
723971bb1a5SLionel Sambuc  * The parameter @p e supplied to this function must be NULL if
724971bb1a5SLionel Sambuc  * xcb_shape_get_rectangles_unchecked(). is used.
725971bb1a5SLionel Sambuc  * Otherwise, it stores the error if any.
726971bb1a5SLionel Sambuc  *
727971bb1a5SLionel Sambuc  * The returned value must be freed by the caller using free().
728971bb1a5SLionel Sambuc  */
729971bb1a5SLionel Sambuc xcb_shape_get_rectangles_reply_t *
730971bb1a5SLionel Sambuc xcb_shape_get_rectangles_reply (xcb_connection_t                   *c  /**< */,
731971bb1a5SLionel Sambuc                                 xcb_shape_get_rectangles_cookie_t   cookie  /**< */,
732971bb1a5SLionel Sambuc                                 xcb_generic_error_t               **e  /**< */);
733971bb1a5SLionel Sambuc 
734971bb1a5SLionel Sambuc 
735971bb1a5SLionel Sambuc #ifdef __cplusplus
736971bb1a5SLionel Sambuc }
737971bb1a5SLionel Sambuc #endif
738971bb1a5SLionel Sambuc 
739971bb1a5SLionel Sambuc #endif
740971bb1a5SLionel Sambuc 
741971bb1a5SLionel Sambuc /**
742971bb1a5SLionel Sambuc  * @}
743971bb1a5SLionel Sambuc  */
744