pub enum ScaleMode {
Fit,
IntegerFit,
Expand,
}Expand description
Policy for adapting a reference view to a resizable window.
Variants§
Fit
Preserve the reference aspect ratio and visible area, adding bars.
IntegerFit
Fit at whole-number scales for pixel art; fractionally shrink if necessary.
Expand
Fill the window while preserving reference height; width changes with aspect.
Trait Implementations§
impl Copy for ScaleMode
impl Eq for ScaleMode
impl StructuralPartialEq for ScaleMode
Auto Trait Implementations§
impl Freeze for ScaleMode
impl RefUnwindSafe for ScaleMode
impl Send for ScaleMode
impl Sync for ScaleMode
impl Unpin for ScaleMode
impl UnsafeUnpin for ScaleMode
impl UnwindSafe for ScaleMode
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