pub struct KeyModifiers {
pub shift: bool,
pub ctrl: bool,
pub alt: bool,
pub meta: bool,
pub caps_lock: bool,
pub num_lock: bool,
pub scroll_lock: bool,
}Expand description
Keyboard modifiers
Fields§
§shift: boolLeft or right Shift pressed
ctrl: boolLeft or right Ctrl pressed
alt: boolLeft or right Alt pressed
meta: boolLeft or right Meta/Super/Windows key pressed
caps_lock: boolCaps Lock active
num_lock: boolNum Lock active
scroll_lock: boolScroll Lock active
Trait Implementations§
Source§impl Clone for KeyModifiers
impl Clone for KeyModifiers
Source§fn clone(&self) -> KeyModifiers
fn clone(&self) -> KeyModifiers
Returns a duplicate of the value. Read more
1.0.0§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 Copy for KeyModifiers
impl Eq 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)