XCB 1.12

present.h
1 /*
2 * This file generated automatically from present.xml by c_client.py.
3 * Edit at your peril.
4 */
5
12 #ifndef __PRESENT_H
13 #define __PRESENT_H
14
15 #include "xcb.h"
16 #include "xproto.h"
17 #include "randr.h"
18 #include "xfixes.h"
19 #include "sync.h"
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 #define XCB_PRESENT_MAJOR_VERSION 1
26 #define XCB_PRESENT_MINOR_VERSION 0
27
28 extern xcb_extension_t xcb_present_id;
29
30 typedef enum xcb_present_event_enum_t {
31 XCB_PRESENT_EVENT_CONFIGURE_NOTIFY = 0,
32 XCB_PRESENT_EVENT_COMPLETE_NOTIFY = 1,
33 XCB_PRESENT_EVENT_IDLE_NOTIFY = 2,
34 XCB_PRESENT_EVENT_REDIRECT_NOTIFY = 3
35 } xcb_present_event_enum_t;
36
37 typedef enum xcb_present_event_mask_t {
38 XCB_PRESENT_EVENT_MASK_NO_EVENT = 0,
39 XCB_PRESENT_EVENT_MASK_CONFIGURE_NOTIFY = 1,
40 XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY = 2,
41 XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY = 4,
42 XCB_PRESENT_EVENT_MASK_REDIRECT_NOTIFY = 8
43 } xcb_present_event_mask_t;
44
45 typedef enum xcb_present_option_t {
46 XCB_PRESENT_OPTION_NONE = 0,
47 XCB_PRESENT_OPTION_ASYNC = 1,
48 XCB_PRESENT_OPTION_COPY = 2,
49 XCB_PRESENT_OPTION_UST = 4
50 } xcb_present_option_t;
51
52 typedef enum xcb_present_capability_t {
53 XCB_PRESENT_CAPABILITY_NONE = 0,
54 XCB_PRESENT_CAPABILITY_ASYNC = 1,
55 XCB_PRESENT_CAPABILITY_FENCE = 2,
56 XCB_PRESENT_CAPABILITY_UST = 4
57 } xcb_present_capability_t;
58
59 typedef enum xcb_present_complete_kind_t {
60 XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0,
61 XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1
62 } xcb_present_complete_kind_t;
63
64 typedef enum xcb_present_complete_mode_t {
65 XCB_PRESENT_COMPLETE_MODE_COPY = 0,
66 XCB_PRESENT_COMPLETE_MODE_FLIP = 1,
67 XCB_PRESENT_COMPLETE_MODE_SKIP = 2
68 } xcb_present_complete_mode_t;
69
73 typedef struct xcb_present_notify_t {
74 xcb_window_t window;
75 uint32_t serial;
76 } xcb_present_notify_t;
77
81 typedef struct xcb_present_notify_iterator_t {
82 xcb_present_notify_t *data;
83 int rem;
84 int index;
85 } xcb_present_notify_iterator_t;
86
90 typedef struct xcb_present_query_version_cookie_t {
91 unsigned int sequence;
92 } xcb_present_query_version_cookie_t;
93
95 #define XCB_PRESENT_QUERY_VERSION 0
96
100 typedef struct xcb_present_query_version_request_t {
101 uint8_t major_opcode;
102 uint8_t minor_opcode;
103 uint16_t length;
104 uint32_t major_version;
105 uint32_t minor_version;
106 } xcb_present_query_version_request_t;
107
111 typedef struct xcb_present_query_version_reply_t {
112 uint8_t response_type;
113 uint8_t pad0;
114 uint16_t sequence;
115 uint32_t length;
116 uint32_t major_version;
117 uint32_t minor_version;
118 } xcb_present_query_version_reply_t;
119
121 #define XCB_PRESENT_PIXMAP 1
122
126 typedef struct xcb_present_pixmap_request_t {
127 uint8_t major_opcode;
128 uint8_t minor_opcode;
129 uint16_t length;
130 xcb_window_t window;
131 xcb_pixmap_t pixmap;
132 uint32_t serial;
133 xcb_xfixes_region_t valid;
134 xcb_xfixes_region_t update;
135 int16_t x_off;
136 int16_t y_off;
137 xcb_randr_crtc_t target_crtc;
138 xcb_sync_fence_t wait_fence;
139 xcb_sync_fence_t idle_fence;
140 uint32_t options;
141 uint8_t pad0[4];
142 uint64_t target_msc;
143 uint64_t divisor;
144 uint64_t remainder;
145 } xcb_present_pixmap_request_t;
146
148 #define XCB_PRESENT_NOTIFY_MSC 2
149
153 typedef struct xcb_present_notify_msc_request_t {
154 uint8_t major_opcode;
155 uint8_t minor_opcode;
156 uint16_t length;
157 xcb_window_t window;
158 uint32_t serial;
159 uint8_t pad0[4];
160 uint64_t target_msc;
161 uint64_t divisor;
162 uint64_t remainder;
163 } xcb_present_notify_msc_request_t;
164
165 typedef uint32_t xcb_present_event_t;
166
170 typedef struct xcb_present_event_iterator_t {
171 xcb_present_event_t *data;
172 int rem;
173 int index;
174 } xcb_present_event_iterator_t;
175
177 #define XCB_PRESENT_SELECT_INPUT 3
178
182 typedef struct xcb_present_select_input_request_t {
183 uint8_t major_opcode;
184 uint8_t minor_opcode;
185 uint16_t length;
186 xcb_present_event_t eid;
187 xcb_window_t window;
188 uint32_t event_mask;
189 } xcb_present_select_input_request_t;
190
194 typedef struct xcb_present_query_capabilities_cookie_t {
195 unsigned int sequence;
196 } xcb_present_query_capabilities_cookie_t;
197
199 #define XCB_PRESENT_QUERY_CAPABILITIES 4
200
204 typedef struct xcb_present_query_capabilities_request_t {
205 uint8_t major_opcode;
206 uint8_t minor_opcode;
207 uint16_t length;
208 uint32_t target;
209 } xcb_present_query_capabilities_request_t;
210
214 typedef struct xcb_present_query_capabilities_reply_t {
215 uint8_t response_type;
216 uint8_t pad0;
217 uint16_t sequence;
218 uint32_t length;
219 uint32_t capabilities;
220 } xcb_present_query_capabilities_reply_t;
221
223 #define XCB_PRESENT_GENERIC 0
224
228 typedef struct xcb_present_generic_event_t {
229 uint8_t response_type;
230 uint8_t extension;
231 uint16_t sequence;
232 uint32_t length;
233 uint16_t evtype;
234 uint8_t pad0[2];
235 xcb_present_event_t event;
236 } xcb_present_generic_event_t;
237
239 #define XCB_PRESENT_CONFIGURE_NOTIFY 0
240
244 typedef struct xcb_present_configure_notify_event_t {
245 uint8_t response_type;
246 uint8_t extension;
247 uint16_t sequence;
248 uint32_t length;
249 uint16_t event_type;
250 uint8_t pad0[2];
251 xcb_present_event_t event;
252 xcb_window_t window;
253 int16_t x;
254 int16_t y;
255 uint16_t width;
256 uint16_t height;
257 int16_t off_x;
258 int16_t off_y;
259 uint32_t full_sequence;
260 uint16_t pixmap_width;
261 uint16_t pixmap_height;
262 uint32_t pixmap_flags;
263 } xcb_present_configure_notify_event_t;
264
266 #define XCB_PRESENT_COMPLETE_NOTIFY 1
267
271 typedef struct xcb_present_complete_notify_event_t {
272 uint8_t response_type;
273 uint8_t extension;
274 uint16_t sequence;
275 uint32_t length;
276 uint16_t event_type;
277 uint8_t kind;
278 uint8_t mode;
279 xcb_present_event_t event;
280 xcb_window_t window;
281 uint32_t serial;
282 uint64_t ust;
283 uint32_t full_sequence;
284 uint64_t msc;
285 } XCB_PACKED xcb_present_complete_notify_event_t;
286
288 #define XCB_PRESENT_IDLE_NOTIFY 2
289
293 typedef struct xcb_present_idle_notify_event_t {
294 uint8_t response_type;
295 uint8_t extension;
296 uint16_t sequence;
297 uint32_t length;
298 uint16_t event_type;
299 uint8_t pad0[2];
300 xcb_present_event_t event;
301 xcb_window_t window;
302 uint32_t serial;
303 xcb_pixmap_t pixmap;
304 xcb_sync_fence_t idle_fence;
305 uint32_t full_sequence;
306 } xcb_present_idle_notify_event_t;
307
309 #define XCB_PRESENT_REDIRECT_NOTIFY 3
310
314 typedef struct xcb_present_redirect_notify_event_t {
315 uint8_t response_type;
316 uint8_t extension;
317 uint16_t sequence;
318 uint32_t length;
319 uint16_t event_type;
320 uint8_t update_window;
321 uint8_t pad0;
322 xcb_present_event_t event;
323 xcb_window_t event_window;
324 xcb_window_t window;
325 xcb_pixmap_t pixmap;
326 uint32_t serial;
327 uint32_t full_sequence;
328 xcb_xfixes_region_t valid_region;
329 xcb_xfixes_region_t update_region;
330 xcb_rectangle_t valid_rect;
331 xcb_rectangle_t update_rect;
332 int16_t x_off;
333 int16_t y_off;
334 xcb_randr_crtc_t target_crtc;
335 xcb_sync_fence_t wait_fence;
336 xcb_sync_fence_t idle_fence;
337 uint32_t options;
338 uint8_t pad1[4];
339 uint64_t target_msc;
340 uint64_t divisor;
341 uint64_t remainder;
342 } XCB_PACKED xcb_present_redirect_notify_event_t;
343
352 void
353 xcb_present_notify_next (xcb_present_notify_iterator_t *i);
354
364 xcb_generic_iterator_t
365 xcb_present_notify_end (xcb_present_notify_iterator_t i);
366
375 xcb_present_query_version_cookie_t
376 xcb_present_query_version (xcb_connection_t *c,
377 uint32_t major_version,
378 uint32_t minor_version);
379
391 xcb_present_query_version_cookie_t
392 xcb_present_query_version_unchecked (xcb_connection_t *c,
393 uint32_t major_version,
394 uint32_t minor_version);
395
410 xcb_present_query_version_reply_t *
411 xcb_present_query_version_reply (xcb_connection_t *c,
412 xcb_present_query_version_cookie_t cookie ,
413 xcb_generic_error_t **e);
414
415 int
416 xcb_present_pixmap_sizeof (const void *_buffer,
417 uint32_t notifies_len);
418
430 xcb_void_cookie_t
431 xcb_present_pixmap_checked (xcb_connection_t *c,
432 xcb_window_t window,
433 xcb_pixmap_t pixmap,
434 uint32_t serial,
435 xcb_xfixes_region_t valid,
436 xcb_xfixes_region_t update,
437 int16_t x_off,
438 int16_t y_off,
439 xcb_randr_crtc_t target_crtc,
440 xcb_sync_fence_t wait_fence,
441 xcb_sync_fence_t idle_fence,
442 uint32_t options,
443 uint64_t target_msc,
444 uint64_t divisor,
445 uint64_t remainder,
446 uint32_t notifies_len,
447 const xcb_present_notify_t *notifies);
448
457 xcb_void_cookie_t
458 xcb_present_pixmap (xcb_connection_t *c,
459 xcb_window_t window,
460 xcb_pixmap_t pixmap,
461 uint32_t serial,
462 xcb_xfixes_region_t valid,
463 xcb_xfixes_region_t update,
464 int16_t x_off,
465 int16_t y_off,
466 xcb_randr_crtc_t target_crtc,
467 xcb_sync_fence_t wait_fence,
468 xcb_sync_fence_t idle_fence,
469 uint32_t options,
470 uint64_t target_msc,
471 uint64_t divisor,
472 uint64_t remainder,
473 uint32_t notifies_len,
474 const xcb_present_notify_t *notifies);
475
476 xcb_present_notify_t *
477 xcb_present_pixmap_notifies (const xcb_present_pixmap_request_t *R);
478
479 int
480 xcb_present_pixmap_notifies_length (const xcb_present_pixmap_request_t *R);
481
482 xcb_present_notify_iterator_t
483 xcb_present_pixmap_notifies_iterator (const xcb_present_pixmap_request_t *R);
484
496 xcb_void_cookie_t
497 xcb_present_notify_msc_checked (xcb_connection_t *c,
498 xcb_window_t window,
499 uint32_t serial,
500 uint64_t target_msc,
501 uint64_t divisor,
502 uint64_t remainder);
503
512 xcb_void_cookie_t
513 xcb_present_notify_msc (xcb_connection_t *c,
514 xcb_window_t window,
515 uint32_t serial,
516 uint64_t target_msc,
517 uint64_t divisor,
518 uint64_t remainder);
519
528 void
529 xcb_present_event_next (xcb_present_event_iterator_t *i);
530
540 xcb_generic_iterator_t
541 xcb_present_event_end (xcb_present_event_iterator_t i);
542
554 xcb_void_cookie_t
555 xcb_present_select_input_checked (xcb_connection_t *c,
556 xcb_present_event_t eid,
557 xcb_window_t window,
558 uint32_t event_mask);
559
568 xcb_void_cookie_t
569 xcb_present_select_input (xcb_connection_t *c,
570 xcb_present_event_t eid,
571 xcb_window_t window,
572 uint32_t event_mask);
573
582 xcb_present_query_capabilities_cookie_t
583 xcb_present_query_capabilities (xcb_connection_t *c,
584 uint32_t target);
585
597 xcb_present_query_capabilities_cookie_t
598 xcb_present_query_capabilities_unchecked (xcb_connection_t *c,
599 uint32_t target);
600
615 xcb_present_query_capabilities_reply_t *
616 xcb_present_query_capabilities_reply (xcb_connection_t *c,
617 xcb_present_query_capabilities_cookie_t cookie ,
618 xcb_generic_error_t **e);
619
620 int
621 xcb_present_redirect_notify_sizeof (const void *_buffer,
622 uint32_t notifies_len);
623
624 xcb_present_notify_t *
625 xcb_present_redirect_notify_notifies (const xcb_present_redirect_notify_event_t *R);
626
627 int
628 xcb_present_redirect_notify_notifies_length (const xcb_present_redirect_notify_event_t *R);
629
630 xcb_present_notify_iterator_t
631 xcb_present_redirect_notify_notifies_iterator (const xcb_present_redirect_notify_event_t *R);
632
633
634 #ifdef __cplusplus
635 }
636 #endif
637
638 #endif
639
xcb_present_query_capabilities_request_t
struct xcb_present_query_capabilities_request_t xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
xcb_generic_error_t
Generic error.
Definition: xcb.h:170
xcb_present_pixmap
xcb_void_cookie_t xcb_present_pixmap(xcb_connection_t *c, xcb_window_t window, xcb_pixmap_t pixmap, uint32_t serial, xcb_xfixes_region_t valid, xcb_xfixes_region_t update, int16_t x_off, int16_t y_off, xcb_randr_crtc_t target_crtc, xcb_sync_fence_t wait_fence, xcb_sync_fence_t idle_fence, uint32_t options, uint64_t target_msc, uint64_t divisor, uint64_t remainder, uint32_t notifies_len, const xcb_present_notify_t *notifies)
Definition: present.c:198
xcb_present_complete_notify_event_t
struct xcb_present_complete_notify_event_t xcb_present_complete_notify_event_t
xcb_present_complete_notify_event_t
xcb_present_event_iterator_t
struct xcb_present_event_iterator_t xcb_present_event_iterator_t
xcb_present_event_iterator_t
xcb_present_select_input_checked
xcb_void_cookie_t xcb_present_select_input_checked(xcb_connection_t *c, xcb_present_event_t eid, xcb_window_t window, uint32_t event_mask)
Definition: present.c:368
xcb_present_notify_t
struct xcb_present_notify_t xcb_present_notify_t
xcb_present_notify_t
xcb_present_redirect_notify_event_t
struct xcb_present_redirect_notify_event_t xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_t
xcb_present_pixmap_checked
xcb_void_cookie_t xcb_present_pixmap_checked(xcb_connection_t *c, xcb_window_t window, xcb_pixmap_t pixmap, uint32_t serial, xcb_xfixes_region_t valid, xcb_xfixes_region_t update, int16_t x_off, int16_t y_off, xcb_randr_crtc_t target_crtc, xcb_sync_fence_t wait_fence, xcb_sync_fence_t idle_fence, uint32_t options, uint64_t target_msc, uint64_t divisor, uint64_t remainder, uint32_t notifies_len, const xcb_present_notify_t *notifies)
Definition: present.c:138
xcb_present_query_version_reply_t
struct xcb_present_query_version_reply_t xcb_present_query_version_reply_t
xcb_present_query_version_reply_t
xcb_present_notify_next
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition: present.c:25
xcb_present_notify_iterator_t
struct xcb_present_notify_iterator_t xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
xcb_extension_t
Definition: xcbext.h:39
xcb_generic_iterator_t
Generic iterator.
Definition: xcb.h:114
xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
Definition: present.h:293
xcb_present_query_capabilities_unchecked
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_unchecked(xcb_connection_t *c, uint32_t target)
Definition: present.c:454
xcb_present_notify_msc_checked
xcb_void_cookie_t xcb_present_notify_msc_checked(xcb_connection_t *c, xcb_window_t window, uint32_t serial, uint64_t target_msc, uint64_t divisor, uint64_t remainder)
Definition: present.c:280
xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
Definition: present.h:81
xcb_present_select_input
xcb_void_cookie_t xcb_present_select_input(xcb_connection_t *c, xcb_present_event_t eid, xcb_window_t window, uint32_t event_mask)
Definition: present.c:398
xcb_present_query_version
xcb_present_query_version_cookie_t xcb_present_query_version(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition: present.c:43
xcb_present_query_capabilities_cookie_t
xcb_present_query_capabilities_cookie_t
Definition: present.h:194
xcb_present_configure_notify_event_t
xcb_present_configure_notify_event_t
Definition: present.h:244
xcb_present_notify_msc_request_t
struct xcb_present_notify_msc_request_t xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
xcb_present_generic_event_t
xcb_present_generic_event_t
Definition: present.h:228
xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
Definition: present.h:153
xcb_present_complete_notify_event_t
xcb_present_complete_notify_event_t
Definition: present.h:271
xcb_present_query_version_reply_t
xcb_present_query_version_reply_t
Definition: present.h:111
xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_t
Definition: present.h:214
xcb_present_generic_event_t
struct xcb_present_generic_event_t xcb_present_generic_event_t
xcb_present_generic_event_t
xcb_present_select_input_request_t
xcb_present_select_input_request_t
Definition: present.h:182
xcb_present_event_next
void xcb_present_event_next(xcb_present_event_iterator_t *i)
Definition: present.c:350
xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
Definition: present.h:90
xcb_present_notify_msc
xcb_void_cookie_t xcb_present_notify_msc(xcb_connection_t *c, xcb_window_t window, uint32_t serial, uint64_t target_msc, uint64_t divisor, uint64_t remainder)
Definition: present.c:315
xcb_present_query_version_reply
xcb_present_query_version_reply_t * xcb_present_query_version_reply(xcb_connection_t *c, xcb_present_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition: present.c:99
xcb_present_pixmap_request_t
struct xcb_present_pixmap_request_t xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
xcb_present_query_capabilities_reply_t
struct xcb_present_query_capabilities_reply_t xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_t
xcb_rectangle_t
xcb_rectangle_t
Definition: xproto.h:234
xcb_present_query_version_request_t
xcb_present_query_version_request_t
Definition: present.h:100
xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
Definition: present.h:126
xcb_present_query_capabilities_cookie_t
struct xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_cookie_t
xcb_present_query_capabilities_cookie_t
xcb_present_notify_end
xcb_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition: present.c:33
xcb_present_query_version_cookie_t
struct xcb_present_query_version_cookie_t xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
xcb_present_event_iterator_t
xcb_present_event_iterator_t
Definition: present.h:170
xcb_present_query_capabilities_reply
xcb_present_query_capabilities_reply_t * xcb_present_query_capabilities_reply(xcb_connection_t *c, xcb_present_query_capabilities_cookie_t cookie, xcb_generic_error_t **e)
Definition: present.c:480
xcb_present_idle_notify_event_t
struct xcb_present_idle_notify_event_t xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
xcb_present_query_version_unchecked
xcb_present_query_version_cookie_t xcb_present_query_version_unchecked(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition: present.c:71
xcb_present_query_version_request_t
struct xcb_present_query_version_request_t xcb_present_query_version_request_t
xcb_present_query_version_request_t
xcb.h
xcb_present_event_end
xcb_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition: present.c:358
xcb_connection_t
Definition: xcbint.h:195
xcb_void_cookie_t
Generic cookie.
Definition: xcb.h:187
xcb_present_configure_notify_event_t
struct xcb_present_configure_notify_event_t xcb_present_configure_notify_event_t
xcb_present_configure_notify_event_t
xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_t
Definition: present.h:314
xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
Definition: present.h:204
xcb_present_query_capabilities
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities(xcb_connection_t *c, uint32_t target)
Definition: present.c:428
xcb_present_notify_t
xcb_present_notify_t
Definition: present.h:73
xcb_present_select_input_request_t
struct xcb_present_select_input_request_t xcb_present_select_input_request_t
xcb_present_select_input_request_t