Struct fermium::events::SDL_UserEvent [−][src]
#[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,
}
Expand description
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more