[][src]Struct azul_webrender_api::AddBlobImage

pub struct AddBlobImage {
    pub key: BlobImageKey,
    pub descriptor: ImageDescriptor,
    pub data: Arc<BlobImageData>,
    pub visible_rect: DeviceIntRect,
    pub tile_size: TileSize,
}

Creates a blob-image resource with provided parameters.

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

Fields

key: BlobImageKey

A key to identify the blob-image resource.

descriptor: ImageDescriptor

Properties of the image.

data: Arc<BlobImageData>

The blob-image's serialized commands.

visible_rect: DeviceIntRect

The portion of the plane in the blob-image's internal coordinate system that is stretched to fill the image display item.

Unlike regular images, blob images are not limited in size. The top-left corner of their internal coordinate system is also not necessary at (0, 0). This means that blob images can be updated to insert/remove content in any direction to support panning and zooming.

tile_size: TileSize

The blob image's tile size to apply when rasterizing the blob-image and when storing its rasterized data on the GPU. Applies to both width and heights of the tiles.

All blob images are tiled.

Trait Implementations

impl Clone for AddBlobImage[src]

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

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