#[repr(u32)]pub enum EventType {
Show 51 variants
First = 0,
Quit = 256,
AppTerminating = 257,
AppLowMemory = 258,
AppWillEnterBackground = 259,
AppDidEnterBackground = 260,
AppWillEnterForeground = 261,
AppDidEnterForeground = 262,
Display = 336,
Window = 512,
KeyDown = 768,
KeyUp = 769,
TextEditing = 770,
TextInput = 771,
MouseMotion = 1_024,
MouseButtonDown = 1_025,
MouseButtonUp = 1_026,
MouseWheel = 1_027,
JoyAxisMotion = 1_536,
JoyBallMotion = 1_537,
JoyHatMotion = 1_538,
JoyButtonDown = 1_539,
JoyButtonUp = 1_540,
JoyDeviceAdded = 1_541,
JoyDeviceRemoved = 1_542,
ControllerAxisMotion = 1_616,
ControllerButtonDown = 1_617,
ControllerButtonUp = 1_618,
ControllerDeviceAdded = 1_619,
ControllerDeviceRemoved = 1_620,
ControllerDeviceRemapped = 1_621,
ControllerTouchpadDown = 1_622,
ControllerTouchpadMotion = 1_623,
ControllerTouchpadUp = 1_624,
FingerDown = 1_792,
FingerUp = 1_793,
FingerMotion = 1_794,
DollarGesture = 2_048,
DollarRecord = 2_049,
MultiGesture = 2_050,
ClipboardUpdate = 2_304,
DropFile = 4_096,
DropText = 4_097,
DropBegin = 4_098,
DropComplete = 4_099,
AudioDeviceAdded = 4_352,
AudioDeviceRemoved = 4_353,
RenderTargetsReset = 8_192,
RenderDeviceReset = 8_193,
User = 32_768,
Last = 65_535,
}
Expand description
Types of events that can be delivered.
Variants§
First = 0
Quit = 256
AppTerminating = 257
AppLowMemory = 258
AppWillEnterBackground = 259
AppDidEnterBackground = 260
AppWillEnterForeground = 261
AppDidEnterForeground = 262
Display = 336
Window = 512
KeyDown = 768
KeyUp = 769
TextEditing = 770
TextInput = 771
MouseMotion = 1_024
MouseButtonDown = 1_025
MouseButtonUp = 1_026
MouseWheel = 1_027
JoyAxisMotion = 1_536
JoyBallMotion = 1_537
JoyHatMotion = 1_538
JoyButtonDown = 1_539
JoyButtonUp = 1_540
JoyDeviceAdded = 1_541
JoyDeviceRemoved = 1_542
ControllerAxisMotion = 1_616
ControllerButtonDown = 1_617
ControllerButtonUp = 1_618
ControllerDeviceAdded = 1_619
ControllerDeviceRemoved = 1_620
ControllerDeviceRemapped = 1_621
ControllerTouchpadDown = 1_622
ControllerTouchpadMotion = 1_623
ControllerTouchpadUp = 1_624
FingerDown = 1_792
FingerUp = 1_793
FingerMotion = 1_794
DollarGesture = 2_048
DollarRecord = 2_049
MultiGesture = 2_050
ClipboardUpdate = 2_304
DropFile = 4_096
DropText = 4_097
DropBegin = 4_098
DropComplete = 4_099
AudioDeviceAdded = 4_352
AudioDeviceRemoved = 4_353
RenderTargetsReset = 8_192
RenderDeviceReset = 8_193
User = 32_768
Last = 65_535
Trait Implementations§
source§impl PartialEq for EventType
impl PartialEq for EventType
impl Copy for EventType
impl Eq for EventType
impl StructuralEq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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