Struct xcb::ffi::xproto::xcb_key_press_event_t[][src]

#[repr(C)]pub struct xcb_key_press_event_t {
    pub response_type: u8,
    pub detail: xcb_keycode_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 key was pressed/released

Fields

response_type: u8detail: xcb_keycode_t

The keycode (a number representing a physical key on the keyboard) of the key which was pressed.

sequence: u16time: xcb_timestamp_t

Time when the event was generated (in milliseconds).

root: xcb_window_t

The root window of child.

event: xcb_window_tchild: xcb_window_troot_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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.