Enum sdl2_sys::SDL_DisplayOrientation
source · [−]#[repr(u32)]
pub enum SDL_DisplayOrientation {
SDL_ORIENTATION_UNKNOWN,
SDL_ORIENTATION_LANDSCAPE,
SDL_ORIENTATION_LANDSCAPE_FLIPPED,
SDL_ORIENTATION_PORTRAIT,
SDL_ORIENTATION_PORTRAIT_FLIPPED,
}
Variants
SDL_ORIENTATION_UNKNOWN
< The display orientation can’t be determined
SDL_ORIENTATION_LANDSCAPE
< The display is in landscape mode, with the right side up, relative to portrait mode
SDL_ORIENTATION_LANDSCAPE_FLIPPED
< The display is in landscape mode, with the left side up, relative to portrait mode
SDL_ORIENTATION_PORTRAIT
< The display is in portrait mode
SDL_ORIENTATION_PORTRAIT_FLIPPED
< The display is in portrait mode, upside down
Trait Implementations
sourceimpl Clone for SDL_DisplayOrientation
impl Clone for SDL_DisplayOrientation
sourcefn clone(&self) -> SDL_DisplayOrientation
fn clone(&self) -> SDL_DisplayOrientation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SDL_DisplayOrientation
impl Debug for SDL_DisplayOrientation
sourceimpl Hash for SDL_DisplayOrientation
impl Hash for SDL_DisplayOrientation
impl Copy for SDL_DisplayOrientation
impl Eq for SDL_DisplayOrientation
impl StructuralEq for SDL_DisplayOrientation
impl StructuralPartialEq for SDL_DisplayOrientation
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more