Struct sixtyfps_corelib::input::KeyEvent[][src]

#[repr(C)]
pub struct KeyEvent { pub text: SharedString, pub modifiers: KeyboardModifiers, pub event_type: KeyEventType, }

Represents a key event sent by the windowing system.

Fields

text: SharedString

The unicode representation of the key pressed.

modifiers: KeyboardModifiers

The keyboard modifiers active at the time of the key press event.

event_type: KeyEventType

Indicates whether the key was pressed or released

Trait Implementations

impl Clone for KeyEvent[src]

impl Debug for KeyEvent[src]

impl Default for KeyEvent[src]

impl PartialEq<KeyEvent> for KeyEvent[src]

impl StructuralPartialEq for KeyEvent[src]

Auto Trait Implementations

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.