[−][src]Struct druid::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.
pub fn bitand(self, rhs: Modifiers) -> Modifiers
[src]
impl BitAndAssign<Modifiers> for Modifiers
[src]
pub fn bitand_assign(&mut self, rhs: Modifiers)
[src]
impl BitOr<Modifiers> for Modifiers
[src]
type Output = Modifiers
The resulting type after applying the |
operator.
pub fn bitor(self, rhs: Modifiers) -> Modifiers
[src]
impl BitOrAssign<Modifiers> for Modifiers
[src]
pub fn bitor_assign(&mut self, rhs: Modifiers)
[src]
impl BitXor<Modifiers> for Modifiers
[src]
type Output = Modifiers
The resulting type after applying the ^
operator.
pub fn bitxor(self, rhs: Modifiers) -> Modifiers
[src]
impl BitXorAssign<Modifiers> for Modifiers
[src]
pub fn bitxor_assign(&mut self, rhs: 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]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Not for Modifiers
[src]
type Output = Modifiers
The resulting type after applying the !
operator.
pub fn not(self) -> Modifiers
[src]
impl PartialEq<Modifiers> for Modifiers
[src]
impl PartialEq<Modifiers> for RawMods
[src]
pub fn eq(&self, other: &Modifiers) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Modifiers> for SysMods
[src]
pub fn eq(&self, other: &Modifiers) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<RawMods> for Modifiers
[src]
pub fn eq(&self, other: &RawMods) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<SysMods> for Modifiers
[src]
pub fn eq(&self, other: &SysMods) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for Modifiers
[src]
impl StructuralPartialEq for Modifiers
[src]
Auto Trait Implementations
impl RefUnwindSafe for Modifiers
[src]
impl Send for Modifiers
[src]
impl Sync for Modifiers
[src]
impl Unpin for Modifiers
[src]
impl UnwindSafe for Modifiers
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: PartialEq<T> + Any,
[src]
T: PartialEq<T> + Any,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,