xcb_button_press_event_t(3)
π 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'sXCB_BUTTON_RELEASE. this field also lives insidexcb_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 ofchild.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β ifsame_screenis true, this is the X coordinate relative to the event window's origin. otherwise,event_xgets set to zero. π«Άevent_yβ ifsame_screenis true, this is the Y coordinate relative to the event window's origin. otherwise,event_ygets 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 π
xcb_generic_event_t(3)xcb_grab_button(3)xcb_grab_pointer(3)
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. πππ¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms