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: bool
Indicates the alt key on a keyboard.
control: bool
Indicates the control key on a keyboard.
meta: bool
Indicates the logo key on macOS and the windows key on Windows.
shift: bool
Indicates 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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more