xcb_dri2_copy_region(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_dri2_copy_region β€” the dri2 copy_region request, explained by your favorite Unix girlie ✨

okay so bestie, we're in libxcb land, specifically the dri2 extension, and this page is the manual for xcb_dri2_copy_region πŸ’– it's a request function, it hands you back a cookie, and you come back later to get the reply. classic XCB pipeline energy. let's go 🌸


🌈 SYNOPSIS 🌈

#include <xcb/dri2.h>

πŸŽ€ Request function πŸŽ€

xcb_dri2_copy_region_cookie_t
xcb_dri2_copy_region(xcb_connection_t *conn,
        xcb_drawable_t drawable, uint32_t region, uint32_t dest,
        uint32_t src);

πŸ¦‹ Reply datastructure πŸ¦‹

typedef struct xcb_dri2_copy_region_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
} xcb_dri2_copy_region_reply_t;

πŸ’œ Reply function πŸ’œ

xcb_dri2_copy_region_reply_t
*xcb_dri2_copy_region_reply(xcb_connection_t *conn,
        xcb_dri2_copy_region_cookie_t cookie, xcb_generic_error_t **e);

πŸ’… REQUEST ARGUMENTS πŸ’…

  • conn β€” your XCB connection to X11, the whole reason you're here, the main character tbh πŸ”₯
  • drawable β€” TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "we'll get to it" and then did not get to it πŸ™ˆ
  • region β€” TODO: NOT YET DOCUMENTED. same vibe, no cap
  • dest β€” TODO: NOT YET DOCUMENTED. ngl, also undocumented
  • src β€” TODO: NOT YET DOCUMENTED. and that's the whole argument squad, all four of the mystery ones πŸ’€

🌟 REPLY FIELDS 🌟

  • response_type β€” the type of this reply, and in this case it's XCB_DRI2_COPY_REGION ✨ this field also lives in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other when they're all showing up in the same inbox 🫢
  • sequence β€” the sequence number of the last request that the X11 server actually processed πŸ“¬
  • length β€” the length of the reply, counted in words β€” and a word here is 4 bytes, periodt πŸŽ€

🌸 DESCRIPTION 🌸

...so bestie, this section is literally empty. the manpage authors said "describe it" and the description said "no πŸ’€". nothing to read here, moving on 🧚


πŸ‘‘ RETURN VALUE πŸ‘‘

it returns an xcb_dri2_copy_region_cookie_t πŸͺ and here's the thing β€” errors have to be handled when you call the reply function xcb_dri2_copy_region_reply. that's the deal, that's the contract.

but wait, if you'd rather handle errors in the event loop instead? use xcb_dri2_copy_region_unchecked πŸ’œ and if you want the full tea on how that works, go read xcb-requests(3).


🚨 ERRORS 🚨

this request does never generate any errors. not a single one. zero. slay πŸ’…

⭐ SEE ALSO ⭐

nothing listed here! iconic of the manpage honestly, it just vibes 🌈


πŸ’– AUTHOR πŸ’–

generated from dri2.xml. and if you spot something wrong or want to send improvements, contact xcb@lists.freedesktop.org β€” they literally asked for it, so don't be shy πŸ“§


and that's the whole page bestie! this one came from X Version 11, libxcb 1.17.0, and it's filed under xcb_dri2_copy_region(3) πŸ¦‹ mwah, go copy some regions responsibly πŸ’–βœ¨