2
* This file generated automatically from shape.xml by c-client.xsl using XSLT.
11
xcb_extension_t xcb_shape_id = { "SHAPE" };
14
/*****************************************************************************
16
** void xcb_shape_op_next
18
** @param xcb_shape_op_iterator_t *i
21
*****************************************************************************/
24
xcb_shape_op_next (xcb_shape_op_iterator_t *i /**< */)
28
i->index += sizeof(xcb_shape_op_t);
32
/*****************************************************************************
34
** xcb_generic_iterator_t xcb_shape_op_end
36
** @param xcb_shape_op_iterator_t i
37
** @returns xcb_generic_iterator_t
39
*****************************************************************************/
41
xcb_generic_iterator_t
42
xcb_shape_op_end (xcb_shape_op_iterator_t i /**< */)
44
xcb_generic_iterator_t ret;
45
ret.data = i.data + i.rem;
46
ret.index = i.index + ((char *) ret.data - (char *) i.data);
52
/*****************************************************************************
54
** void xcb_shape_kind_next
56
** @param xcb_shape_kind_iterator_t *i
59
*****************************************************************************/
62
xcb_shape_kind_next (xcb_shape_kind_iterator_t *i /**< */)
66
i->index += sizeof(xcb_shape_kind_t);
70
/*****************************************************************************
72
** xcb_generic_iterator_t xcb_shape_kind_end
74
** @param xcb_shape_kind_iterator_t i
75
** @returns xcb_generic_iterator_t
77
*****************************************************************************/
79
xcb_generic_iterator_t
80
xcb_shape_kind_end (xcb_shape_kind_iterator_t i /**< */)
82
xcb_generic_iterator_t ret;
83
ret.data = i.data + i.rem;
84
ret.index = i.index + ((char *) ret.data - (char *) i.data);
90
/*****************************************************************************
92
** xcb_shape_query_version_cookie_t xcb_shape_query_version
94
** @param xcb_connection_t *c
95
** @returns xcb_shape_query_version_cookie_t
97
*****************************************************************************/
99
xcb_shape_query_version_cookie_t
100
xcb_shape_query_version (xcb_connection_t *c /**< */)
102
static const xcb_protocol_request_t xcb_req = {
104
/* ext */ &xcb_shape_id,
105
/* opcode */ XCB_SHAPE_QUERY_VERSION,
109
struct iovec xcb_parts[4];
110
xcb_shape_query_version_cookie_t xcb_ret;
111
xcb_shape_query_version_request_t xcb_out;
114
xcb_parts[2].iov_base = (char *) &xcb_out;
115
xcb_parts[2].iov_len = sizeof(xcb_out);
116
xcb_parts[3].iov_base = 0;
117
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
118
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
123
/*****************************************************************************
125
** xcb_shape_query_version_cookie_t xcb_shape_query_version_unchecked
127
** @param xcb_connection_t *c
128
** @returns xcb_shape_query_version_cookie_t
130
*****************************************************************************/
132
xcb_shape_query_version_cookie_t
133
xcb_shape_query_version_unchecked (xcb_connection_t *c /**< */)
135
static const xcb_protocol_request_t xcb_req = {
137
/* ext */ &xcb_shape_id,
138
/* opcode */ XCB_SHAPE_QUERY_VERSION,
142
struct iovec xcb_parts[4];
143
xcb_shape_query_version_cookie_t xcb_ret;
144
xcb_shape_query_version_request_t xcb_out;
147
xcb_parts[2].iov_base = (char *) &xcb_out;
148
xcb_parts[2].iov_len = sizeof(xcb_out);
149
xcb_parts[3].iov_base = 0;
150
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
151
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
156
/*****************************************************************************
158
** xcb_shape_query_version_reply_t * xcb_shape_query_version_reply
160
** @param xcb_connection_t *c
161
** @param xcb_shape_query_version_cookie_t cookie
162
** @param xcb_generic_error_t **e
163
** @returns xcb_shape_query_version_reply_t *
165
*****************************************************************************/
167
xcb_shape_query_version_reply_t *
168
xcb_shape_query_version_reply (xcb_connection_t *c /**< */,
169
xcb_shape_query_version_cookie_t cookie /**< */,
170
xcb_generic_error_t **e /**< */)
172
return (xcb_shape_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
176
/*****************************************************************************
178
** xcb_void_cookie_t xcb_shape_rectangles_checked
180
** @param xcb_connection_t *c
181
** @param xcb_shape_op_t operation
182
** @param xcb_shape_kind_t destination_kind
183
** @param uint8_t ordering
184
** @param xcb_window_t destination_window
185
** @param int16_t x_offset
186
** @param int16_t y_offset
187
** @param uint32_t rectangles_len
188
** @param const xcb_rectangle_t *rectangles
189
** @returns xcb_void_cookie_t
191
*****************************************************************************/
194
xcb_shape_rectangles_checked (xcb_connection_t *c /**< */,
195
xcb_shape_op_t operation /**< */,
196
xcb_shape_kind_t destination_kind /**< */,
197
uint8_t ordering /**< */,
198
xcb_window_t destination_window /**< */,
199
int16_t x_offset /**< */,
200
int16_t y_offset /**< */,
201
uint32_t rectangles_len /**< */,
202
const xcb_rectangle_t *rectangles /**< */)
204
static const xcb_protocol_request_t xcb_req = {
206
/* ext */ &xcb_shape_id,
207
/* opcode */ XCB_SHAPE_RECTANGLES,
211
struct iovec xcb_parts[6];
212
xcb_void_cookie_t xcb_ret;
213
xcb_shape_rectangles_request_t xcb_out;
215
xcb_out.operation = operation;
216
xcb_out.destination_kind = destination_kind;
217
xcb_out.ordering = ordering;
219
xcb_out.destination_window = destination_window;
220
xcb_out.x_offset = x_offset;
221
xcb_out.y_offset = y_offset;
223
xcb_parts[2].iov_base = (char *) &xcb_out;
224
xcb_parts[2].iov_len = sizeof(xcb_out);
225
xcb_parts[3].iov_base = 0;
226
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
227
xcb_parts[4].iov_base = (char *) rectangles;
228
xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t);
229
xcb_parts[5].iov_base = 0;
230
xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
231
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
236
/*****************************************************************************
238
** xcb_void_cookie_t xcb_shape_rectangles
240
** @param xcb_connection_t *c
241
** @param xcb_shape_op_t operation
242
** @param xcb_shape_kind_t destination_kind
243
** @param uint8_t ordering
244
** @param xcb_window_t destination_window
245
** @param int16_t x_offset
246
** @param int16_t y_offset
247
** @param uint32_t rectangles_len
248
** @param const xcb_rectangle_t *rectangles
249
** @returns xcb_void_cookie_t
251
*****************************************************************************/
254
xcb_shape_rectangles (xcb_connection_t *c /**< */,
255
xcb_shape_op_t operation /**< */,
256
xcb_shape_kind_t destination_kind /**< */,
257
uint8_t ordering /**< */,
258
xcb_window_t destination_window /**< */,
259
int16_t x_offset /**< */,
260
int16_t y_offset /**< */,
261
uint32_t rectangles_len /**< */,
262
const xcb_rectangle_t *rectangles /**< */)
264
static const xcb_protocol_request_t xcb_req = {
266
/* ext */ &xcb_shape_id,
267
/* opcode */ XCB_SHAPE_RECTANGLES,
271
struct iovec xcb_parts[6];
272
xcb_void_cookie_t xcb_ret;
273
xcb_shape_rectangles_request_t xcb_out;
275
xcb_out.operation = operation;
276
xcb_out.destination_kind = destination_kind;
277
xcb_out.ordering = ordering;
279
xcb_out.destination_window = destination_window;
280
xcb_out.x_offset = x_offset;
281
xcb_out.y_offset = y_offset;
283
xcb_parts[2].iov_base = (char *) &xcb_out;
284
xcb_parts[2].iov_len = sizeof(xcb_out);
285
xcb_parts[3].iov_base = 0;
286
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
287
xcb_parts[4].iov_base = (char *) rectangles;
288
xcb_parts[4].iov_len = rectangles_len * sizeof(xcb_rectangle_t);
289
xcb_parts[5].iov_base = 0;
290
xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
291
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
296
/*****************************************************************************
298
** xcb_void_cookie_t xcb_shape_mask_checked
300
** @param xcb_connection_t *c
301
** @param xcb_shape_op_t operation
302
** @param xcb_shape_kind_t destination_kind
303
** @param xcb_window_t destination_window
304
** @param int16_t x_offset
305
** @param int16_t y_offset
306
** @param xcb_pixmap_t source_bitmap
307
** @returns xcb_void_cookie_t
309
*****************************************************************************/
312
xcb_shape_mask_checked (xcb_connection_t *c /**< */,
313
xcb_shape_op_t operation /**< */,
314
xcb_shape_kind_t destination_kind /**< */,
315
xcb_window_t destination_window /**< */,
316
int16_t x_offset /**< */,
317
int16_t y_offset /**< */,
318
xcb_pixmap_t source_bitmap /**< */)
320
static const xcb_protocol_request_t xcb_req = {
322
/* ext */ &xcb_shape_id,
323
/* opcode */ XCB_SHAPE_MASK,
327
struct iovec xcb_parts[4];
328
xcb_void_cookie_t xcb_ret;
329
xcb_shape_mask_request_t xcb_out;
331
xcb_out.operation = operation;
332
xcb_out.destination_kind = destination_kind;
333
memset(xcb_out.pad0, 0, 2);
334
xcb_out.destination_window = destination_window;
335
xcb_out.x_offset = x_offset;
336
xcb_out.y_offset = y_offset;
337
xcb_out.source_bitmap = source_bitmap;
339
xcb_parts[2].iov_base = (char *) &xcb_out;
340
xcb_parts[2].iov_len = sizeof(xcb_out);
341
xcb_parts[3].iov_base = 0;
342
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
343
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
348
/*****************************************************************************
350
** xcb_void_cookie_t xcb_shape_mask
352
** @param xcb_connection_t *c
353
** @param xcb_shape_op_t operation
354
** @param xcb_shape_kind_t destination_kind
355
** @param xcb_window_t destination_window
356
** @param int16_t x_offset
357
** @param int16_t y_offset
358
** @param xcb_pixmap_t source_bitmap
359
** @returns xcb_void_cookie_t
361
*****************************************************************************/
364
xcb_shape_mask (xcb_connection_t *c /**< */,
365
xcb_shape_op_t operation /**< */,
366
xcb_shape_kind_t destination_kind /**< */,
367
xcb_window_t destination_window /**< */,
368
int16_t x_offset /**< */,
369
int16_t y_offset /**< */,
370
xcb_pixmap_t source_bitmap /**< */)
372
static const xcb_protocol_request_t xcb_req = {
374
/* ext */ &xcb_shape_id,
375
/* opcode */ XCB_SHAPE_MASK,
379
struct iovec xcb_parts[4];
380
xcb_void_cookie_t xcb_ret;
381
xcb_shape_mask_request_t xcb_out;
383
xcb_out.operation = operation;
384
xcb_out.destination_kind = destination_kind;
385
memset(xcb_out.pad0, 0, 2);
386
xcb_out.destination_window = destination_window;
387
xcb_out.x_offset = x_offset;
388
xcb_out.y_offset = y_offset;
389
xcb_out.source_bitmap = source_bitmap;
391
xcb_parts[2].iov_base = (char *) &xcb_out;
392
xcb_parts[2].iov_len = sizeof(xcb_out);
393
xcb_parts[3].iov_base = 0;
394
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
395
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
400
/*****************************************************************************
402
** xcb_void_cookie_t xcb_shape_combine_checked
404
** @param xcb_connection_t *c
405
** @param xcb_shape_op_t operation
406
** @param xcb_shape_kind_t destination_kind
407
** @param xcb_shape_kind_t source_kind
408
** @param xcb_window_t destination_window
409
** @param int16_t x_offset
410
** @param int16_t y_offset
411
** @param xcb_window_t source_window
412
** @returns xcb_void_cookie_t
414
*****************************************************************************/
417
xcb_shape_combine_checked (xcb_connection_t *c /**< */,
418
xcb_shape_op_t operation /**< */,
419
xcb_shape_kind_t destination_kind /**< */,
420
xcb_shape_kind_t source_kind /**< */,
421
xcb_window_t destination_window /**< */,
422
int16_t x_offset /**< */,
423
int16_t y_offset /**< */,
424
xcb_window_t source_window /**< */)
426
static const xcb_protocol_request_t xcb_req = {
428
/* ext */ &xcb_shape_id,
429
/* opcode */ XCB_SHAPE_COMBINE,
433
struct iovec xcb_parts[4];
434
xcb_void_cookie_t xcb_ret;
435
xcb_shape_combine_request_t xcb_out;
437
xcb_out.operation = operation;
438
xcb_out.destination_kind = destination_kind;
439
xcb_out.source_kind = source_kind;
441
xcb_out.destination_window = destination_window;
442
xcb_out.x_offset = x_offset;
443
xcb_out.y_offset = y_offset;
444
xcb_out.source_window = source_window;
446
xcb_parts[2].iov_base = (char *) &xcb_out;
447
xcb_parts[2].iov_len = sizeof(xcb_out);
448
xcb_parts[3].iov_base = 0;
449
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
450
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
455
/*****************************************************************************
457
** xcb_void_cookie_t xcb_shape_combine
459
** @param xcb_connection_t *c
460
** @param xcb_shape_op_t operation
461
** @param xcb_shape_kind_t destination_kind
462
** @param xcb_shape_kind_t source_kind
463
** @param xcb_window_t destination_window
464
** @param int16_t x_offset
465
** @param int16_t y_offset
466
** @param xcb_window_t source_window
467
** @returns xcb_void_cookie_t
469
*****************************************************************************/
472
xcb_shape_combine (xcb_connection_t *c /**< */,
473
xcb_shape_op_t operation /**< */,
474
xcb_shape_kind_t destination_kind /**< */,
475
xcb_shape_kind_t source_kind /**< */,
476
xcb_window_t destination_window /**< */,
477
int16_t x_offset /**< */,
478
int16_t y_offset /**< */,
479
xcb_window_t source_window /**< */)
481
static const xcb_protocol_request_t xcb_req = {
483
/* ext */ &xcb_shape_id,
484
/* opcode */ XCB_SHAPE_COMBINE,
488
struct iovec xcb_parts[4];
489
xcb_void_cookie_t xcb_ret;
490
xcb_shape_combine_request_t xcb_out;
492
xcb_out.operation = operation;
493
xcb_out.destination_kind = destination_kind;
494
xcb_out.source_kind = source_kind;
496
xcb_out.destination_window = destination_window;
497
xcb_out.x_offset = x_offset;
498
xcb_out.y_offset = y_offset;
499
xcb_out.source_window = source_window;
501
xcb_parts[2].iov_base = (char *) &xcb_out;
502
xcb_parts[2].iov_len = sizeof(xcb_out);
503
xcb_parts[3].iov_base = 0;
504
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
505
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
510
/*****************************************************************************
512
** xcb_void_cookie_t xcb_shape_offset_checked
514
** @param xcb_connection_t *c
515
** @param xcb_shape_kind_t destination_kind
516
** @param xcb_window_t destination_window
517
** @param int16_t x_offset
518
** @param int16_t y_offset
519
** @returns xcb_void_cookie_t
521
*****************************************************************************/
524
xcb_shape_offset_checked (xcb_connection_t *c /**< */,
525
xcb_shape_kind_t destination_kind /**< */,
526
xcb_window_t destination_window /**< */,
527
int16_t x_offset /**< */,
528
int16_t y_offset /**< */)
530
static const xcb_protocol_request_t xcb_req = {
532
/* ext */ &xcb_shape_id,
533
/* opcode */ XCB_SHAPE_OFFSET,
537
struct iovec xcb_parts[4];
538
xcb_void_cookie_t xcb_ret;
539
xcb_shape_offset_request_t xcb_out;
541
xcb_out.destination_kind = destination_kind;
542
memset(xcb_out.pad0, 0, 3);
543
xcb_out.destination_window = destination_window;
544
xcb_out.x_offset = x_offset;
545
xcb_out.y_offset = y_offset;
547
xcb_parts[2].iov_base = (char *) &xcb_out;
548
xcb_parts[2].iov_len = sizeof(xcb_out);
549
xcb_parts[3].iov_base = 0;
550
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
551
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
556
/*****************************************************************************
558
** xcb_void_cookie_t xcb_shape_offset
560
** @param xcb_connection_t *c
561
** @param xcb_shape_kind_t destination_kind
562
** @param xcb_window_t destination_window
563
** @param int16_t x_offset
564
** @param int16_t y_offset
565
** @returns xcb_void_cookie_t
567
*****************************************************************************/
570
xcb_shape_offset (xcb_connection_t *c /**< */,
571
xcb_shape_kind_t destination_kind /**< */,
572
xcb_window_t destination_window /**< */,
573
int16_t x_offset /**< */,
574
int16_t y_offset /**< */)
576
static const xcb_protocol_request_t xcb_req = {
578
/* ext */ &xcb_shape_id,
579
/* opcode */ XCB_SHAPE_OFFSET,
583
struct iovec xcb_parts[4];
584
xcb_void_cookie_t xcb_ret;
585
xcb_shape_offset_request_t xcb_out;
587
xcb_out.destination_kind = destination_kind;
588
memset(xcb_out.pad0, 0, 3);
589
xcb_out.destination_window = destination_window;
590
xcb_out.x_offset = x_offset;
591
xcb_out.y_offset = y_offset;
593
xcb_parts[2].iov_base = (char *) &xcb_out;
594
xcb_parts[2].iov_len = sizeof(xcb_out);
595
xcb_parts[3].iov_base = 0;
596
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
597
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
602
/*****************************************************************************
604
** xcb_shape_query_extents_cookie_t xcb_shape_query_extents
606
** @param xcb_connection_t *c
607
** @param xcb_window_t destination_window
608
** @returns xcb_shape_query_extents_cookie_t
610
*****************************************************************************/
612
xcb_shape_query_extents_cookie_t
613
xcb_shape_query_extents (xcb_connection_t *c /**< */,
614
xcb_window_t destination_window /**< */)
616
static const xcb_protocol_request_t xcb_req = {
618
/* ext */ &xcb_shape_id,
619
/* opcode */ XCB_SHAPE_QUERY_EXTENTS,
623
struct iovec xcb_parts[4];
624
xcb_shape_query_extents_cookie_t xcb_ret;
625
xcb_shape_query_extents_request_t xcb_out;
627
xcb_out.destination_window = destination_window;
629
xcb_parts[2].iov_base = (char *) &xcb_out;
630
xcb_parts[2].iov_len = sizeof(xcb_out);
631
xcb_parts[3].iov_base = 0;
632
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
633
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
638
/*****************************************************************************
640
** xcb_shape_query_extents_cookie_t xcb_shape_query_extents_unchecked
642
** @param xcb_connection_t *c
643
** @param xcb_window_t destination_window
644
** @returns xcb_shape_query_extents_cookie_t
646
*****************************************************************************/
648
xcb_shape_query_extents_cookie_t
649
xcb_shape_query_extents_unchecked (xcb_connection_t *c /**< */,
650
xcb_window_t destination_window /**< */)
652
static const xcb_protocol_request_t xcb_req = {
654
/* ext */ &xcb_shape_id,
655
/* opcode */ XCB_SHAPE_QUERY_EXTENTS,
659
struct iovec xcb_parts[4];
660
xcb_shape_query_extents_cookie_t xcb_ret;
661
xcb_shape_query_extents_request_t xcb_out;
663
xcb_out.destination_window = destination_window;
665
xcb_parts[2].iov_base = (char *) &xcb_out;
666
xcb_parts[2].iov_len = sizeof(xcb_out);
667
xcb_parts[3].iov_base = 0;
668
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
669
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
674
/*****************************************************************************
676
** xcb_shape_query_extents_reply_t * xcb_shape_query_extents_reply
678
** @param xcb_connection_t *c
679
** @param xcb_shape_query_extents_cookie_t cookie
680
** @param xcb_generic_error_t **e
681
** @returns xcb_shape_query_extents_reply_t *
683
*****************************************************************************/
685
xcb_shape_query_extents_reply_t *
686
xcb_shape_query_extents_reply (xcb_connection_t *c /**< */,
687
xcb_shape_query_extents_cookie_t cookie /**< */,
688
xcb_generic_error_t **e /**< */)
690
return (xcb_shape_query_extents_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
694
/*****************************************************************************
696
** xcb_void_cookie_t xcb_shape_select_input_checked
698
** @param xcb_connection_t *c
699
** @param xcb_window_t destination_window
700
** @param uint8_t enable
701
** @returns xcb_void_cookie_t
703
*****************************************************************************/
706
xcb_shape_select_input_checked (xcb_connection_t *c /**< */,
707
xcb_window_t destination_window /**< */,
708
uint8_t enable /**< */)
710
static const xcb_protocol_request_t xcb_req = {
712
/* ext */ &xcb_shape_id,
713
/* opcode */ XCB_SHAPE_SELECT_INPUT,
717
struct iovec xcb_parts[4];
718
xcb_void_cookie_t xcb_ret;
719
xcb_shape_select_input_request_t xcb_out;
721
xcb_out.destination_window = destination_window;
722
xcb_out.enable = enable;
724
xcb_parts[2].iov_base = (char *) &xcb_out;
725
xcb_parts[2].iov_len = sizeof(xcb_out);
726
xcb_parts[3].iov_base = 0;
727
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
728
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
733
/*****************************************************************************
735
** xcb_void_cookie_t xcb_shape_select_input
737
** @param xcb_connection_t *c
738
** @param xcb_window_t destination_window
739
** @param uint8_t enable
740
** @returns xcb_void_cookie_t
742
*****************************************************************************/
745
xcb_shape_select_input (xcb_connection_t *c /**< */,
746
xcb_window_t destination_window /**< */,
747
uint8_t enable /**< */)
749
static const xcb_protocol_request_t xcb_req = {
751
/* ext */ &xcb_shape_id,
752
/* opcode */ XCB_SHAPE_SELECT_INPUT,
756
struct iovec xcb_parts[4];
757
xcb_void_cookie_t xcb_ret;
758
xcb_shape_select_input_request_t xcb_out;
760
xcb_out.destination_window = destination_window;
761
xcb_out.enable = enable;
763
xcb_parts[2].iov_base = (char *) &xcb_out;
764
xcb_parts[2].iov_len = sizeof(xcb_out);
765
xcb_parts[3].iov_base = 0;
766
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
767
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
772
/*****************************************************************************
774
** xcb_shape_input_selected_cookie_t xcb_shape_input_selected
776
** @param xcb_connection_t *c
777
** @param xcb_window_t destination_window
778
** @returns xcb_shape_input_selected_cookie_t
780
*****************************************************************************/
782
xcb_shape_input_selected_cookie_t
783
xcb_shape_input_selected (xcb_connection_t *c /**< */,
784
xcb_window_t destination_window /**< */)
786
static const xcb_protocol_request_t xcb_req = {
788
/* ext */ &xcb_shape_id,
789
/* opcode */ XCB_SHAPE_INPUT_SELECTED,
793
struct iovec xcb_parts[4];
794
xcb_shape_input_selected_cookie_t xcb_ret;
795
xcb_shape_input_selected_request_t xcb_out;
797
xcb_out.destination_window = destination_window;
799
xcb_parts[2].iov_base = (char *) &xcb_out;
800
xcb_parts[2].iov_len = sizeof(xcb_out);
801
xcb_parts[3].iov_base = 0;
802
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
803
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
808
/*****************************************************************************
810
** xcb_shape_input_selected_cookie_t xcb_shape_input_selected_unchecked
812
** @param xcb_connection_t *c
813
** @param xcb_window_t destination_window
814
** @returns xcb_shape_input_selected_cookie_t
816
*****************************************************************************/
818
xcb_shape_input_selected_cookie_t
819
xcb_shape_input_selected_unchecked (xcb_connection_t *c /**< */,
820
xcb_window_t destination_window /**< */)
822
static const xcb_protocol_request_t xcb_req = {
824
/* ext */ &xcb_shape_id,
825
/* opcode */ XCB_SHAPE_INPUT_SELECTED,
829
struct iovec xcb_parts[4];
830
xcb_shape_input_selected_cookie_t xcb_ret;
831
xcb_shape_input_selected_request_t xcb_out;
833
xcb_out.destination_window = destination_window;
835
xcb_parts[2].iov_base = (char *) &xcb_out;
836
xcb_parts[2].iov_len = sizeof(xcb_out);
837
xcb_parts[3].iov_base = 0;
838
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
839
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
844
/*****************************************************************************
846
** xcb_shape_input_selected_reply_t * xcb_shape_input_selected_reply
848
** @param xcb_connection_t *c
849
** @param xcb_shape_input_selected_cookie_t cookie
850
** @param xcb_generic_error_t **e
851
** @returns xcb_shape_input_selected_reply_t *
853
*****************************************************************************/
855
xcb_shape_input_selected_reply_t *
856
xcb_shape_input_selected_reply (xcb_connection_t *c /**< */,
857
xcb_shape_input_selected_cookie_t cookie /**< */,
858
xcb_generic_error_t **e /**< */)
860
return (xcb_shape_input_selected_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
864
/*****************************************************************************
866
** xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles
868
** @param xcb_connection_t *c
869
** @param xcb_window_t window
870
** @param xcb_shape_kind_t source_kind
871
** @returns xcb_shape_get_rectangles_cookie_t
873
*****************************************************************************/
875
xcb_shape_get_rectangles_cookie_t
876
xcb_shape_get_rectangles (xcb_connection_t *c /**< */,
877
xcb_window_t window /**< */,
878
xcb_shape_kind_t source_kind /**< */)
880
static const xcb_protocol_request_t xcb_req = {
882
/* ext */ &xcb_shape_id,
883
/* opcode */ XCB_SHAPE_GET_RECTANGLES,
887
struct iovec xcb_parts[4];
888
xcb_shape_get_rectangles_cookie_t xcb_ret;
889
xcb_shape_get_rectangles_request_t xcb_out;
891
xcb_out.window = window;
892
xcb_out.source_kind = source_kind;
894
xcb_parts[2].iov_base = (char *) &xcb_out;
895
xcb_parts[2].iov_len = sizeof(xcb_out);
896
xcb_parts[3].iov_base = 0;
897
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
898
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
903
/*****************************************************************************
905
** xcb_shape_get_rectangles_cookie_t xcb_shape_get_rectangles_unchecked
907
** @param xcb_connection_t *c
908
** @param xcb_window_t window
909
** @param xcb_shape_kind_t source_kind
910
** @returns xcb_shape_get_rectangles_cookie_t
912
*****************************************************************************/
914
xcb_shape_get_rectangles_cookie_t
915
xcb_shape_get_rectangles_unchecked (xcb_connection_t *c /**< */,
916
xcb_window_t window /**< */,
917
xcb_shape_kind_t source_kind /**< */)
919
static const xcb_protocol_request_t xcb_req = {
921
/* ext */ &xcb_shape_id,
922
/* opcode */ XCB_SHAPE_GET_RECTANGLES,
926
struct iovec xcb_parts[4];
927
xcb_shape_get_rectangles_cookie_t xcb_ret;
928
xcb_shape_get_rectangles_request_t xcb_out;
930
xcb_out.window = window;
931
xcb_out.source_kind = source_kind;
933
xcb_parts[2].iov_base = (char *) &xcb_out;
934
xcb_parts[2].iov_len = sizeof(xcb_out);
935
xcb_parts[3].iov_base = 0;
936
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
937
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
942
/*****************************************************************************
944
** xcb_rectangle_t * xcb_shape_get_rectangles_rectangles
946
** @param const xcb_shape_get_rectangles_reply_t *R
947
** @returns xcb_rectangle_t *
949
*****************************************************************************/
952
xcb_shape_get_rectangles_rectangles (const xcb_shape_get_rectangles_reply_t *R /**< */)
954
return (xcb_rectangle_t *) (R + 1);
958
/*****************************************************************************
960
** int xcb_shape_get_rectangles_rectangles_length
962
** @param const xcb_shape_get_rectangles_reply_t *R
965
*****************************************************************************/
968
xcb_shape_get_rectangles_rectangles_length (const xcb_shape_get_rectangles_reply_t *R /**< */)
970
return R->rectangles_len;
974
/*****************************************************************************
976
** xcb_rectangle_iterator_t xcb_shape_get_rectangles_rectangles_iterator
978
** @param const xcb_shape_get_rectangles_reply_t *R
979
** @returns xcb_rectangle_iterator_t
981
*****************************************************************************/
983
xcb_rectangle_iterator_t
984
xcb_shape_get_rectangles_rectangles_iterator (const xcb_shape_get_rectangles_reply_t *R /**< */)
986
xcb_rectangle_iterator_t i;
987
i.data = (xcb_rectangle_t *) (R + 1);
988
i.rem = R->rectangles_len;
989
i.index = (char *) i.data - (char *) R;
994
/*****************************************************************************
996
** xcb_shape_get_rectangles_reply_t * xcb_shape_get_rectangles_reply
998
** @param xcb_connection_t *c
999
** @param xcb_shape_get_rectangles_cookie_t cookie
1000
** @param xcb_generic_error_t **e
1001
** @returns xcb_shape_get_rectangles_reply_t *
1003
*****************************************************************************/
1005
xcb_shape_get_rectangles_reply_t *
1006
xcb_shape_get_rectangles_reply (xcb_connection_t *c /**< */,
1007
xcb_shape_get_rectangles_cookie_t cookie /**< */,
1008
xcb_generic_error_t **e /**< */)
1010
return (xcb_shape_get_rectangles_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);