XCB  1.12
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 
34  xcb_damage_damage_t *data;
35  int rem;
36  int index;
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 
53  uint8_t response_type;
54  uint8_t error_code;
55  uint16_t sequence;
57 
62  unsigned int sequence;
64 
66 #define XCB_DAMAGE_QUERY_VERSION 0
67 
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;
78 
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];
91 
93 #define XCB_DAMAGE_CREATE 1
94 
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];
107 
109 #define XCB_DAMAGE_DESTROY 2
110 
115  uint8_t major_opcode;
116  uint8_t minor_opcode;
117  uint16_t length;
118  xcb_damage_damage_t damage;
120 
122 #define XCB_DAMAGE_SUBTRACT 3
123 
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;
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;
149 
151 #define XCB_DAMAGE_NOTIFY 0
152 
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;
166 
175 void
177 
189 
200  uint32_t client_major_version,
201  uint32_t client_minor_version);
202 
216  uint32_t client_major_version,
217  uint32_t client_minor_version);
218 
236  xcb_generic_error_t **e);
237 
251  xcb_damage_damage_t damage,
252  xcb_drawable_t drawable,
253  uint8_t level);
254 
265  xcb_damage_damage_t damage,
266  xcb_drawable_t drawable,
267  uint8_t level);
268 
282  xcb_damage_damage_t damage);
283 
294  xcb_damage_damage_t damage);
295 
309  xcb_damage_damage_t damage,
310  xcb_xfixes_region_t repair,
311  xcb_xfixes_region_t parts);
312 
323  xcb_damage_damage_t damage,
324  xcb_xfixes_region_t repair,
325  xcb_xfixes_region_t parts);
326 
340  xcb_drawable_t drawable,
341  xcb_xfixes_region_t region);
342 
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
Definition: damage.h:156
Generic error.
Definition: xcb.h:170
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
Definition: damage.h:52
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
Definition: xcbext.h:39
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
struct xcb_damage_query_version_cookie_t xcb_damage_query_version_cookie_t
xcb_damage_query_version_cookie_t
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
Generic iterator.
Definition: xcb.h:114
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_generic_iterator_t xcb_damage_damage_end(xcb_damage_damage_iterator_t i)
Definition: damage.c:31
struct xcb_damage_create_request_t xcb_damage_create_request_t
xcb_damage_create_request_t
void xcb_damage_damage_next(xcb_damage_damage_iterator_t *i)
Definition: damage.c:23
xcb_void_cookie_t xcb_damage_add(xcb_connection_t *c, xcb_drawable_t drawable, xcb_xfixes_region_t region)
Definition: damage.c:307
struct xcb_damage_query_version_reply_t xcb_damage_query_version_reply_t
xcb_damage_query_version_reply_t
xcb_damage_damage_iterator_t
Definition: damage.h:33
xcb_damage_query_version_reply_t
Definition: damage.h:82
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
struct xcb_damage_notify_event_t xcb_damage_notify_event_t
xcb_damage_notify_event_t
struct xcb_damage_damage_iterator_t xcb_damage_damage_iterator_t
xcb_damage_damage_iterator_t
struct xcb_damage_query_version_request_t xcb_damage_query_version_request_t
xcb_damage_query_version_request_t
struct xcb_damage_subtract_request_t xcb_damage_subtract_request_t
xcb_damage_subtract_request_t
xcb_damage_query_version_request_t
Definition: damage.h:71
xcb_damage_add_request_t
Definition: damage.h:142
xcb_damage_destroy_request_t
Definition: damage.h:114
xcb_rectangle_t
Definition: xproto.h:234
struct xcb_damage_add_request_t xcb_damage_add_request_t
xcb_damage_add_request_t
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
Definition: damage.h:127
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
struct xcb_damage_destroy_request_t xcb_damage_destroy_request_t
xcb_damage_destroy_request_t
struct xcb_damage_bad_damage_error_t xcb_damage_bad_damage_error_t
xcb_damage_bad_damage_error_t
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_damage_create_request_t
Definition: damage.h:98
Definition: xcbint.h:198
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