pub enum FillStrat {
Contain,
Cover,
Fill,
FitHeight,
FitWidth,
None,
ScaleDown,
}
Expand description
Strategies for inscribing a rectangle inside another rectangle.
Variants§
Contain
As large as possible without changing aspect ratio of image and all of image shown
Cover
As large as possible with no dead space so that some of the image may be clipped
Fill
Fill the widget with no dead space, aspect ratio of widget is used
FitHeight
Fill the height with the images aspect ratio, some of the image may be clipped
FitWidth
Fill the width with the images aspect ratio, some of the image may be clipped
None
Do not scale
ScaleDown
Scale down to fit but do not scale up
Implementations§
Trait Implementations§
source§impl PartialEq for FillStrat
impl PartialEq for FillStrat
impl Copy for FillStrat
impl StructuralPartialEq for FillStrat
Auto Trait Implementations§
impl Freeze for FillStrat
impl RefUnwindSafe for FillStrat
impl Send for FillStrat
impl Sync for FillStrat
impl Unpin for FillStrat
impl UnwindSafe for FillStrat
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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