Struct speedy2d::window::ModifiersState[][src]

pub struct ModifiersState { /* fields omitted */ }

The state of the modifier keys.

Implementations

impl ModifiersState[src]

#[must_use]pub fn ctrl(&self) -> bool[src]

This is true if the CTRL key is pressed.

#[must_use]pub fn alt(&self) -> bool[src]

This is true if the ALT key is pressed.

#[must_use]pub fn shift(&self) -> bool[src]

This is true if the SHIFT key is pressed.

This is true if the logo key is pressed (normally the Windows key).

Trait Implementations

impl Clone for ModifiersState[src]

impl Debug for ModifiersState[src]

impl Eq for ModifiersState[src]

impl From<ModifiersState> for ModifiersState[src]

impl Hash 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.