xcb_render_query_filters(3)
π
xcb_render_query_filters β the manual page (yes, xcb_render_query_filters(3), that one)
okay so bestie, pull up a chair, we're doing XCB Render filters today and honestly? it's giving β¨low-level-but-make-it-cuteβ¨. This is the request that asks the X server "hey queen, what filters do you even have for this drawable?" π
πΈ SYNOPSIS πΈ
First things first, you gotta bring in the header:
#include <xcb/render.h>
β¨ Request function
xcb_render_query_filters_cookie_t
xcb_render_query_filters(xcb_connection_t *conn,
xcb_drawable_t drawable);
π¦ Reply datastructure
typedef struct xcb_render_query_filters_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_aliases;
uint32_t num_filters;
uint8_t pad1[16];
} xcb_render_query_filters_reply_t;
π Reply function
xcb_render_query_filters_reply_t
*xcb_render_query_filters_reply(xcb_connection_t *conn,
xcb_render_query_filters_cookie_t cookie,
xcb_generic_error_t **e);
π«Ά Reply accessors
uint16_t *xcb_render_query_filters_aliases(const
xcb_render_query_filters_request_t *reply);
int xcb_render_query_filters_aliases_length(const
xcb_render_query_filters_reply_t *reply);
xcb_generic_iterator_t xcb_render_query_filters_aliases_end(const
xcb_render_query_filters_reply_t *reply);
int xcb_render_query_filters_filters_length(const
xcb_render_query_filters_reply_t *reply);
xcb_str_iterator_t xcb_render_query_filters_filters_iterator(const
xcb_render_query_filters_reply_t *reply);
ngl, that accessor list is a whole vibe check on its own. Aliases get a pointer, a length and an end iterator; filters get a length and an iterator. Write that down. π
π REQUEST ARGUMENTS
connβ the XCB connection to X11. Your lil phone line to the server, basically. βοΈdrawableβ TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "we'll get to it" and then never did. π Not my fault, I'm just the messenger.
π REPLY FIELDS
response_typeβ the type of this reply, in this caseXCB_RENDER_QUERY_FILTERS. This field is also present in thexcb_generic_reply_tand can be used to tell replies apart from each other. It's like the name tag at a party so you know who you're talking to. πsequenceβ the sequence number of the last request processed by the X11 server. It's the server going "yes babes, I got up to here." π’lengthβ the length of the reply, in words (a word is 4 bytes). Do not forget the word-is-4-bytes part, I beg you. πnum_aliasesβ TODO: NOT YET DOCUMENTED. the void stares back. π³οΈnum_filtersβ TODO: NOT YET DOCUMENTED. also void. Also staring. π
β DESCRIPTION β
soβ¦ there's literally nothing here. The section exists, the section is empty, the section is iconic for it actually. No description, no prose, no nothing. Just vibes and silence. π¦
π RETURN VALUE
Returns an xcb_render_query_filters_cookie_t. πͺ Errors have to be handled when calling the reply function xcb_render_query_filters_reply.
If you want to handle errors in the event loop instead, use xcb_render_query_filters_unchecked. See xcb-requests(3) for details.
bestie, key thing: the cookie is not the answer. The cookie is the promise of an answer. Go get the reply. π«Ά
π₯ ERRORS
This request does never generate any errors. Zero. None. Not a single one. She's unbothered, she's moisturized, she's in her lane. π
π SEE ALSO
β¦nothing here either. Empty. Nada. The SEE ALSO section is out here living its best minimalist life. β¨
πΈ AUTHOR
Generated from render.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. If something's wrong, tell the humans at that address, not me, I'm just a girl with a keyboard. π
okay that's the whole page, love u, go forth and query those filters responsibly. π
mwah π β this one came from X Version 11, libxcb 1.17.0, and the page footer said xcb_render_query_filters(3) with no date in sight (rude, honestly), so that's the sign-off. byeee π«Ά
π¦ 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