xcb_glx_create_pixmap(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_glx_create_pixmap(3) β€” from the XCB Requests crew

okay bestie, gather round, we're doing a lil XCB request today. this one lives in the XCB Requests manual, and it's called xcb_glx_create_pixmap. that's the whole NAME situation, no cap β€” the original is literally just vibes and a dash, so we're matching that energy. 🫢


✨ SYNOPSIS ✨

first things first, you gotta pull in the header:

#include <xcb/glx.h>

πŸŽ€ Request function

here's the main character herself, in all her glory:

xcb_void_cookie_t xcb_glx_create_pixmap(xcb_connection_t *conn,
       uint32_t screen, xcb_glx_fbconfig_t fbconfig,
       xcb_pixmap_t pixmap, xcb_glx_pixmap_t glx_pixmap,
       uint32_t num_attribs, const uint32_t *attribs);

she returns an xcb_void_cookie_t, she takes a whole lil entourage of args, and honestly? iconic. ✨


🌸 REQUEST ARGUMENTS 🌸

  • conn β€” your XCB connection to X11. the whole pipeline to the server, the bestie you text at 3am. πŸ’–
  • screen β€” TODO: NOT YET DOCUMENTED. yeah girl, the docs just said "figure it out" and dipped. πŸ™ˆ
  • fbconfig β€” TODO: NOT YET DOCUMENTED. same energy. no notes, no info. πŸ’€
  • pixmap β€” TODO: NOT YET DOCUMENTED. (we know it's a xcb_pixmap_t, that's the tea we have.)
  • glx_pixmap β€” TODO: NOT YET DOCUMENTED. still ghosting us fr fr.
  • num_attribs β€” TODO: NOT YET DOCUMENTED. the count of something. mysterious. slay. πŸ’…
  • attribs β€” TODO: NOT YET DOCUMENTED. a const uint32_t * pointer to the mystery. lowkey obsessed with how little we know.
no for real bestie, six of these are literally marked TODO: NOT YET DOCUMENTED. in the source. that's not me being lazy, that's the manpage being a cryptic queen. πŸ‘‘

🌈 DESCRIPTION 🌈

...and that's it. that's the description. it's empty. it's giving silence. the original page has nothing here, so we're not gonna invent lore that isn't canon. πŸ¦‹


⭐ RETURN VALUE ⭐

she hands you back an xcb_void_cookie_t. the catch? any errors have to be caught in the event loop, so don't just wander off, okay?

but if you'd rather handle errors directly with xcb_request_check, that's totally valid β€” just call xcb_glx_create_pixmap_checked instead. the deets live in xcb-requests(3). go read it, it's a whole vibe. πŸ“š


πŸ’€ ERRORS πŸ’€

okay so plot twist: this request never generates any errors. none. zero. not a single one. she's unproblematic like that. ✨


🧚 SEE ALSO 🧚

...nothing here either bestie. the SEE ALSO section is an empty room. we love a minimalist. πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Generated from glx.xml. if something's wrong or you wanna make it better, hit up xcb@lists.freedesktop.org with your corrections and improvements. they're nice, I promise. 🫢


and that's the whole page, babe! X Version 11, libxcb 1.17.0 β€” that's the source and the version, straight from the footer, so you know exactly which era of XCB you're living in. go forth and create some pixmaps, you absolute legend. πŸ’–βœ¨πŸŒΈπŸ¦‹