xcb_x_print_p...ge_resolution(3)
π xcb_x_print_print_set_image_resolution π
okay bestie, welcome to the XCB corner of the X11 universe π¦ this one lives in the XCB Requests manual, and it's literally called xcb_x_print_p...ge_resolution(3) because the title got cut off mid-glow-up (the full name is waaaay too long for the header, iykyk). It's a request function, it comes from <xcb/xprint.h>, and yes it's part of the X Print squad. Let's get into it β¨
πΈ NAME πΈ
xcb_x_print_print_set_image_resolution β and that's it, that's the whole name, no description. Not me being mysterious, the page genuinely just says that π
β¨ SYNOPSIS β¨
First, the include, because nothing works without it:
#include <xcb/xprint.h>
π Request function
xcb_x_print_print_set_image_resolution_cookie_t
xcb_x_print_print_set_image_resolution(xcb_connection_t *conn,
xcb_x_print_pcontext_t context, uint16_t image_resolution);
π Reply datastructure
typedef struct xcb_x_print_print_set_image_resolution_reply_t {
uint8_t response_type;
uint8_t status;
uint16_t sequence;
uint32_t length;
uint16_t previous_resolutions;
} xcb_x_print_print_set_image_resolution_reply_t;
π Reply function
xcb_x_print_print_set_image_resolution_reply_t
*xcb_x_print_print_set_image_resolution_reply(xcb_connection_t *conn,
xcb_x_print_print_set_image_resolution_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, aka your little phone line to the server π«Άcontextβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs just left us on read πimage_resolutionβ TODO: NOT YET DOCUMENTED. also left on read, no cap π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this specific case it'sXCB_X_PRINT_PRINT_SET_IMAGE_RESOLUTION. this field is also chillin' in thexcb_generic_reply_t, which is how you tell replies apart from each other. very main character of it πsequenceβ the sequence number of the last request processed by the X11 server. it's giving receipt energy π§Ύlengthβ how long the reply is, in words (and a word is 4 bytes, so do the math β¨)statusβ TODO: NOT YET DOCUMENTED. πprevious_resolutionsβ TODO: NOT YET DOCUMENTED. π
π DESCRIPTION π
literally nothing here. the section exists, it's just empty. the void. the silence. we respect it though πΈ
π¦ RETURN VALUE π¦
It returns an xcb_x_print_print_set_image_resolution_cookie_t. πͺ
Errors? You have to handle those when you call the reply function, xcb_x_print_print_set_image_resolution_reply.
If you'd rather handle errors in the event loop instead, use xcb_x_print_print_set_image_resolution_unchecked. See xcb-requests(3) for the details, bestie π
π₯ ERRORS π₯
This request does never generate any errors. zero. zilch. not a single one. iconic behaviour honestly π
β SEE ALSO β
(blank. empty. the page said nothing here. we're just vibing in the silence π¦)
π§ AUTHOR π§
Generated from xprint.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's off, slide into their inbox, not mine π
fr fr, that's the whole page. the TODOs are the original author's, not mine β I'm just the messenger π«Ά
and that's a wrap, bestie!! π This lil gem came to you from X Version 11, libxcb 1.17.0, page xcb_x_print_p...ge_resolution(3). go forth and print, you absolute legend β¨ππ¦
π¦ 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