pub struct ServerCompositionVisualCache { /* private fields */ }Expand description
The bitmap cache of a visual: an offscreen layer the subtree of the visual is rendered into, redrawn only where it changed.
The cache is its own dirty rect collector (DirtyRectCollector
upstream).
Implementations§
Source§impl ServerCompositionVisualCache
impl ServerCompositionVisualCache
pub fn new( visual: Weak<ServerCompositionVisual>, cache_mode: Rc<ServerCompositionBitmapCache>, ) -> Rc<ServerCompositionVisualCache>
pub fn is_dirty(&self) -> bool
pub fn target_visual(&self) -> Option<Rc<ServerCompositionVisual>>
pub fn free_resources(&self)
pub fn invalidate_properties(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerCompositionVisualCache
impl !RefUnwindSafe for ServerCompositionVisualCache
impl !Send for ServerCompositionVisualCache
impl !Sync for ServerCompositionVisualCache
impl !UnwindSafe for ServerCompositionVisualCache
impl Unpin for ServerCompositionVisualCache
impl UnsafeUnpin for ServerCompositionVisualCache
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more