[−][src]Enum sdl2_sys::SDL_EventType
\brief The types of events that can be delivered.
Variants
< Unused (do not remove)
< User-requested quit
< The application is being terminated by the OS Called on iOS in applicationWillTerminate() Called on Android in onDestroy()
< The application is low on memory, free memory if possible. Called on iOS in applicationDidReceiveMemoryWarning() Called on Android in onLowMemory()
< The application is about to enter the background Called on iOS in applicationWillResignActive() Called on Android in onPause()
< The application did enter the background and may not get CPU for some time Called on iOS in applicationDidEnterBackground() Called on Android in onPause()
< The application is about to enter the foreground Called on iOS in applicationWillEnterForeground() Called on Android in onResume()
< The application is now interactive Called on iOS in applicationDidBecomeActive() Called on Android in onResume()
< Display state change
< Window state change
< System specific event
< Key pressed
< Key released
< Keyboard text editing (composition)
< Keyboard text input
< Keymap changed due to a system event such as an input language or keyboard layout change.
< Mouse moved
< Mouse button pressed
< Mouse button released
< Mouse wheel motion
< Joystick axis motion
< Joystick trackball motion
< Joystick hat position change
< Joystick button pressed
< Joystick button released
< A new joystick has been inserted into the system
< An opened joystick has been removed
< Game controller axis motion
< Game controller button pressed
< Game controller button released
< A new Game controller has been inserted into the system
< An opened Game controller has been removed
< The controller mapping was updated
< The clipboard changed
< The system requests a file open
< text/plain drag-and-drop event
< A new set of drops is beginning (NULL filename)
< Current set of drops is now complete (NULL filename)
< A new audio device is available
< An audio device has been removed.
< A sensor was updated
< The render targets have been reset and their contents need to be updated
< The device has been reset and all textures need to be recreated
Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use, and should be allocated with SDL_RegisterEvents()
This last event is only for bounding internal arrays
Trait Implementations
impl Clone for SDL_EventType
[src]
fn clone(&self) -> SDL_EventType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SDL_EventType
[src]
impl Debug for SDL_EventType
[src]
impl Eq for SDL_EventType
[src]
impl Hash for SDL_EventType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<SDL_EventType> for SDL_EventType
[src]
fn eq(&self, other: &SDL_EventType) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for SDL_EventType
[src]
impl StructuralPartialEq for SDL_EventType
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,