[][src]Struct fermium::events::SDL_DisplayEvent

#[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,
}

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_DisplayEventIDpadding1: u8padding2: u8padding3: u8data1: i32

event dependent data

Trait Implementations

impl Clone for SDL_DisplayEvent[src]

impl Copy for SDL_DisplayEvent[src]

impl Debug for SDL_DisplayEvent[src]

impl Default for SDL_DisplayEvent[src]

impl Eq for SDL_DisplayEvent[src]

impl Hash for SDL_DisplayEvent[src]

impl Ord for SDL_DisplayEvent[src]

impl PartialEq<SDL_DisplayEvent> for SDL_DisplayEvent[src]

impl PartialOrd<SDL_DisplayEvent> for SDL_DisplayEvent[src]

impl StructuralEq for SDL_DisplayEvent[src]

impl StructuralPartialEq for SDL_DisplayEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.