#[repr(C)]pub struct SDL_CommonEvent {
pub type_: Uint32,
pub reserved: Uint32,
pub timestamp: Uint64,
}Expand description
Fields shared by every event
Available Since: This struct is available since SDL 3.2.0.
Fields§
§type_: Uint32< Event type, shared with all events, Uint32 to cover user events which are not in the SDL_EventType enumeration
reserved: Uint32§timestamp: Uint64< In nanoseconds, populated using SDL_GetTicksNS()
Trait Implementations§
Source§impl Clone for SDL_CommonEvent
impl Clone for SDL_CommonEvent
Source§fn clone(&self) -> SDL_CommonEvent
fn clone(&self) -> SDL_CommonEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_CommonEvent
impl Debug for SDL_CommonEvent
Source§impl Default for SDL_CommonEvent
impl Default for SDL_CommonEvent
Source§fn default() -> SDL_CommonEvent
fn default() -> SDL_CommonEvent
Returns the “default value” for a type. Read more
Source§impl Hash for SDL_CommonEvent
impl Hash for SDL_CommonEvent
impl Copy for SDL_CommonEvent
Auto Trait Implementations§
impl Freeze for SDL_CommonEvent
impl RefUnwindSafe for SDL_CommonEvent
impl Send for SDL_CommonEvent
impl Sync for SDL_CommonEvent
impl Unpin for SDL_CommonEvent
impl UnsafeUnpin for SDL_CommonEvent
impl UnwindSafe for SDL_CommonEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more