Struct fermium::events::SDL_DisplayEvent
source · #[repr(C)]pub struct SDL_DisplayEvent {
pub type_: SDL_EventType,
pub timestamp: u32,
pub display: u32,
pub event: SDL_DisplayEventID,
pub padding1: u8,
pub padding2: u8,
pub padding3: u8,
pub data1: i32,
}
Expand description
Display state change event data (event.display.*)
Fields§
§type_: SDL_EventType
Should always be SDL_DISPLAYEVENT
timestamp: u32
In milliseconds, populated using SDL_GetTicks
display: u32
The associated display index
event: SDL_DisplayEventID
§padding1: u8
§padding2: u8
§padding3: u8
§data1: i32
event dependent data
Trait Implementations§
source§impl Clone for SDL_DisplayEvent
impl Clone for SDL_DisplayEvent
source§fn clone(&self) -> SDL_DisplayEvent
fn clone(&self) -> SDL_DisplayEvent
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_DisplayEvent
impl Debug for SDL_DisplayEvent
source§impl Default for SDL_DisplayEvent
impl Default for SDL_DisplayEvent
source§fn default() -> SDL_DisplayEvent
fn default() -> SDL_DisplayEvent
Returns the “default value” for a type. Read more
source§impl Hash for SDL_DisplayEvent
impl Hash for SDL_DisplayEvent
source§impl Ord for SDL_DisplayEvent
impl Ord for SDL_DisplayEvent
source§fn cmp(&self, other: &SDL_DisplayEvent) -> Ordering
fn cmp(&self, other: &SDL_DisplayEvent) -> 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_DisplayEvent> for SDL_DisplayEvent
impl PartialEq<SDL_DisplayEvent> for SDL_DisplayEvent
source§fn eq(&self, other: &SDL_DisplayEvent) -> bool
fn eq(&self, other: &SDL_DisplayEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SDL_DisplayEvent> for SDL_DisplayEvent
impl PartialOrd<SDL_DisplayEvent> for SDL_DisplayEvent
source§fn partial_cmp(&self, other: &SDL_DisplayEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &SDL_DisplayEvent) -> 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_DisplayEvent
impl Eq for SDL_DisplayEvent
impl StructuralEq for SDL_DisplayEvent
impl StructuralPartialEq for SDL_DisplayEvent
Auto Trait Implementations§
impl RefUnwindSafe for SDL_DisplayEvent
impl Send for SDL_DisplayEvent
impl Sync for SDL_DisplayEvent
impl Unpin for SDL_DisplayEvent
impl UnwindSafe for SDL_DisplayEvent
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