XCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS_REPLY(3)
π xcb_x_print_print_get_page_dimensions β a whole manual page, bestie edition π
okay so. this is a page from the XCB Requests manual set, and the function we're obsessing over today is xcb_x_print_print_get_page_dimensions from libxcb. it's giving "X Print, but make it page dimensions". let's get into it π
β¨ NAME β¨
xcb_x_print_print_get_page_dimensions β that's literally it, the original leaves the description blank, so we're matching energy
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <xcb/xprint.h>
π Request function π
xcb_x_print_print_get_page_dimensions_cookie_t
xcb_x_print_print_get_page_dimensions(xcb_connection_t *conn,
xcb_x_print_pcontext_t context);
π¦ Reply datastructure π¦
okay so this is the struct you get back, and yes every single field is staying exactly where it is, no cap:
typedef struct xcb_x_print_print_get_page_dimensions_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t width;
uint16_t height;
uint16_t offset_x;
uint16_t offset_y;
uint16_t reproducible_width;
uint16_t reproducible_height;
} xcb_x_print_print_get_page_dimensions_reply_t;
β Reply function β
xcb_x_print_print_get_page_dimensions_reply_t
*xcb_x_print_print_get_page_dimensions_reply(xcb_connection_t *conn,
xcb_x_print_print_get_page_dimensions_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your little red string to the server, iykyk.contextβ TODO: NOT YET DOCUMENTED. not me leaving it exactly as upstream did π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_X_PRINT_PRINT_GET_PAGE_DIMENSIONS. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. very "which one of y'all is which" energy fr fr.sequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words. and a word is 4 bytes, bestie, don't forget.widthβ TODO: NOT YET DOCUMENTED.heightβ TODO: NOT YET DOCUMENTED.offset_xβ TODO: NOT YET DOCUMENTED.offset_yβ TODO: NOT YET DOCUMENTED.reproducible_widthβ TODO: NOT YET DOCUMENTED.reproducible_heightβ TODO: NOT YET DOCUMENTED.
(yeah the TODO squad is out in full force here. that's what the original says, so that's what you get π«Ά)
π§ DESCRIPTION π§
the original page literally has nothing under DESCRIPTION. a blank. an empty vibe. so there's nothing for me to spill here β the section exists, and it is stunningly silent β¨
π RETURN VALUE π
Returns an xcb_x_print_print_get_page_dimensions_cookie_t. that's the cookie πͺ β the real tea comes later.
Errors have to be handled when you call the reply function, xcb_x_print_print_get_page_dimensions_reply.
If you'd rather handle your errors in the event loop instead, use xcb_x_print_print_get_page_dimensions_unchecked. see xcb-requests(3) for the deets.
π ERRORS π
This request does never generate any errors.
iconic behaviour honestly. zero drama. she simply does not miss.
π₯ SEE ALSO π₯
the original page lists nothing here. not a single reference. a whole void. respect. π³οΈ
π AUTHOR π
Generated from xprint.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. they're literally asking for your notes, bestie, go be a main character and email them π
and that's the whole thing! this came to you from X Version 11 and libxcb 1.17.0 β thanks for reading, ily, go print something gorgeous πβ¨ππ¦
π¦ 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