Enum sdl2_sys::SDL_DisplayOrientation
source · #[repr(u32)]pub enum SDL_DisplayOrientation {
SDL_ORIENTATION_UNKNOWN = 0,
SDL_ORIENTATION_LANDSCAPE = 1,
SDL_ORIENTATION_LANDSCAPE_FLIPPED = 2,
SDL_ORIENTATION_PORTRAIT = 3,
SDL_ORIENTATION_PORTRAIT_FLIPPED = 4,
}
Expand description
\brief Display orientation
Variants§
SDL_ORIENTATION_UNKNOWN = 0
< The display orientation can’t be determined
SDL_ORIENTATION_LANDSCAPE = 1
< The display is in landscape mode, with the right side up, relative to portrait mode
SDL_ORIENTATION_LANDSCAPE_FLIPPED = 2
< The display is in landscape mode, with the left side up, relative to portrait mode
SDL_ORIENTATION_PORTRAIT = 3
< The display is in portrait mode
SDL_ORIENTATION_PORTRAIT_FLIPPED = 4
< The display is in portrait mode, upside down
Trait Implementations§
source§impl Clone for SDL_DisplayOrientation
impl Clone for SDL_DisplayOrientation
source§fn clone(&self) -> SDL_DisplayOrientation
fn clone(&self) -> SDL_DisplayOrientation
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_DisplayOrientation
impl Hash for SDL_DisplayOrientation
source§impl PartialEq for SDL_DisplayOrientation
impl PartialEq for SDL_DisplayOrientation
source§fn eq(&self, other: &SDL_DisplayOrientation) -> bool
fn eq(&self, other: &SDL_DisplayOrientation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SDL_DisplayOrientation
impl Eq for SDL_DisplayOrientation
impl StructuralPartialEq for SDL_DisplayOrientation
Auto Trait Implementations§
impl Freeze for SDL_DisplayOrientation
impl RefUnwindSafe for SDL_DisplayOrientation
impl Send for SDL_DisplayOrientation
impl Sync for SDL_DisplayOrientation
impl Unpin for SDL_DisplayOrientation
impl UnwindSafe for SDL_DisplayOrientation
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