[−][src]Enum smithay_client_toolkit::keyboard::Event
pub enum Event<'a> { Enter { serial: u32, surface: WlSurface, rawkeys: &'a [u32], keysyms: &'a [u32], }, Leave { serial: u32, surface: WlSurface, }, Key { serial: u32, time: u32, rawkey: u32, keysym: u32, state: KeyState, utf8: Option<String>, }, RepeatInfo { rate: i32, delay: i32, }, Modifiers { modifiers: ModifiersState, }, }
Events received from a mapped keyboard
Variants
The keyboard focus has entered a surface
Fields of Enter
The keyboard focus has left a surface
A key event occurred
Fields of Key
Repetition information advertising
Fields of RepeatInfo
The key modifiers have changed state
Fields of Modifiers
modifiers: ModifiersState
current state of the modifiers
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> !UnwindSafe for Event<'a>
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,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,