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
22extern "C" {
23#endif
24
25#define XCB_PRESENT_MAJOR_VERSION 1
26#define XCB_PRESENT_MINOR_VERSION 3
27
28extern xcb_extension_t xcb_present_id;
29
30typedef 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
37typedef 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
45typedef 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
54typedef 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
62typedef 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
67typedef 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
77typedef struct xcb_present_notify_t {
78 xcb_window_t window;
79 uint32_t serial;
81
87 int rem;
88 int index;
90
97
99#define XCB_PRESENT_QUERY_VERSION 0
100
105 uint8_t major_opcode;
106 uint8_t minor_opcode;
107 uint16_t length;
108 uint32_t major_version;
109 uint32_t minor_version;
111
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;
123
125#define XCB_PRESENT_PIXMAP 1
126
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;
150
152#define XCB_PRESENT_NOTIFY_MSC 2
153
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;
168
169typedef uint32_t xcb_present_event_t;
170
175 xcb_present_event_t *data;
176 int rem;
177 int index;
179
181#define XCB_PRESENT_SELECT_INPUT 3
182
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;
194
201
203#define XCB_PRESENT_QUERY_CAPABILITIES 4
204
209 uint8_t major_opcode;
210 uint8_t minor_opcode;
211 uint16_t length;
212 uint32_t target;
214
219 uint8_t response_type;
220 uint8_t pad0;
221 uint16_t sequence;
222 uint32_t length;
223 uint32_t capabilities;
225
227#define XCB_PRESENT_GENERIC 0
228
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;
241
243#define XCB_PRESENT_CONFIGURE_NOTIFY 0
244
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;
268
270#define XCB_PRESENT_COMPLETE_NOTIFY 1
271
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;
290
292#define XCB_PRESENT_IDLE_NOTIFY 2
293
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;
311
313#define XCB_PRESENT_REDIRECT_NOTIFY 3
314
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;
347
356void
358
370
381 uint32_t major_version,
382 uint32_t minor_version);
383
397 uint32_t major_version,
398 uint32_t minor_version);
399
418
419int
420xcb_present_pixmap_sizeof (const void *_buffer,
421 uint32_t notifies_len);
422
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
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
481xcb_present_pixmap_notifies (const xcb_present_pixmap_request_t *R);
482
483int
484xcb_present_pixmap_notifies_length (const xcb_present_pixmap_request_t *R);
485
487xcb_present_pixmap_notifies_iterator (const xcb_present_pixmap_request_t *R);
488
502 xcb_window_t window,
503 uint32_t serial,
504 uint64_t target_msc,
505 uint64_t divisor,
506 uint64_t remainder);
507
518 xcb_window_t window,
519 uint32_t serial,
520 uint64_t target_msc,
521 uint64_t divisor,
522 uint64_t remainder);
523
532void
534
546
560 xcb_present_event_t eid,
561 xcb_window_t window,
562 uint32_t event_mask);
563
574 xcb_present_event_t eid,
575 xcb_window_t window,
576 uint32_t event_mask);
577
588 uint32_t target);
589
603 uint32_t target);
604
623
624int
625xcb_present_redirect_notify_sizeof (const void *_buffer,
626 uint32_t notifies_len);
627
629xcb_present_redirect_notify_notifies (const xcb_present_redirect_notify_event_t *R);
630
631int
632xcb_present_redirect_notify_notifies_length (const xcb_present_redirect_notify_event_t *R);
633
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_cookie_t xcb_present_query_capabilities(xcb_connection_t *c, uint32_t target)
Definition present.c:428
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition present.c:25
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_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_cookie_t xcb_present_query_version_unchecked(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition present.c:71
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
void xcb_present_event_next(xcb_present_event_iterator_t *i)
Definition present.c:350
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_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition present.c:358
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_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_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition present.c:33
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_cookie_t xcb_present_query_capabilities_unchecked(xcb_connection_t *c, uint32_t target)
Definition present.c:454
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_cookie_t xcb_present_query_version(xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
Definition present.c:43
Definition xcbint.h:208
Definition xcbext.h:39
Generic error.
Definition xcb.h:186
Generic iterator.
Definition xcb.h:118
xcb_present_complete_notify_event_t
Definition present.h:275
xcb_present_configure_notify_event_t
Definition present.h:248
xcb_present_event_iterator_t
Definition present.h:174
xcb_present_generic_event_t
Definition present.h:232
xcb_present_idle_notify_event_t
Definition present.h:297
xcb_present_notify_iterator_t
Definition present.h:85
xcb_present_notify_msc_request_t
Definition present.h:157
xcb_present_notify_t
Definition present.h:77
xcb_present_pixmap_request_t
Definition present.h:130
xcb_present_query_capabilities_reply_t
Definition present.h:218
xcb_present_query_capabilities_request_t
Definition present.h:208
xcb_present_query_version_reply_t
Definition present.h:115
xcb_present_query_version_request_t
Definition present.h:104
xcb_present_redirect_notify_event_t
Definition present.h:318
xcb_present_select_input_request_t
Definition present.h:186
xcb_rectangle_t
Definition xproto.h:234