[−][src]Union sdl2_sys::SDL_Event
\brief General event structure
Fields
type_: Uint32
< Event type, shared with all events
common: SDL_CommonEvent
< Common event data
display: SDL_DisplayEvent
< Window event data
window: SDL_WindowEvent
< Window event data
key: SDL_KeyboardEvent
< Keyboard event data
edit: SDL_TextEditingEvent
< Text editing event data
text: SDL_TextInputEvent
< Text input event data
motion: SDL_MouseMotionEvent
< Mouse motion event data
< Mouse button event data
wheel: SDL_MouseWheelEvent
< Mouse wheel event data
jaxis: SDL_JoyAxisEvent
< Joystick axis event data
jball: SDL_JoyBallEvent
< Joystick ball event data
jhat: SDL_JoyHatEvent
< Joystick hat event data
< Joystick button event data
jdevice: SDL_JoyDeviceEvent
< Joystick device change event data
caxis: SDL_ControllerAxisEvent
< Game Controller axis event data
< Game Controller button event data
cdevice: SDL_ControllerDeviceEvent
< Game Controller device event data
adevice: SDL_AudioDeviceEvent
< Audio device event data
sensor: SDL_SensorEvent
< Sensor event data
quit: SDL_QuitEvent
< Quit request event data
user: SDL_UserEvent
< Custom event data
syswm: SDL_SysWMEvent
< System dependent window event data
tfinger: SDL_TouchFingerEvent
< Touch finger event data
mgesture: SDL_MultiGestureEvent
< Gesture event data
dgesture: SDL_DollarGestureEvent
< Gesture event data
drop: SDL_DropEvent
< Drag and drop event data
padding: [Uint8; 56]
Trait Implementations
impl Clone for SDL_Event
[src]
fn clone(&self) -> SDL_Event
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SDL_Event
[src]
Auto Trait Implementations
Blanket Implementations
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> From for 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, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,