XCB  1.13.1
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
22 extern "C" {
23 #endif
24 
25 #define XCB_PRESENT_MAJOR_VERSION 1
26 #define XCB_PRESENT_MINOR_VERSION 2
27 
28 extern xcb_extension_t xcb_present_id;
29 
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;
36 
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;
44 
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;
52 
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;
59 
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;
64 
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;
71 
75 typedef struct xcb_present_notify_t {
76  xcb_window_t window;
77  uint32_t serial;
79 
85  int rem;
86  int index;
88 
93  unsigned int sequence;
95 
97 #define XCB_PRESENT_QUERY_VERSION 0
98 
103  uint8_t major_opcode;
104  uint8_t minor_opcode;
105  uint16_t length;
106  uint32_t major_version;
107  uint32_t minor_version;
109 
114  uint8_t response_type;
115  uint8_t pad0;
116  uint16_t sequence;
117  uint32_t length;
118  uint32_t major_version;
119  uint32_t minor_version;
121 
123 #define XCB_PRESENT_PIXMAP 1
124 
129  uint8_t major_opcode;
130  uint8_t minor_opcode;
131  uint16_t length;
132  xcb_window_t window;
133  xcb_pixmap_t pixmap;
134  uint32_t serial;
135  xcb_xfixes_region_t valid;
136  xcb_xfixes_region_t update;
137  int16_t x_off;
138  int16_t y_off;
139  xcb_randr_crtc_t target_crtc;
140  xcb_sync_fence_t wait_fence;
141  xcb_sync_fence_t idle_fence;
142  uint32_t options;
143  uint8_t pad0[4];
144  uint64_t target_msc;
145  uint64_t divisor;
146  uint64_t remainder;
148 
150 #define XCB_PRESENT_NOTIFY_MSC 2
151 
156  uint8_t major_opcode;
157  uint8_t minor_opcode;
158  uint16_t length;
159  xcb_window_t window;
160  uint32_t serial;
161  uint8_t pad0[4];
162  uint64_t target_msc;
163  uint64_t divisor;
164  uint64_t remainder;
166 
167 typedef uint32_t xcb_present_event_t;
168 
173  xcb_present_event_t *data;
174  int rem;
175  int index;
177 
179 #define XCB_PRESENT_SELECT_INPUT 3
180 
185  uint8_t major_opcode;
186  uint8_t minor_opcode;
187  uint16_t length;
188  xcb_present_event_t eid;
189  xcb_window_t window;
190  uint32_t event_mask;
192 
197  unsigned int sequence;
199 
201 #define XCB_PRESENT_QUERY_CAPABILITIES 4
202 
207  uint8_t major_opcode;
208  uint8_t minor_opcode;
209  uint16_t length;
210  uint32_t target;
212 
217  uint8_t response_type;
218  uint8_t pad0;
219  uint16_t sequence;
220  uint32_t length;
221  uint32_t capabilities;
223 
225 #define XCB_PRESENT_GENERIC 0
226 
231  uint8_t response_type;
232  uint8_t extension;
233  uint16_t sequence;
234  uint32_t length;
235  uint16_t evtype;
236  uint8_t pad0[2];
237  xcb_present_event_t event;
239 
241 #define XCB_PRESENT_CONFIGURE_NOTIFY 0
242 
247  uint8_t response_type;
248  uint8_t extension;
249  uint16_t sequence;
250  uint32_t length;
251  uint16_t event_type;
252  uint8_t pad0[2];
253  xcb_present_event_t event;
254  xcb_window_t window;
255  int16_t x;
256  int16_t y;
257  uint16_t width;
258  uint16_t height;
259  int16_t off_x;
260  int16_t off_y;
261  uint32_t full_sequence;
262  uint16_t pixmap_width;
263  uint16_t pixmap_height;
264  uint32_t pixmap_flags;
266 
268 #define XCB_PRESENT_COMPLETE_NOTIFY 1
269 
274  uint8_t response_type;
275  uint8_t extension;
276  uint16_t sequence;
277  uint32_t length;
278  uint16_t event_type;
279  uint8_t kind;
280  uint8_t mode;
281  xcb_present_event_t event;
282  xcb_window_t window;
283  uint32_t serial;
284  uint64_t ust;
285  uint32_t full_sequence;
286  uint64_t msc;
288 
290 #define XCB_PRESENT_IDLE_NOTIFY 2
291 
296  uint8_t response_type;
297  uint8_t extension;
298  uint16_t sequence;
299  uint32_t length;
300  uint16_t event_type;
301  uint8_t pad0[2];
302  xcb_present_event_t event;
303  xcb_window_t window;
304  uint32_t serial;
305  xcb_pixmap_t pixmap;
306  xcb_sync_fence_t idle_fence;
307  uint32_t full_sequence;
309 
311 #define XCB_PRESENT_REDIRECT_NOTIFY 3
312 
317  uint8_t response_type;
318  uint8_t extension;
319  uint16_t sequence;
320  uint32_t length;
321  uint16_t event_type;
322  uint8_t update_window;
323  uint8_t pad0;
324  xcb_present_event_t event;
325  xcb_window_t event_window;
326  xcb_window_t window;
327  xcb_pixmap_t pixmap;
328  uint32_t serial;
329  uint32_t full_sequence;
330  xcb_xfixes_region_t valid_region;
331  xcb_xfixes_region_t update_region;
332  xcb_rectangle_t valid_rect;
333  xcb_rectangle_t update_rect;
334  int16_t x_off;
335  int16_t y_off;
336  xcb_randr_crtc_t target_crtc;
337  xcb_sync_fence_t wait_fence;
338  xcb_sync_fence_t idle_fence;
339  uint32_t options;
340  uint8_t pad1[4];
341  uint64_t target_msc;
342  uint64_t divisor;
343  uint64_t remainder;
345 
354 void
356 
368 
379  uint32_t major_version,
380  uint32_t minor_version);
381 
395  uint32_t major_version,
396  uint32_t minor_version);
397 
415  xcb_generic_error_t **e);
416 
417 int
418 xcb_present_pixmap_sizeof (const void *_buffer,
419  uint32_t notifies_len);
420 
434  xcb_window_t window,
435  xcb_pixmap_t pixmap,
436  uint32_t serial,
437  xcb_xfixes_region_t valid,
438  xcb_xfixes_region_t update,
439  int16_t x_off,
440  int16_t y_off,
441  xcb_randr_crtc_t target_crtc,
442  xcb_sync_fence_t wait_fence,
443  xcb_sync_fence_t idle_fence,
444  uint32_t options,
445  uint64_t target_msc,
446  uint64_t divisor,
447  uint64_t remainder,
448  uint32_t notifies_len,
449  const xcb_present_notify_t *notifies);
450 
461  xcb_window_t window,
462  xcb_pixmap_t pixmap,
463  uint32_t serial,
464  xcb_xfixes_region_t valid,
465  xcb_xfixes_region_t update,
466  int16_t x_off,
467  int16_t y_off,
468  xcb_randr_crtc_t target_crtc,
469  xcb_sync_fence_t wait_fence,
470  xcb_sync_fence_t idle_fence,
471  uint32_t options,
472  uint64_t target_msc,
473  uint64_t divisor,
474  uint64_t remainder,
475  uint32_t notifies_len,
476  const xcb_present_notify_t *notifies);
477 
479 xcb_present_pixmap_notifies (const xcb_present_pixmap_request_t *R);
480 
481 int
482 xcb_present_pixmap_notifies_length (const xcb_present_pixmap_request_t *R);
483 
485 xcb_present_pixmap_notifies_iterator (const xcb_present_pixmap_request_t *R);
486 
500  xcb_window_t window,
501  uint32_t serial,
502  uint64_t target_msc,
503  uint64_t divisor,
504  uint64_t remainder);
505 
516  xcb_window_t window,
517  uint32_t serial,
518  uint64_t target_msc,
519  uint64_t divisor,
520  uint64_t remainder);
521 
530 void
532 
544 
558  xcb_present_event_t eid,
559  xcb_window_t window,
560  uint32_t event_mask);
561 
572  xcb_present_event_t eid,
573  xcb_window_t window,
574  uint32_t event_mask);
575 
586  uint32_t target);
587 
601  uint32_t target);
602 
620  xcb_generic_error_t **e);
621 
622 int
623 xcb_present_redirect_notify_sizeof (const void *_buffer,
624  uint32_t notifies_len);
625 
627 xcb_present_redirect_notify_notifies (const xcb_present_redirect_notify_event_t *R);
628 
629 int
630 xcb_present_redirect_notify_notifies_length (const xcb_present_redirect_notify_event_t *R);
631 
633 xcb_present_redirect_notify_notifies_iterator (const xcb_present_redirect_notify_event_t *R);
634 
635 
636 #ifdef __cplusplus
637 }
638 #endif
639 
640 #endif
641 
xcb_present_pixmap
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
xcb_present_select_input_request_t
struct xcb_present_select_input_request_t xcb_present_select_input_request_t
xcb_present_select_input_request_t
xcb_present_query_capabilities_request_t
struct xcb_present_query_capabilities_request_t xcb_present_query_capabilities_request_t
xcb_present_query_capabilities_request_t
xcb_present_configure_notify_event_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
xcb_present_pixmap_request_t
Definition: present.h:128
xcb_present_complete_notify_event_t
struct xcb_present_complete_notify_event_t xcb_present_complete_notify_event_t
xcb_present_complete_notify_event_t
xcb_present_event_iterator_t
struct xcb_present_event_iterator_t xcb_present_event_iterator_t
xcb_present_event_iterator_t
XCB_PRESENT_QUERY_VERSION
#define XCB_PRESENT_QUERY_VERSION
Definition: present.h:97
xcb_present_query_capabilities
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
xcb_present_generic_event_t
Definition: present.h:230
xcb_present_select_input_request_t
xcb_present_select_input_request_t
Definition: present.h:184
xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_t
Definition: present.h:316
xcb_present_notify_t
struct xcb_present_notify_t xcb_present_notify_t
xcb_present_notify_t
xcb_present_redirect_notify_event_t
struct xcb_present_redirect_notify_event_t xcb_present_redirect_notify_event_t
xcb_present_redirect_notify_event_t
xcb_present_select_input_checked
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_SELECT_INPUT
#define XCB_PRESENT_SELECT_INPUT
Definition: present.h:179
xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
Definition: present.h:295
xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
Definition: present.h:83
xcb_present_notify_next
void xcb_present_notify_next(xcb_present_notify_iterator_t *i)
Definition: present.c:25
xcb_present_notify_iterator_t
struct xcb_present_notify_iterator_t xcb_present_notify_iterator_t
xcb_present_notify_iterator_t
xcb_rectangle_t
xcb_rectangle_t
Definition: xproto.h:234
xcb_present_pixmap_checked
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_present_configure_notify_event_t
xcb_present_configure_notify_event_t
Definition: present.h:246
xcb_present_query_version_reply_t
struct xcb_present_query_version_reply_t xcb_present_query_version_reply_t
xcb_present_query_version_reply_t
xcb_present_notify_msc_request_t
struct xcb_present_notify_msc_request_t xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
xcb_connection_t
Definition: xcbint.h:195
xcb_present_query_capabilities_unchecked
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_unchecked(xcb_connection_t *c, uint32_t target)
Definition: present.c:454
xcb_generic_iterator_t::data
void * data
Definition: xcb.h:115
xcb_present_generic_event_t
struct xcb_present_generic_event_t xcb_present_generic_event_t
xcb_present_generic_event_t
xcb_present_select_input
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_event_next
void xcb_present_event_next(xcb_present_event_iterator_t *i)
Definition: present.c:350
xcb_present_notify_msc_checked
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
xcb_present_query_capabilities_request_t
Definition: present.h:206
xcb_present_query_version_reply_t
xcb_present_query_version_reply_t
Definition: present.h:113
xcb_generic_error_t
Generic error.
Definition: xcb.h:182
xcb_present_query_version
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_notify_msc
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_capabilities_cookie_t
struct xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_cookie_t
xcb_present_query_capabilities_cookie_t
xcb_present_query_version_reply
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
iovec
Definition: xcb_windefs.h:38
xcb.h
xcb_present_pixmap_request_t
struct xcb_present_pixmap_request_t xcb_present_pixmap_request_t
xcb_present_pixmap_request_t
xcb_present_notify_msc_request_t
xcb_present_notify_msc_request_t
Definition: present.h:155
XCB_PRESENT_PIXMAP
#define XCB_PRESENT_PIXMAP
Definition: present.h:123
xcb_present_event_iterator_t
xcb_present_event_iterator_t
Definition: present.h:172
xcb_extension_t
Definition: xcbext.h:39
xcb_generic_iterator_t::index
int index
Definition: xcb.h:117
xcb_generic_iterator_t::rem
int rem
Definition: xcb.h:116
XCB_PRESENT_NOTIFY_MSC
#define XCB_PRESENT_NOTIFY_MSC
Definition: present.h:150
xcb_present_query_version_cookie_t
struct xcb_present_query_version_cookie_t xcb_present_query_version_cookie_t
xcb_present_query_version_cookie_t
xcb_present_query_capabilities_reply_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
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
xcb_present_notify_t
Definition: present.h:75
xcb_present_query_version_unchecked
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_present_idle_notify_event_t
struct xcb_present_idle_notify_event_t xcb_present_idle_notify_event_t
xcb_present_idle_notify_event_t
xcb_generic_iterator_t
Generic iterator.
Definition: xcb.h:114
xcb_present_notify_end
xcb_generic_iterator_t xcb_present_notify_end(xcb_present_notify_iterator_t i)
Definition: present.c:33
xcb_protocol_request_t
Definition: xcbext.h:47
xcb_present_complete_notify_event_t
xcb_present_complete_notify_event_t
Definition: present.h:273
xcb_present_query_version_request_t
xcb_present_query_version_request_t
Definition: present.h:102
xcb_present_query_capabilities_reply_t
xcb_present_query_capabilities_reply_t
Definition: present.h:216
xcb_present_query_version_request_t
struct xcb_present_query_version_request_t xcb_present_query_version_request_t
xcb_present_query_version_request_t
XCB_PRESENT_QUERY_CAPABILITIES
#define XCB_PRESENT_QUERY_CAPABILITIES
Definition: present.h:201
xcb_present_event_end
xcb_generic_iterator_t xcb_present_event_end(xcb_present_event_iterator_t i)
Definition: present.c:358