xcb_shape_query_extents(3)
π xcb_shape_query_extents β bestie edition π
okay so this is a page from the XCB Requests corner of the libxcb world, and it's all about xcb_shape_query_extents. She's a lil request function, she comes with a reply struct AND a reply function, and honestly? she's giving "lowkey mysterious" because half her docs are literally TODO: NOT YET DOCUMENTED π. We're gonna walk through every single field anyway, no cap. Let's go β¨
πΈ SYNOPSIS πΈ
#include <xcb/shape.h>
β¨ Request function
xcb_shape_query_extents_cookie_t
xcb_shape_query_extents(xcb_connection_t *conn,
xcb_window_t destination_window);
π Reply datastructure
typedef struct xcb_shape_query_extents_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t bounding_shaped;
uint8_t clip_shaped;
uint8_t pad1[2];
int16_t bounding_shape_extents_x;
int16_t bounding_shape_extents_y;
uint16_t bounding_shape_extents_width;
uint16_t bounding_shape_extents_height;
int16_t clip_shape_extents_x;
int16_t clip_shape_extents_y;
uint16_t clip_shape_extents_width;
uint16_t clip_shape_extents_height;
} xcb_shape_query_extents_reply_t;
π Reply function
xcb_shape_query_extents_reply_t
*xcb_shape_query_extents_reply(xcb_connection_t *conn,
xcb_shape_query_extents_cookie_t cookie,
xcb_generic_error_t **e);
π«Ά REQUEST ARGUMENTS π«Ά
connβ the XCB connection to X11, aka your hotline to the server πdestination_windowβ TODO: NOT YET DOCUMENTED. like... the docs really said "figure it out bestie" π
π REPLY FIELDS π
response_typeβ the type of this reply, in this caseXCB_SHAPE_QUERY_EXTENTS. This field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's literally the vibe check that says "yep, this one's mine" βsequenceβ the sequence number of the last request processed by the X11 server. the receipts, fr fr π§Ύlengthβ the length of the reply, in words (a word is 4 bytes). math girlies stay winning β¨bounding_shapedβ TODO: NOT YET DOCUMENTED. πclip_shapedβ TODO: NOT YET DOCUMENTED. πbounding_shape_extents_xβ TODO: NOT YET DOCUMENTED. πbounding_shape_extents_yβ TODO: NOT YET DOCUMENTED. πbounding_shape_extents_widthβ TODO: NOT YET DOCUMENTED. πbounding_shape_extents_heightβ TODO: NOT YET DOCUMENTED. πclip_shape_extents_xβ TODO: NOT YET DOCUMENTED. πclip_shape_extents_yβ TODO: NOT YET DOCUMENTED. πclip_shape_extents_widthβ TODO: NOT YET DOCUMENTED. πclip_shape_extents_heightβ TODO: NOT YET DOCUMENTED. π
π DESCRIPTION π
...and that's it. that's the section. she's empty. she said "no thoughts, head empty" π¦β¨ (iconic behaviour, honestly)
π RETURN VALUE π
Returns an xcb_shape_query_extents_cookie_t. Errors have to be handled when calling the reply function xcb_shape_query_extents_reply.
If you want to handle errors in the event loop instead, use xcb_shape_query_extents_unchecked. See xcb-requests(3) for details. pick your fighter π₯
π ERRORS π
This request does never generate any errors. zero drama, zero problems, we love a clean queen πβ¨
π§ SEE ALSO π§
(empty, bestie β nothing to see here, moving on π«Ά)
πΈ AUTHOR πΈ
Generated from shape.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. send them an email if something's off, they're literally asking ππ
okay that's the whole page, bestie!! π this was X Version 11, libxcb 1.17.0, and the page itself is xcb_shape_query_extents(3). go forth and query those extents, you absolute main character πβ¨π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms