xcb_present_generic_event_t(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_present_generic_event_t(3) πŸ’–

okay bestie, welcome to the XCB Events corner of the manual, section 3, and today's main character is xcb_present_generic_event_t. she's an event datastructure, she's got a struct, and she's literally the blueprint for how the Present extension yells at you. let's get into it 🫢


✨ NAME ✨

xcb_present_generic_event_t β€” that's it, that's the whole name. no cute one-liner summary in the original, so we're not making one up either, iykyk πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

first things first, you gotta pull in the header:

#include <xcb/present.h>

🌸 Event datastructure 🌸

here's the glow-up, the actual struct, character for character:

typedef struct xcb_present_generic_event_t {
    uint8_t             response_type;
    uint8_t             extension;
    uint16_t            sequence;
    uint32_t            length;
    uint16_t            evtype;
    uint8_t             pad0[2];
    xcb_present_event_t event;
} xcb_present_generic_event_t;

look at her. iconic. no notes. ✨


πŸ‘‘ EVENT FIELDS πŸ‘‘

every field gets its moment, periodt:

  • response_type β€” the type of this event, and in this case it's literally XCB_PRESENT_GENERIC. this same field also lives inside xcb_generic_event_t, so you can use it to tell your events apart from each other. it's giving ✨name tag at a party✨.
  • sequence β€” the sequence number of the last request that the X11 server processed. like a little receipt number for your request, fr fr 🧾
  • extension β€” NOT YET DOCUMENTED. bestie I wish I knew, but the original said nothing and I'm not about to invent lore πŸ™ˆ
  • length β€” NOT YET DOCUMENTED. same situation, no cap πŸ’€
  • evtype β€” NOT YET DOCUMENTED. we stay humble 😭
  • event β€” NOT YET DOCUMENTED. yeah. that's the whole entry. screaming, crying, throwing up πŸ“
heads up: those four "NOT YET DOCUMENTED" fields are exactly that β€” undocumented in the source material. I'm not gonna guess what they do, because making up facts about a struct is not the vibe. 🫢

🌈 DESCRIPTION 🌈

so… there isn't one. the original page has the DESCRIPTION section sitting there completely empty. a whole heading with nothing under it. it's giving silent treatment πŸ’€ so like, I'm not gonna fabricate a description that doesn't exist. we respect the source.


πŸŽ€ SEE ALSO πŸŽ€

also empty, bestie. no cross-references, no related pages, nothing. the SEE ALSO section is out here with zero friends. tragic, honestly. 😭


πŸ’œ AUTHOR πŸ’œ

this page was generated from present.xml. if you've got corrections or improvements you wanna send over, hit up xcb@lists.freedesktop.org β€” they'd literally love that 🫢


and that's the whole page, bestie!! mwah πŸ’…βœ¨ go forth and handle your events, you're doing amazing, and remember: X Version 11, libxcb 1.17.0, xcb_present_generic_event_t(3) β€” slay, bye!! πŸ¦‹πŸ’–