pub enum ImageFit {
Contain,
Stretch,
}Expand description
How an Image fills a frame the layout makes a different size from
it. Only the fits every platform’s image view has; without one, each
fits as it does by default.
Variants§
Contain
As large as fits, keeping its proportions (NSImageView
proportionally up or down, GTK Contain, Qt PreserveAspectFit,
XAML Uniform).
Stretch
The whole frame, proportions or not (axes independently, Fill,
Stretch, Fill).
Trait Implementations§
impl Copy for ImageFit
impl Eq for ImageFit
impl StructuralPartialEq for ImageFit
Auto Trait Implementations§
impl Forget for ImageFit
impl Freeze for ImageFit
impl RefUnwindSafe for ImageFit
impl Send for ImageFit
impl Sync for ImageFit
impl Unpin for ImageFit
impl UnsafeUnpin for ImageFit
impl UnwindSafe for ImageFit
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