Enum ux::native::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
Trait Implementations
impl Clone for ImageScaleMode
[src]
impl Clone for ImageScaleMode
[src]pub fn clone(&self) -> ImageScaleMode
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImageScaleMode
[src]
impl Copy for ImageScaleMode
[src]impl Debug for ImageScaleMode
[src]
impl Debug for ImageScaleMode
[src]impl Eq for ImageScaleMode
[src]
impl Eq for ImageScaleMode
[src]impl PartialEq<ImageScaleMode> for ImageScaleMode
[src]
impl PartialEq<ImageScaleMode> for ImageScaleMode
[src]impl StructuralEq for ImageScaleMode
[src]
impl StructuralEq for ImageScaleMode
[src]impl StructuralPartialEq for ImageScaleMode
[src]
impl StructuralPartialEq for ImageScaleMode
[src]Auto Trait Implementations
impl RefUnwindSafe for ImageScaleMode
impl RefUnwindSafe for ImageScaleMode
impl Send for ImageScaleMode
impl Send for ImageScaleMode
impl Sync for ImageScaleMode
impl Sync for ImageScaleMode
impl Unpin for ImageScaleMode
impl Unpin for ImageScaleMode
impl UnwindSafe for ImageScaleMode
impl UnwindSafe for ImageScaleMode
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,