xcb_randr_get_output_property(3)
β¨ xcb_randr_get_output_property β¨
okay bestie, so this is a page from the XCB Requests manual, and it's literally the β¨ tea β¨ on how to ask the X server about a property that's hanging off one of your RandR outputs. It's giving "peek behind the curtain but make it a protocol request." π
π SYNOPSIS π
first up, you gotta pull in the header, no cap:
#include <xcb/randr.h>
πΈ Request function
xcb_randr_get_output_property_cookie_t
xcb_randr_get_output_property(xcb_connection_t *conn,
xcb_randr_output_t output, xcb_atom_t property, xcb_atom_t type,
uint32_t long_offset, uint32_t long_length, uint8_t _delete,
uint8_t pending);
π¦ Reply datastructure
typedef struct xcb_randr_get_output_property_reply_t {
uint8_t response_type;
uint8_t format;
uint16_t sequence;
uint32_t length;
xcb_atom_t type;
uint32_t bytes_after;
uint32_t num_items;
uint8_t pad0[12];
} xcb_randr_get_output_property_reply_t;
π Reply function
xcb_randr_get_output_property_reply_t
*xcb_randr_get_output_property_reply(xcb_connection_t *conn,
xcb_randr_get_output_property_cookie_t cookie,
xcb_generic_error_t **e);
β Reply accessors
uint8_t *xcb_randr_get_output_property_data(const
xcb_randr_get_output_property_request_t *reply);
int xcb_randr_get_output_property_data_length(const
xcb_randr_get_output_property_reply_t *reply);
xcb_generic_iterator_t xcb_randr_get_output_property_data_end(const
xcb_randr_get_output_property_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, fr.outputβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs just said "we'll finish this later" and never came back πpropertyβ TODO: NOT YET DOCUMENTED. same energy, it's a mystery π«£typeβ TODO: NOT YET DOCUMENTED. iconic of them to leave us hanging.long_offsetβ TODO: NOT YET DOCUMENTED. no notes, just vibes and question marks.long_lengthβ TODO: NOT YET DOCUMENTED. also undocumented, also slaying in the shadows._deleteβ TODO: NOT YET DOCUMENTED. yes the underscore is literally part of the name, don't come for me.pendingβ TODO: NOT YET DOCUMENTED. last one, also a mystery, we move.
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_RANDR_GET_OUTPUT_PROPERTY. This field is also chillin' in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. very demure, very mindful. πsequenceβ the sequence number of the last request the X11 server actually processed. like a lil timestamp of "yeah I did that one."lengthβ how long the reply is, in words. and btw a word is 4 bytes, so do with that what you will.formatβ TODO: NOT YET DOCUMENTED. shocking, I know. πtypeβ TODO: NOT YET DOCUMENTED. yes there's atypein the request and one here, they're different, keep up bestie.bytes_afterβ TODO: NOT YET DOCUMENTED. the name is very suggestive but the docs said nothing, so neither will I.num_itemsβ TODO: NOT YET DOCUMENTED. again. it's a whole situation.
π DESCRIPTION π
...and that's it. There's literally nothing here. The description section is just empty, bestie. We have been left on read. π«Ά
π₯ RETURN VALUE π₯
It hands you back an xcb_randr_get_output_property_cookie_t. Errors have to be dealt with when you call the reply function xcb_randr_get_output_property_reply.
But if you'd rather handle your errors inside the event loop instead (main character behavior, honestly), then use xcb_randr_get_output_property_unchecked. Peep xcb-requests(3) for the details on that whole situation.
π ERRORS π
This request does never generate any errors. Not one. Zero. It's that girl and she doesn't start drama. periodt.
πΈ SEE ALSO πΈ
...nothing. The SEE ALSO section is empty, bestie. We're on our own out here. π§
π AUTHOR π
Generated from randr.xml. If you wanna send corrections and improvements, hit up xcb@lists.freedesktop.org. They're literally waiting for your email. π
and that's the whole page, bestie!! this lil slice of the manual is from X Version 11, libxcb 1.17.0, and it's page xcb_randr_get_output_property(3). mwah, go read some properties, you got this πβ¨π
π¦ 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