xcb_poly_fill_rectangle(3)
β¨ xcb_poly_fill_rectangle β¨
okay bestie, welcome to xcb_poly_fill_rectangle β the XCB Requests page that literally just fills rectangles for you π like yes, that's the whole job, and she does it beautifully.
πΈ NAME πΈ
xcb_poly_fill_rectangle β fills rectangles π
π¦ SYNOPSIS π¦
#include <xcb/xproto.h>
π Request function
xcb_void_cookie_t xcb_poly_fill_rectangle(xcb_connection_t *conn,
xcb_drawable_t drawable, xcb_gcontext_t gc,
uint32_t rectangles_len, const xcb_rectangle_t *rectangles);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole group chat line to the server, basically π«Άdrawableβ the drawable (Window or Pixmap) you're drawing on. pick your canvas, bestie π¨gcβ the graphics context to use. and listen, she's not a one-trick pony, so here's exactly what she pulls from:
the following graphics context components are used: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. β
the following graphics context mode-dependent components are used: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. π
rectangles_lenβ the number ofxcb_rectangle_tstructures inrectangles. like, how many are we doing? π’rectanglesβ the rectangles to fill. the actual squad of shapes, periodt π
π DESCRIPTION π
She fills the specified rectangle(s) in the order listed in the array. no cap, order matters, that's just the vibe.
for any given rectangle, each pixel is not drawn more than once. so no self-overlap drama within one rectangle, we love a clean queen β¨
but β and this is the tea β if rectangles intersect, the intersecting pixels are drawn multiple times. so like, if your shapes overlap, that overlap is getting painted again and again. not me warning you about your own geometry π
π RETURN VALUE π
returns an xcb_void_cookie_t. and here's the thing: errors (if any) have to be handled in the event loop, okay? that's just how she rolls π
if you want to handle errors directly with xcb_request_check instead, use xcb_poly_fill_rectangle_checked. see xcb-requests(3) for details π
π ERRORS π
xcb_drawable_error_tβ the specified drawable (Window or Pixmap) does not exist. gone. not found. she's not there bestie πxcb_g_context_error_tβ the specified graphics context does not exist. also missing, also a problem πxcb_match_error_tβTODO: reasons?... yeah the manpage itself is like "idk lol". iconic honestly π
π«Ά SEE ALSO π«Ά
π AUTHOR π
generated from xproto.xml. contact xcb@lists.freedesktop.org for corrections and improvements π§ like if something's off, tell the mailing list, they're the ones who can fix it fr fr.
and that's the whole page bestie, you ate that π this was xcb_poly_fill_rectangle(3) from the XCB Requests crew, part of X Version 11, libxcb 1.17.0 β go fill some rectangles, ily, bye πβ¨π¦
π¦ 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