xcb_set_clip_rectangles(3)
π xcb_set_clip_rectangles β bestie edition π
okay so we're in the xcb_set_clip_rectangles(3) page, part of XCB Requests, and yes bestie this one is a whole mood. it sets the clip rectangles on a graphics context. that's the vibe. let's go π¦
β¨ NAME β¨
xcb_set_clip_rectangles β the request that tells your GC which rectangles are allowed to get painted on π
(ngl the original NAME section is literally just the function name and then nothing, so. that's the tea. no cap.)
β¨ SYNOPSIS β¨
first, you gotta pull in the header, obviously:
#include <xcb/xproto.h>
π Request function π
here's the whole signature, character for character, don't @ me:
xcb_void_cookie_t xcb_set_clip_rectangles(xcb_connection_t *conn,
uint8_t ordering, xcb_gcontext_t gc, int16_t clip_x_origin,
int16_t clip_y_origin, uint32_t rectangles_len, const
xcb_rectangle_t *rectangles);
look at that. iconic. she's giving function. π₯
β¨ REQUEST ARGUMENTS β¨
kay so here's every single one of them, and I'm not skipping a single lil guy:
connβ the XCB connection to X11. that's your whole link to the server, your main character connection πorderingβ it's one of the following values, and bestie I need you to know the docs are straight up not written yet for every single one of these, so I'm passing along the exact energy:XCB_CLIP_ORDERING_UNSORTEDβ TODO: NOT YET DOCUMENTED.XCB_CLIP_ORDERING_Y_SORTEDβ TODO: NOT YET DOCUMENTED.XCB_CLIP_ORDERING_YX_SORTEDβ TODO: NOT YET DOCUMENTED.XCB_CLIP_ORDERING_YX_BANDEDβ TODO: NOT YET DOCUMENTED.- TODO: NOT YET DOCUMENTED.
yeah there's a lil extra TODO floating there at the end. it's in the original, so it's here too. we don't erase history π
gcβ TODO: NOT YET DOCUMENTED.clip_x_originβ TODO: NOT YET DOCUMENTED.clip_y_originβ TODO: NOT YET DOCUMENTED.rectangles_lenβ TODO: NOT YET DOCUMENTED.rectanglesβ TODO: NOT YET DOCUMENTED.
fr fr the entire argument list is undocumented upstream. that's not me being lazy, that's literally what the page says. I'm just the messenger π«Ά
β¨ DESCRIPTION β¨
so. um. the DESCRIPTION section is empty. like, nothing. void. a blank space. the original page has the heading and then straight up nothing under it. and I'm not gonna invent lore, so: it's empty, bestie. we move. π§
β¨ RETURN VALUE β¨
she returns an xcb_void_cookie_t. and because it's a void cookie, any errors (if there even are any) have to be handled over in the event loop, not right here at call time.
and if you'd rather handle errors directly with xcb_request_check instead? use xcb_set_clip_rectangles_checked for that. go check xcb-requests(3) for the details, iykyk β¨
β¨ ERRORS β¨
good news bestie: this request does never generate any errors. we love a low-drama king π
β¨ SEE ALSO β¨
...the original SEE ALSO section is empty too. no references, no cross-links, nothing. a whole blank. π
β¨ AUTHOR β¨
Generated from xproto.xml. if you've got corrections and improvements, hit up xcb@lists.freedesktop.org β they're the ones you wanna talk to πΈ
okay that's the whole page!! go set those clip rectangles, you gorgeous thing ππ
this has been xcb_set_clip_rectangles(3) from X Version 11, libxcb 1.17.0 π β mwah, stan the XCB devs, 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