Struct xcb::ffi::xproto::xcb_button_press_event_t
[−]
[src]
#[repr(C)]pub struct xcb_button_press_event_t { pub response_type: u8, pub detail: xcb_button_t, pub sequence: u16, pub time: xcb_timestamp_t, pub root: xcb_window_t, pub event: xcb_window_t, pub child: xcb_window_t, pub root_x: i16, pub root_y: i16, pub event_x: i16, pub event_y: i16, pub state: u16, pub same_screen: u8, pub pad0: u8, }
a mouse button was pressed/released
Fields
response_type: u8
detail: xcb_button_t
The keycode (a number representing a physical key on the keyboard) of the key which was pressed.
sequence: u16
time: xcb_timestamp_t
Time when the event was generated (in milliseconds).
root: xcb_window_t
The root window of child
.
event: xcb_window_t
child: xcb_window_t
root_x: i16
The X coordinate of the pointer relative to the root
window at the time of
the event.
root_y: i16
The Y coordinate of the pointer relative to the root
window at the time of
the event.
event_x: i16
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.
event_y: i16
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.
state: u16
The logical state of the pointer buttons and modifier keys just prior to the event.
same_screen: u8
Whether the event
window is on the same screen as the root
window.
pad0: u8
Trait Implementations
impl Copy for xcb_button_press_event_t
[src]
impl Clone for xcb_button_press_event_t
[src]
fn clone(&self) -> xcb_button_press_event_t
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more