Struct i_slint_core::graphics::OpaqueImageTO

source ·
#[repr(C)]
pub struct OpaqueImageTO { /* private fields */ }
Expand description

Invariant, same as vtable::Inner: vtable and ptr has to be valid and ptr an instance matching the vtable

Implementations§

source§

impl OpaqueImageTO

source

pub fn size(&self) -> IntSize

Returns the image size

source

pub fn cache_key(&self) -> ImageCacheKey

Returns a cache key

source

pub fn get_vtable(&self) -> &OpaqueImageVTable

Returns a reference to the VTable

source

pub fn as_ptr(&self) -> *const u8

Return a raw pointer to the object