Enum sdl2_sys::SDL_DisplayEventID
source · #[repr(u32)]pub enum SDL_DisplayEventID {
SDL_DISPLAYEVENT_NONE = 0,
SDL_DISPLAYEVENT_ORIENTATION = 1,
SDL_DISPLAYEVENT_CONNECTED = 2,
SDL_DISPLAYEVENT_DISCONNECTED = 3,
}
Expand description
\brief Event subtype for display events
Variants§
SDL_DISPLAYEVENT_NONE = 0
< Never used
SDL_DISPLAYEVENT_ORIENTATION = 1
< Display orientation has changed to data1
SDL_DISPLAYEVENT_CONNECTED = 2
< Display has been added to the system
SDL_DISPLAYEVENT_DISCONNECTED = 3
< Display has been removed from the system
Trait Implementations§
source§impl Clone for SDL_DisplayEventID
impl Clone for SDL_DisplayEventID
source§fn clone(&self) -> SDL_DisplayEventID
fn clone(&self) -> SDL_DisplayEventID
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 Hash for SDL_DisplayEventID
impl Hash for SDL_DisplayEventID
source§impl PartialEq for SDL_DisplayEventID
impl PartialEq for SDL_DisplayEventID
source§fn eq(&self, other: &SDL_DisplayEventID) -> bool
fn eq(&self, other: &SDL_DisplayEventID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_DisplayEventID
impl Eq for SDL_DisplayEventID
impl StructuralPartialEq for SDL_DisplayEventID
Auto Trait Implementations§
impl Freeze for SDL_DisplayEventID
impl RefUnwindSafe for SDL_DisplayEventID
impl Send for SDL_DisplayEventID
impl Sync for SDL_DisplayEventID
impl Unpin for SDL_DisplayEventID
impl UnwindSafe for SDL_DisplayEventID
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