[][src]Struct iced_native::input::keyboard::ModifiersState

pub struct ModifiersState {
    pub shift: bool,
    pub control: bool,
    pub alt: bool,
    pub logo: bool,
}

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

Whether a logo key is pressed (e.g. windows key, command key...)

Methods

impl ModifiersState[src]

pub fn matches(&self, modifiers: ModifiersState) -> bool[src]

Returns true if the current ModifiersState has at least the same modifiers enabled as the given value, and false otherwise.

Trait Implementations

impl Clone for ModifiersState[src]

impl Copy for ModifiersState[src]

impl Debug for ModifiersState[src]

impl Default for ModifiersState[src]

impl Eq for ModifiersState[src]

impl PartialEq<ModifiersState> for ModifiersState[src]

impl StructuralEq for ModifiersState[src]

impl StructuralPartialEq for ModifiersState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,