[][src]Struct azul_webrender_api::AddImage

pub struct AddImage {
    pub key: ImageKey,
    pub descriptor: ImageDescriptor,
    pub data: ImageData,
    pub tiling: Option<TileSize>,
}

Creates an image resource with provided parameters.

Must be matched with a DeleteImage at some point to prevent memory leaks.

Fields

key: ImageKey

A key to identify the image resource.

descriptor: ImageDescriptor

Properties of the image.

data: ImageData

The pixels of the image.

tiling: Option<TileSize>

An optional tiling scheme to apply when storing the image's data on the GPU. Applies to both width and heights of the tiles.

Note that WebRender may internally chose to tile large images even if this member is set to None.

Trait Implementations

impl Clone for AddImage[src]

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

impl Serialize for AddImage[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.