Enum cacao::events::EventModifierFlag
source · [−]pub enum EventModifierFlag {
CapsLock,
Control,
Option,
Command,
DeviceIndependentFlagsMask,
}
Expand description
Flags that indicate a key is in the mix for an event.
Variants
CapsLock
CapsLock (or shift… oddly named…) is held.
Control
Control is held.
Option
Option is held.
Command
Command (CMD) is held.
DeviceIndependentFlagsMask
Device independent flags mask.
Trait Implementations
sourceimpl Clone for EventModifierFlag
impl Clone for EventModifierFlag
sourcefn clone(&self) -> EventModifierFlag
fn clone(&self) -> EventModifierFlag
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventModifierFlag
impl Debug for EventModifierFlag
sourceimpl From<&EventModifierFlag> for NSUInteger
impl From<&EventModifierFlag> for NSUInteger
sourcefn from(flag: &EventModifierFlag) -> NSUInteger
fn from(flag: &EventModifierFlag) -> NSUInteger
Converts to this type from the input type.
sourceimpl From<EventModifierFlag> for NSUInteger
impl From<EventModifierFlag> for NSUInteger
sourcefn from(flag: EventModifierFlag) -> NSUInteger
fn from(flag: EventModifierFlag) -> NSUInteger
Converts to this type from the input type.
impl Copy for EventModifierFlag
Auto Trait Implementations
impl RefUnwindSafe for EventModifierFlag
impl Send for EventModifierFlag
impl Sync for EventModifierFlag
impl Unpin for EventModifierFlag
impl UnwindSafe for EventModifierFlag
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more