Struct i_slint_core::graphics::OpaqueImageVTable
source · #[repr(C)]pub struct OpaqueImageVTable {
pub drop_in_place: unsafe extern "C" fn(_: VRefMut<'_, OpaqueImageVTable>) -> Layout,
pub dealloc: unsafe extern "C" fn(_: &OpaqueImageVTable, ptr: *mut u8, layout: Layout),
pub size: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> IntSize,
pub cache_key: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> ImageCacheKey,
}
Fields§
§drop_in_place: unsafe extern "C" fn(_: VRefMut<'_, OpaqueImageVTable>) -> Layout
§dealloc: unsafe extern "C" fn(_: &OpaqueImageVTable, ptr: *mut u8, layout: Layout)
§size: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> IntSize
Returns the image size
cache_key: unsafe extern "C" fn(_: VRef<'_, OpaqueImageVTable>) -> ImageCacheKey
Returns a cache key
Implementations§
source§impl OpaqueImageVTable
impl OpaqueImageVTable
sourcepub fn new<T: OpaqueImage>() -> Self
pub fn new<T: OpaqueImage>() -> Self
Create a vtable suitable for a given type implementing the trait.
Trait Implementations§
source§impl VTableMeta for OpaqueImageVTable
impl VTableMeta for OpaqueImageVTable
§type VTable = OpaqueImageVTable
type VTable = OpaqueImageVTable
That’s the VTable itself (so most likely Self)
§type Target = OpaqueImageTO
type Target = OpaqueImageTO
That’s the trait object that implements the functions Read more
Auto Trait Implementations§
impl RefUnwindSafe for OpaqueImageVTable
impl Send for OpaqueImageVTable
impl Sync for OpaqueImageVTable
impl Unpin for OpaqueImageVTable
impl UnwindSafe for OpaqueImageVTable
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
Mutably borrows from an owned value. Read more