xcb_render_add_traps(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_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. πŸ’…πŸŒΈ