pub enum CachePolicy {
TextureCache,
DirectDraw,
}Expand description
How a backend keeps painted Widgets between frames.
Variants§
TextureCache
Each Widget paints into its own cached surface (a GPU texture) when invalidated, and frames
are blits of those surfaces. Used by GPU backends such as SDL2.
DirectDraw
Invalidated Widgets are painted straight to the screen with clipping, with no per-widget
surface. For memory-poor systems. Declared by backends that need it; the SDL2 backend
never uses it.
Trait Implementations§
Source§impl Clone for CachePolicy
impl Clone for CachePolicy
impl Copy for CachePolicy
Source§impl Debug for CachePolicy
impl Debug for CachePolicy
Source§impl Default for CachePolicy
impl Default for CachePolicy
impl Eq for CachePolicy
Source§impl PartialEq for CachePolicy
impl PartialEq for CachePolicy
impl StructuralPartialEq for CachePolicy
Auto Trait Implementations§
impl Freeze for CachePolicy
impl RefUnwindSafe for CachePolicy
impl Send for CachePolicy
impl Sync for CachePolicy
impl Unpin for CachePolicy
impl UnsafeUnpin for CachePolicy
impl UnwindSafe for CachePolicy
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