25#define XCB_PRESENT_MAJOR_VERSION 1
26#define XCB_PRESENT_MINOR_VERSION 3
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;
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;
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;
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;
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;
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;
95 unsigned int sequence;
99#define XCB_PRESENT_QUERY_VERSION 0
105 uint8_t major_opcode;
106 uint8_t minor_opcode;
108 uint32_t major_version;
109 uint32_t minor_version;
116 uint8_t response_type;
120 uint32_t major_version;
121 uint32_t minor_version;
125#define XCB_PRESENT_PIXMAP 1
131 uint8_t major_opcode;
132 uint8_t minor_opcode;
137 xcb_xfixes_region_t valid;
138 xcb_xfixes_region_t update;
141 xcb_randr_crtc_t target_crtc;
142 xcb_sync_fence_t wait_fence;
143 xcb_sync_fence_t idle_fence;
152#define XCB_PRESENT_NOTIFY_MSC 2
158 uint8_t major_opcode;
159 uint8_t minor_opcode;
169typedef uint32_t xcb_present_event_t;
175 xcb_present_event_t *data;
181#define XCB_PRESENT_SELECT_INPUT 3
187 uint8_t major_opcode;
188 uint8_t minor_opcode;
190 xcb_present_event_t eid;
199 unsigned int sequence;
203#define XCB_PRESENT_QUERY_CAPABILITIES 4
209 uint8_t major_opcode;
210 uint8_t minor_opcode;
219 uint8_t response_type;
223 uint32_t capabilities;
227#define XCB_PRESENT_GENERIC 0
233 uint8_t response_type;
239 xcb_present_event_t event;
243#define XCB_PRESENT_CONFIGURE_NOTIFY 0
249 uint8_t response_type;
255 xcb_present_event_t event;
263 uint32_t full_sequence;
264 uint16_t pixmap_width;
265 uint16_t pixmap_height;
266 uint32_t pixmap_flags;
270#define XCB_PRESENT_COMPLETE_NOTIFY 1
276 uint8_t response_type;
283 xcb_present_event_t event;
287 uint32_t full_sequence;
292#define XCB_PRESENT_IDLE_NOTIFY 2
298 uint8_t response_type;
304 xcb_present_event_t event;
308 xcb_sync_fence_t idle_fence;
309 uint32_t full_sequence;
313#define XCB_PRESENT_REDIRECT_NOTIFY 3
319 uint8_t response_type;
324 uint8_t update_window;
326 xcb_present_event_t event;
327 xcb_window_t event_window;
331 uint32_t full_sequence;
332 xcb_xfixes_region_t valid_region;
333 xcb_xfixes_region_t update_region;
338 xcb_randr_crtc_t target_crtc;
339 xcb_sync_fence_t wait_fence;
340 xcb_sync_fence_t idle_fence;
381 uint32_t major_version,
382 uint32_t minor_version);
397 uint32_t major_version,
398 uint32_t minor_version);
420xcb_present_pixmap_sizeof (
const void *_buffer,
421 uint32_t notifies_len);
439 xcb_xfixes_region_t valid,
440 xcb_xfixes_region_t update,
443 xcb_randr_crtc_t target_crtc,
444 xcb_sync_fence_t wait_fence,
445 xcb_sync_fence_t idle_fence,
450 uint32_t notifies_len,
466 xcb_xfixes_region_t valid,
467 xcb_xfixes_region_t update,
470 xcb_randr_crtc_t target_crtc,
471 xcb_sync_fence_t wait_fence,
472 xcb_sync_fence_t idle_fence,
477 uint32_t notifies_len,
560 xcb_present_event_t eid,
562 uint32_t event_mask);
574 xcb_present_event_t eid,
576 uint32_t event_mask);
625xcb_present_redirect_notify_sizeof (
const void *_buffer,
626 uint32_t notifies_len);
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities(xcb_connection_t *c, uint32_t target)
Definition present.c:428
struct xcb_present_complete_notify_event_t xcb_present_complete_notify_event_t
xcb_present_complete_notify_event_t
struct xcb_present_redirect_notify_event_t xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_t
struct xcb_present_select_input_request_t xcb_present_select_input_request_t
xcb_present_select_input_request_t
struct xcb_present_generic_event_t xcb_present_generic_event_t
xcb_present_generic_event_t
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition present.c:25
struct xcb_present_query_version_request_t xcb_present_query_version_request_t
xcb_present_query_version_request_t
struct xcb_present_notify_iterator_t xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
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
struct xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_cookie_t
xcb_present_query_capabilities_cookie_t
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
struct xcb_present_query_version_reply_t xcb_present_query_version_reply_t
xcb_present_query_version_reply_t
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
struct xcb_present_query_version_cookie_t xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
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
struct xcb_present_notify_t xcb_present_notify_t
xcb_present_notify_t
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
struct xcb_present_configure_notify_event_t xcb_present_configure_notify_event_t
xcb_present_configure_notify_event_t
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
struct xcb_present_pixmap_request_t xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
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
struct xcb_present_idle_notify_event_t xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
struct xcb_present_query_capabilities_request_t xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
struct xcb_present_notify_msc_request_t xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_unchecked(xcb_connection_t *c, uint32_t target)
Definition present.c:454
struct xcb_present_event_iterator_t xcb_present_event_iterator_t
xcb_present_event_iterator_t
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
struct xcb_present_query_capabilities_reply_t xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_t
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
Generic error.
Definition xcb.h:186
Generic iterator.
Definition xcb.h:118
xcb_present_complete_notify_event_t
Definition present.h:275
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_cookie_t
Definition present.h:198
xcb_present_query_capabilities_reply_t
Definition present.h:218
xcb_present_query_capabilities_request_t
Definition present.h:208
xcb_present_query_version_cookie_t
Definition present.h:94
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_rectangle_t
Definition xproto.h:234
Generic cookie.
Definition xcb.h:203