XCB
1.11.1
|
Present XCB Protocol Implementation. More...
Present XCB Protocol Implementation.
#define XCB_PRESENT_COMPLETE_NOTIFY 1 |
Opcode for xcb_present_complete_notify.
#define XCB_PRESENT_CONFIGURE_NOTIFY 0 |
Opcode for xcb_present_configure_notify.
#define XCB_PRESENT_GENERIC 0 |
Opcode for xcb_present_generic.
#define XCB_PRESENT_IDLE_NOTIFY 2 |
Opcode for xcb_present_idle_notify.
#define XCB_PRESENT_NOTIFY_MSC 2 |
Opcode for xcb_present_notify_msc.
Referenced by xcb_present_notify_msc(), and xcb_present_notify_msc_checked().
#define XCB_PRESENT_PIXMAP 1 |
Opcode for xcb_present_pixmap.
Referenced by xcb_present_pixmap(), and xcb_present_pixmap_checked().
#define XCB_PRESENT_QUERY_CAPABILITIES 4 |
Opcode for xcb_present_query_capabilities.
Referenced by xcb_present_query_capabilities(), and xcb_present_query_capabilities_unchecked().
#define XCB_PRESENT_QUERY_VERSION 0 |
Opcode for xcb_present_query_version.
Referenced by xcb_present_query_version(), and xcb_present_query_version_unchecked().
#define XCB_PRESENT_REDIRECT_NOTIFY 3 |
Opcode for xcb_present_redirect_notify.
#define XCB_PRESENT_SELECT_INPUT 3 |
Opcode for xcb_present_select_input.
Referenced by xcb_present_select_input(), and xcb_present_select_input_checked().
Return the iterator pointing to the last element
i | An xcb_present_event_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_generic_iterator_t::data, xcb_present_event_iterator_t::data, xcb_generic_iterator_t::index, xcb_present_event_iterator_t::index, xcb_generic_iterator_t::rem, and xcb_present_event_iterator_t::rem.
void xcb_present_event_next | ( | xcb_present_event_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_present_event_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_present_event_t)
References xcb_present_event_iterator_t::data, xcb_present_event_iterator_t::index, and xcb_present_event_iterator_t::rem.
Return the iterator pointing to the last element
i | An xcb_present_notify_iterator_t |
Set the current element in the iterator to the last element. The member rem is set to 0. The member data points to the last element.
References xcb_present_notify_iterator_t::data, xcb_generic_iterator_t::data, xcb_present_notify_iterator_t::index, xcb_generic_iterator_t::index, xcb_present_notify_iterator_t::rem, and xcb_generic_iterator_t::rem.
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 | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_present_notify_msc_request_t::divisor, xcb_present_notify_msc_request_t::pad0, xcb_present_notify_msc_request_t::remainder, xcb_present_notify_msc_request_t::serial, xcb_present_notify_msc_request_t::target_msc, xcb_present_notify_msc_request_t::window, and XCB_PRESENT_NOTIFY_MSC.
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 | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_present_notify_msc_request_t::divisor, xcb_present_notify_msc_request_t::pad0, xcb_present_notify_msc_request_t::remainder, xcb_present_notify_msc_request_t::serial, xcb_present_notify_msc_request_t::target_msc, xcb_present_notify_msc_request_t::window, and XCB_PRESENT_NOTIFY_MSC.
void xcb_present_notify_next | ( | xcb_present_notify_iterator_t * | i | ) |
Get the next element of the iterator
i | Pointer to a xcb_present_notify_iterator_t |
Get the next element in the iterator. The member rem is decreased by one. The member data points to the next element. The member index is increased by sizeof(xcb_present_notify_t)
References xcb_present_notify_iterator_t::data, xcb_present_notify_iterator_t::index, and xcb_present_notify_iterator_t::rem.
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 | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_present_pixmap_request_t::divisor, xcb_present_pixmap_request_t::idle_fence, xcb_present_pixmap_request_t::options, xcb_present_pixmap_request_t::pad0, xcb_present_pixmap_request_t::pixmap, xcb_present_pixmap_request_t::remainder, xcb_present_pixmap_request_t::serial, xcb_present_pixmap_request_t::target_crtc, xcb_present_pixmap_request_t::target_msc, xcb_present_pixmap_request_t::update, xcb_present_pixmap_request_t::valid, xcb_present_pixmap_request_t::wait_fence, xcb_present_pixmap_request_t::window, xcb_present_pixmap_request_t::x_off, XCB_PRESENT_PIXMAP, and xcb_present_pixmap_request_t::y_off.
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 | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_present_pixmap_request_t::divisor, xcb_present_pixmap_request_t::idle_fence, xcb_present_pixmap_request_t::options, xcb_present_pixmap_request_t::pad0, xcb_present_pixmap_request_t::pixmap, xcb_present_pixmap_request_t::remainder, xcb_present_pixmap_request_t::serial, xcb_present_pixmap_request_t::target_crtc, xcb_present_pixmap_request_t::target_msc, xcb_present_pixmap_request_t::update, xcb_present_pixmap_request_t::valid, xcb_present_pixmap_request_t::wait_fence, xcb_present_pixmap_request_t::window, xcb_present_pixmap_request_t::x_off, XCB_PRESENT_PIXMAP, and xcb_present_pixmap_request_t::y_off.
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities | ( | xcb_connection_t * | c, |
uint32_t | target | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_present_query_capabilities_request_t::target, and XCB_PRESENT_QUERY_CAPABILITIES.
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 | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_present_query_capabilities_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_present_query_capabilities_cookie_t::sequence.
xcb_present_query_capabilities_cookie_t xcb_present_query_capabilities_unchecked | ( | xcb_connection_t * | c, |
uint32_t | target | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_present_query_capabilities_request_t::target, and XCB_PRESENT_QUERY_CAPABILITIES.
xcb_present_query_version_cookie_t xcb_present_query_version | ( | xcb_connection_t * | c, |
uint32_t | major_version, | ||
uint32_t | minor_version | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_present_query_version_request_t::major_version, xcb_present_query_version_request_t::minor_version, and XCB_PRESENT_QUERY_VERSION.
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 | ||
) |
Return the reply
c | The connection |
cookie | The cookie |
e | The xcb_generic_error_t supplied |
Returns the reply of the request asked by
The parameter e
supplied to this function must be NULL if xcb_present_query_version_unchecked(). is used. Otherwise, it stores the error if any.
The returned value must be freed by the caller using free().
References xcb_present_query_version_cookie_t::sequence.
xcb_present_query_version_cookie_t xcb_present_query_version_unchecked | ( | xcb_connection_t * | c, |
uint32_t | major_version, | ||
uint32_t | minor_version | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will cause a reply to be generated. Any returned error will be placed in the event queue.
References xcb_present_query_version_request_t::major_version, xcb_present_query_version_request_t::minor_version, and XCB_PRESENT_QUERY_VERSION.
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 | ||
) |
c | The connection |
Delivers a request to the X server.
References xcb_present_select_input_request_t::eid, xcb_present_select_input_request_t::event_mask, xcb_present_select_input_request_t::window, and XCB_PRESENT_SELECT_INPUT.
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 | ||
) |
c | The connection |
Delivers a request to the X server.
This form can be used only if the request will not cause a reply to be generated. Any returned error will be saved for handling by xcb_request_check().
References xcb_present_select_input_request_t::eid, xcb_present_select_input_request_t::event_mask, xcb_present_select_input_request_t::window, and XCB_PRESENT_SELECT_INPUT.