Enum octopt::ScreenRotation
source · [−]#[repr(u16)]
pub enum ScreenRotation {
Normal,
ClockWise,
UpsideDown,
CounterClockWise,
}
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
Normal landscape screen display, used by 99.9999% of CHIP-8 games
ClockWise
Portrait screen display, ie. a normal screen rotated 90 degrees clockwise
UpsideDown
Upside down landscape screen display
CounterClockWise
Portrait screen display, ie. a normal screen rotated 90 degrees counter-clockwise
Trait Implementations
sourceimpl Debug for ScreenRotation
impl Debug for ScreenRotation
sourceimpl Default for ScreenRotation
impl Default for ScreenRotation
sourceimpl<'de> Deserialize<'de> for ScreenRotation
impl<'de> Deserialize<'de> for ScreenRotation
sourcefn 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
sourceimpl PartialEq<ScreenRotation> for ScreenRotation
impl PartialEq<ScreenRotation> for ScreenRotation
sourceimpl Serialize for ScreenRotation
impl Serialize for ScreenRotation
impl StructuralPartialEq for ScreenRotation
Auto Trait Implementations
impl RefUnwindSafe for ScreenRotation
impl Send for ScreenRotation
impl Sync for ScreenRotation
impl Unpin for ScreenRotation
impl UnwindSafe for ScreenRotation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more