pub struct KeyModifiers {
pub shift: bool,
pub control: bool,
pub alt: bool,
pub logo: bool,
}
Expand description
Modifiers that were held when a key event was fired.
Fieldsยง
ยงshift: bool
ยงcontrol: bool
ยงalt: bool
ยงlogo: bool
Trait Implementationsยง
Sourceยงimpl Clone for KeyModifiers
impl Clone for KeyModifiers
Sourceยงfn clone(&self) -> KeyModifiers
fn clone(&self) -> KeyModifiers
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 KeyModifiers
impl Debug for KeyModifiers
Sourceยงimpl Default for KeyModifiers
impl Default for KeyModifiers
Sourceยงfn default() -> KeyModifiers
fn default() -> KeyModifiers
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl PartialEq for KeyModifiers
impl PartialEq for KeyModifiers
impl StructuralPartialEq for KeyModifiers
Auto Trait Implementationsยง
impl Freeze for KeyModifiers
impl RefUnwindSafe for KeyModifiers
impl Send for KeyModifiers
impl Sync for KeyModifiers
impl Unpin for KeyModifiers
impl UnwindSafe for KeyModifiers
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