XCB 1.13

damage.h
1 /*
2 * This file generated automatically from damage.xml by c_client.py.
3 * Edit at your peril.
4 */
5
12 #ifndef __DAMAGE_H
13 #define __DAMAGE_H
14
15 #include "xcb.h"
16 #include "xproto.h"
17 #include "xfixes.h"
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 #define XCB_DAMAGE_MAJOR_VERSION 1
24 #define XCB_DAMAGE_MINOR_VERSION 1
25
26 extern xcb_extension_t xcb_damage_id;
27
28 typedef uint32_t xcb_damage_damage_t;
29
33 typedef struct xcb_damage_damage_iterator_t {
34 xcb_damage_damage_t *data;
35 int rem;
36 int index;
37 } xcb_damage_damage_iterator_t;
38
39 typedef enum xcb_damage_report_level_t {
40 XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES = 0,
41 XCB_DAMAGE_REPORT_LEVEL_DELTA_RECTANGLES = 1,
42 XCB_DAMAGE_REPORT_LEVEL_BOUNDING_BOX = 2,
43 XCB_DAMAGE_REPORT_LEVEL_NON_EMPTY = 3
44 } xcb_damage_report_level_t;
45
47 #define XCB_DAMAGE_BAD_DAMAGE 0
48
52 typedef struct xcb_damage_bad_damage_error_t {
53 uint8_t response_type;
54 uint8_t error_code;
55 uint16_t sequence;
56 } xcb_damage_bad_damage_error_t;
57
61 typedef struct xcb_damage_query_version_cookie_t {
62 unsigned int sequence;
63 } xcb_damage_query_version_cookie_t;
64
66 #define XCB_DAMAGE_QUERY_VERSION 0
67
71 typedef struct xcb_damage_query_version_request_t {
72 uint8_t major_opcode;
73 uint8_t minor_opcode;
74 uint16_t length;
75 uint32_t client_major_version;
76 uint32_t client_minor_version;
77 } xcb_damage_query_version_request_t;
78
82 typedef struct xcb_damage_query_version_reply_t {
83 uint8_t response_type;
84 uint8_t pad0;
85 uint16_t sequence;
86 uint32_t length;
87 uint32_t major_version;
88 uint32_t minor_version;
89 uint8_t pad1[16];
90 } xcb_damage_query_version_reply_t;
91
93 #define XCB_DAMAGE_CREATE 1
94
98 typedef struct xcb_damage_create_request_t {
99 uint8_t major_opcode;
100 uint8_t minor_opcode;
101 uint16_t length;
102 xcb_damage_damage_t damage;
103 xcb_drawable_t drawable;
104 uint8_t level;
105 uint8_t pad0[3];
106 } xcb_damage_create_request_t;
107
109 #define XCB_DAMAGE_DESTROY 2
110
114 typedef struct xcb_damage_destroy_request_t {
115 uint8_t major_opcode;
116 uint8_t minor_opcode;
117 uint16_t length;
118 xcb_damage_damage_t damage;
119 } xcb_damage_destroy_request_t;
120
122 #define XCB_DAMAGE_SUBTRACT 3
123
127 typedef struct xcb_damage_subtract_request_t {
128 uint8_t major_opcode;
129 uint8_t minor_opcode;
130 uint16_t length;
131 xcb_damage_damage_t damage;
132 xcb_xfixes_region_t repair;
133 xcb_xfixes_region_t parts;
134 } xcb_damage_subtract_request_t;
135
137 #define XCB_DAMAGE_ADD 4
138
142 typedef struct xcb_damage_add_request_t {
143 uint8_t major_opcode;
144 uint8_t minor_opcode;
145 uint16_t length;
146 xcb_drawable_t drawable;
147 xcb_xfixes_region_t region;
148 } xcb_damage_add_request_t;
149
151 #define XCB_DAMAGE_NOTIFY 0
152
156 typedef struct xcb_damage_notify_event_t {
157 uint8_t response_type;
158 uint8_t level;
159 uint16_t sequence;
160 xcb_drawable_t drawable;
161 xcb_damage_damage_t damage;
162 xcb_timestamp_t timestamp;
163 xcb_rectangle_t area;
164 xcb_rectangle_t geometry;
165 } xcb_damage_notify_event_t;
166
175 void
176 xcb_damage_damage_next (xcb_damage_damage_iterator_t *i);
177
187 xcb_generic_iterator_t
188 xcb_damage_damage_end (xcb_damage_damage_iterator_t i);
189
198 xcb_damage_query_version_cookie_t
199 xcb_damage_query_version (xcb_connection_t *c,
200 uint32_t client_major_version,
201 uint32_t client_minor_version);
202
214 xcb_damage_query_version_cookie_t
215 xcb_damage_query_version_unchecked (xcb_connection_t *c,
216 uint32_t client_major_version,
217 uint32_t client_minor_version);
218
233 xcb_damage_query_version_reply_t *
234 xcb_damage_query_version_reply (xcb_connection_t *c,
235 xcb_damage_query_version_cookie_t cookie ,
236 xcb_generic_error_t **e);
237
249 xcb_void_cookie_t
250 xcb_damage_create_checked (xcb_connection_t *c,
251 xcb_damage_damage_t damage,
252 xcb_drawable_t drawable,
253 uint8_t level);
254
263 xcb_void_cookie_t
264 xcb_damage_create (xcb_connection_t *c,
265 xcb_damage_damage_t damage,
266 xcb_drawable_t drawable,
267 uint8_t level);
268
280 xcb_void_cookie_t
281 xcb_damage_destroy_checked (xcb_connection_t *c,
282 xcb_damage_damage_t damage);
283
292 xcb_void_cookie_t
293 xcb_damage_destroy (xcb_connection_t *c,
294 xcb_damage_damage_t damage);
295
307 xcb_void_cookie_t
308 xcb_damage_subtract_checked (xcb_connection_t *c,
309 xcb_damage_damage_t damage,
310 xcb_xfixes_region_t repair,
311 xcb_xfixes_region_t parts);
312
321 xcb_void_cookie_t
322 xcb_damage_subtract (xcb_connection_t *c,
323 xcb_damage_damage_t damage,
324 xcb_xfixes_region_t repair,
325 xcb_xfixes_region_t parts);
326
338 xcb_void_cookie_t
339 xcb_damage_add_checked (xcb_connection_t *c,
340 xcb_drawable_t drawable,
341 xcb_xfixes_region_t region);
342
351 xcb_void_cookie_t
352 xcb_damage_add (xcb_connection_t *c,
353 xcb_drawable_t drawable,
354 xcb_xfixes_region_t region);
355
356
357 #ifdef __cplusplus
358 }
359 #endif
360
361 #endif
362
xcb_damage_notify_event_t
xcb_damage_notify_event_t
Definition: damage.h:156
xcb_generic_error_t
Generic error.
Definition: xcb.h:182
xcb_damage_destroy_checked
xcb_void_cookie_t xcb_damage_destroy_checked(xcb_connection_t *c, xcb_damage_damage_t damage)
Definition: damage.c:167
xcb_damage_bad_damage_error_t
xcb_damage_bad_damage_error_t
Definition: damage.h:52
xcb_damage_subtract
xcb_void_cookie_t xcb_damage_subtract(xcb_connection_t *c, xcb_damage_damage_t damage, xcb_xfixes_region_t repair, xcb_xfixes_region_t parts)
Definition: damage.c:249
xcb_extension_t
Definition: xcbext.h:39
xcb_damage_add_checked
xcb_void_cookie_t xcb_damage_add_checked(xcb_connection_t *c, xcb_drawable_t drawable, xcb_xfixes_region_t region)
Definition: damage.c:279
xcb_damage_query_version_cookie_t
struct xcb_damage_query_version_cookie_t xcb_damage_query_version_cookie_t
xcb_damage_query_version_cookie_t
xcb_damage_query_version
xcb_damage_query_version_cookie_t xcb_damage_query_version(xcb_connection_t *c, uint32_t client_major_version, uint32_t client_minor_version)
Definition: damage.c:41
xcb_generic_iterator_t
Generic iterator.
Definition: xcb.h:114
xcb_damage_query_version_cookie_t
xcb_damage_query_version_cookie_t
Definition: damage.h:61
xcb_damage_query_version_unchecked
xcb_damage_query_version_cookie_t xcb_damage_query_version_unchecked(xcb_connection_t *c, uint32_t client_major_version, uint32_t client_minor_version)
Definition: damage.c:69
xcb_damage_damage_end
xcb_generic_iterator_t xcb_damage_damage_end(xcb_damage_damage_iterator_t i)
Definition: damage.c:31
xcb_damage_create_request_t
struct xcb_damage_create_request_t xcb_damage_create_request_t
xcb_damage_create_request_t
xcb_damage_damage_next
void xcb_damage_damage_next(xcb_damage_damage_iterator_t *i)
Definition: damage.c:23
xcb_damage_add
xcb_void_cookie_t xcb_damage_add(xcb_connection_t *c, xcb_drawable_t drawable, xcb_xfixes_region_t region)
Definition: damage.c:307
xcb_damage_query_version_reply_t
struct xcb_damage_query_version_reply_t xcb_damage_query_version_reply_t
xcb_damage_query_version_reply_t
xcb_damage_damage_iterator_t
xcb_damage_damage_iterator_t
Definition: damage.h:33
xcb_damage_query_version_reply_t
xcb_damage_query_version_reply_t
Definition: damage.h:82
xcb_damage_subtract_checked
xcb_void_cookie_t xcb_damage_subtract_checked(xcb_connection_t *c, xcb_damage_damage_t damage, xcb_xfixes_region_t repair, xcb_xfixes_region_t parts)
Definition: damage.c:219
xcb_damage_notify_event_t
struct xcb_damage_notify_event_t xcb_damage_notify_event_t
xcb_damage_notify_event_t
xcb_damage_damage_iterator_t
struct xcb_damage_damage_iterator_t xcb_damage_damage_iterator_t
xcb_damage_damage_iterator_t
xcb_damage_query_version_request_t
struct xcb_damage_query_version_request_t xcb_damage_query_version_request_t
xcb_damage_query_version_request_t
xcb_damage_subtract_request_t
struct xcb_damage_subtract_request_t xcb_damage_subtract_request_t
xcb_damage_subtract_request_t
xcb_damage_query_version_request_t
xcb_damage_query_version_request_t
Definition: damage.h:71
xcb_damage_add_request_t
xcb_damage_add_request_t
Definition: damage.h:142
xcb_damage_destroy_request_t
xcb_damage_destroy_request_t
Definition: damage.h:114
xcb_rectangle_t
xcb_rectangle_t
Definition: xproto.h:234
xcb_damage_add_request_t
struct xcb_damage_add_request_t xcb_damage_add_request_t
xcb_damage_add_request_t
xcb_damage_destroy
xcb_void_cookie_t xcb_damage_destroy(xcb_connection_t *c, xcb_damage_damage_t damage)
Definition: damage.c:193
xcb_damage_subtract_request_t
xcb_damage_subtract_request_t
Definition: damage.h:127
xcb_damage_create
xcb_void_cookie_t xcb_damage_create(xcb_connection_t *c, xcb_damage_damage_t damage, xcb_drawable_t drawable, uint8_t level)
Definition: damage.c:136
xcb_damage_destroy_request_t
struct xcb_damage_destroy_request_t xcb_damage_destroy_request_t
xcb_damage_destroy_request_t
xcb_damage_bad_damage_error_t
struct xcb_damage_bad_damage_error_t xcb_damage_bad_damage_error_t
xcb_damage_bad_damage_error_t
xcb_damage_create_checked
xcb_void_cookie_t xcb_damage_create_checked(xcb_connection_t *c, xcb_damage_damage_t damage, xcb_drawable_t drawable, uint8_t level)
Definition: damage.c:105
xcb.h
xcb_damage_create_request_t
xcb_damage_create_request_t
Definition: damage.h:98
xcb_connection_t
Definition: xcbint.h:195
xcb_damage_query_version_reply
xcb_damage_query_version_reply_t * xcb_damage_query_version_reply(xcb_connection_t *c, xcb_damage_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: damage.c:97
xcb_void_cookie_t
Generic cookie.
Definition: xcb.h:199