25 #define XCB_PRESENT_MAJOR_VERSION 1 26 #define XCB_PRESENT_MINOR_VERSION 0 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_t;
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;
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;
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;
91 unsigned int sequence;
95 #define XCB_PRESENT_QUERY_VERSION 0 101 uint8_t major_opcode;
102 uint8_t minor_opcode;
104 uint32_t major_version;
105 uint32_t minor_version;
112 uint8_t response_type;
116 uint32_t major_version;
117 uint32_t minor_version;
121 #define XCB_PRESENT_PIXMAP 1 127 uint8_t major_opcode;
128 uint8_t minor_opcode;
133 xcb_xfixes_region_t valid;
134 xcb_xfixes_region_t update;
137 xcb_randr_crtc_t target_crtc;
138 xcb_sync_fence_t wait_fence;
139 xcb_sync_fence_t idle_fence;
148 #define XCB_PRESENT_NOTIFY_MSC 2 154 uint8_t major_opcode;
155 uint8_t minor_opcode;
165 typedef uint32_t xcb_present_event_t;
171 xcb_present_event_t *data;
177 #define XCB_PRESENT_SELECT_INPUT 3 183 uint8_t major_opcode;
184 uint8_t minor_opcode;
186 xcb_present_event_t eid;
195 unsigned int sequence;
199 #define XCB_PRESENT_QUERY_CAPABILITIES 4 205 uint8_t major_opcode;
206 uint8_t minor_opcode;
215 uint8_t response_type;
219 uint32_t capabilities;
223 #define XCB_PRESENT_GENERIC 0 229 uint8_t response_type;
235 xcb_present_event_t event;
239 #define XCB_PRESENT_CONFIGURE_NOTIFY 0 245 uint8_t response_type;
251 xcb_present_event_t event;
259 uint32_t full_sequence;
260 uint16_t pixmap_width;
261 uint16_t pixmap_height;
262 uint32_t pixmap_flags;
266 #define XCB_PRESENT_COMPLETE_NOTIFY 1 272 uint8_t response_type;
279 xcb_present_event_t event;
283 uint32_t full_sequence;
288 #define XCB_PRESENT_IDLE_NOTIFY 2 294 uint8_t response_type;
300 xcb_present_event_t event;
304 xcb_sync_fence_t idle_fence;
305 uint32_t full_sequence;
309 #define XCB_PRESENT_REDIRECT_NOTIFY 3 315 uint8_t response_type;
320 uint8_t update_window;
322 xcb_present_event_t event;
323 xcb_window_t event_window;
327 uint32_t full_sequence;
328 xcb_xfixes_region_t valid_region;
329 xcb_xfixes_region_t update_region;
334 xcb_randr_crtc_t target_crtc;
335 xcb_sync_fence_t wait_fence;
336 xcb_sync_fence_t idle_fence;
377 uint32_t major_version,
378 uint32_t minor_version);
393 uint32_t major_version,
394 uint32_t minor_version);
416 xcb_present_pixmap_sizeof (
const void *_buffer,
417 uint32_t notifies_len);
435 xcb_xfixes_region_t valid,
436 xcb_xfixes_region_t update,
439 xcb_randr_crtc_t target_crtc,
440 xcb_sync_fence_t wait_fence,
441 xcb_sync_fence_t idle_fence,
446 uint32_t notifies_len,
462 xcb_xfixes_region_t valid,
463 xcb_xfixes_region_t update,
466 xcb_randr_crtc_t target_crtc,
467 xcb_sync_fence_t wait_fence,
468 xcb_sync_fence_t idle_fence,
473 uint32_t notifies_len,
556 xcb_present_event_t eid,
558 uint32_t event_mask);
570 xcb_present_event_t eid,
572 uint32_t event_mask);
621 xcb_present_redirect_notify_sizeof (
const void *_buffer,
622 uint32_t notifies_len);
625 xcb_present_redirect_notify_notifies (
const xcb_present_redirect_notify_event_t *R);
628 xcb_present_redirect_notify_notifies_length (
const xcb_present_redirect_notify_event_t *R);
631 xcb_present_redirect_notify_notifies_iterator (
const xcb_present_redirect_notify_event_t *R);
struct xcb_present_query_capabilities_request_t xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
Generic error.
Definition: xcb.h:170
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_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
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_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_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
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
Generic iterator.
Definition: xcb.h:114
xcb_present_idle_notify_event_t
Definition: present.h:293
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_unchecked(xcb_connection_t *c, uint32_t target)
Definition: present.c:454
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
Definition: present.h:81
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_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
Definition: present.h:194
struct xcb_present_notify_msc_request_t xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
xcb_present_generic_event_t
Definition: present.h:228
xcb_present_notify_msc_request_t
Definition: present.h:153
xcb_present_complete_notify_event_t
Definition: present.h:271
xcb_present_query_version_reply_t
Definition: present.h:111
xcb_present_query_capabilities_reply_t
Definition: present.h:214
struct xcb_present_generic_event_t xcb_present_generic_event_t
xcb_present_generic_event_t
void xcb_present_event_next(xcb_present_event_iterator_t *i)
Definition: present.c:350
xcb_present_query_version_cookie_t
Definition: present.h:90
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_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_pixmap_request_t xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
struct xcb_present_query_capabilities_reply_t xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_t
xcb_rectangle_t
Definition: xproto.h:234
xcb_present_query_version_request_t
Definition: present.h:100
xcb_present_pixmap_request_t
Definition: present.h:126
struct xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_cookie_t
xcb_present_query_capabilities_cookie_t
xcb_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition: present.c:33
struct xcb_present_query_version_cookie_t xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
xcb_present_event_iterator_t
Definition: present.h:170
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
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_request_t xcb_present_query_version_request_t
xcb_present_query_version_request_t
xcb_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition: present.c:358
Generic cookie.
Definition: xcb.h:187
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
Definition: present.h:314
xcb_present_query_capabilities_request_t
Definition: present.h:204
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
Definition: present.h:73
struct xcb_present_select_input_request_t xcb_present_select_input_request_t
xcb_present_select_input_request_t