[][src]Enum druid::SysMods

pub enum SysMods {
    None,
    Cmd,
    AltCmd,
    CmdShift,
    AltCmdShift,
}

A platform-agnostic representation of keyboard modifiers, for command handling.

This does one thing: it allows specifying hotkeys that use the Command key on macOS, but use the Ctrl key on other platforms.

Variants

None
Cmd

Command on macOS, and Ctrl on windows/linux

AltCmd

Command + Alt on macOS, Ctrl + Alt on windows/linux

CmdShift

Command + Shift on macOS, Ctrl + Shift on windows/linux

AltCmdShift

Command + Alt + Shift on macOS, Ctrl + Alt + Shift on windows/linux

Trait Implementations

impl Clone for SysMods[src]

impl Copy for SysMods[src]

impl Debug for SysMods[src]

impl From<SysMods> for RawMods[src]

impl PartialEq<KeyModifiers> for SysMods[src]

impl PartialEq<SysMods> for KeyModifiers[src]

Auto Trait Implementations

impl RefUnwindSafe for SysMods

impl Send for SysMods

impl Sync for SysMods

impl Unpin for SysMods

impl UnwindSafe for SysMods

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> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

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.