XCB  1.12
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
XCB Shape API

Shape XCB Protocol Implementation. More...

Data Structures

struct  xcb_shape_op_iterator_t
 xcb_shape_op_iterator_t More...
 
struct  xcb_shape_kind_iterator_t
 xcb_shape_kind_iterator_t More...
 
struct  xcb_shape_notify_event_t
 xcb_shape_notify_event_t More...
 
struct  xcb_shape_query_version_cookie_t
 xcb_shape_query_version_cookie_t More...
 
struct  xcb_shape_query_version_request_t
 xcb_shape_query_version_request_t More...
 
struct  xcb_shape_query_version_reply_t
 xcb_shape_query_version_reply_t More...
 
struct  xcb_shape_rectangles_request_t
 xcb_shape_rectangles_request_t More...
 
struct  xcb_shape_mask_request_t
 xcb_shape_mask_request_t More...
 
struct  xcb_shape_combine_request_t
 xcb_shape_combine_request_t More...
 
struct  xcb_shape_offset_request_t
 xcb_shape_offset_request_t More...
 
struct  xcb_shape_query_extents_cookie_t
 xcb_shape_query_extents_cookie_t More...
 
struct  xcb_shape_query_extents_request_t
 xcb_shape_query_extents_request_t More...
 
struct  xcb_shape_query_extents_reply_t
 xcb_shape_query_extents_reply_t More...
 
struct  xcb_shape_select_input_request_t
 xcb_shape_select_input_request_t More...
 
struct  xcb_shape_input_selected_cookie_t
 xcb_shape_input_selected_cookie_t More...
 
struct  xcb_shape_input_selected_request_t
 xcb_shape_input_selected_request_t More...
 
struct  xcb_shape_input_selected_reply_t
 xcb_shape_input_selected_reply_t More...
 
struct  xcb_shape_get_rectangles_cookie_t
 xcb_shape_get_rectangles_cookie_t More...
 
struct  xcb_shape_get_rectangles_request_t
 xcb_shape_get_rectangles_request_t More...
 
struct  xcb_shape_get_rectangles_reply_t
 xcb_shape_get_rectangles_reply_t More...
 

Macros

#define XCB_SHAPE_MAJOR_VERSION   1
 
#define XCB_SHAPE_MINOR_VERSION   1
 
#define XCB_SHAPE_NOTIFY   0
 
#define XCB_SHAPE_QUERY_VERSION   0
 
#define XCB_SHAPE_RECTANGLES   1
 
#define XCB_SHAPE_MASK   2
 
#define XCB_SHAPE_COMBINE   3
 
#define XCB_SHAPE_OFFSET   4
 
#define XCB_SHAPE_QUERY_EXTENTS   5
 
#define XCB_SHAPE_SELECT_INPUT   6
 
#define XCB_SHAPE_INPUT_SELECTED   7
 
#define XCB_SHAPE_GET_RECTANGLES   8
 

Typedefs

typedef uint8_t xcb_shape_op_t
 
typedef struct xcb_shape_op_iterator_t xcb_shape_op_iterator_t
 xcb_shape_op_iterator_t
 
typedef uint8_t xcb_shape_kind_t
 
typedef struct xcb_shape_kind_iterator_t xcb_shape_kind_iterator_t
 xcb_shape_kind_iterator_t
 
typedef enum xcb_shape_so_t xcb_shape_so_t
 
typedef enum xcb_shape_sk_t xcb_shape_sk_t
 
typedef struct xcb_shape_notify_event_t xcb_shape_notify_event_t
 xcb_shape_notify_event_t
 
typedef struct xcb_shape_query_version_cookie_t xcb_shape_query_version_cookie_t
 xcb_shape_query_version_cookie_t
 
typedef struct xcb_shape_query_version_request_t xcb_shape_query_version_request_t
 xcb_shape_query_version_request_t
 
typedef struct xcb_shape_query_version_reply_t xcb_shape_query_version_reply_t
 xcb_shape_query_version_reply_t
 
typedef struct xcb_shape_rectangles_request_t xcb_shape_rectangles_request_t
 xcb_shape_rectangles_request_t
 
typedef struct xcb_shape_mask_request_t xcb_shape_mask_request_t
 xcb_shape_mask_request_t
 
typedef struct xcb_shape_combine_request_t xcb_shape_combine_request_t
 xcb_shape_combine_request_t
 
typedef struct xcb_shape_offset_request_t xcb_shape_offset_request_t
 xcb_shape_offset_request_t
 
typedef struct xcb_shape_query_extents_cookie_t xcb_shape_query_extents_cookie_t
 xcb_shape_query_extents_cookie_t
 
typedef struct xcb_shape_query_extents_request_t xcb_shape_query_extents_request_t
 xcb_shape_query_extents_request_t
 
