[−][src]Enum sixtyfps_corelib::input::KeyEvent
Represents a key event sent by the windowing system.
Variants
A key on a keyboard was pressed.
Fields of KeyPressed
code: KeyCode
The key code of the pressed key.
modifiers: KeyboardModifiers
The keyboard modifiers active at the time of the key press event.
A key on a keyboard was released.
Fields of KeyReleased
code: KeyCode
The key code of the released key.
modifiers: KeyboardModifiers
The keyboard modifiers active at the time of the key release event.
A key on a keyboard was released that results in a character that's suitable for text input.
Fields of CharacterInput
unicode_scalar: u32
The u32 is a unicode scalar value that is safe to convert to char.
modifiers: KeyboardModifiers
The keyboard modifiers active at the time of the char input event.
Trait Implementations
impl Clone for KeyEvent
[src]
impl Debug for KeyEvent
[src]
impl PartialEq<KeyEvent> for KeyEvent
[src]
impl StructuralPartialEq for KeyEvent
[src]
impl<'_> TryFrom<(&'_ KeyboardInput, KeyboardModifiers)> for KeyEvent
[src]
type Error = ()
The type returned in the event of a conversion error.
pub fn try_from(
input: (&KeyboardInput, KeyboardModifiers)
) -> Result<Self, Self::Error>
[src]
input: (&KeyboardInput, KeyboardModifiers)
) -> Result<Self, Self::Error>
Auto Trait Implementations
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnwindSafe for KeyEvent
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>,