Struct xcb::ffi::xproto::xcb_key_press_event_t [−][src]
a key was pressed/released
Fields
response_type: u8
detail: xcb_keycode_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 Clone for xcb_key_press_event_t
[src]
fn clone(&self) -> xcb_key_press_event_t
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for xcb_key_press_event_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for xcb_key_press_event_t
impl Send for xcb_key_press_event_t
impl Sync for xcb_key_press_event_t
impl Unpin for xcb_key_press_event_t
impl UnwindSafe for xcb_key_press_event_t
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,