XCB: damage.h Source File

XCB 1.15

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
20extern "C" {
21#endif
22
23#define XCB_DAMAGE_MAJOR_VERSION 1
24#define XCB_DAMAGE_MINOR_VERSION 1
25
26extern xcb_extension_t xcb_damage_id;
27
28typedef 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
39typedef 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
178void
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
201 xcb_damage_query_version_cookie_t
202 xcb_damage_query_version (xcb_connection_t *c,
203 uint32_t client_major_version,
204 uint32_t client_minor_version);
205
217 xcb_damage_query_version_cookie_t
218 xcb_damage_query_version_unchecked (xcb_connection_t *c,
219 uint32_t client_major_version,
220 uint32_t client_minor_version);
221
236 xcb_damage_query_version_reply_t *
237 xcb_damage_query_version_reply (xcb_connection_t *c,
238 xcb_damage_query_version_cookie_t cookie ,
239 xcb_generic_error_t **e);
240
252 xcb_void_cookie_t
253 xcb_damage_create_checked (xcb_connection_t *c,
254 xcb_damage_damage_t damage,
255 xcb_drawable_t drawable,
256 uint8_t level);
257
266 xcb_void_cookie_t
267 xcb_damage_create (xcb_connection_t *c,
268 xcb_damage_damage_t damage,
269 xcb_drawable_t drawable,
270 uint8_t level);
271
283 xcb_void_cookie_t
284 xcb_damage_destroy_checked (xcb_connection_t *c,
285 xcb_damage_damage_t damage);
286
295 xcb_void_cookie_t
296 xcb_damage_destroy (xcb_connection_t *c,
297 xcb_damage_damage_t damage);
298
310 xcb_void_cookie_t
311 xcb_damage_subtract_checked (xcb_connection_t *c,
312 xcb_damage_damage_t damage,
313 xcb_xfixes_region_t repair,
314 xcb_xfixes_region_t parts);
315
324 xcb_void_cookie_t
325 xcb_damage_subtract (xcb_connection_t *c,
326 xcb_damage_damage_t damage,
327 xcb_xfixes_region_t repair,
328 xcb_xfixes_region_t parts);
329
341 xcb_void_cookie_t
342 xcb_damage_add_checked (xcb_connection_t *c,
343 xcb_drawable_t drawable,
344 xcb_xfixes_region_t region);
345
354 xcb_void_cookie_t
355 xcb_damage_add (xcb_connection_t *c,
356 xcb_drawable_t drawable,
357 xcb_xfixes_region_t region);
358
359
360#ifdef __cplusplus
361}
362#endif
363
364#endif
365
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_subtract_request_t
struct xcb_damage_subtract_request_t xcb_damage_subtract_request_t
xcb_damage_subtract_request_t
xcb_damage_destroy_request_t
struct xcb_damage_destroy_request_t xcb_damage_destroy_request_t
xcb_damage_destroy_request_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_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_add_request_t
struct xcb_damage_add_request_t xcb_damage_add_request_t
xcb_damage_add_request_t
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_notify_event_t
struct xcb_damage_notify_event_t xcb_damage_notify_event_t
xcb_damage_notify_event_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_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
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_create_request_t
struct xcb_damage_create_request_t xcb_damage_create_request_t
xcb_damage_create_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_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_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_damage_damage_end
xcb_generic_iterator_t xcb_damage_damage_end(xcb_damage_damage_iterator_t i)
Definition: damage.c:31
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_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_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_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_destroy_checked
xcb_void_cookie_t xcb_damage_destroy_checked(xcb_connection_t *c, xcb_damage_damage_t damage)
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