xcb_query_best_size(3)
π xcb_query_best_size β the XCB Requests girlies' guide π
okay so bestie, we're in xcb_query_best_size(3) territory, from the XCB Requests fam. buckle up π
β¨ NAME β¨
xcb_query_best_size β literally the name, that's it, no description in the source, not me being lazy, that's just what the page says π
πΈ SYNOPSIS πΈ
first things first, you gotta include the header:
#include <xcb/xproto.h>
π Request function
xcb_query_best_size_cookie_t xcb_query_best_size(xcb_connection_t *conn,
uint8_t _class, xcb_drawable_t drawable, uint16_t width,
uint16_t height);
π¦ Reply datastructure
typedef struct xcb_query_best_size_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t width;
uint16_t height;
} xcb_query_best_size_reply_t;
β Reply function
xcb_query_best_size_reply_t
*xcb_query_best_size_reply(xcb_connection_t *conn,
xcb_query_best_size_cookie_t cookie, xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11, the whole reason we're here π«Ά_classβ one of these values, pick your fighter:XCB_QUERY_SHAPE_OF_LARGEST_CURSORβ TODO: NOT YET DOCUMENTED. (yes bestie, the docs really said "figure it out" π)XCB_QUERY_SHAPE_OF_FASTEST_TILEβ TODO: NOT YET DOCUMENTED.XCB_QUERY_SHAPE_OF_FASTEST_STIPPLEβ TODO: NOT YET DOCUMENTED.- TODO: NOT YET DOCUMENTED. (this one's just vibes, no name attached π)
drawableβ TODO: NOT YET DOCUMENTED.widthβ TODO: NOT YET DOCUMENTED.heightβ TODO: NOT YET DOCUMENTED.
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_QUERY_BEST_SIZE. this field also lives inxcb_generic_reply_t, so you can use it to tell replies apart from each other. main character energy honestly β¨sequenceβ the sequence number of the last request the X11 server processed π₯lengthβ the length of the reply, in words (and a word is 4 bytes, iykyk) πwidthβ TODO: NOT YET DOCUMENTED.heightβ TODO: NOT YET DOCUMENTED.
π DESCRIPTION π
...yeah bestie, there's literally nothing here. the section exists, the words don't. iconic of them πβ¨
π RETURN VALUE π
it hands you back an xcb_query_best_size_cookie_t. errors? you deal with those when you call the reply function, xcb_query_best_size_reply.
if you'd rather handle errors in the event loop instead, use xcb_query_best_size_unchecked. more on that in xcb-requests(3) π«Ά
π ERRORS π
this request does never generate any errors. not one. zero. she's unproblematic π
π SEE ALSO π
empty. nothing. void. the girls said "no further reading" π
π AUTHOR π
Generated from xproto.xml. If you've got corrections or improvements, hit up xcb@lists.freedesktop.org π§
and that's the whole thing, bestie β X Version 11, libxcb 1.17.0, wrapping up xcb_query_best_size(3). slay, go query some best sizes, periodt ππβ¨
π¦ 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