pub enum FitStyle {
Stretch,
Min,
Max,
Horizontal,
Vertical,
}Expand description
The strategy to use when fitting (stretching, overflow, etc.)
Variants§
Stretch
Stretch vertically and horizontally to fit the destination rectangle exactly.
Min
Uniformly scale without overflow.
Max
Uniformly scale with overflow.
Horizontal
Uniformly scale to fit horizontally.
Vertical
Uniformly scale to fit vertically.
Trait Implementations§
impl Copy for FitStyle
impl Eq for FitStyle
impl StructuralPartialEq for FitStyle
Auto Trait Implementations§
impl Freeze for FitStyle
impl RefUnwindSafe for FitStyle
impl Send for FitStyle
impl Sync for FitStyle
impl Unpin for FitStyle
impl UnwindSafe for FitStyle
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