27 #define XCB_PRESENT_MAJOR_VERSION 1
28 #define XCB_PRESENT_MINOR_VERSION 0
32 typedef enum xcb_present_event_enum_t {
33 XCB_PRESENT_EVENT_CONFIGURE_NOTIFY = 0,
34 XCB_PRESENT_EVENT_COMPLETE_NOTIFY = 1,
35 XCB_PRESENT_EVENT_IDLE_NOTIFY = 2,
36 XCB_PRESENT_EVENT_REDIRECT_NOTIFY = 3
37 } xcb_present_event_enum_t;
39 typedef enum xcb_present_event_mask_t {
40 XCB_PRESENT_EVENT_MASK_NO_EVENT = 0,
41 XCB_PRESENT_EVENT_MASK_CONFIGURE_NOTIFY = 1,
42 XCB_PRESENT_EVENT_MASK_COMPLETE_NOTIFY = 2,
43 XCB_PRESENT_EVENT_MASK_IDLE_NOTIFY = 4,
44 XCB_PRESENT_EVENT_MASK_REDIRECT_NOTIFY = 8
45 } xcb_present_event_mask_t;
47 typedef enum xcb_present_option_t {
48 XCB_PRESENT_OPTION_NONE = 0,
49 XCB_PRESENT_OPTION_ASYNC = 1,
50 XCB_PRESENT_OPTION_COPY = 2,
51 XCB_PRESENT_OPTION_UST = 4
52 } xcb_present_option_t;
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_t;
61 typedef enum xcb_present_complete_kind_t {
62 XCB_PRESENT_COMPLETE_KIND_PIXMAP = 0,
63 XCB_PRESENT_COMPLETE_KIND_NOTIFY_MSC = 1
64 } xcb_present_complete_kind_t;
66 typedef enum xcb_present_complete_mode_t {
67 XCB_PRESENT_COMPLETE_MODE_COPY = 0,
68 XCB_PRESENT_COMPLETE_MODE_FLIP = 1,
69 XCB_PRESENT_COMPLETE_MODE_SKIP = 2
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;
411 uint32_t major_version ,
412 uint32_t minor_version );
439 uint32_t major_version ,
440 uint32_t minor_version );
474 xcb_present_pixmap_sizeof (
const void *_buffer ,
475 uint32_t notifies_len );
516 xcb_window_t window ,
517 xcb_pixmap_t pixmap ,
519 xcb_xfixes_region_t valid ,
520 xcb_xfixes_region_t update ,
523 xcb_randr_crtc_t target_crtc ,
524 xcb_sync_fence_t wait_fence ,
525 xcb_sync_fence_t idle_fence ,
527 uint64_t target_msc ,
530 uint32_t notifies_len ,
569 xcb_window_t window ,
570 xcb_pixmap_t pixmap ,
572 xcb_xfixes_region_t valid ,
573 xcb_xfixes_region_t update ,
576 xcb_randr_crtc_t target_crtc ,
577 xcb_sync_fence_t wait_fence ,
578 xcb_sync_fence_t idle_fence ,
580 uint64_t target_msc ,
583 uint32_t notifies_len ,
614 xcb_window_t window ,
616 uint64_t target_msc ,
618 uint64_t remainder );
645 xcb_window_t window ,
647 uint64_t target_msc ,
649 uint64_t remainder );
720 xcb_present_event_t eid ,
721 xcb_window_t window ,
722 uint32_t event_mask );
747 xcb_present_event_t eid ,
748 xcb_window_t window ,
749 uint32_t event_mask );
832 xcb_present_redirect_notify_sizeof (
const void *_buffer ,
833 uint32_t notifies_len );