XCB 1.16

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 uint32_t bad_value;
57 uint16_t minor_opcode;
58 uint8_t major_opcode;
59} xcb_damage_bad_damage_error_t;
60
64 typedef struct xcb_damage_query_version_cookie_t {
65 unsigned int sequence;
66} xcb_damage_query_version_cookie_t;
67
69#define XCB_DAMAGE_QUERY_VERSION 0
70
74 typedef struct xcb_damage_query_version_request_t {
75 uint8_t major_opcode;
76 uint8_t minor_opcode;
77 uint16_t length;
78 uint32_t client_major_version;
79 uint32_t client_minor_version;
80} xcb_damage_query_version_request_t;
81
85 typedef struct xcb_damage_query_version_reply_t {
86 uint8_t response_type;
87 uint8_t pad0;
88 uint16_t sequence;
89 uint32_t length;
90 uint32_t major_version;
91 uint32_t minor_version;
92 uint8_t pad1[16];
93} xcb_damage_query_version_reply_t;
94
96#define XCB_DAMAGE_CREATE 1
97
101 typedef struct xcb_damage_create_request_t {
102 uint8_t major_opcode;
103 uint8_t minor_opcode;
104 uint16_t length;
105 xcb_damage_damage_t damage;
106 xcb_drawable_t drawable;
107 uint8_t level;
108 uint8_t pad0[3];
109} xcb_damage_create_request_t;
110
112#define XCB_DAMAGE_DESTROY 2
113
117 typedef struct xcb_damage_destroy_request_t {
118 uint8_t major_opcode;
119 uint8_t minor_opcode;
120 uint16_t length;
121 xcb_damage_damage_t damage;
122} xcb_damage_destroy_request_t;
123
125#define XCB_DAMAGE_SUBTRACT 3
126
130 typedef struct xcb_damage_subtract_request_t {
131 uint8_t major_opcode;
132 uint8_t minor_opcode;
133 uint16_t length;
134 xcb_damage_damage_t damage;
135 xcb_xfixes_region_t repair;
136 xcb_xfixes_region_t parts;
137} xcb_damage_subtract_request_t;
138
140#define XCB_DAMAGE_ADD 4
141
145 typedef struct xcb_damage_add_request_t {
146 uint8_t major_opcode;
147 uint8_t minor_opcode;
148 uint16_t length;
149 xcb_drawable_t drawable;
150 xcb_xfixes_region_t region;
151} xcb_damage_add_request_t;
152
154#define XCB_DAMAGE_NOTIFY 0
155
159 typedef struct xcb_damage_notify_event_t {
160 uint8_t response_type;
161 uint8_t level;
162 uint16_t sequence;
163 xcb_drawable_t drawable;
164 xcb_damage_damage_t damage;
165 xcb_timestamp_t timestamp;
166 xcb_rectangle_t area;
167 xcb_rectangle_t geometry;
168} xcb_damage_notify_event_t;
169
178 void
179 xcb_damage_damage_next (xcb_damage_damage_iterator_t *i);
180
190 xcb_generic_iterator_t
191 xcb_damage_damage_end (xcb_damage_damage_iterator_t i);
192
206 xcb_damage_query_version_cookie_t
207 xcb_damage_query_version (xcb_connection_t *c,
208 uint32_t client_major_version,
209 uint32_t client_minor_version);
210
227 xcb_damage_query_version_cookie_t
228 xcb_damage_query_version_unchecked (xcb_connection_t *c,
229 uint32_t client_major_version,
230 uint32_t client_minor_version);
231
246 xcb_damage_query_version_reply_t *
247 xcb_damage_query_version_reply (xcb_connection_t *c,
248 xcb_damage_query_version_cookie_t cookie ,
249 xcb_generic_error_t **e);
250
291 xcb_void_cookie_t
292 xcb_damage_create_checked (xcb_connection_t *c,
293 xcb_damage_damage_t damage,
294 xcb_drawable_t drawable,
295 uint8_t level);
296
334 xcb_void_cookie_t
335 xcb_damage_create (xcb_connection_t *c,
336 xcb_damage_damage_t damage,
337 xcb_drawable_t drawable,
338 uint8_t level);
339
354 xcb_void_cookie_t
355 xcb_damage_destroy_checked (xcb_connection_t *c,
356 xcb_damage_damage_t damage);
357
369 xcb_void_cookie_t
370 xcb_damage_destroy (xcb_connection_t *c,
371 xcb_damage_damage_t damage);
372
388 xcb_void_cookie_t
389 xcb_damage_subtract_checked (xcb_connection_t *c,
390 xcb_damage_damage_t damage,
391 xcb_xfixes_region_t repair,
392 xcb_xfixes_region_t parts);
393
406 xcb_void_cookie_t
407 xcb_damage_subtract (xcb_connection_t *c,
408 xcb_damage_damage_t damage,
409 xcb_xfixes_region_t repair,
410 xcb_xfixes_region_t parts);
411
426 xcb_void_cookie_t
427 xcb_damage_add_checked (xcb_connection_t *c,
428 xcb_drawable_t drawable,
429 xcb_xfixes_region_t region);
430
442 xcb_void_cookie_t
443 xcb_damage_add (xcb_connection_t *c,
444 xcb_drawable_t drawable,
445 xcb_xfixes_region_t region);
446
447
448#ifdef __cplusplus
449}
450#endif
451
452#endif
453
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)
Creates a Damage object to monitor changes to a drawable.
Definition damage.c:136
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)
Negotiate the version of the DAMAGE extension.
Definition damage.c:41
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)
Add a region to a previously created Damage object.
Definition damage.c:279
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)
Creates a Damage object to monitor changes to a drawable.
Definition damage.c:105
xcb_damage_add
xcb_void_cookie_t xcb_damage_add(xcb_connection_t *c, xcb_drawable_t drawable, xcb_xfixes_region_t region)
Add a region to a previously created Damage object.
Definition damage.c:307
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_damage_damage_next
void xcb_damage_damage_next(xcb_damage_damage_iterator_t *i)
Definition damage.c:23
xcb_damage_destroy
xcb_void_cookie_t xcb_damage_destroy(xcb_connection_t *c, xcb_damage_damage_t damage)
Destroys a previously created Damage object.
Definition damage.c:193
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)
Remove regions from a previously created Damage object.
Definition damage.c:219
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)
Remove regions from a previously created Damage object.
Definition damage.c:249
xcb_damage_damage_end
xcb_generic_iterator_t xcb_damage_damage_end(xcb_damage_damage_iterator_t i)
Definition damage.c:31
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)
Negotiate the version of the DAMAGE extension.
Definition damage.c:69
xcb_damage_destroy_checked
xcb_void_cookie_t xcb_damage_destroy_checked(xcb_connection_t *c, xcb_damage_damage_t damage)
Destroys a previously created Damage object.
Definition damage.c:167
xcb_connection_t
Definition xcbint.h:208
xcb_damage_add_request_t
xcb_damage_add_request_t
Definition damage.h:145
xcb_damage_bad_damage_error_t
xcb_damage_bad_damage_error_t
Definition damage.h:52
xcb_damage_create_request_t
xcb_damage_create_request_t
Definition damage.h:101
xcb_damage_damage_iterator_t
xcb_damage_damage_iterator_t
Definition damage.h:33
xcb_damage_destroy_request_t
xcb_damage_destroy_request_t
Definition damage.h:117
xcb_damage_notify_event_t
xcb_damage_notify_event_t
Definition damage.h:159
xcb_damage_query_version_cookie_t
xcb_damage_query_version_cookie_t
Definition damage.h:64
xcb_damage_query_version_reply_t
xcb_damage_query_version_reply_t
Definition damage.h:85
xcb_damage_query_version_request_t
xcb_damage_query_version_request_t
Definition damage.h:74
xcb_damage_subtract_request_t
xcb_damage_subtract_request_t
Definition damage.h:130
xcb_extension_t
Definition xcbext.h:39
xcb_generic_error_t
Generic error.
Definition xcb.h:186
xcb_generic_iterator_t
Generic iterator.
Definition xcb.h:118
xcb_rectangle_t
xcb_rectangle_t
Definition xproto.h:234
xcb_void_cookie_t
Generic cookie.
Definition xcb.h:203
xcb.h