[][src]Struct pixel_widgets::event::Modifiers

pub struct Modifiers {
    pub ctrl: bool,
    pub alt: bool,
    pub shift: bool,
    pub logo: bool,
}

A set of modifiers

Fields

ctrl: bool

true if the control key is pressed, `false otherwise.

alt: bool

true if the alt key is pressed, `false otherwise.

shift: bool

true if the shift key is pressed, `false otherwise.

true if the windows/super/command key is pressed, `false otherwise.

Implementations

impl Modifiers[src]

pub fn none() -> Modifiers[src]

pub fn ctrl() -> Modifiers[src]

pub fn alt() -> Modifiers[src]

pub fn shift() -> Modifiers[src]

Trait Implementations

impl Clone for Modifiers[src]

impl Copy for Modifiers[src]

impl Debug for Modifiers[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DragDropId for T where
    T: 'static + Send + Copy
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.