xcb_dbe_get_b...er_attributes(3)

πŸ’… NAME πŸ’…

okay so bestie, welcome to xcb_dbe_get_back_buffer_attributes β€” she gets back buffer attributes. that's the whole vibe. ✨

it's a lil XCB request function from the xcb/dbe.h era, and she's here to tell you stuff about your back buffers. periodt.


✨ SYNOPSIS ✨

first things first, you gotta let her in:

#include <xcb/dbe.h>

πŸŽ€ Request function

xcb_dbe_get_back_buffer_attributes_cookie_t
       xcb_dbe_get_back_buffer_attributes(xcb_connection_t *conn,
       xcb_dbe_back_buffer_t buffer);

πŸ¦‹ Reply datastructure

this is the lil struct she hands back at you, no cap:

typedef struct xcb_dbe_get_back_buffer_attributes_reply_t {
    uint8_t                     response_type;
    uint8_t                     pad0;
    uint16_t                    sequence;
    uint32_t                    length;
    xcb_dbe_buffer_attributes_t attributes;
    uint8_t                     pad1[20];
} xcb_dbe_get_back_buffer_attributes_reply_t;

🌸 Reply function

and here's how you actually go get the reply, bestie:

xcb_dbe_get_back_buffer_attributes_reply_t
       *xcb_dbe_get_back_buffer_attributes_reply(xcb_connection_t *conn,
       xcb_dbe_get_back_buffer_attributes_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ‘‘ REQUEST ARGUMENTS πŸ‘‘

  • conn β€” your XCB connection to X11. the whole link-up, the group chat with the server, iykyk.
  • buffer β€” the back buffer you're querying. the one you're curious about. main character of this request, fr fr.

🌈 REPLY FIELDS 🌈

  • response_type β€” the type of this reply. in this case it's XCB_DBE_GET_BACK_BUFFER_ATTRIBUTES. this field also lives in the xcb_generic_reply_t, and it's literally how you tell your replies apart from each other. like name tags at a party but for packets. πŸ’–
  • sequence β€” the sequence number of the last request processed by the X11 server. her receipts, basically.
  • length β€” the length of the reply, in words. and a word is 4 bytes, bestie, don't forget.
  • attributes β€” TODO: NOT YET DOCUMENTED. yeah. she's a mystery. an enigma. we don't know her yet. 😭

πŸ’œ DESCRIPTION πŸ’œ

Returns the attributes of the specified buffer. that's it. that's the whole job. she's simple, she's effective, she slays. ✨


πŸ”₯ RETURN VALUE πŸ”₯

She returns an xcb_dbe_get_back_buffer_attributes_cookie_t. and here's the thing β€” errors have to be handled when you call the reply function xcb_dbe_get_back_buffer_attributes_reply.

If you'd rather handle errors in the event loop instead, use xcb_dbe_get_back_buffer_attributes_unchecked. the details live over in xcb-requests(3), go peek. 🫢


πŸ’€ ERRORS πŸ’€

This request does never generate any errors. not one. zero. she is unproblematic and we love that for her. πŸ™ˆ


🧚 SEE ALSO 🧚


⭐ AUTHOR ⭐

Generated from dbe.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if something's giving wrong, that's who you @. πŸ’Œ


okay that's the whole page bestie!! go forth and query those back buffer attributes, you've absolutely got this πŸ’…βœ¨

this masterpiece was brought to you by X Version 11 and libxcb 1.17.0 β€” the icons, the legends, the moment πŸŽ€πŸ¦‹