Enum ux::ImageScaleMode[][src]

pub enum ImageScaleMode {
    None,
    Fit,
    Crop,
}

ImageScaleMode: None: Do not apply any scaling and center the image within the allocation Fit: Scale the image, but maintain the aspect ratio so that it fits exactly within the allocation Crop: Scale and crop the image so that it covers the entire allocation while retaining the correct aspect ratio

Defines the scaling mode of an image.

Variants

None
Fit
Crop

Trait Implementations

impl Clone for ImageScaleMode[src]

impl Copy for ImageScaleMode[src]

impl Debug for ImageScaleMode[src]

impl Eq for ImageScaleMode[src]

impl PartialEq<ImageScaleMode> for ImageScaleMode[src]

impl StructuralEq for ImageScaleMode[src]

impl StructuralPartialEq for ImageScaleMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,