xcb_dbe_get_visual_info(3)

πŸ’– xcb_dbe_get_visual_info β€” the XCB Requests girlies' guide πŸ’–

okay bestie, so this is xcb_dbe_get_visual_info, straight out of the XCB Requests corner of the manual. it asks the X server for the visuals that support double buffering. that's the whole vibe. let's get into it πŸ¦‹


✨ NAME ✨

xcb_dbe_get_visual_info β€” Requests visuals that support double buffering πŸ’…


🌸 SYNOPSIS 🌸

#include <xcb/dbe.h>

πŸŽ€ Request function

xcb_dbe_get_visual_info_cookie_t
       xcb_dbe_get_visual_info(xcb_connection_t *conn,
       uint32_t n_drawables, const xcb_drawable_t *drawables);

πŸŽ€ Reply datastructure

typedef struct xcb_dbe_get_visual_info_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint32_t n_supported_visuals;
    uint8_t  pad1[20];
} xcb_dbe_get_visual_info_reply_t;

πŸŽ€ Reply function

xcb_dbe_get_visual_info_reply_t
       *xcb_dbe_get_visual_info_reply(xcb_connection_t *conn,
       xcb_dbe_get_visual_info_cookie_t cookie,
       xcb_generic_error_t **e);

πŸŽ€ Reply accessors

int xcb_dbe_get_visual_info_supported_visuals_length(const
       xcb_dbe_get_visual_info_reply_t *reply);

xcb_dbe_visual_infos_iterator_t
       xcb_dbe_get_visual_info_supported_visuals_iterator(const
       xcb_dbe_get_visual_info_reply_t *reply);

🫢 REQUEST ARGUMENTS 🫢

  • conn β€” your XCB connection to X11. the link between you and the server, the situationship that actually works πŸ’œ
  • n_drawables β€” TODO: NOT YET DOCUMENTED. yeah bestie, they left this one blank, we don't make stuff up around here πŸ™ˆ
  • drawables β€” TODO: NOT YET DOCUMENTED. same energy. mysterious. iconic. but undocumented fr fr.

🌈 REPLY FIELDS 🌈

  • response_type β€” the type of this reply, and in this case it's XCB_DBE_GET_VISUAL_INFO. this field also lives in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's giving name tag at a party πŸŽ€
  • sequence β€” the sequence number of the last request processed by the X11 server. lowkey the server's receipt 🧾
  • length β€” the length of the reply, in words. and yes, a word is 4 bytes here, that's just how they count πŸ’€
  • n_supported_visuals β€” TODO: NOT YET DOCUMENTED. not me staring at this field with zero info 😭

πŸ‘‘ DESCRIPTION πŸ‘‘

(no extra description was given, bestie β€” the section is literally empty. slay, minimalism ✨)


⭐ RETURN VALUE ⭐

it hands you back an xcb_dbe_get_visual_info_cookie_t. that's your little promise ticket 🎟️

errors? those get handled when you call the reply function xcb_dbe_get_visual_info_reply.

if you'd rather catch your errors in the event loop instead, use xcb_dbe_get_visual_info_unchecked. see xcb-requests(3) for the details, iykyk.

πŸ’€ ERRORS πŸ’€

This request does never generate any errors. clean. flawless. no drama. periodt ✨


πŸ”₯ SEE ALSO πŸ”₯


πŸ’œ AUTHOR πŸ’œ

Generated from dbe.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. be nice, they're doing their best 🫢


X Version 11 β€” libxcb 1.17.0 β€” and that's the whole page, bestie πŸ’…βœ¨ mwah, go request some visuals, you ate πŸ‘‘