xcb_render_add_traps(3)
β¨ xcb_render_add_traps β the XCB Requests girlies know β¨
okay so bestie, welcome to xcb_render_add_traps(3), straight out of the XCB Requests section of the manual. it's giving "let's draw some trapezoids, but make it a request". sit down, grab a strawberry π, and let's get into it.
πΈ NAME πΈ
xcb_render_add_traps β (the description slot is literally empty in the original, no cap, so we're all just vibing with the function name here)
π¦ SYNOPSIS π¦
#include <xcb/render.h>
π Request function π
xcb_void_cookie_t xcb_render_add_traps(xcb_connection_t *conn,
xcb_render_picture_t picture, int16_t x_off, int16_t y_off,
uint32_t traps_len, const xcb_render_trap_t *traps);
π REQUEST ARGUMENTS π
one bullet per arg, periodt:
connβ your XCB connection to X11. the whole main character of the connection world π₯pictureβ TODO: NOT YET DOCUMENTED. π like, the docs simply did not show up to class.x_offβ TODO: NOT YET DOCUMENTED. also a mystery, also iconic in its absence.y_offβ TODO: NOT YET DOCUMENTED. same energy, same void.traps_lenβ TODO: NOT YET DOCUMENTED. no notes, no docs.trapsβ TODO: NOT YET DOCUMENTED. the trap list itself is lowkey undocumented rn.
ngl bestie, all five of those TODOs are literally in the original. i'm not gatekeeping info, there just is no info. π«Ά
β¨ DESCRIPTION β¨
so, um. the description section is empty. that's it. that's the section. the author left it blank and honestly, we respect the confidence. π
π RETURN VALUE π
it returns an xcb_void_cookie_t. errors (if there are any) have to be handled in the event loop. yes, that's the vibe. that's how it works.
if you want to handle errors directly with xcb_request_check instead, then bestie, use xcb_render_add_traps_checked. see xcb-requests(3) for the details. slay. β¨
π ERRORS π
this request never generates any errors.
like, zero. none. not a single one. it's the chillest function in the whole library fr fr.
π SEE ALSO π
(this section is empty in the original β nothing to see here, and also nothing to see there)
π AUTHOR π
Generated from render.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie π§ β brought to you by X Version 11, libxcb 1.17.0, and the xcb_render_add_traps(3) manual page itself. go forth and add those traps. π
πΈ
π¦ 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