typedef struct xcb_shape_query_extents_reply_t xcb_shape_query_extents_reply_t
 xcb_shape_query_extents_reply_t
 
typedef struct xcb_shape_select_input_request_t xcb_shape_select_input_request_t
 xcb_shape_select_input_request_t
 
typedef struct xcb_shape_input_selected_cookie_t xcb_shape_input_selected_cookie_t
 xcb_shape_input_selected_cookie_t
 
typedef struct xcb_shape_input_selected_request_t xcb_shape_input_selected_request_t
 xcb_shape_input_selected_request_t
 
typedef struct xcb_shape_input_selected_reply_t xcb_shape_input_selected_reply_t
 xcb_shape_input_selected_reply_t
 
typedef struct xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_cookie_t
 xcb_shape_get_rectangles_cookie_t
 
typedef struct xcb_shape_get_rectangles_request_t xcb_shape_get_rectangles_request_t
 xcb_shape_get_rectangles_request_t
 
typedef struct xcb_shape_get_rectangles_reply_t xcb_shape_get_rectangles_reply_t
 xcb_shape_get_rectangles_reply_t
 

Enumerations

enum  xcb_shape_so_t {
  XCB_SHAPE_SO_SET = 0, XCB_SHAPE_SO_UNION = 1, XCB_SHAPE_SO_INTERSECT = 2, XCB_SHAPE_SO_SUBTRACT = 3,
  XCB_SHAPE_SO_INVERT = 4
}
 
enum  xcb_shape_sk_t { XCB_SHAPE_SK_BOUNDING = 0, XCB_SHAPE_SK_CLIP = 1, XCB_SHAPE_SK_INPUT = 2 }
 

Functions

void xcb_shape_op_next (xcb_shape_op_iterator_t *i)
 
xcb_generic_iterator_t xcb_shape_op_end (xcb_shape_op_iterator_t i)
 
void xcb_shape_kind_next (xcb_shape_kind_iterator_t *i)
 
xcb_generic_iterator_t xcb_shape_kind_end (xcb_shape_kind_iterator_t i)
 
xcb_shape_query_version_cookie_t xcb_shape_query_version (xcb_connection_t *c)
 
xcb_shape_query_version_cookie_t xcb_shape_query_version_unchecked (xcb_connection_t *c)
 
xcb_shape_query_version_reply_txcb_shape_query_version_reply (xcb_connection_t *c, xcb_shape_query_version_cookie_t cookie, xcb_generic_error_t **e)
 
int xcb_shape_rectangles_sizeof (const void *_buffer, uint32_t rectangles_len)
 
xcb_void_cookie_t xcb_shape_rectangles_checked (xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, uint8_t ordering, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, uint32_t rectangles_len, const xcb_rectangle_t *rectangles)
 
xcb_void_cookie_t xcb_shape_rectangles (xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, uint8_t ordering, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, uint32_t rectangles_len, const xcb_rectangle_t *rectangles)
 
xcb_rectangle_txcb_shape_rectangles_rectangles (const xcb_shape_rectangles_request_t *R)
 
int xcb_shape_rectangles_rectangles_length (const xcb_shape_rectangles_request_t *R)
 
xcb_rectangle_iterator_t xcb_shape_rectangles_rectangles_iterator (const xcb_shape_rectangles_request_t *R)
 
xcb_void_cookie_t xcb_shape_mask_checked (xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_pixmap_t source_bitmap)
 
xcb_void_cookie_t xcb_shape_mask (xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_pixmap_t source_bitmap)
 
xcb_void_cookie_t xcb_shape_combine_checked (xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_shape_kind_t source_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_window_t source_window)
 
xcb_void_cookie_t xcb_shape_combine (xcb_connection_t *c, xcb_shape_op_t operation, xcb_shape_kind_t destination_kind, xcb_shape_kind_t source_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset, xcb_window_t source_window)
 
xcb_void_cookie_t xcb_shape_offset_checked (xcb_connection_t *c, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset)
 
xcb_void_cookie_t xcb_shape_offset (xcb_connection_t *c, xcb_shape_kind_t destination_kind, xcb_window_t destination_window, int16_t x_offset, int16_t y_offset)
 
xcb_shape_query_extents_cookie_t xcb_shape_query_extents (xcb_connection_t *c, xcb_window_t destination_window)
 
xcb_shape_query_extents_cookie_t xcb_shape_query_extents_unchecked (xcb_connection_t *c, xcb_window_t destination_window)
 
xcb_shape_query_extents_reply_txcb_shape_query_extents_reply (xcb_connection_t *c, xcb_shape_query_extents_cookie_t cookie, xcb_generic_error_t **e)
 
xcb_void_cookie_t xcb_shape_select_input_checked (xcb_connection_t *c, xcb_window_t destination_window, uint8_t enable)
 
