xcb_randr_create_mode(3)
π xcb_randr_create_mode β bestie edition π
okay so this one is an XCB Requests page, from the libxcb girlies over at X Version 11. It's xcb_randr_create_mode(3) and she's here to make you a brand new RandR mode. Let's get into it β¨
β¨ NAME β¨
xcb_randr_create_mode β no description bestie, the NAME line is literally just vibing there empty π
πΈ SYNOPSIS πΈ
First things first, you gotta pull in the header:
#include <xcb/randr.h>
π¦ Request function
xcb_randr_create_mode_cookie_t
xcb_randr_create_mode(xcb_connection_t *conn,
xcb_window_t window, xcb_randr_mode_info_t mode_info,
uint32_t name_len, const char *name);
π¦ Reply datastructure
typedef struct xcb_randr_create_mode_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_randr_mode_t mode;
uint8_t pad1[20];
} xcb_randr_create_mode_reply_t;
π¦ Reply function
xcb_randr_create_mode_reply_t
*xcb_randr_create_mode_reply(xcb_connection_t *conn,
xcb_randr_create_mode_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, periodt πwindowβTODO: NOT YET DOCUMENTED.(not me getting left on read by the docs π)mode_infoβTODO: NOT YET DOCUMENTED.name_lenβTODO: NOT YET DOCUMENTED.nameβTODO: NOT YET DOCUMENTED.
bestie the docs really said "no thoughts, head empty" for four whole arguments and honestly? iconic. the facts stay the facts tho π«Ά
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_RANDR_CREATE_MODE. this field is also chillin' in thexcb_generic_reply_t, and you can use it to tell your replies apart from each other. vibe check: passed βsequenceβ the sequence number of the last request processed by the X11 server. tracking numbers but make it X11 π§lengthβ the length of the reply, in words (and a word is 4 bytes, so do your little math, bestie).modeβTODO: NOT YET DOCUMENTED.π
π DESCRIPTION π
literally nothing here. the DESCRIPTION section is empty. the silence is deafening. no cap. π
β RETURN VALUE β
She returns an xcb_randr_create_mode_cookie_t. πͺ
Errors have to be handled when you call the reply function xcb_randr_create_mode_reply.
If you'd rather handle errors in the event loop instead, use xcb_randr_create_mode_unchecked. See xcb-requests(3) for the details, iykyk.
π₯ ERRORS π₯
This request does never generate any errors. clean. pristine. no drama. we love a low-maintenance queen π
π SEE ALSO π
empty bestie, there's nothing linked here π
π«Ά AUTHOR π«Ά
Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (yes, actually email them, they're nice πΈ)
and that's the whole page, bestie!! this one comes to you courtesy of X Version 11 and libxcb 1.17.0, straight from the libxcb girlies. go forth and create modes responsibly. mwah πβ¨
π¦ 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