xcb_xinerama_get_screen_size(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ xcb_xinerama_get_screen_size ✨

okay bestie so this is a page from the XCB Requests manual set β€” it's xcb_xinerama_get_screen_size, and we're gonna get you all caught up on it πŸ’–


🌸 NAME 🌸

xcb_xinerama_get_screen_size β€”

ngl the original page just leaves a lil dash there and nothing else. that's it. that's the name section. iconic minimalism I guess πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

First up, the include, as always:

#include <xcb/xinerama.h>

πŸ’« Request function πŸ’«

xcb_xinerama_get_screen_size_cookie_t
       xcb_xinerama_get_screen_size(xcb_connection_t *conn,
       xcb_window_t window, uint32_t screen);

πŸ’« Reply datastructure πŸ’«

typedef struct xcb_xinerama_get_screen_size_reply_t {
    uint8_t      response_type;
    uint8_t      pad0;
    uint16_t     sequence;
    uint32_t     length;
    uint32_t     width;
    uint32_t     height;
    xcb_window_t window;
    uint32_t     screen;
} xcb_xinerama_get_screen_size_reply_t;

πŸ’« Reply function πŸ’«

xcb_xinerama_get_screen_size_reply_t
       *xcb_xinerama_get_screen_size_reply(xcb_connection_t *conn,
       xcb_xinerama_get_screen_size_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ¦‹ REQUEST ARGUMENTS πŸ¦‹

  • conn β€” the XCB connection to X11, your lil hotline to the server 🫢
  • window β€” TODO: NOT YET DOCUMENTED. yeah fr, the docs said "we'll get to it" and then never did 😭
  • screen β€” TODO: NOT YET DOCUMENTED. same energy, bestie, nobody wrote this one either πŸ™ˆ

🌈 REPLY FIELDS 🌈

  • response_type β€” what kind of reply this is! in this case it's XCB_XINERAMA_GET_SCREEN_SIZE. this field also lives in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other πŸ‘‘
  • sequence β€” the sequence number of the last request the X11 server actually processed ⭐
  • length β€” how long the reply is, measured in words (and a word is 4 bytes, no cap) πŸ’œ
  • width β€” TODO: NOT YET DOCUMENTED. 😭
  • height β€” TODO: NOT YET DOCUMENTED. 😭
  • window β€” TODO: NOT YET DOCUMENTED. 😭
  • screen β€” TODO: NOT YET DOCUMENTED. 😭

🌸 DESCRIPTION 🌸

so like... this section is literally empty in the original. nothing. void. silence. a whole mood πŸ•³οΈβœ¨


πŸ’… RETURN VALUE πŸ’…

It hands you back an xcb_xinerama_get_screen_size_cookie_t πŸͺ β€” and bestie, listen, errors have to be handled when you call the reply function xcb_xinerama_get_screen_size_reply.

But if you'd rather catch your errors in the event loop instead? use xcb_xinerama_get_screen_size_unchecked and vibe accordingly. check xcb-requests(3) for the deets πŸ”₯


πŸ’€ ERRORS πŸ’€

This request does never generate any errors. not one. zero. a clean flawless slay, no notes πŸ‘‘


🌟 SEE ALSO 🌟

...it's empty in the original too. we're just gonna sit with that in silence 🧚


πŸŽ€ AUTHOR πŸŽ€

Generated from xinerama.xml. if you wanna send corrections or improvements, hit up xcb@lists.freedesktop.org πŸ’Œ


and that's the whole page, bestie!! this one came from X Version 11, libxcb 1.17.0, and it's the xcb_xinerama_get_screen_size(3) page 🫢 go handle those cookies responsibly, mwah πŸ’–βœ¨