xcb_void_cookie_t xcb_shape_select_input (xcb_connection_t *c, xcb_window_t destination_window, uint8_t enable)
 
xcb_shape_input_selected_cookie_t xcb_shape_input_selected (xcb_connection_t *c, xcb_window_t destination_window)
 
xcb_shape_input_selected_cookie_t xcb_shape_input_selected_unchecked (xcb_connection_t *c, xcb_window_t destination_window)
 
xcb_shape_input_selected_reply_txcb_shape_input_selected_reply (xcb_connection_t *c, xcb_shape_input_selected_cookie_t cookie, xcb_generic_error_t **e)
 
int xcb_shape_get_rectangles_sizeof (const void *_buffer)
 
xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles (xcb_connection_t *c, xcb_window_t window, xcb_shape_kind_t source_kind)
 
xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_unchecked (xcb_connection_t *c, xcb_window_t window, xcb_shape_kind_t source_kind)
 
xcb_rectangle_txcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R)
 
int xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R)
 
xcb_rectangle_iterator_t xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R)
 
xcb_shape_get_rectangles_reply_txcb_shape_get_rectangles_reply (xcb_connection_t *c, xcb_shape_get_rectangles_cookie_t cookie, xcb_generic_error_t **e)
 

Variables

xcb_extension_t xcb_shape_id
 

Detailed Description

Shape XCB Protocol Implementation.

Macro Definition Documentation

#define XCB_SHAPE_COMBINE   3

Opcode for xcb_shape_combine.

Referenced by xcb_shape_combine(), and xcb_shape_combine_checked().

#define XCB_SHAPE_GET_RECTANGLES   8

Opcode for xcb_shape_get_rectangles.

Referenced by xcb_shape_get_rectangles(), and xcb_shape_get_rectangles_unchecked().

#define XCB_SHAPE_INPUT_SELECTED   7

Opcode for xcb_shape_input_selected.

Referenced by xcb_shape_input_selected(), and xcb_shape_input_selected_unchecked().

#define XCB_SHAPE_MASK   2

Opcode for xcb_shape_mask.

Referenced by xcb_shape_mask(), and xcb_shape_mask_checked().

#define XCB_SHAPE_NOTIFY   0

Opcode for xcb_shape_notify.

#define XCB_SHAPE_OFFSET   4

Opcode for xcb_shape_offset.

Referenced by xcb_shape_offset(), and xcb_shape_offset_checked().

#define XCB_SHAPE_QUERY_EXTENTS   5

Opcode for xcb_shape_query_extents.

Referenced by xcb_shape_query_extents(), and xcb_shape_query_extents_unchecked().

#define XCB_SHAPE_QUERY_VERSION   0

Opcode for xcb_shape_query_version.

Referenced by xcb_shape_query_version(), and xcb_shape_query_version_unchecked().

#define XCB_SHAPE_RECTANGLES   1

Opcode for xcb_shape_rectangles.

Referenced by xcb_shape_rectangles(), and xcb_shape_rectangles_checked().

#define XCB_SHAPE_SELECT_INPUT   6

Opcode for xcb_shape_select_input.

Referenced by xcb_shape_select_input(), and xcb_shape_select_input_checked().

Function Documentation

