xcb_button_press_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_button_press_event_t(3) πŸ’–

okay bestie, welcome to the XCB Events corner of the manual, where today's main character is xcb_button_press_event_t β€” literally the event that fires when somebody presses (or releases) a mouse button. yes, the page title is its whole name, we're keeping it, she's iconic, periodt.


✨ NAME ✨

xcb_button_press_event_t β€” a mouse button was pressed/released πŸ–±οΈπŸ’…


🌸 SYNOPSIS 🌸

#include <xcb/xproto.h>

πŸ¦‹ Event datastructure

typedef struct xcb_button_press_event_t {
    uint8_t         response_type;
    xcb_button_t    detail;
    uint16_t        sequence;
    xcb_timestamp_t time;
    xcb_window_t    root;
    xcb_window_t    event;
    xcb_window_t    child;
    int16_t         root_x;
    int16_t         root_y;
    int16_t         event_x;
    int16_t         event_y;
    uint16_t        state;
    uint8_t         same_screen;
    uint8_t         pad0;
} xcb_button_press_event_t;

look at her. all fields, all present, no notes. πŸŽ€


πŸ‘‘ EVENT FIELDS πŸ‘‘

  • response_type β€” the type of this event, and in this case it's XCB_BUTTON_RELEASE. this field also lives inside xcb_generic_event_t, and it's literally how you tell your events apart from each other. vibe check: do it. πŸ”₯
  • sequence β€” the sequence number of the last request the X11 server processed.
  • detail β€” the keycode (a number representing a physical key on the keyboard) of the key which was pressed.
  • time β€” when the event was generated, in milliseconds. ⏰
  • root β€” the root window of child.
  • event β€” NOT YET DOCUMENTED. 😭 yes bestie, that's all the page says, we don't make stuff up around here.
  • child β€” NOT YET DOCUMENTED. πŸ™ˆ same energy, same honesty.
  • root_x β€” the X coordinate of the pointer relative to the root window at the time of the event.
  • root_y β€” the Y coordinate of the pointer relative to the root window at the time of the event.
  • event_x β€” if same_screen is true, this is the X coordinate relative to the event window's origin. otherwise, event_x gets set to zero. 🫢
  • event_y β€” if same_screen is true, this is the Y coordinate relative to the event window's origin. otherwise, event_y gets set to zero.
  • state β€” the logical state of the pointer buttons and modifier keys just prior to the event. so like, before. before-before. 🧚
  • same_screen β€” whether the event window is on the same screen as the root window. πŸ’«

πŸ’œ DESCRIPTION πŸ’œ

so... there's literally nothing here. the section exists, it's just empty. she's giving mysterious. she's giving "no thoughts, head empty" but in a chic way. no cap, that's the whole section. ⭐


🌈 SEE ALSO 🌈

go read those next, bestie, they're the supporting cast and they ate. ✨


πŸŽ€ AUTHOR πŸŽ€

Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. πŸ’Œ


okay and for the cute sign-off: this whole thing is X Version 11, libxcb 1.17.0, and it's filed under xcb_button_press_event_t(3) β€” that's the footer, that's the vibe, and that's the end of the page. mwah. πŸ’–πŸ‘‘πŸ¦‹