xcb_randr_get_screen_info(3)
π xcb_randr_get_screen_info π
okay bestie, welcome to the xcb_randr_get_screen_info(3) page β this one lives in the XCB Requests part of the manual, and it's your girl's guide to asking the X server "hey, what's my screen looking like rn?" π₯οΈβ¨
πΈ NAME πΈ
xcb_randr_get_screen_info -
(yes the description is literally just a dash, the original said nothing else, so we're keeping it mysterious π )
β¨ SYNOPSIS β¨
#include <xcb/randr.h>
π Request function
xcb_randr_get_screen_info_cookie_t
xcb_randr_get_screen_info(xcb_connection_t *conn,
xcb_window_t window);
π¦ Reply datastructure
typedef struct xcb_randr_get_screen_info_reply_t {
uint8_t response_type;
uint8_t rotations;
uint16_t sequence;
uint32_t length;
xcb_window_t root;
xcb_timestamp_t timestamp;
xcb_timestamp_t config_timestamp;
uint16_t nSizes;
uint16_t sizeID;
uint16_t rotation;
uint16_t rate;
uint16_t nInfo;
uint8_t pad0[2];
} xcb_randr_get_screen_info_reply_t;
π Reply function
xcb_randr_get_screen_info_reply_t
*xcb_randr_get_screen_info_reply(xcb_connection_t *conn,
xcb_randr_get_screen_info_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
xcb_randr_screen_size_t *xcb_randr_get_screen_info_sizes(const
xcb_randr_get_screen_info_request_t *reply);
int xcb_randr_get_screen_info_sizes_length(const
xcb_randr_get_screen_info_reply_t *reply);
xcb_randr_screen_size_iterator_t
xcb_randr_get_screen_info_sizes_iterator(const
xcb_randr_get_screen_info_reply_t *reply);
int xcb_randr_get_screen_info_rates_length(const
xcb_randr_get_screen_info_reply_t *reply);
xcb_randr_refresh_rates_iterator_t
xcb_randr_get_screen_info_rates_iterator(const
xcb_randr_get_screen_info_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, basically π«Άwindowβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "not yet", so we're not gonna make stuff up, no cap π
π REPLY FIELDS π
response_typeβ the type of this reply, in this caseXCB_RANDR_GET_SCREEN_INFO. this field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. it's giving "hello, it's me" energy πsequenceβ the sequence number of the last request processed by the X11 server.lengthβ the length of the reply, in words (a word is 4 bytes).rotationsβ TODO: NOT YET DOCUMENTED.rootβ TODO: NOT YET DOCUMENTED.timestampβ TODO: NOT YET DOCUMENTED.config_timestampβ TODO: NOT YET DOCUMENTED.nSizesβ TODO: NOT YET DOCUMENTED.sizeIDβ TODO: NOT YET DOCUMENTED.rotationβ TODO: NOT YET DOCUMENTED.rateβ TODO: NOT YET DOCUMENTED.nInfoβ TODO: NOT YET DOCUMENTED.
not me listing a whole pile of TODOs π that's genuinely what the original page has though, so we keep every single one. the vibe changes, the facts do NOT. periodt.
π§ DESCRIPTION π§
(there is no description text here β the original section is empty, so we're just gonna sit here and look cute πΈ)
π« RETURN VALUE π«
Returns an xcb_randr_get_screen_info_cookie_t. Errors have to be handled when calling the reply function xcb_randr_get_screen_info_reply.
If you want to handle errors in the event loop instead, use xcb_randr_get_screen_info_unchecked. See xcb-requests(3) for details.
π ERRORS π
This request does never generate any errors. iconic, honestly. zero drama. π
π₯ SEE ALSO π₯
(empty in the original β nothing listed, so nothing to add π)
β AUTHOR β
Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page bestie!! π¦ this came from the X Version 11 manual, libxcb 1.17.0, and the page is xcb_randr_get_screen_info(3). mwah, go forth and query your screens π
β¨π
π¦ 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