i_slint_core::graphics

Struct 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