xcb_store_named_color(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_store_named_color ✨

okay bestie, gather round, because we're doing a little field trip into xcb_store_named_color from the libxcb manual pages (that's section 3 of the XCB Requests family, iykyk πŸ’…). Buckle up, it's giving ✨legacy X11 energy✨ and honestly? we're obsessed.


🌸 NAME 🌸

xcb_store_named_color β€” and that's literally it, bestie. The name is the whole vibe here. No little tagline, no one-line summary, just the function name sitting there looking pretty πŸŽ€. (Not every manpage gets a subtitle and that's okay. Main character energy doesn't need a caption.)


πŸ¦‹ SYNOPSIS πŸ¦‹

First things first, you gotta invite the header in:

#include <xcb/xproto.h>

πŸ’– Request function πŸ’–

xcb_void_cookie_t xcb_store_named_color(xcb_connection_t *conn,
       uint8_t flags, xcb_colormap_t cmap, uint32_t pixel,
       uint16_t name_len, const char *name);

Look at that signature. Six arguments, one return type, zero notes. Iconic. ✨


πŸ‘‘ REQUEST ARGUMENTS πŸ‘‘

okay so this is the part where the manpage is like "here's what everything means" and then says TODO: NOT YET DOCUMENTED for literally every single one of them. Not me reading a documentation file that documents nothing 😭. But fr fr, here's the full roster, all accounted for, no gatekeeping:

  • conn β€” The XCB connection to X11. Your lil hotline to the X server, bestie. πŸ’…
  • flags β€” TODO: NOT YET DOCUMENTED. (yes, really. the page says this. we don't make the rules.)
  • cmap β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ
  • pixel β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • name_len β€” TODO: NOT YET DOCUMENTED. πŸ“
  • name β€” TODO: NOT YET DOCUMENTED. 🧚
bestie note: I am not going to invent meanings for these. The original page genuinely says TODO: NOT YET DOCUMENTED for all five of them and I am a good noodle who does not make up technical facts. We respect the source. 🫢

🌈 DESCRIPTION 🌈

...it's empty. That's it. That's the section. The DESCRIPTION section on this page is a void, a blank canvas, a liminal space. We have no description to give you and honestly that's its own kind of powerful. ✨


⭐ RETURN VALUE ⭐

This one actually has lore, thank goodness:

  • It returns an xcb_void_cookie_t. πŸ’–
  • Errors (if any) have to be handled in the event loop. That's the rule, bestie, we don't do it any other way.
  • If you want to handle errors directly with xcb_request_check instead, use xcb_store_named_color_checked. See xcb-requests(3) for details. πŸ“š

πŸ’œ ERRORS πŸ’œ

okay here's the good news, the chef's kiss news, the ate-and-left-no-crumbs news:

This request does never generate any errors. πŸŽ‰

Zero errors. None. Nada. It's the chillest request in the whole X server. Vibe check: passed. βœ…


πŸŽ€ SEE ALSO πŸŽ€

...nothing here either, bestie. The SEE ALSO section is empty on this page. No cross-references, no friends, no nothing. (Except the xcb-requests(3) shoutout from the RETURN VALUE section, which we already gave its flowers. πŸ’)


🌸 AUTHOR 🌸

  • Generated from xproto.xml. πŸ“œ
  • Contact xcb@lists.freedesktop.org for corrections and improvements. πŸ“§

(hi yes that's the official contact info, they said corrections AND improvements, so if you spot something, go tell them, they're lovely, we love a maintainer 🫢)


πŸ’« the sign-off πŸ’«

and that's the whole page, bestie!! This one came to you from X Version 11, living inside libxcb 1.17.0, and it's filed under xcb_store_named_color(3). No cap. Go forth, store those named colors, and remember: the DESCRIPTION section is empty but you are not. πŸ’…βœ¨πŸ‘‘