pub struct KeyOutput { /* private fields */ }
Expand description
Struct for the output from PressedKey.
Implementations§
Source§impl KeyOutput
impl KeyOutput
Sourcepub fn from_key_code(key_code: u8) -> Self
pub fn from_key_code(key_code: u8) -> Self
Constructs a KeyOutput from a key code.
Sourcepub fn from_key_code_with_modifiers(
key_code: u8,
key_modifiers: KeyboardModifiers,
) -> Self
pub fn from_key_code_with_modifiers( key_code: u8, key_modifiers: KeyboardModifiers, ) -> Self
Constructs a KeyOutput from a key code with the given keyboard modifiers.
Sourcepub fn from_key_modifiers(key_modifiers: KeyboardModifiers) -> Self
pub fn from_key_modifiers(key_modifiers: KeyboardModifiers) -> Self
Constructs a KeyOutput for just the given keyboard modifiers.
Sourcepub fn key_modifiers(&self) -> KeyboardModifiers
pub fn key_modifiers(&self) -> KeyboardModifiers
Returns the keyboard modifiers of the key output.
Trait Implementations§
impl Copy for KeyOutput
impl Eq for KeyOutput
impl StructuralPartialEq for KeyOutput
Auto Trait Implementations§
impl Freeze for KeyOutput
impl RefUnwindSafe for KeyOutput
impl Send for KeyOutput
impl Sync for KeyOutput
impl Unpin for KeyOutput
impl UnwindSafe for KeyOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more