[−][src]Enum sdl2::event::Event
Different event types.
Variants
QuitFields of Quit
timestamp: u32AppTerminatingFields of AppTerminating
timestamp: u32AppLowMemoryFields of AppLowMemory
timestamp: u32AppWillEnterBackgroundFields of AppWillEnterBackground
timestamp: u32AppDidEnterBackgroundFields of AppDidEnterBackground
timestamp: u32AppWillEnterForegroundFields of AppWillEnterForeground
timestamp: u32AppDidEnterForegroundFields of AppDidEnterForeground
timestamp: u32WindowFields of Window
KeyDownFields of KeyDown
KeyUpFields of KeyUp
TextEditingFields of TextEditing
TextInputFields of TextInput
MouseMotionFields of MouseMotion
MouseButtonDownFields of MouseButtonDown
MouseButtonUpFields of MouseButtonUp
MouseWheelFields of MouseWheel
JoyAxisMotionFields of JoyAxisMotion
JoyBallMotionFields of JoyBallMotion
JoyHatMotionFields of JoyHatMotion
JoyButtonDownFields of JoyButtonDown
JoyButtonUpFields of JoyButtonUp
JoyDeviceAddedFields of JoyDeviceAdded
JoyDeviceRemovedFields of JoyDeviceRemoved
ControllerAxisMotionFields of ControllerAxisMotion
ControllerButtonDownFields of ControllerButtonDown
ControllerButtonUpFields of ControllerButtonUp
ControllerDeviceAddedFields of ControllerDeviceAdded
ControllerDeviceRemovedFields of ControllerDeviceRemoved
ControllerDeviceRemappedFields of ControllerDeviceRemapped
FingerDownFields of FingerDown
FingerUpFields of FingerUp
FingerMotionFields of FingerMotion
DollarGestureFields of DollarGesture
DollarRecordFields of DollarRecord
MultiGestureFields of MultiGesture
ClipboardUpdateFields of ClipboardUpdate
timestamp: u32DropFileFields of DropFile
UserFields of User
UnknownFields of Unknown
Methods
impl Event[src]
pub fn unwrap_keymod(keymod_option: Option<Mod>) -> Mod[src]
pub fn is_user_event(&self) -> bool[src]
pub fn as_user_event_type<T: Any>(&self) -> Option<T>[src]
Trait Implementations
impl Clone for Event[src]
fn clone(&self) -> Event[src]
default fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Send for Event[src]
This does not auto-derive because User's data fields can be used to
store pointers to types that are !Send. Dereferencing these as pointers
requires using unsafe and ensuring your own safety guarantees.
impl PartialEq<Event> for Event[src]
impl Sync for Event[src]
This does not auto-derive because User's data fields can be used to
store pointers to types that are !Sync. Dereferencing these as pointers
requires using unsafe and ensuring your own safety guarantees.
impl Debug for Event[src]
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,