[][src]Enum fltk::enums::Shortcut

#[repr(i32)]pub enum Shortcut {
    None,
    Shift,
    CapsLock,
    Ctrl,
    Alt,
}

Defines the modifiers of virtual keycodes

Variants

None
Shift
CapsLock
Ctrl
Alt

Implementations

impl Shortcut[src]

pub fn from_char(c: char) -> Shortcut[src]

Create a shortcut from a char

pub fn from_key(k: Key) -> Shortcut[src]

Create a shortcut from a key

pub fn from_i32(v: i32) -> Shortcut[src]

Create a shortcut from an i32

Trait Implementations

impl BitOr<Key> for Shortcut[src]

type Output = Shortcut

The resulting type after applying the | operator.

impl BitOr<char> for Shortcut[src]

type Output = Shortcut

The resulting type after applying the | operator.

impl Clone for Shortcut[src]

impl Copy for Shortcut[src]

impl Debug for Shortcut[src]

impl PartialEq<Shortcut> for Shortcut[src]

impl StructuralPartialEq for Shortcut[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.