#[repr(u16)]pub enum ScreenRotation {
Normal = 0,
ClockWise = 90,
UpsideDown = 180,
CounterClockWise = 270,
}
Expand description
Possible orientations of the display. Note that this should only affect the visual representation of the screen; draw operations still act as if the screen rotation is 0. Only used by some Octo games.
Variants§
Normal = 0
Normal landscape screen display, used by 99.9999% of CHIP-8 games
ClockWise = 90
Portrait screen display, ie. a normal screen rotated 90 degrees clockwise
UpsideDown = 180
Upside down landscape screen display
CounterClockWise = 270
Portrait screen display, ie. a normal screen rotated 90 degrees counter-clockwise
Trait Implementations§
Source§impl Debug for ScreenRotation
impl Debug for ScreenRotation
Source§impl Default for ScreenRotation
impl Default for ScreenRotation
Source§impl<'de> Deserialize<'de> for ScreenRotation
impl<'de> Deserialize<'de> for ScreenRotation
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ScreenRotation
impl PartialEq for ScreenRotation
Source§impl Serialize for ScreenRotation
impl Serialize for ScreenRotation
impl StructuralPartialEq for ScreenRotation
Auto Trait Implementations§
impl Freeze for ScreenRotation
impl RefUnwindSafe for ScreenRotation
impl Send for ScreenRotation
impl Sync for ScreenRotation
impl Unpin for ScreenRotation
impl UnwindSafe for ScreenRotation
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