xcb_poly_rectangle(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ xcb_poly_rectangle ✨

okay so bestie, welcome to xcb_poly_rectangle, straight out of the XCB Requests corner of your friendly neighbourhood manual pages πŸ’– it's a lil X11 request function and it's here to draw rectangles, and honestly? she's simple, she's iconic, she's giving low-effort-high-reward πŸ‘‘


🌸 NAME 🌸

xcb_poly_rectangle β€”

and that's it. that's the whole NAME section. literally just the function name and a lil dangling dash πŸŽ€ no summary, no tagline, no nothing. the manpage said "I'm not gonna elaborate" and honestly? respect. periodt.


πŸ¦‹ SYNOPSIS πŸ¦‹

first thing's first, you gotta pull in the header, no cap:

#include <xcb/xproto.h>

πŸ’… Request function πŸ’…

here's the actual function signature, copy it exactly bestie, do not freestyle:

xcb_void_cookie_t xcb_poly_rectangle(xcb_connection_t *conn,
       xcb_drawable_t drawable, xcb_gcontext_t gc,
       uint32_t rectangles_len, const xcb_rectangle_t *rectangles);

πŸ“ REQUEST ARGUMENTS πŸ“

okay so here's what you're feeding her:

  • conn β€” The XCB connection to X11. this is your link to the X server, your situationship with the display, iykyk 🌈
  • drawable β€” TODO: NOT YET DOCUMENTED. yeah bestie, the docs are giving unfinished homework 😭 not me reading a TODO in a real manpage
  • gc β€” TODO: NOT YET DOCUMENTED. same energy, same void πŸ™ˆ
  • rectangles_len β€” TODO: NOT YET DOCUMENTED. the mystery continues πŸ’€
  • rectangles β€” TODO: NOT YET DOCUMENTED. iconic of them to leave the whole point undocumented honestly

🧚 DESCRIPTION 🧚

[crickets] πŸ¦—βœ¨

no fr, this section is empty in the original. blank. nada. zero. the vibe is immaculate and the information is nonexistent. we move πŸ’œ


πŸ”₯ RETURN VALUE πŸ”₯

she returns an xcb_void_cookie_t. and because it's a void cookie, any errors (if any) have to be handled in the event loop, okay? like, you don't get them handed to you directly, you gotta go look for them 🫢

but wait β€” if you'd rather handle errors directly with xcb_request_check instead, use xcb_poly_rectangle_checked instead. slay, options. see xcb-requests(3) for the full details, bestie πŸ“–


πŸ’€ ERRORS πŸ’€

This request does never generate any errors.

not one. zero. none. she is unbothered, she is unproblematic, she is the moment ⭐


πŸŽ€ SEE ALSO πŸŽ€

[also crickets] πŸ¦—πŸ¦—

yeah this one's empty too. the manpage is out here serving minimalist realness and honestly? we stan a low-content queen πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements πŸ’Œ


and that's the whole page bestie!! 🌸 this absolute legend of a manpage came to you courtesy of X Version 11, libxcb 1.17.0, and yes, xcb_poly_rectangle(3) is fr fr the main character here πŸ’– go draw some rectangles, you got this 🫢✨