pub enum Rotation {
Deg0,
Deg90,
Deg180,
Deg270,
}Expand description
Scan-direction rotation applied between logical draw coordinates and the physical framebuffer.
Variants§
Deg0
No rotation: logical coordinates match physical coordinates.
Deg90
Logical drawing is rotated 90° clockwise into the framebuffer.
Used when the physical display scans in portrait but the application draws in landscape.
Deg180
Logical drawing is rotated 180° (upside-down).
Deg270
Logical drawing is rotated 270° clockwise (equivalently 90° counter-clockwise).
Implementations§
Trait Implementations§
impl Copy for Rotation
impl Eq for Rotation
impl StructuralPartialEq for Rotation
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnsafeUnpin for Rotation
impl UnwindSafe for Rotation
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