pub enum ImageFit {
Contain,
Cover,
Stretch,
Center,
Original,
}Expand description
Como uma imagem ocupa o retângulo de destino.
Variants§
Contain
Inteira, mantendo a proporção (pode sobrar espaço).
Cover
Cobre tudo, mantendo a proporção (pode cortar as bordas).
Stretch
Estica para o retângulo (pode distorcer).
Center
Tamanho original, centralizada.
Original
Tamanho original, no canto superior esquerdo.
Implementations§
Trait Implementations§
impl Copy for ImageFit
impl Eq for ImageFit
Source§impl PropEnum for ImageFit
impl PropEnum for ImageFit
impl StructuralPartialEq for ImageFit
Auto Trait Implementations§
impl Forget for ImageFit
impl Freeze for ImageFit
impl Move 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