pub enum Scale {
None,
Scale,
NoneHiRes,
ScaleHiRes,
Stretch,
}Expand description
Indicates how to scale a Visual during rendering.
Variants§
None
Maintains the original size. Will Apply no scaling.
This is the default.
Scale
Maintains the aspect ratio.
Scales a Visual to the Plane’s size without stretching.
NoneHiRes
Like None, maintains the original size, while admitting
high-resolution blitters that don’t preserve the aspect ratio.
ScaleHiRes
Like Scale, maintains the aspect ratio, while admitting
high-resolution blitters that don’t preserve the aspect ratio.
Stretch
Throws away aspect ratio.
Stretches and scales the Visual in an attempt to fill the entirety
of the Plane.
Trait Implementations§
Source§impl From<Scale> for NcScale_u32
impl From<Scale> for NcScale_u32
Source§fn from(scale: Scale) -> NcScale_u32
fn from(scale: Scale) -> NcScale_u32
Converts to this type from the input type.
Source§impl From<u32> for Scale
impl From<u32> for Scale
Source§fn from(ncu: NcScale_u32) -> Scale
fn from(ncu: NcScale_u32) -> Scale
Converts to this type from the input type.
impl Copy for Scale
impl Eq for Scale
impl StructuralPartialEq for Scale
Auto Trait Implementations§
impl Freeze for Scale
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnwindSafe for Scale
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