[−][src]Struct polyhorn_ui::styles::ImageStyle
Controls the appearance of an Image.
Fields
object_fit: ObjectFit
Controls the method for fitting images that do not match the dimensions of their container.
tint_color: Option<Color>
If present, controls the color that this image is rendered in. Only the alpha channel of the original image is kept: all other channels are replaced by the given tint color. If this tint color exists in a different color space than the original image, the resulting image is drawn using the color space of the tint color.
Trait Implementations
impl Clone for ImageStyle
[src]
fn clone(&self) -> ImageStyle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImageStyle
[src]
impl Debug for ImageStyle
[src]
impl Default for ImageStyle
[src]
fn default() -> ImageStyle
[src]
impl From<ImageStyle> for ImageViewStyle
[src]
fn from(style: ImageStyle) -> Self
[src]
impl PartialEq<ImageStyle> for ImageStyle
[src]
fn eq(&self, other: &ImageStyle) -> bool
[src]
fn ne(&self, other: &ImageStyle) -> bool
[src]
impl StructuralPartialEq for ImageStyle
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageStyle
impl Send for ImageStyle
impl Sync for ImageStyle
impl Unpin for ImageStyle
impl UnwindSafe for ImageStyle
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,