Struct i_slint_core::item_rendering::CachedRenderingData
source · #[repr(C)]pub struct CachedRenderingData { /* private fields */ }Expand description
This structure must be present in items that are Rendered and contains information. Used by the backend.
Implementations§
source§impl CachedRenderingData
impl CachedRenderingData
sourcepub fn release<T>(&self, cache: &mut RenderingCache<T>) -> Option<T>
pub fn release<T>(&self, cache: &mut RenderingCache<T>) -> Option<T>
This function can be used to remove an entry from the rendering cache for a given item, if it exists, i.e. if any data was ever cached. This is typically called by the graphics backend’s implementation of the release_item_graphics_cache function.
sourcepub fn get_entry<'a, T>(
&self,
cache: &'a mut RenderingCache<T>
) -> Option<&'a mut CachedGraphicsData<T>>
pub fn get_entry<'a, T>(
&self,
cache: &'a mut RenderingCache<T>
) -> Option<&'a mut CachedGraphicsData<T>>
Return the value if it is in the cache
Trait Implementations§
source§impl Debug for CachedRenderingData
impl Debug for CachedRenderingData
source§impl Default for CachedRenderingData
impl Default for CachedRenderingData
source§fn default() -> CachedRenderingData
fn default() -> CachedRenderingData
Returns the “default value” for a type. Read more