xcb_put_image(3)
π xcb_put_image β the manual page, but make it cute π
okay bestie, gather round, because this one is from the XCB Requests corner of the universe and it's a <cyan>xcb_put_image(3)</cyan> situation. it's a request function. it puts an image. that's the whole vibe. β¨
β¨ NAME β¨
xcb_put_image β
(yeah, that's it. the description is literally blank. the manpage said nothing. iconic, honestly. π«Ά)
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/xproto.h>
Request function π
xcb_void_cookie_t xcb_put_image(xcb_connection_t *conn, uint8_t format,
xcb_drawable_t drawable, xcb_gcontext_t gc, uint16_t width,
uint16_t height, int16_t dst_x, int16_t dst_y, uint8_t left_pad,
uint8_t depth, uint32_t data_len, const uint8_t *data);
like. look at all those arguments. twelve of them. twelve!! she's got range, no cap. π
π¦ REQUEST ARGUMENTS π¦
connβ the XCB connection to X11. your lil hotline to the server, bestie. πformatβ okay so this one takes one of the following values:XCB_IMAGE_FORMAT_XY_BITMAPβ TODO: NOT YET DOCUMENTED.XCB_IMAGE_FORMAT_XY_PIXMAPβ TODO: NOT YET DOCUMENTED.XCB_IMAGE_FORMAT_Z_PIXMAPβ TODO: NOT YET DOCUMENTED.- TODO: NOT YET DOCUMENTED.
and yes, there really is an extra stray TODO: NOT YET DOCUMENTED. hanging out under Z_PIXMAP with zero explanation. the docs are mysterious. we respect the mystery. π₯
drawableβ TODO: NOT YET DOCUMENTED.gcβ TODO: NOT YET DOCUMENTED.widthβ TODO: NOT YET DOCUMENTED.heightβ TODO: NOT YET DOCUMENTED.dst_xβ TODO: NOT YET DOCUMENTED.dst_yβ TODO: NOT YET DOCUMENTED.left_padβ TODO: NOT YET DOCUMENTED.depthβ TODO: NOT YET DOCUMENTED.data_lenβ TODO: NOT YET DOCUMENTED.dataβ TODO: NOT YET DOCUMENTED.
lowkey the entire argument list is a group chat where nobody replied. π that's not me being shady, that's literally what the page says. every single one. respect.
π DESCRIPTION π
nothing. it's blank. there is no description. the void. the silence. the drama of it all. π
β RETURN VALUE β
Returns an xcb_void_cookie_t. and listen β errors (if any) have to be handled in the event loop. you don't get them handed to you here, bestie, you gotta go get them.
if you'd rather handle errors directly with xcb_request_check instead, then use xcb_put_image_checked. go see xcb-requests(3) for the deets. π
π ERRORS π
this request does never generate any errors.
zero. none. not a single one. she's unbothered, she's flawless, she's not giving you error codes. π β¨
π§ SEE ALSO π§
nothing listed. empty. blank. a moment of peace before the AUTHOR section. πΈ
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π§
okay that's the whole page, and yes it's mostly TODOs, but honestly? main character energy. we love an underdocumented XCB request. π«Ά
this was xcb_put_image(3) from X Version 11, libxcb 1.17.0, and that's the tea. drink up, bestie. πβ¨π
π¦ 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