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
sourceimpl Clone for KeyDownEvent
impl Clone for KeyDownEvent
sourcefn clone(&self) -> KeyDownEvent
fn clone(&self) -> KeyDownEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyDownEvent
impl Debug for KeyDownEvent
Auto Trait Implementations
impl RefUnwindSafe for KeyDownEvent
impl Send for KeyDownEvent
impl Sync for KeyDownEvent
impl Unpin for KeyDownEvent
impl UnwindSafe for KeyDownEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more