Struct smithay_client_toolkit::utils::DoubleMemPool [−][src]
pub struct DoubleMemPool { /* fields omitted */ }A Double memory pool, for convenient double-buffering
This type wraps two internal memory pool, and can be use for conveniently implementing double-buffering in your apps.
Just access the current drawing pool with the pool() method,
and swap them using the swap() method between two frames.
Methods
impl DoubleMemPool[src]
impl DoubleMemPoolpub fn new(shm: &Proxy<WlShm>) -> Result<DoubleMemPool>[src]
pub fn new(shm: &Proxy<WlShm>) -> Result<DoubleMemPool>Create a double memory pool
ⓘImportant traits for MemPoolpub fn pool(&mut self) -> &mut MemPool[src]
ⓘImportant traits for MemPool
pub fn pool(&mut self) -> &mut MemPoolAccess the current drawing pool
pub fn swap(&mut self)[src]
pub fn swap(&mut self)Swap the pool
Auto Trait Implementations
impl Send for DoubleMemPool
impl Send for DoubleMemPoolimpl Sync for DoubleMemPool
impl Sync for DoubleMemPool