#[repr(transparent)]pub struct SDL_DisplayOrientation(pub c_uint);Expand description
Display orientation values; the way a display is rotated.
Available Since: This enum is available since SDL 3.2.0.
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_DisplayOrientation
impl SDL_DisplayOrientation
Sourcepub const SDL_ORIENTATION_UNKNOWN: SDL_DisplayOrientation
pub const SDL_ORIENTATION_UNKNOWN: SDL_DisplayOrientation
< The display orientation can’t be determined
Sourcepub const SDL_ORIENTATION_LANDSCAPE: SDL_DisplayOrientation
pub const SDL_ORIENTATION_LANDSCAPE: SDL_DisplayOrientation
< The display is in landscape mode, with the right side up, relative to portrait mode
Sourcepub const SDL_ORIENTATION_LANDSCAPE_FLIPPED: SDL_DisplayOrientation
pub const SDL_ORIENTATION_LANDSCAPE_FLIPPED: SDL_DisplayOrientation
< The display is in landscape mode, with the left side up, relative to portrait mode
Sourcepub const SDL_ORIENTATION_PORTRAIT: SDL_DisplayOrientation
pub const SDL_ORIENTATION_PORTRAIT: SDL_DisplayOrientation
< The display is in portrait mode
Sourcepub const SDL_ORIENTATION_PORTRAIT_FLIPPED: SDL_DisplayOrientation
pub const SDL_ORIENTATION_PORTRAIT_FLIPPED: SDL_DisplayOrientation
< 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 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_DisplayOrientation
impl Debug for SDL_DisplayOrientation
Source§impl Hash for SDL_DisplayOrientation
impl Hash for SDL_DisplayOrientation
Source§impl PartialEq for SDL_DisplayOrientation
impl PartialEq for SDL_DisplayOrientation
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 UnsafeUnpin 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