Struct xcb::x::ButtonPressEvent [−][src]
pub struct ButtonPressEvent { /* fields omitted */ }
Expand description
a mouse button was pressed/released
Implementations
pub fn new(
detail: Button,
time: Timestamp,
root: Window,
event: Window,
child: Window,
root_x: i16,
root_y: i16,
event_x: i16,
event_y: i16,
state: u16,
same_screen: bool
) -> ButtonPressEvent
The keycode (a number representing a physical key on the keyboard) of the key which was pressed.
The X coordinate of the pointer relative to the root
window at the time of
the event.
The Y coordinate of the pointer relative to the root
window at the time of
the event.
If same_screen
is true, this is the X coordinate relative to the event
window’s origin. Otherwise, event_x
will be set to zero.
If same_screen
is true, this is the Y coordinate relative to the event
window’s origin. Otherwise, event_y
will be set to zero.
The logical state of the pointer buttons and modifier keys just prior to the event.
Whether the event
window is on the same screen as the root
window.