Struct i_slint_core::items::KeyboardModifiers
source · #[repr(C)]pub struct KeyboardModifiers {
pub alt: bool,
pub control: bool,
pub shift: bool,
pub meta: bool,
}Expand description
KeyboardModifier provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc.
This structure is generated as part of KeyEvent
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.
shift: boolIndicates the shift key on a keyboard.
meta: boolIndicates the command key on macos.
Trait Implementations§
source§impl Clone for KeyboardModifiers
impl Clone for KeyboardModifiers
source§fn clone(&self) -> KeyboardModifiers
fn clone(&self) -> KeyboardModifiers
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 KeyboardModifiers
impl Debug for KeyboardModifiers
source§impl Default for KeyboardModifiers
impl Default for KeyboardModifiers
source§fn default() -> KeyboardModifiers
fn default() -> KeyboardModifiers
Returns the “default value” for a type. Read more
source§impl PartialEq for KeyboardModifiers
impl PartialEq for KeyboardModifiers
source§fn 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 ==.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§
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