[][src]Struct azul_webrender_api::ImageDisplayItem

pub struct ImageDisplayItem {
    pub common: CommonItemProperties,
    pub bounds: LayoutRect,
    pub image_key: ImageKey,
    pub image_rendering: ImageRendering,
    pub alpha_type: AlphaType,
    pub color: ColorF,
}

This describes an image that fills the specified area. It stretches or shrinks the image as necessary. While RepeatingImageDisplayItem could otherwise provide a superset of the functionality, it has been problematic inferring the desired repetition properties when snapping changes the size of the primitive.

Fields

common: CommonItemPropertiesbounds: LayoutRect

The area to tile the image over (first tile starts at origin of this rect)

image_key: ImageKeyimage_rendering: ImageRenderingalpha_type: AlphaTypecolor: ColorF

A hack used by gecko to color a simple bitmap font used for tofu glyphs

Trait Implementations

impl Clone for ImageDisplayItem[src]

impl Copy for ImageDisplayItem[src]

impl Debug for ImageDisplayItem[src]

impl Default for ImageDisplayItem[src]

impl<'de> Deserialize<'de> for ImageDisplayItem[src]

impl PartialEq<ImageDisplayItem> for ImageDisplayItem[src]

impl Peek for ImageDisplayItem[src]

impl Poke for ImageDisplayItem[src]

impl Serialize for ImageDisplayItem[src]

impl StructuralPartialEq for ImageDisplayItem[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.