Enum core_graphics::event::CGEventType
source · #[repr(u32)]pub enum CGEventType {
Show 19 variants
Null = 0,
LeftMouseDown = 1,
LeftMouseUp = 2,
RightMouseDown = 3,
RightMouseUp = 4,
MouseMoved = 5,
LeftMouseDragged = 6,
RightMouseDragged = 7,
KeyDown = 10,
KeyUp = 11,
FlagsChanged = 12,
ScrollWheel = 22,
TabletPointer = 23,
TabletProximity = 24,
OtherMouseDown = 25,
OtherMouseUp = 26,
OtherMouseDragged = 27,
TapDisabledByTimeout = 4_294_967_294,
TapDisabledByUserInput = 4_294_967_295,
}
Expand description
Constants that specify the different types of input events.
Variants§
Null = 0
LeftMouseDown = 1
LeftMouseUp = 2
RightMouseDown = 3
RightMouseUp = 4
MouseMoved = 5
LeftMouseDragged = 6
RightMouseDragged = 7
KeyDown = 10
KeyUp = 11
FlagsChanged = 12
ScrollWheel = 22
TabletPointer = 23
TabletProximity = 24
OtherMouseDown = 25
OtherMouseUp = 26
OtherMouseDragged = 27
TapDisabledByTimeout = 4_294_967_294
TapDisabledByUserInput = 4_294_967_295
Trait Implementations§
source§impl Clone for CGEventType
impl Clone for CGEventType
source§fn clone(&self) -> CGEventType
fn clone(&self) -> CGEventType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CGEventType
impl Debug for CGEventType
impl Copy for CGEventType
Auto Trait Implementations§
impl Freeze for CGEventType
impl RefUnwindSafe for CGEventType
impl Send for CGEventType
impl Sync for CGEventType
impl Unpin for CGEventType
impl UnwindSafe for CGEventType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more