Struct i_slint_core::input::KeyboardModifiers
source · [−]#[repr(C)]pub struct KeyboardModifiers {
pub alt: bool,
pub control: bool,
pub meta: bool,
pub shift: bool,
}Expand description
KeyboardModifier provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc.
On macOS, the command key is mapped to the meta modifier.
On Windows, the windows key is mapped to the meta modifier.
Fields
alt: boolIndicates the alt key on a keyboard.
control: boolIndicates the control key on a keyboard.
meta: boolIndicates the logo key on macOS and the windows key on Windows.
shift: boolIndicates the shift key on a keyboard.
Trait Implementations
sourceimpl Clone for KeyboardModifiers
impl Clone for KeyboardModifiers
sourcefn clone(&self) -> KeyboardModifiers
fn clone(&self) -> KeyboardModifiers
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 more
sourceimpl Debug for KeyboardModifiers
impl Debug for KeyboardModifiers
sourceimpl Default for KeyboardModifiers
impl Default for KeyboardModifiers
sourcefn default() -> KeyboardModifiers
fn default() -> KeyboardModifiers
Returns the “default value” for a type. Read more
sourceimpl PartialEq<KeyboardModifiers> for KeyboardModifiers
impl PartialEq<KeyboardModifiers> for KeyboardModifiers
sourcefn eq(&self, other: &KeyboardModifiers) -> bool
fn eq(&self, other: &KeyboardModifiers) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &KeyboardModifiers) -> bool
fn ne(&self, other: &KeyboardModifiers) -> bool
This method tests for !=.
impl Copy for KeyboardModifiers
impl Eq for KeyboardModifiers
impl StructuralEq for KeyboardModifiers
impl StructuralPartialEq for KeyboardModifiers
Auto Trait Implementations
impl RefUnwindSafe for KeyboardModifiers
impl Send for KeyboardModifiers
impl Sync for KeyboardModifiers
impl Unpin for KeyboardModifiers
impl UnwindSafe for KeyboardModifiers
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more