xcb_void_cookie_t xcb_shape_combine ( xcb_connection_t c,
xcb_shape_op_t  operation,
xcb_shape_kind_t  destination_kind,
xcb_shape_kind_t  source_kind,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset,
xcb_window_t  source_window 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_COMBINE.

xcb_void_cookie_t xcb_shape_combine_checked ( xcb_connection_t c,
xcb_shape_op_t  operation,
xcb_shape_kind_t  destination_kind,
xcb_shape_kind_t  source_kind,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset,
xcb_window_t  source_window 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_COMBINE.

xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles ( xcb_connection_t c,
xcb_window_t  window,
xcb_shape_kind_t  source_kind 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_GET_RECTANGLES.

xcb_shape_get_rectangles_reply_t* xcb_shape_get_rectangles_reply ( xcb_connection_t c,
xcb_shape_get_rectangles_cookie_t  cookie,
xcb_generic_error_t **  e 
)

Return the reply

Parameters
cThe connection
cookieThe cookie
eThe 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_shape_get_rectangles_unchecked(). is used. Otherwise, it stores the error if any.

The returned value must be freed by the caller using free().

xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_unchecked ( xcb_connection_t c,
xcb_window_t  window,
xcb_shape_kind_t  source_kind 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_GET_RECTANGLES.

xcb_shape_input_selected_cookie_t xcb_shape_input_selected ( xcb_connection_t c,
xcb_window_t  destination_window 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_INPUT_SELECTED.

xcb_shape_input_selected_reply_t* xcb_shape_input_selected_reply ( xcb_connection_t c,
xcb_shape_input_selected_cookie_t  cookie,
xcb_generic_error_t **  e 
)

Return the reply

Parameters
cThe connection
cookieThe cookie
eThe 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_shape_input_selected_unchecked(). is used. Otherwise, it stores the error if any.

The returned value must be freed by the caller using free().

xcb_shape_input_selected_cookie_t xcb_shape_input_selected_unchecked ( xcb_connection_t c,
xcb_window_t  destination_window 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_INPUT_SELECTED.

Return the iterator pointing to the last element

Parameters
iAn xcb_shape_kind_iterator_t
Returns
The iterator pointing to the last element

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_generic_iterator_t::index, and xcb_generic_iterator_t::rem.

void xcb_shape_kind_next ( xcb_shape_kind_iterator_t i)

Get the next element of the iterator

Parameters
iPointer to a xcb_shape_kind_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_shape_kind_t)

xcb_void_cookie_t xcb_shape_mask ( xcb_connection_t c,
xcb_shape_op_t  operation,
xcb_shape_kind_t  destination_kind,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset,
xcb_pixmap_t  source_bitmap 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_MASK.

xcb_void_cookie_t xcb_shape_mask_checked ( xcb_connection_t c,
xcb_shape_op_t  operation,
xcb_shape_kind_t  destination_kind,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset,
xcb_pixmap_t  source_bitmap 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_MASK.

xcb_void_cookie_t xcb_shape_offset ( xcb_connection_t c,
xcb_shape_kind_t  destination_kind,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_OFFSET.

xcb_void_cookie_t xcb_shape_offset_checked ( xcb_connection_t c,
xcb_shape_kind_t  destination_kind,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_OFFSET.

Return the iterator pointing to the last element

Parameters
iAn xcb_shape_op_iterator_t
Returns
The iterator pointing to the last element

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_generic_iterator_t::index, and xcb_generic_iterator_t::rem.

void xcb_shape_op_next ( xcb_shape_op_iterator_t i)

Get the next element of the iterator

Parameters
iPointer to a xcb_shape_op_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_shape_op_t)

xcb_shape_query_extents_cookie_t xcb_shape_query_extents ( xcb_connection_t c,
xcb_window_t  destination_window 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_QUERY_EXTENTS.

xcb_shape_query_extents_reply_t* xcb_shape_query_extents_reply ( xcb_connection_t c,
xcb_shape_query_extents_cookie_t  cookie,
xcb_generic_error_t **  e 
)

Return the reply

Parameters
cThe connection
cookieThe cookie
eThe 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_shape_query_extents_unchecked(). is used. Otherwise, it stores the error if any.

The returned value must be freed by the caller using free().

xcb_shape_query_extents_cookie_t xcb_shape_query_extents_unchecked ( xcb_connection_t c,
xcb_window_t  destination_window 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_QUERY_EXTENTS.

xcb_shape_query_version_cookie_t xcb_shape_query_version ( xcb_connection_t c)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_QUERY_VERSION.

xcb_shape_query_version_reply_t* xcb_shape_query_version_reply ( xcb_connection_t c,
xcb_shape_query_version_cookie_t  cookie,
xcb_generic_error_t **  e 
)

Return the reply

Parameters
cThe connection
cookieThe cookie
eThe 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_shape_query_version_unchecked(). is used. Otherwise, it stores the error if any.

The returned value must be freed by the caller using free().

xcb_shape_query_version_cookie_t xcb_shape_query_version_unchecked ( xcb_connection_t c)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_QUERY_VERSION.

xcb_void_cookie_t xcb_shape_rectangles ( xcb_connection_t c,
xcb_shape_op_t  operation,
xcb_shape_kind_t  destination_kind,
uint8_t  ordering,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset,
uint32_t  rectangles_len,
const xcb_rectangle_t rectangles 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_RECTANGLES.

xcb_void_cookie_t xcb_shape_rectangles_checked ( xcb_connection_t c,
xcb_shape_op_t  operation,
xcb_shape_kind_t  destination_kind,
uint8_t  ordering,
xcb_window_t  destination_window,
int16_t  x_offset,
int16_t  y_offset,
uint32_t  rectangles_len,
const xcb_rectangle_t rectangles 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_RECTANGLES.

xcb_void_cookie_t xcb_shape_select_input ( xcb_connection_t c,
xcb_window_t  destination_window,
uint8_t  enable 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

References XCB_SHAPE_SELECT_INPUT.

xcb_void_cookie_t xcb_shape_select_input_checked ( xcb_connection_t c,
xcb_window_t  destination_window,
uint8_t  enable 
)
Parameters
cThe connection
Returns
A cookie

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_SHAPE_SELECT_INPUT.