[−][src]Enum sdl2::event::Event
Different event types.
Variants
Quit
Fields of Quit
timestamp: u32
AppTerminating
Fields of AppTerminating
timestamp: u32
AppLowMemory
Fields of AppLowMemory
timestamp: u32
AppWillEnterBackground
Fields of AppWillEnterBackground
timestamp: u32
AppDidEnterBackground
Fields of AppDidEnterBackground
timestamp: u32
AppWillEnterForeground
Fields of AppWillEnterForeground
timestamp: u32
AppDidEnterForeground
Fields of AppDidEnterForeground
timestamp: u32
Window
Fields of Window
KeyDown
Fields of KeyDown
KeyUp
Fields of KeyUp
TextEditing
Fields of TextEditing
TextInput
Fields of TextInput
MouseMotion
Fields of MouseMotion
MouseButtonDown
Fields of MouseButtonDown
MouseButtonUp
Fields of MouseButtonUp
MouseWheel
Fields of MouseWheel
JoyAxisMotion
Fields of JoyAxisMotion
JoyBallMotion
Fields of JoyBallMotion
JoyHatMotion
Fields of JoyHatMotion
JoyButtonDown
Fields of JoyButtonDown
JoyButtonUp
Fields of JoyButtonUp
JoyDeviceAdded
Fields of JoyDeviceAdded
JoyDeviceRemoved
Fields of JoyDeviceRemoved
ControllerAxisMotion
Fields of ControllerAxisMotion
ControllerButtonDown
Fields of ControllerButtonDown
ControllerButtonUp
Fields of ControllerButtonUp
ControllerDeviceAdded
Fields of ControllerDeviceAdded
ControllerDeviceRemoved
Fields of ControllerDeviceRemoved
ControllerDeviceRemapped
Fields of ControllerDeviceRemapped
FingerDown
Fields of FingerDown
FingerUp
Fields of FingerUp
FingerMotion
Fields of FingerMotion
DollarGesture
Fields of DollarGesture
DollarRecord
Fields of DollarRecord
MultiGesture
Fields of MultiGesture
ClipboardUpdate
Fields of ClipboardUpdate
timestamp: u32
DropFile
Fields of DropFile
User
Fields of User
Unknown
Fields 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,