#[repr(u8)]pub enum Stretch {
None = 0,
Fill = 1,
Uniform = 2,
UniformToFill = 3,
}Expand description
How an image fills the box it’s given — WPF’s Stretch.
Variants§
None = 0
Natural size, centered; cut to the box when larger.
Fill = 1
The whole box (aspect ratio not kept).
Uniform = 2
As large as fits, aspect ratio kept, centered.
UniformToFill = 3
Covers the box, aspect ratio kept, centered; the overflow is cut.
Implementations§
Trait Implementations§
impl Copy for Stretch
impl Eq for Stretch
impl StructuralPartialEq for Stretch
Auto Trait Implementations§
impl Freeze for Stretch
impl RefUnwindSafe for Stretch
impl Send for Stretch
impl Sync for Stretch
impl Unpin for Stretch
impl UnsafeUnpin for Stretch
impl UnwindSafe for Stretch
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