pub enum ScalingMode {
PixelPerfect,
Fill,
}Expand description
The scaling mode controls the scaling behavior of renderers::ScalingRenderer.
Variants§
PixelPerfect
The buffer is scaled up, if needed, to the nearest integer multiple of the buffer size.
Fill
Fill the screen while preserving aspect ratio. The renderer effectively scales the buffer to the nearest integer multiple first, then linearly interpolates to fit.
Trait Implementations§
Source§impl Clone for ScalingMode
impl Clone for ScalingMode
Source§fn clone(&self) -> ScalingMode
fn clone(&self) -> ScalingMode
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 ScalingMode
impl Debug for ScalingMode
impl Copy for ScalingMode
Auto Trait Implementations§
impl Freeze for ScalingMode
impl RefUnwindSafe for ScalingMode
impl Send for ScalingMode
impl Sync for ScalingMode
impl Unpin for ScalingMode
impl UnsafeUnpin for ScalingMode
impl UnwindSafe for ScalingMode
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