XCB_RANDR_GET_SCREEN_SIZE_RANGE(3)
π NAME π
xcb_randr_get_screen_size_range β bestie, this one asks the X server like "hey, how big can this screen even get??" and hands you back a lil cookie so you can go pick up the answer later. (The original page's one-liner was literally empty, so consider this a vibe translation, not new lore. π)
β¨ SYNOPSIS β¨
Ok so first you gotta bring in the header, no cap:
#include <xcb/randr.h>
πΈ Request function πΈ
Here's the glow-up β this is the call that sends the request:
xcb_randr_get_screen_size_range_cookie_t
xcb_randr_get_screen_size_range(xcb_connection_t *conn,
xcb_window_t window);
π¦ Reply datastructure π¦
And this is the lil struct that comes back, the actual reply shape, iconic:
typedef struct xcb_randr_get_screen_size_range_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t min_width;
uint16_t min_height;
uint16_t max_width;
uint16_t max_height;
uint8_t pad1[16];
} xcb_randr_get_screen_size_range_reply_t;
π Reply function π
And this is how you go collect it β the reply function:
xcb_randr_get_screen_size_range_reply_t
*xcb_randr_get_screen_size_range_reply(xcb_connection_t *conn,
xcb_randr_get_screen_size_range_cookie_t cookie,
xcb_generic_error_t **e);
π«Ά REQUEST ARGUMENTS π«Ά
connβ the XCB connection to X11. Your link to the server, your little phone line to the mothership. πwindowβ TODO: NOT YET DOCUMENTED. Yeah bestie, the docs literally say that. Not me making it up, that's the actual text, I promise. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_RANDR_GET_SCREEN_SIZE_RANGE. This field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other when they all show up at the function. Detective energy. πsequenceβ the sequence number of the last request processed by the X11 server. It's the timestamp of the server's last main character moment.lengthβ the length of the reply, in words. And heads up, a word is 4 bytes. Not a dictionary word. A word. πmin_widthβ TODO: NOT YET DOCUMENTED. πmin_heightβ TODO: NOT YET DOCUMENTED. πmax_widthβ TODO: NOT YET DOCUMENTED. πmax_heightβ TODO: NOT YET DOCUMENTED. π
π§ DESCRIPTION π§
Soβ¦ the DESCRIPTION section on this page is empty. Like, empty empty. Nothing there. We're all just vibing in the silence. πΈ
β RETURN VALUE β
It returns an xcb_randr_get_screen_size_range_cookie_t. That's your lil claim ticket ποΈ.
Errors? Those have to be handled when you call the reply function:
xcb_randr_get_screen_size_range_reply
(Which, on the page, is written all hyphen-broken as xcb_ranβdr_get_screen_size_range_reply β same thing, just wrapped, don't panic. π)
But if you'd rather handle your errors in the event loop instead, then use:
xcb_randr_get_screen_size_range_unchecked
(Also hyphen-wrapped on the original as xcb_ranβdr_get_screen_size_range_unchecked. Same function, bestie.)
And for the full tea on all of that, go read xcb-requests(3). It explains the details. π
π ERRORS π
This request does never generate any errors.
Periodt. Zero. None. It's the low-drama friend of the XCB family. ποΈ
π₯ SEE ALSO π₯
The SEE ALSO section is empty on this page. Nothing to link, nothing to scroll to. Just us. π
π AUTHOR π
Generated from randr.xml. If you spot something wrong or wanna make it better, hit up xcb@lists.freedesktop.org for corrections and improvements. They take fan mail and bug reports. π«Ά
X Version 11 Β· libxcb 1.17.0 β that's the source and version of this whole thing, and that's the sign-off, mwah. π Go forth and query your screen size range, you gorgeous nerd. πβ¨π¦
π¦ 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