xcb_alloc_color_cells(3)
π xcb_alloc_color_cells(3) π
okay so bestie, welcome to the XCB Requests manual, page xcb_alloc_color_cells(3). grab a boba, we're allocating color cells today β¨
πΈ NAME πΈ
xcb_alloc_color_cells β and that's literally it, the original page has no description here, so like. the name is the name. no cap.
β¨ SYNOPSIS β¨
first up, you gotta pull in the header:
#include <xcb/xproto.h>
π Request function
xcb_alloc_color_cells_cookie_t
xcb_alloc_color_cells(xcb_connection_t *conn, uint8_t contiguous,
xcb_colormap_t cmap, uint16_t colors, uint16_t planes);
π¦ Reply datastructure
typedef struct xcb_alloc_color_cells_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t pixels_len;
uint16_t masks_len;
uint8_t pad1[20];
} xcb_alloc_color_cells_reply_t;
π«Ά Reply function
xcb_alloc_color_cells_reply_t
*xcb_alloc_color_cells_reply(xcb_connection_t *conn,
xcb_alloc_color_cells_cookie_t cookie, xcb_generic_error_t **e);
π Reply accessors
uint32_t *xcb_alloc_color_cells_pixels(const
xcb_alloc_color_cells_request_t *reply);
int xcb_alloc_color_cells_pixels_length(const
xcb_alloc_color_cells_reply_t *reply);
xcb_generic_iterator_t xcb_alloc_color_cells_pixels_end(const
xcb_alloc_color_cells_reply_t *reply);
uint32_t *xcb_alloc_color_cells_masks(const
xcb_alloc_color_cells_request_t *reply);
int xcb_alloc_color_cells_masks_length(const
xcb_alloc_color_cells_reply_t *reply);
xcb_generic_iterator_t xcb_alloc_color_cells_masks_end(const
xcb_alloc_color_cells_reply_t *reply);
π₯ REQUEST ARGUMENTS π₯
connβ your XCB connection to X11. the whole line to the server, basically. iconic.contiguousβ TODO: NOT YET DOCUMENTED. yeah bestie, they really left us on read with this one πcmapβ TODO: NOT YET DOCUMENTED. same energy, no info here πcolorsβ TODO: NOT YET DOCUMENTED. still nothing. the docs said "mystery" and dipped πplanesβ TODO: NOT YET DOCUMENTED. and that's the last one. four for four, the docs are mysterious fr fr.
π REPLY FIELDS π
response_typeβ what kind of reply this is. in this case it'sXCB_ALLOC_COLOR_CELLS. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. very "which one of y'all is this" energy β¨sequenceβ the sequence number of the last request the X11 server processed. like a little timestamp but for requests.lengthβ how long the reply is, in words. and a word is 4 bytes, so do your math πpixels_lenβ TODO: NOT YET DOCUMENTED. πmasks_lenβ TODO: NOT YET DOCUMENTED. π
π§ DESCRIPTION π§
bestieβ¦ there is genuinely nothing here. the original page has a DESCRIPTION heading and then just. silence. no thoughts, head empty, literally nothing to report πΈ
π RETURN VALUE π
it hands you back an xcb_alloc_color_cells_cookie_t. cute, right? but plot twist: errors have to be handled when you call the reply function xcb_alloc_color_cells_reply.
and if you'd rather catch your errors in the event loop instead? use xcb_alloc_color_cells_unchecked. see xcb-requests(3) for the deets, iykyk π«Ά
π ERRORS π
this request does never generate any errors. not one. zero. clean sheet. slay β¨
β SEE ALSO β
β¦nothing listed. bestie, the well is dry. moving on π
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements β so if you spot something sus, that's who you dm π§
and that's the whole page, bestie!! this was X Version 11, libxcb 1.17.0, page xcb_alloc_color_cells(3). periodt π
β¨π¦
π¦ 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