[][src]Struct fermium::events::SDL_UserEvent

#[repr(C)]pub struct SDL_UserEvent {
    pub type_: SDL_EventType,
    pub timestamp: u32,
    pub windowID: u32,
    pub code: i32,
    pub data1: *mut c_void,
    pub data2: *mut c_void,
}

A user-defined event type (event.user.*)

Fields

type_: SDL_EventType

Should be in the exclusive range SDL_USEREVENT .. SDL_LASTEVENT

timestamp: u32

In milliseconds, populated using [SDL_GetTicks].

windowID: u32

The associated window if any

code: i32

User defined event code

data1: *mut c_void

User defined data pointer

data2: *mut c_void

User defined data pointer

Trait Implementations

impl Clone for SDL_UserEvent[src]

impl Copy for SDL_UserEvent[src]

impl Debug for SDL_UserEvent[src]

impl Default for SDL_UserEvent[src]

impl Eq for SDL_UserEvent[src]

impl Hash for SDL_UserEvent[src]

impl Ord for SDL_UserEvent[src]

impl PartialEq<SDL_UserEvent> for SDL_UserEvent[src]

impl PartialOrd<SDL_UserEvent> for SDL_UserEvent[src]

impl StructuralEq for SDL_UserEvent[src]

impl StructuralPartialEq for SDL_UserEvent[src]

Auto Trait Implementations

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.