[−][src]Struct iced_native::keyboard::Modifiers
The current state of the keyboard modifiers.
Fields
shift: bool
Whether a shift key is pressed
control: bool
Whether a control key is pressed
alt: bool
Whether an alt key is pressed
logo: bool
Whether a logo key is pressed (e.g. windows key, command key...)
Implementations
impl Modifiers
[src]
pub fn is_command_pressed(self) -> bool
[src]
Returns true if a "command key" is pressed in the Modifiers
.
The "command key" is the main modifier key used to issue commands in the current platform. Specifically:
- It is the
logo
or command key (⌘) on macOS - It is the
control
key on other platforms
pub fn matches(&self, modifiers: Modifiers) -> bool
[src]
Returns true if the current Modifiers
have at least the same
keys pressed as the provided ones, and false otherwise.
Trait Implementations
impl Clone for Modifiers
[src]
impl Copy for Modifiers
[src]
impl Debug for Modifiers
[src]
impl Default for Modifiers
[src]
impl Eq for Modifiers
[src]
impl PartialEq<Modifiers> for Modifiers
[src]
impl StructuralEq for Modifiers
[src]
impl StructuralPartialEq for Modifiers
[src]
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
impl Send for Modifiers
impl Sync for Modifiers
impl Unpin for Modifiers
impl UnwindSafe for Modifiers
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,