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 command key on macos.
shift: boolIndicates the shift key on a keyboard.
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<KeyboardModifiers> for KeyboardModifiers
impl PartialEq<KeyboardModifiers> 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 ==.