Struct vertigo::KeyDownEvent
source · pub struct KeyDownEvent {
pub key: String,
pub code: String,
pub alt_key: bool,
pub ctrl_key: bool,
pub shift_key: bool,
pub meta_key: bool,
}
Expand description
Structure passed as a parameter to callback on on_key_down event.
Fields§
§key: String
§code: String
§alt_key: bool
§ctrl_key: bool
§shift_key: bool
§meta_key: bool
Trait Implementations§
source§impl Clone for KeyDownEvent
impl Clone for KeyDownEvent
source§fn clone(&self) -> KeyDownEvent
fn clone(&self) -> KeyDownEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KeyDownEvent
impl Debug for KeyDownEvent
Auto Trait Implementations§
impl Freeze for KeyDownEvent
impl RefUnwindSafe for KeyDownEvent
impl Send for KeyDownEvent
impl Sync for KeyDownEvent
impl Unpin for KeyDownEvent
impl UnwindSafe for KeyDownEvent
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