#[repr(i32)]pub enum Orientation {
Unknown = 0,
Landscape = 1,
LandscapeFlipped = 2,
Portrait = 3,
PortraitFlipped = 4,
}
Expand description
Represents orientation of a display.
Variants§
Unknown = 0
The display orientation can’t be determined
Landscape = 1
The display is in landscape mode, with the right side up, relative to portrait mode
LandscapeFlipped = 2
The display is in landscape mode, with the left side up, relative to portrait mode
Portrait = 3
The display is in portrait mode
PortraitFlipped = 4
The display is in portrait mode, upside down
Implementations§
Source§impl Orientation
impl Orientation
pub fn from_ll(orientation: SDL_DisplayOrientation) -> Orientation
pub fn to_ll(self) -> SDL_DisplayOrientation
Trait Implementations§
Source§impl Clone for Orientation
impl Clone for Orientation
Source§fn clone(&self) -> Orientation
fn clone(&self) -> Orientation
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 Orientation
impl Debug for Orientation
Source§impl Hash for Orientation
impl Hash for Orientation
Source§impl PartialEq for Orientation
impl PartialEq for Orientation
impl Copy for Orientation
impl Eq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations§
impl Freeze for Orientation
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
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