[][src]Struct druid::Modifiers

pub struct Modifiers(_);

The modifiers.

This type is a thin wrappers around keyboard_types::Modifiers, mostly for the convenience methods. If those get upstreamed, it will simply become that type.

Implementations

impl Modifiers[src]

pub const ALT: Modifiers[src]

pub const ALT_GRAPH: Modifiers[src]

pub const CAPS_LOCK: Modifiers[src]

pub const CONTROL: Modifiers[src]

pub const FN: Modifiers[src]

pub const FN_LOCK: Modifiers[src]

pub const META: Modifiers[src]

pub const NUM_LOCK: Modifiers[src]

pub const SCROLL_LOCK: Modifiers[src]

pub const SHIFT: Modifiers[src]

pub const SYMBOL: Modifiers[src]

pub const SYMBOL_LOCK: Modifiers[src]

pub const HYPER: Modifiers[src]

pub const SUPER: Modifiers[src]

pub fn raw(&self) -> Modifiers[src]

Get the inner value.

Note that this function might go away if our changes are upstreamed.

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

Determine whether Shift is set.

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

Determine whether Ctrl is set.

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

Determine whether Alt is set.

pub fn meta(&self) -> bool[src]

Determine whether Meta is set.

pub fn empty() -> Modifiers[src]

Returns an empty set of modifiers.

pub fn is_empty(&self) -> bool[src]

Returns true if no modifiers are set.

pub fn contains(&self, other: Modifiers) -> bool[src]

Returns true if all the modifiers in other are set.

pub fn set(&mut self, other: Modifiers, value: bool)[src]

Inserts or removes the specified modifiers depending on the passed value.

Trait Implementations

impl BitAnd<Modifiers> for Modifiers[src]

type Output = Modifiers

The resulting type after applying the & operator.

impl BitAndAssign<Modifiers> for Modifiers[src]

impl BitOr<Modifiers> for Modifiers[src]

type Output = Modifiers

The resulting type after applying the | operator.

impl BitOrAssign<Modifiers> for Modifiers[src]

impl BitXor<Modifiers> for Modifiers[src]

type Output = Modifiers

The resulting type after applying the ^ operator.

impl BitXorAssign<Modifiers> for Modifiers[src]

impl Clone for Modifiers[src]

impl Copy for Modifiers[src]

impl Debug for Modifiers[src]

impl Default for Modifiers[src]

impl Eq for Modifiers[src]

impl From<RawMods> for Modifiers[src]

impl Hash for Modifiers[src]

impl Not for Modifiers[src]

type Output = Modifiers

The resulting type after applying the ! operator.

impl PartialEq<Modifiers> for Modifiers[src]

impl PartialEq<Modifiers> for SysMods[src]

impl PartialEq<Modifiers> for RawMods[src]

impl PartialEq<RawMods> for Modifiers[src]

impl PartialEq<SysMods> for Modifiers[src]

impl StructuralEq for Modifiers[src]

impl StructuralPartialEq for Modifiers[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AnyEq for T where
    T: PartialEq<T> + Any
[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> Same<T> for T

type Output = T

Should always be Self

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.