#[repr(C)]pub struct SDL_DisplayEvent {
pub type: SDL_EventType,
pub reserved: Uint32,
pub timestamp: Uint64,
pub displayID: SDL_DisplayID,
pub data1: Sint32,
pub data2: Sint32,
}Expand description
Display state change event data (event.display.*)
§Availability
This struct is available since SDL 3.2.0.
Fields§
§type: SDL_EventTypeSDL_EVENT_DISPLAY_*
reserved: Uint32§timestamp: Uint64In nanoseconds, populated using SDL_GetTicksNS()
displayID: SDL_DisplayIDThe associated display
data1: Sint32event dependent data
data2: Sint32event 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 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_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 PartialEq for SDL_DisplayEvent
impl PartialEq for SDL_DisplayEvent
impl Copy for SDL_DisplayEvent
impl Eq for SDL_DisplayEvent
impl StructuralPartialEq for SDL_DisplayEvent
Auto Trait Implementations§
impl Freeze for SDL_DisplayEvent
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