[][src]Struct iced_native::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...)

Implementations

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]

Auto Trait Implementations

impl RefUnwindSafe for ModifiersState

impl Send for ModifiersState

impl Sync for ModifiersState

impl Unpin for ModifiersState

impl UnwindSafe for ModifiersState

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[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>,