i_slint_core::graphics

Trait OpaqueImage

Source
pub trait OpaqueImage {
    // Required methods
    fn size(&self) -> IntSize;
    fn cache_key(&self) -> ImageCacheKey;
}
Expand description

Note: Was generated from the #[vtable] macro on OpaqueImageVTable

Required Methods§

Source

fn size(&self) -> IntSize

Returns the image size

Source

fn cache_key(&self) -> ImageCacheKey

Returns a cache key

Implementors§