Struct fermium::events::SDL_SysWMEvent
source · #[repr(C)]pub struct SDL_SysWMEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub msg: *mut SDL_SysWMmsg,
}
Expand description
A video driver dependent system event (event.syswm.*)
The SDL_SYSWMEVENT
event type is disabled by default, you can enable it
with SDL_EventState
.
Fields§
§type_: SDL_EventType
Should always be SDL_SYSWMEVENT
timestamp: u32
In milliseconds, populated using SDL_GetTicks
.
msg: *mut SDL_SysWMmsg
driver dependent data.
Trait Implementations§
source§impl Clone for SDL_SysWMEvent
impl Clone for SDL_SysWMEvent
source§fn clone(&self) -> SDL_SysWMEvent
fn clone(&self) -> SDL_SysWMEvent
Returns a copy 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_SysWMEvent
impl Debug for SDL_SysWMEvent
source§impl Default for SDL_SysWMEvent
impl Default for SDL_SysWMEvent
source§impl Hash for SDL_SysWMEvent
impl Hash for SDL_SysWMEvent
source§impl Ord for SDL_SysWMEvent
impl Ord for SDL_SysWMEvent
source§fn cmp(&self, other: &SDL_SysWMEvent) -> Ordering
fn cmp(&self, other: &SDL_SysWMEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SDL_SysWMEvent> for SDL_SysWMEvent
impl PartialEq<SDL_SysWMEvent> for SDL_SysWMEvent
source§fn eq(&self, other: &SDL_SysWMEvent) -> bool
fn eq(&self, other: &SDL_SysWMEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_SysWMEvent> for SDL_SysWMEvent
impl PartialOrd<SDL_SysWMEvent> for SDL_SysWMEvent
source§fn partial_cmp(&self, other: &SDL_SysWMEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_SysWMEvent) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SDL_SysWMEvent
impl Eq for SDL_SysWMEvent
impl StructuralEq for SDL_SysWMEvent
impl StructuralPartialEq for SDL_SysWMEvent
Auto Trait Implementations§
impl RefUnwindSafe for SDL_SysWMEvent
impl !Send for SDL_SysWMEvent
impl !Sync for SDL_SysWMEvent
impl Unpin for SDL_SysWMEvent
impl UnwindSafe for SDL_SysWMEvent
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