[][src]Union fermium::SDL_Event

#[repr(C)]pub union SDL_Event {
    pub type_: Uint32,
    pub common: SDL_CommonEvent,
    pub display: SDL_DisplayEvent,
    pub window: SDL_WindowEvent,
    pub key: SDL_KeyboardEvent,
    pub edit: SDL_TextEditingEvent,
    pub text: SDL_TextInputEvent,
    pub motion: SDL_MouseMotionEvent,
    pub button: SDL_MouseButtonEvent,
    pub wheel: SDL_MouseWheelEvent,
    pub jaxis: SDL_JoyAxisEvent,
    pub jball: SDL_JoyBallEvent,
    pub jhat: SDL_JoyHatEvent,
    pub jbutton: SDL_JoyButtonEvent,
    pub jdevice: SDL_JoyDeviceEvent,
    pub caxis: SDL_ControllerAxisEvent,
    pub cbutton: SDL_ControllerButtonEvent,
    pub cdevice: SDL_ControllerDeviceEvent,
    pub adevice: SDL_AudioDeviceEvent,
    pub sensor: SDL_SensorEvent,
    pub quit: SDL_QuitEvent,
    pub user: SDL_UserEvent,
    pub syswm: SDL_SysWMEvent,
    pub tfinger: SDL_TouchFingerEvent,
    pub mgesture: SDL_MultiGestureEvent,
    pub dgesture: SDL_DollarGestureEvent,
    pub drop: SDL_DropEvent,
    pub padding: [Uint8; 56],
    // some fields omitted
}

Fields

type_: Uint32common: SDL_CommonEventdisplay: SDL_DisplayEventwindow: SDL_WindowEventkey: SDL_KeyboardEventedit: SDL_TextEditingEventtext: SDL_TextInputEventmotion: SDL_MouseMotionEventbutton: SDL_MouseButtonEventwheel: SDL_MouseWheelEventjaxis: SDL_JoyAxisEventjball: SDL_JoyBallEventjhat: SDL_JoyHatEventjbutton: SDL_JoyButtonEventjdevice: SDL_JoyDeviceEventcaxis: SDL_ControllerAxisEventcbutton: SDL_ControllerButtonEventcdevice: SDL_ControllerDeviceEventadevice: SDL_AudioDeviceEventsensor: SDL_SensorEventquit: SDL_QuitEventuser: SDL_UserEventsyswm: SDL_SysWMEventtfinger: SDL_TouchFingerEventmgesture: SDL_MultiGestureEventdgesture: SDL_DollarGestureEventdrop: SDL_DropEventpadding: [Uint8; 56]

Trait Implementations

impl Clone for SDL_Event[src]

impl Copy for SDL_Event[src]

impl Debug for SDL_Event[src]

impl Default for SDL_Event[src]

Auto Trait Implementations

impl !Send for SDL_Event

impl !Sync for SDL_Event

impl Unpin for SDL_Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.