XCB 1.16

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 3
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_SUBOPTIMAL = 8,
51 XCB_PRESENT_OPTION_ASYNC_MAY_TEAR = 16
52} xcb_present_option_t;
53
54 typedef enum xcb_present_capability_t {
55 XCB_PRESENT_CAPABILITY_NONE = 0,
56 XCB_PRESENT_CAPABILITY_ASYNC = 1,
57 XCB_PRESENT_CAPABILITY_FENCE = 2,
58 XCB_PRESENT_CAPABILITY_UST = 4,
59 XCB_PRESENT_CAPABILITY_ASYNC_MAY_TEAR = 8
60} xcb_present_capability_t;
61
62 typedef enum xcb_present_complete_kind_t {
63 XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0,
64 XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1
65} xcb_present_complete_kind_t;
66
67 typedef enum xcb_present_complete_mode_t {
68 XCB_PRESENT_COMPLETE_MODE_COPY = 0,
69 XCB_PRESENT_COMPLETE_MODE_FLIP = 1,
70 XCB_PRESENT_COMPLETE_MODE_SKIP = 2,
71 XCB_PRESENT_COMPLETE_MODE_SUBOPTIMAL_COPY = 3
72} xcb_present_complete_mode_t;
73
77 typedef struct xcb_present_notify_t {
78 xcb_window_t window;
79 uint32_t serial;
80} xcb_present_notify_t;
81
85 typedef struct xcb_present_notify_iterator_t {
86 xcb_present_notify_t *data;
87 int rem;
88 int index;
89} xcb_present_notify_iterator_t;
90
94 typedef struct xcb_present_query_version_cookie_t {
95 unsigned int sequence;
96} xcb_present_query_version_cookie_t;
97
99#define XCB_PRESENT_QUERY_VERSION 0
100
104 typedef struct xcb_present_query_version_request_t {
105 uint8_t major_opcode;
106 uint8_t minor_opcode;
107 uint16_t length;
108 uint32_t major_version;
109 uint32_t minor_version;
110} xcb_present_query_version_request_t;
111
115 typedef struct xcb_present_query_version_reply_t {
116 uint8_t response_type;
117 uint8_t pad0;
118 uint16_t sequence;
119 uint32_t length;
120 uint32_t major_version;
121 uint32_t minor_version;
122} xcb_present_query_version_reply_t;
123
125#define XCB_PRESENT_PIXMAP 1
126
130 typedef struct xcb_present_pixmap_request_t {
131 uint8_t major_opcode;
132 uint8_t minor_opcode;
133 uint16_t length;
134 xcb_window_t window;
135 xcb_pixmap_t pixmap;
136 uint32_t serial;
137 xcb_xfixes_region_t valid;
138 xcb_xfixes_region_t update;
139 int16_t x_off;
140 int16_t y_off;
141 xcb_randr_crtc_t target_crtc;
142 xcb_sync_fence_t wait_fence;
143 xcb_sync_fence_t idle_fence;
144 uint32_t options;
145 uint8_t pad0[4];
146 uint64_t target_msc;
147 uint64_t divisor;
148 uint64_t remainder;
149} xcb_present_pixmap_request_t;
150
152#define XCB_PRESENT_NOTIFY_MSC 2
153
157 typedef struct xcb_present_notify_msc_request_t {
158 uint8_t major_opcode;
159 uint8_t minor_opcode;
160 uint16_t length;
161 xcb_window_t window;
162 uint32_t serial;
163 uint8_t pad0[4];
164 uint64_t target_msc;
165 uint64_t divisor;
166 uint64_t remainder;
167} xcb_present_notify_msc_request_t;
168
169 typedef uint32_t xcb_present_event_t;
170
174 typedef struct xcb_present_event_iterator_t {
175 xcb_present_event_t *data;
176 int rem;
177 int index;
178} xcb_present_event_iterator_t;
179
181#define XCB_PRESENT_SELECT_INPUT 3
182
186 typedef struct xcb_present_select_input_request_t {
187 uint8_t major_opcode;
188 uint8_t minor_opcode;
189 uint16_t length;
190 xcb_present_event_t eid;
191 xcb_window_t window;
192 uint32_t event_mask;
193} xcb_present_select_input_request_t;
194
198 typedef struct xcb_present_query_capabilities_cookie_t {
199 unsigned int sequence;
200} xcb_present_query_capabilities_cookie_t;
201
203#define XCB_PRESENT_QUERY_CAPABILITIES 4
204
208 typedef struct xcb_present_query_capabilities_request_t {
209 uint8_t major_opcode;
210 uint8_t minor_opcode;
211 uint16_t length;
212 uint32_t target;
213} xcb_present_query_capabilities_request_t;
214
218 typedef struct xcb_present_query_capabilities_reply_t {
219 uint8_t response_type;
220 uint8_t pad0;
221 uint16_t sequence;
222 uint32_t length;
223 uint32_t capabilities;
224} xcb_present_query_capabilities_reply_t;
225
227#define XCB_PRESENT_GENERIC 0
228
232 typedef struct xcb_present_generic_event_t {
233 uint8_t response_type;
234 uint8_t extension;
235 uint16_t sequence;
236 uint32_t length;
237 uint16_t evtype;
238 uint8_t pad0[2];
239 xcb_present_event_t event;
240} xcb_present_generic_event_t;
241
243#define XCB_PRESENT_CONFIGURE_NOTIFY 0
244
248 typedef struct xcb_present_configure_notify_event_t {
249 uint8_t response_type;
250 uint8_t extension;
251 uint16_t sequence;
252 uint32_t length;
253 uint16_t event_type;
254 uint8_t pad0[2];
255 xcb_present_event_t event;
256 xcb_window_t window;
257 int16_t x;
258 int16_t y;
259 uint16_t width;
260 uint16_t height;
261 int16_t off_x;
262 int16_t off_y;
263 uint32_t full_sequence;
264 uint16_t pixmap_width;
265 uint16_t pixmap_height;
266 uint32_t pixmap_flags;
267} xcb_present_configure_notify_event_t;
268
270#define XCB_PRESENT_COMPLETE_NOTIFY 1
271
275 typedef struct xcb_present_complete_notify_event_t {
276 uint8_t response_type;
277 uint8_t extension;
278 uint16_t sequence;
279 uint32_t length;
280 uint16_t event_type;
281 uint8_t kind;
282 uint8_t mode;
283 xcb_present_event_t event;
284 xcb_window_t window;
285 uint32_t serial;
286 uint64_t ust;
287 uint32_t full_sequence;
288 uint64_t msc;
289} XCB_PACKED xcb_present_complete_notify_event_t;
290
292#define XCB_PRESENT_IDLE_NOTIFY 2
293
297 typedef struct xcb_present_idle_notify_event_t {
298 uint8_t response_type;
299 uint8_t extension;
300 uint16_t sequence;
301 uint32_t length;
302 uint16_t event_type;
303 uint8_t pad0[2];
304 xcb_present_event_t event;
305 xcb_window_t window;
306 uint32_t serial;
307 xcb_pixmap_t pixmap;
308 xcb_sync_fence_t idle_fence;
309 uint32_t full_sequence;
310} xcb_present_idle_notify_event_t;
311
313#define XCB_PRESENT_REDIRECT_NOTIFY 3
314
318 typedef struct xcb_present_redirect_notify_event_t {
319 uint8_t response_type;
320 uint8_t extension;
321 uint16_t sequence;
322 uint32_t length;
323 uint16_t event_type;
324 uint8_t update_window;
325 uint8_t pad0;
326 xcb_present_event_t event;
327 xcb_window_t event_window;
328 xcb_window_t window;
329 xcb_pixmap_t pixmap;
330 uint32_t serial;
331 uint32_t full_sequence;
332 xcb_xfixes_region_t valid_region;
333 xcb_xfixes_region_t update_region;
334 xcb_rectangle_t valid_rect;
335 xcb_rectangle_t update_rect;
336 int16_t x_off;
337 int16_t y_off;
338 xcb_randr_crtc_t target_crtc;
339 xcb_sync_fence_t wait_fence;
340 xcb_sync_fence_t idle_fence;
341 uint32_t options;
342 uint8_t pad1[4];
343 uint64_t target_msc;
344 uint64_t divisor;
345 uint64_t remainder;
346} XCB_PACKED xcb_present_redirect_notify_event_t;
347
356 void
357 xcb_present_notify_next (xcb_present_notify_iterator_t *i);
358
368 xcb_generic_iterator_t
369 xcb_present_notify_end (xcb_present_notify_iterator_t i);
370
379 xcb_present_query_version_cookie_t
380 xcb_present_query_version (xcb_connection_t *c,
381 uint32_t major_version,
382 uint32_t minor_version);
383
395 xcb_present_query_version_cookie_t
396 xcb_present_query_version_unchecked (xcb_connection_t *c,
397 uint32_t major_version,
398 uint32_t minor_version);
399
414 xcb_present_query_version_reply_t *
415 xcb_present_query_version_reply (xcb_connection_t *c,
416 xcb_present_query_version_cookie_t cookie ,
417 xcb_generic_error_t **e);
418
419 int
420xcb_present_pixmap_sizeof (const void *_buffer,
421 uint32_t notifies_len);
422
434 xcb_void_cookie_t
435 xcb_present_pixmap_checked (xcb_connection_t *c,
436 xcb_window_t window,
437 xcb_pixmap_t pixmap,
438 uint32_t serial,
439 xcb_xfixes_region_t valid,
440 xcb_xfixes_region_t update,
441 int16_t x_off,
442 int16_t y_off,
443 xcb_randr_crtc_t target_crtc,
444 xcb_sync_fence_t wait_fence,
445 xcb_sync_fence_t idle_fence,
446 uint32_t options,
447 uint64_t target_msc,
448 uint64_t divisor,
449 uint64_t remainder,
450 uint32_t notifies_len,
451 const xcb_present_notify_t *notifies);
452
461 xcb_void_cookie_t
462 xcb_present_pixmap (xcb_connection_t *c,
463 xcb_window_t window,
464 xcb_pixmap_t pixmap,
465 uint32_t serial,
466 xcb_xfixes_region_t valid,
467 xcb_xfixes_region_t update,
468 int16_t x_off,
469 int16_t y_off,
470 xcb_randr_crtc_t target_crtc,
471 xcb_sync_fence_t wait_fence,
472 xcb_sync_fence_t idle_fence,
473 uint32_t options,
474 uint64_t target_msc,
475 uint64_t divisor,
476 uint64_t remainder,
477 uint32_t notifies_len,
478 const xcb_present_notify_t *notifies);
479
480 xcb_present_notify_t *
481xcb_present_pixmap_notifies (const xcb_present_pixmap_request_t *R);
482
483 int
484xcb_present_pixmap_notifies_length (const xcb_present_pixmap_request_t *R);
485
486 xcb_present_notify_iterator_t
487xcb_present_pixmap_notifies_iterator (const xcb_present_pixmap_request_t *R);
488
500 xcb_void_cookie_t
501 xcb_present_notify_msc_checked (xcb_connection_t *c,
502 xcb_window_t window,
503 uint32_t serial,
504 uint64_t target_msc,
505 uint64_t divisor,
506 uint64_t remainder);
507
516 xcb_void_cookie_t
517 xcb_present_notify_msc (xcb_connection_t *c,
518 xcb_window_t window,
519 uint32_t serial,
520 uint64_t target_msc,
521 uint64_t divisor,
522 uint64_t remainder);
523
532 void
533 xcb_present_event_next (xcb_present_event_iterator_t *i);
534
544 xcb_generic_iterator_t
545 xcb_present_event_end (xcb_present_event_iterator_t i);
546
558 xcb_void_cookie_t
559 xcb_present_select_input_checked (xcb_connection_t *c,
560 xcb_present_event_t eid,
561 xcb_window_t window,
562 uint32_t event_mask);
563
572 xcb_void_cookie_t
573 xcb_present_select_input (xcb_connection_t *c,
574 xcb_present_event_t eid,
575 xcb_window_t window,
576 uint32_t event_mask);
577
586 xcb_present_query_capabilities_cookie_t
587 xcb_present_query_capabilities (xcb_connection_t *c,
588 uint32_t target);
589
601 xcb_present_query_capabilities_cookie_t
602 xcb_present_query_capabilities_unchecked (xcb_connection_t *c,
603 uint32_t target);
604
619 xcb_present_query_capabilities_reply_t *
620 xcb_present_query_capabilities_reply (xcb_connection_t *c,
621 xcb_present_query_capabilities_cookie_t cookie ,
622 xcb_generic_error_t **e);
623
624 int
625xcb_present_redirect_notify_sizeof (const void *_buffer,
626 uint32_t notifies_len);
627
628 xcb_present_notify_t *
629xcb_present_redirect_notify_notifies (const xcb_present_redirect_notify_event_t *R);
630
631 int
632xcb_present_redirect_notify_notifies_length (const xcb_present_redirect_notify_event_t *R);
633
634 xcb_present_notify_iterator_t
635xcb_present_redirect_notify_notifies_iterator (const xcb_present_redirect_notify_event_t *R);
636
637
638#ifdef __cplusplus
639}
640#endif
641
642#endif
643
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_next
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition present.c:25
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_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_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_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_event_next
void xcb_present_event_next(xcb_present_event_iterator_t *i)
Definition present.c:350
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_event_end
xcb_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition present.c:358
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_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_notify_end
xcb_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition present.c:33
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_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_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_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_connection_t
Definition xcbint.h:208
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_present_complete_notify_event_t
xcb_present_complete_notify_event_t
Definition present.h:275
xcb_present_configure_notify_event_t
xcb_present_configure_notify_event_t
Definition present.h:248
xcb_present_event_iterator_t
xcb_present_event_iterator_t
Definition present.h:174
xcb_present_generic_event_t
xcb_present_generic_event_t
Definition present.h:232
xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
Definition present.h:297
xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
Definition present.h:85
xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
Definition present.h:157
xcb_present_notify_t
xcb_present_notify_t
Definition present.h:77
xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
Definition present.h:130
xcb_present_query_capabilities_cookie_t
xcb_present_query_capabilities_cookie_t
Definition present.h:198
xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_t
Definition present.h:218
xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
Definition present.h:208
xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
Definition present.h:94
xcb_present_query_version_reply_t
xcb_present_query_version_reply_t
Definition present.h:115
xcb_present_query_version_request_t
xcb_present_query_version_request_t
Definition present.h:104
xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_t
Definition present.h:318
xcb_present_select_input_request_t
xcb_present_select_input_request_t
Definition present.h:186
xcb_rectangle_t
xcb_rectangle_t
Definition xproto.h:234
xcb_void_cookie_t
Generic cookie.
Definition xcb.h:203
xcb.h