XCB_GLX_GET_DRAWABLE_ATTRIBUTES_REPLY(3)
π xcb_glx_get_drawable_attributes π
okay so bestie, welcome to the XCB Requests corner of the libxcb cinematic universe, section 3, and today's main character is xcb_glx_get_drawable_attributes. it's giving "ask the X server about a GLX drawable's attributes" and honestly? we're obsessed. let's get into it. π¦
πΈ NAME πΈ
xcb_glx_get_drawable_attributes -
(yeah bestie the one-liner is literally empty in the source, so we're all just living our truth here π)
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header:
#include <xcb/glx.h>
π Request function π
xcb_glx_get_drawable_attributes_cookie_t
xcb_glx_get_drawable_attributes(xcb_connection_t *conn,
xcb_glx_drawable_t drawable);
π§ Reply datastructure π§
this is the lil struct that comes back at you:
typedef struct xcb_glx_get_drawable_attributes_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_attribs;
uint8_t pad1[20];
} xcb_glx_get_drawable_attributes_reply_t;
π«Ά Reply function π«Ά
xcb_glx_get_drawable_attributes_reply_t
*xcb_glx_get_drawable_attributes_reply(xcb_connection_t *conn,
xcb_glx_get_drawable_attributes_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors π
these are your lil helpers for getting at the good stuff:
uint32_t *xcb_glx_get_drawable_attributes_attribs(const
xcb_glx_get_drawable_attributes_request_t *reply);
int xcb_glx_get_drawable_attributes_attribs_length(const
xcb_glx_get_drawable_attributes_reply_t *reply);
xcb_generic_iterator_t xcb_glx_get_drawable_attributes_attribs_end(const
xcb_glx_get_drawable_attributes_reply_t *reply);
π₯ REQUEST ARGUMENTS π₯
connβ the XCB connection to X11. your link to the server, your main character pipeline, the whole vibe. πdrawableβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "we'll get to it" and then never did. iconic behaviour honestly. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_GLX_GET_DRAWABLE_ATTRIBUTES. this field is also chillin' insidexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's the name tag at the party. πsequenceβ the sequence number of the last request processed by the X11 server. keeping receipts, fr fr. π§Ύlengthβ the length of the reply, in words. and reminder: a word is 4 bytes, no cap. βnum_attribsβ TODO: NOT YET DOCUMENTED. once again, the void stares back. π
πΈ DESCRIPTION πΈ
(no description in the original, bestie β it's a mystery, it's an enigma, it's a blank space and we're shaking hands with it π«Ά)
β¨ RETURN VALUE β¨
You get back an xcb_glx_get_drawable_attributes_cookie_t. Errors? Yeah, those have to be handled when you call the reply function xcb_glx_get_drawable_attributes_reply.
if you'd rather handle your errors in the event loop instead, usexcb_glx_get_drawable_attributes_unchecked. and go readxcb-requests(3)for the deets, bestie, it's all there. π
π¦ ERRORS π¦
This request does never generate any errors. periodt. zero drama, zero chaos, we love a low-maintenance request. π β¨
π SEE ALSO π
(nothing listed here in the original β so go touch some grass, or better yet, go read xcb-requests(3) like the RETURN VALUE section told you to π±)
π AUTHOR π
Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie!! π this came to you from X Version 11 and libxcb 1.17.0 β thank you for coming to my ted talk, drink some water, hydrate your skin, and may all your drawables be fully documented one day. mwah. ππΈπ
π¦ 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