22 #define XCB_SHAPE_MAJOR_VERSION 1
23 #define XCB_SHAPE_MINOR_VERSION 1
27 typedef uint8_t xcb_shape_op_t;
38 typedef uint8_t xcb_shape_kind_t;
44 xcb_shape_kind_t *data;
49 typedef enum xcb_shape_so_t {
52 XCB_SHAPE_SO_INTERSECT,
53 XCB_SHAPE_SO_SUBTRACT,
57 typedef enum xcb_shape_sk_t {
58 XCB_SHAPE_SK_BOUNDING,
64 #define XCB_SHAPE_NOTIFY 0
70 uint8_t response_type;
71 xcb_shape_kind_t shape_kind;
73 xcb_window_t affected_window;
76 uint16_t extents_width;
77 uint16_t extents_height;
78 xcb_timestamp_t server_time;
87 unsigned int sequence;
91 #define XCB_SHAPE_QUERY_VERSION 0
106 uint8_t response_type;
110 uint16_t major_version;
111 uint16_t minor_version;
115 #define XCB_SHAPE_RECTANGLES 1
121 uint8_t major_opcode;
122 uint8_t minor_opcode;
124 xcb_shape_op_t operation;
125 xcb_shape_kind_t destination_kind;
128 xcb_window_t destination_window;
134 #define XCB_SHAPE_MASK 2
140 uint8_t major_opcode;
141 uint8_t minor_opcode;
143 xcb_shape_op_t operation;
144 xcb_shape_kind_t destination_kind;
146 xcb_window_t destination_window;
149 xcb_pixmap_t source_bitmap;
153 #define XCB_SHAPE_COMBINE 3
159 uint8_t major_opcode;
160 uint8_t minor_opcode;
162 xcb_shape_op_t operation;
163 xcb_shape_kind_t destination_kind;
164 xcb_shape_kind_t source_kind;
166 xcb_window_t destination_window;
169 xcb_window_t source_window;
173 #define XCB_SHAPE_OFFSET 4
179 uint8_t major_opcode;
180 uint8_t minor_opcode;
182 xcb_shape_kind_t destination_kind;
184 xcb_window_t destination_window;
193 unsigned int sequence;
197 #define XCB_SHAPE_QUERY_EXTENTS 5
203 uint8_t major_opcode;
204 uint8_t minor_opcode;
206 xcb_window_t destination_window;
213 uint8_t response_type;
217 uint8_t bounding_shaped;
220 int16_t bounding_shape_extents_x;
221 int16_t bounding_shape_extents_y;
222 uint16_t bounding_shape_extents_width;
223 uint16_t bounding_shape_extents_height;
224 int16_t clip_shape_extents_x;
225 int16_t clip_shape_extents_y;
226 uint16_t clip_shape_extents_width;
227 uint16_t clip_shape_extents_height;
231 #define XCB_SHAPE_SELECT_INPUT 6
237 uint8_t major_opcode;
238 uint8_t minor_opcode;
240 xcb_window_t destination_window;
249 unsigned int sequence;
253 #define XCB_SHAPE_INPUT_SELECTED 7
259 uint8_t major_opcode;
260 uint8_t minor_opcode;
262 xcb_window_t destination_window;
269 uint8_t response_type;
279 unsigned int sequence;
283 #define XCB_SHAPE_GET_RECTANGLES 8
289 uint8_t major_opcode;
290 uint8_t minor_opcode;
293 xcb_shape_kind_t source_kind;
301 uint8_t response_type;
305 uint32_t rectangles_len;
472 xcb_shape_rectangles_sizeof (
const void *_buffer ,
473 uint32_t rectangles_len );
506 xcb_shape_op_t operation ,
507 xcb_shape_kind_t destination_kind ,
509 xcb_window_t destination_window ,
512 uint32_t rectangles_len ,
543 xcb_shape_op_t operation ,
544 xcb_shape_kind_t destination_kind ,
546 xcb_window_t destination_window ,
549 uint32_t rectangles_len ,
581 xcb_shape_op_t operation ,
582 xcb_shape_kind_t destination_kind ,
583 xcb_window_t destination_window ,
586 xcb_pixmap_t source_bitmap );
614 xcb_shape_op_t operation ,
615 xcb_shape_kind_t destination_kind ,
616 xcb_window_t destination_window ,
619 xcb_pixmap_t source_bitmap );
651 xcb_shape_op_t operation ,
652 xcb_shape_kind_t destination_kind ,
653 xcb_shape_kind_t source_kind ,
654 xcb_window_t destination_window ,
657 xcb_window_t source_window );
686 xcb_shape_op_t operation ,
687 xcb_shape_kind_t destination_kind ,
688 xcb_shape_kind_t source_kind ,
689 xcb_window_t destination_window ,
692 xcb_window_t source_window );
721 xcb_shape_kind_t destination_kind ,
722 xcb_window_t destination_window ,
750 xcb_shape_kind_t destination_kind ,
751 xcb_window_t destination_window ,
776 xcb_window_t destination_window );
802 xcb_window_t destination_window );
860 xcb_window_t destination_window ,
885 xcb_window_t destination_window ,
909 xcb_window_t destination_window );
935 xcb_window_t destination_window );
969 xcb_shape_get_rectangles_sizeof (
const void *_buffer );
993 xcb_window_t window ,
994 xcb_shape_kind_t source_kind );
1021 xcb_window_t window ,
1022 xcb_shape_kind_t source_kind );
xcb_shape_query_version_cookie_t
Definition: shape.h:86
struct xcb_shape_query_extents_reply_t xcb_shape_query_extents_reply_t
xcb_shape_query_extents_reply_t
xcb_shape_query_extents_cookie_t xcb_shape_query_extents_unchecked(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:699
Generic error.
Definition: xcb.h:162
xcb_void_cookie_t xcb_shape_select_input_checked(xcb_connection_t *c, xcb_window_t destination_window, uint8_t enable)
Definition: shape.c:757
xcb_shape_input_selected_cookie_t xcb_shape_input_selected_unchecked(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:875
xcb_shape_query_version_cookie_t xcb_shape_query_version_unchecked(xcb_connection_t *c)
Definition: shape.c:142
xcb_shape_get_rectangles_request_t
Definition: shape.h:288
xcb_shape_combine_request_t
Definition: shape.h:158
struct xcb_shape_input_selected_request_t xcb_shape_input_selected_request_t
xcb_shape_input_selected_request_t
xcb_shape_get_rectangles_reply_t
Definition: shape.h:300
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)
Definition: shape.c:737
struct xcb_shape_kind_iterator_t xcb_shape_kind_iterator_t
xcb_shape_kind_iterator_t
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)
Definition: shape.c:1096
struct xcb_shape_query_version_cookie_t xcb_shape_query_version_cookie_t
xcb_shape_query_version_cookie_t
xcb_shape_query_extents_reply_t
Definition: shape.h:212
struct xcb_shape_query_extents_request_t xcb_shape_query_extents_request_t
xcb_shape_query_extents_request_t
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)
Definition: shape.c:518
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)
Definition: shape.c:408
xcb_shape_rectangles_request_t
Definition: shape.h:120
xcb_shape_mask_request_t
Definition: shape.h:139
xcb_shape_query_version_cookie_t xcb_shape_query_version(xcb_connection_t *c)
Definition: shape.c:108
xcb_shape_query_extents_request_t
Definition: shape.h:202
struct xcb_shape_combine_request_t xcb_shape_combine_request_t
xcb_shape_combine_request_t
Generic iterator.
Definition: xcb.h:109
xcb_void_cookie_t xcb_shape_select_input(xcb_connection_t *c, xcb_window_t destination_window, uint8_t enable)
Definition: shape.c:798
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)
Definition: shape.c:913
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)
Definition: shape.c:355
xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles(xcb_connection_t *c, xcb_window_t window, xcb_shape_kind_t source_kind)
Definition: shape.c:962
struct xcb_shape_rectangles_request_t xcb_shape_rectangles_request_t
xcb_shape_rectangles_request_t
struct xcb_shape_input_selected_cookie_t xcb_shape_input_selected_cookie_t
xcb_shape_input_selected_cookie_t
struct xcb_shape_input_selected_reply_t xcb_shape_input_selected_reply_t
xcb_shape_input_selected_reply_t
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)
Definition: shape.c:1003
struct xcb_shape_select_input_request_t xcb_shape_select_input_request_t
xcb_shape_select_input_request_t
xcb_shape_query_version_request_t
Definition: shape.h:96
struct xcb_shape_query_extents_cookie_t xcb_shape_query_extents_cookie_t
xcb_shape_query_extents_cookie_t
struct xcb_shape_get_rectangles_request_t xcb_shape_get_rectangles_request_t
xcb_shape_get_rectangles_request_t
xcb_shape_kind_iterator_t
Definition: shape.h:43
struct xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_cookie_t
xcb_shape_get_rectangles_cookie_t
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)
Definition: shape.c:571
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)
Definition: shape.c:618
xcb_shape_input_selected_cookie_t xcb_shape_input_selected(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:838
struct xcb_shape_mask_request_t xcb_shape_mask_request_t
xcb_shape_mask_request_t
struct xcb_shape_notify_event_t xcb_shape_notify_event_t
xcb_shape_notify_event_t
struct xcb_shape_query_version_reply_t xcb_shape_query_version_reply_t
xcb_shape_query_version_reply_t
void xcb_shape_kind_next(xcb_shape_kind_iterator_t *i)
Definition: shape.c:70
xcb_rectangle_t
Definition: xproto.h:212
struct xcb_shape_get_rectangles_reply_t xcb_shape_get_rectangles_reply_t
xcb_shape_get_rectangles_reply_t
xcb_rectangle_iterator_t
Definition: xproto.h:222
xcb_shape_query_extents_cookie_t xcb_shape_query_extents(xcb_connection_t *c, xcb_window_t destination_window)
Definition: shape.c:662
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)
Definition: shape.c:462
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)
Definition: shape.c:233
xcb_shape_op_iterator_t
Definition: shape.h:32
struct xcb_shape_offset_request_t xcb_shape_offset_request_t
xcb_shape_offset_request_t
struct xcb_shape_op_iterator_t xcb_shape_op_iterator_t
xcb_shape_op_iterator_t
xcb_shape_notify_event_t
Definition: shape.h:69
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)
Definition: shape.c:295
xcb_shape_query_extents_cookie_t
Definition: shape.h:192
struct xcb_shape_query_version_request_t xcb_shape_query_version_request_t
xcb_shape_query_version_request_t
xcb_shape_get_rectangles_cookie_t
Definition: shape.h:278
xcb_shape_offset_request_t
Definition: shape.h:178
xcb_shape_query_version_reply_t
Definition: shape.h:105
xcb_generic_iterator_t xcb_shape_op_end(xcb_shape_op_iterator_t i)
Definition: shape.c:50
Generic cookie.
Definition: xcb.h:179
void xcb_shape_op_next(xcb_shape_op_iterator_t *i)
Definition: shape.c:32
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)
Definition: shape.c:178
xcb_generic_iterator_t xcb_shape_kind_end(xcb_shape_kind_iterator_t i)
Definition: shape.c:88