pub struct AddBlobImage {
    pub key: BlobImageKey,
    pub descriptor: ImageDescriptor,
    pub data: Arc<BlobImageData>,
    pub visible_rect: DeviceIntRect,
    pub tile_size: TileSize,
}Expand description
Creates a blob-image resource with provided parameters.
Must be matched with a DeleteImage at some point to prevent memory leaks.
Fields§
§key: BlobImageKeyA key to identify the blob-image resource.
descriptor: ImageDescriptorProperties of the image.
data: Arc<BlobImageData>The blob-image’s serialized commands.
visible_rect: DeviceIntRectThe 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: TileSizeThe 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§
Source§impl Clone for AddBlobImage
 
impl Clone for AddBlobImage
Source§fn clone(&self) -> AddBlobImage
 
fn clone(&self) -> AddBlobImage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for AddBlobImage
 
impl<'de> Deserialize<'de> for AddBlobImage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for AddBlobImage
impl RefUnwindSafe for AddBlobImage
impl Send for AddBlobImage
impl Sync for AddBlobImage
impl Unpin for AddBlobImage
impl UnwindSafe for AddBlobImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more