[−][src]Struct azul_webrender_api::AddBlobImage
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]
fn clone(&self) -> AddBlobImage
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for AddBlobImage
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AddBlobImage
[src]
Auto Trait Implementations
impl RefUnwindSafe for AddBlobImage
impl Send for AddBlobImage
impl Sync for AddBlobImage
impl Unpin for AddBlobImage
impl UnwindSafe for AddBlobImage
Blanket Implementations
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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>,