25 #define XCB_PRESENT_MAJOR_VERSION 1
26 #define XCB_PRESENT_MINOR_VERSION 2
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;
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;
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_t;
53 typedef enum xcb_present_capability_t {
54 XCB_PRESENT_CAPABILITY_NONE = 0,
55 XCB_PRESENT_CAPABILITY_ASYNC = 1,
56 XCB_PRESENT_CAPABILITY_FENCE = 2,
57 XCB_PRESENT_CAPABILITY_UST = 4
58 } xcb_present_capability_t;
60 typedef enum xcb_present_complete_kind_t {
61 XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0,
62 XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1
63 } xcb_present_complete_kind_t;
65 typedef enum xcb_present_complete_mode_t {
66 XCB_PRESENT_COMPLETE_MODE_COPY = 0,
67 XCB_PRESENT_COMPLETE_MODE_FLIP = 1,
68 XCB_PRESENT_COMPLETE_MODE_SKIP = 2,
69 XCB_PRESENT_COMPLETE_MODE_SUBOPTIMAL_COPY = 3
70 } xcb_present_complete_mode_t;
93 unsigned int sequence;
97 #define XCB_PRESENT_QUERY_VERSION 0
103 uint8_t major_opcode;
104 uint8_t minor_opcode;
106 uint32_t major_version;
107 uint32_t minor_version;
114 uint8_t response_type;
118 uint32_t major_version;
119 uint32_t minor_version;
123 #define XCB_PRESENT_PIXMAP 1
129 uint8_t major_opcode;
130 uint8_t minor_opcode;
135 xcb_xfixes_region_t valid;
136 xcb_xfixes_region_t update;
139 xcb_randr_crtc_t target_crtc;
140 xcb_sync_fence_t wait_fence;
141 xcb_sync_fence_t idle_fence;
150 #define XCB_PRESENT_NOTIFY_MSC 2
156 uint8_t major_opcode;
157 uint8_t minor_opcode;
167 typedef uint32_t xcb_present_event_t;
173 xcb_present_event_t *data;
179 #define XCB_PRESENT_SELECT_INPUT 3
185 uint8_t major_opcode;
186 uint8_t minor_opcode;
188 xcb_present_event_t eid;
197 unsigned int sequence;
201 #define XCB_PRESENT_QUERY_CAPABILITIES 4
207 uint8_t major_opcode;
208 uint8_t minor_opcode;
217 uint8_t response_type;
221 uint32_t capabilities;
225 #define XCB_PRESENT_GENERIC 0
231 uint8_t response_type;
237 xcb_present_event_t event;
241 #define XCB_PRESENT_CONFIGURE_NOTIFY 0
247 uint8_t response_type;
253 xcb_present_event_t event;
261 uint32_t full_sequence;
262 uint16_t pixmap_width;
263 uint16_t pixmap_height;
264 uint32_t pixmap_flags;
268 #define XCB_PRESENT_COMPLETE_NOTIFY 1
274 uint8_t response_type;
281 xcb_present_event_t event;
285 uint32_t full_sequence;
290 #define XCB_PRESENT_IDLE_NOTIFY 2
296 uint8_t response_type;
302 xcb_present_event_t event;
306 xcb_sync_fence_t idle_fence;
307 uint32_t full_sequence;
311 #define XCB_PRESENT_REDIRECT_NOTIFY 3
317 uint8_t response_type;
322 uint8_t update_window;
324 xcb_present_event_t event;
325 xcb_window_t event_window;
329 uint32_t full_sequence;
330 xcb_xfixes_region_t valid_region;
331 xcb_xfixes_region_t update_region;
336 xcb_randr_crtc_t target_crtc;
337 xcb_sync_fence_t wait_fence;
338 xcb_sync_fence_t idle_fence;
379 uint32_t major_version,
380 uint32_t minor_version);
395 uint32_t major_version,
396 uint32_t minor_version);
418 xcb_present_pixmap_sizeof (
const void *_buffer,
419 uint32_t notifies_len);
437 xcb_xfixes_region_t valid,
438 xcb_xfixes_region_t update,
441 xcb_randr_crtc_t target_crtc,
442 xcb_sync_fence_t wait_fence,
443 xcb_sync_fence_t idle_fence,
448 uint32_t notifies_len,
464 xcb_xfixes_region_t valid,
465 xcb_xfixes_region_t update,
468 xcb_randr_crtc_t target_crtc,
469 xcb_sync_fence_t wait_fence,
470 xcb_sync_fence_t idle_fence,
475 uint32_t notifies_len,
558 xcb_present_event_t eid,
560 uint32_t event_mask);
572 xcb_present_event_t eid,
574 uint32_t event_mask);
623 xcb_present_redirect_notify_sizeof (
const void *_buffer,
624 uint32_t notifies_len);
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_select_input_request_t xcb_present_select_input_request_t
xcb_present_select_input_request_t
struct xcb_present_query_capabilities_request_t xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
struct xcb_present_configure_notify_event_t xcb_present_configure_notify_event_t
xcb_present_configure_notify_event_t
xcb_present_pixmap_request_t
Definition: present.h:128
struct xcb_present_complete_notify_event_t xcb_present_complete_notify_event_t
xcb_present_complete_notify_event_t
struct xcb_present_event_iterator_t xcb_present_event_iterator_t
xcb_present_event_iterator_t
#define XCB_PRESENT_QUERY_VERSION
Definition: present.h:97
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities(xcb_connection_t *c, uint32_t target)
Definition: present.c:428
xcb_present_generic_event_t
Definition: present.h:230
xcb_present_redirect_notify_event_t
Definition: present.h:316
struct xcb_present_notify_t xcb_present_notify_t
xcb_present_notify_t
struct xcb_present_redirect_notify_event_t xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_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
#define XCB_PRESENT_SELECT_INPUT
Definition: present.h:179
xcb_present_idle_notify_event_t
Definition: present.h:295
xcb_present_notify_iterator_t
Definition: present.h:83
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition: present.c:25
struct xcb_present_notify_iterator_t xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
xcb_rectangle_t
Definition: xproto.h:234
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_query_version_reply_t xcb_present_query_version_reply_t
xcb_present_query_version_reply_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
void * data
Definition: xcb.h:115
struct xcb_present_generic_event_t xcb_present_generic_event_t
xcb_present_generic_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
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_present_query_capabilities_request_t
Definition: present.h:206
xcb_present_query_capabilities_cookie_t
Definition: present.h:196
xcb_present_query_version_reply_t
Definition: present.h:113
Generic error.
Definition: xcb.h:182
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_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_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
Definition: xcb_windefs.h:38
struct xcb_present_pixmap_request_t xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
xcb_present_notify_msc_request_t
Definition: present.h:155
#define XCB_PRESENT_PIXMAP
Definition: present.h:123
xcb_present_event_iterator_t
Definition: present.h:172
xcb_present_query_version_cookie_t
Definition: present.h:92
int index
Definition: xcb.h:117
int rem
Definition: xcb.h:116
#define XCB_PRESENT_NOTIFY_MSC
Definition: present.h:150
struct xcb_present_query_version_cookie_t xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
struct xcb_present_query_capabilities_reply_t xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_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
xcb_present_notify_t
Definition: present.h:75
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_idle_notify_event_t xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
Generic iterator.
Definition: xcb.h:114
xcb_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition: present.c:33
xcb_present_complete_notify_event_t
Definition: present.h:273
xcb_present_query_version_request_t
Definition: present.h:102
Generic cookie.
Definition: xcb.h:199
xcb_present_query_capabilities_reply_t
Definition: present.h:216
struct xcb_present_query_version_request_t xcb_present_query_version_request_t
xcb_present_query_version_request_t
#define XCB_PRESENT_QUERY_CAPABILITIES
Definition: present.h:201
xcb_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition: present.c:358