xcb_damage_notify_event_t(3)

πŸ“¦
version 1.17.0 Β· 5 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_damage_notify_event_t β€” bestie, your drawable changed πŸ’–

okay so this is a page from the XCB Events manual, and it's about xcb_damage_notify_event_t, aka the little struct that shows up to tell you the contents of the monitored drawable have changed. periodt. πŸ¦‹


✨ NAME ✨

xcb_damage_notify_event_t β€” the contents of the monitored drawable have changed πŸ’…


✨ SYNOPSIS ✨

#include <xcb/damage.h>

πŸŽ€ Event datastructure πŸŽ€

typedef struct xcb_damage_notify_event_t {
    uint8_t             response_type;
    uint8_t             level;
    uint16_t            sequence;
    xcb_drawable_t      drawable;
    xcb_damage_damage_t damage;
    xcb_timestamp_t     timestamp;
    xcb_rectangle_t     area;
    xcb_rectangle_t     geometry;
} xcb_damage_notify_event_t;

like. look at her. eight fields. absolutely iconic. πŸ‘‘


✨ EVENT FIELDS ✨

  • response_type β€” the type of this event, which in this case is XCB_DAMAGE_NOTIFY. it 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✨.
  • sequence β€” the sequence number of the last request processed by the X11 server. fr fr, that's the one.
  • level β€” the level of the damage being reported. important bestie moment: if the 0x80 bit is set, that means there are subsequent Damage events being delivered immediately as part of a larger Damage region. so like, more is coming, don't close the group chat πŸ’€
  • drawable β€” the drawable for which damage is being reported. the main character of this whole situation.
  • damage β€” the Damage object being used to track the damage. yes she's tracking, no she's not toxic, it's literally her job πŸ™ˆ
  • timestamp β€” when the event was generated, in milliseconds.
  • area β€” the damaged area of the drawable. the boo-boo zone 🩹
  • geometry β€” the total area of the drawable. the whole vibe, not just the ouchie.

✨ DESCRIPTION ✨

(okay so this section is literally empty in the original β€” no notes, no lore, nothing. it's giving silence. so we move. πŸ’€)


✨ SEE ALSO ✨

  • xcb_generic_event_t(3)
  • xcb_create(3)

go read those too, they're part of the lore 🫢


✨ AUTHOR ✨

Generated from damage.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (so if something's off, that's the inbox, bestie πŸ’Œ)


and that's the whole page!! 🌈 this came from X Version 11, libxcb 1.17.0 β€” mwah, slay, bye πŸ‘‘πŸ’–πŸ¦‹