pub struct BufferedSurface<U> { /* private fields */ }Expand description
A thread-safe Surface implementation where changes are buffered before they are committed in batches
Trait Implementations§
Source§impl<U> Surface<U> for BufferedSurface<U>
impl<U> Surface<U> for BufferedSurface<U>
Source§impl<U> Visible for BufferedSurface<U>
impl<U> Visible for BufferedSurface<U>
Source§fn set_opacity(&mut self, opacity: u8)
fn set_opacity(&mut self, opacity: u8)
Sets the opacity of this surface, where 0 is completely transparent and 255 is completely opaque
Source§fn set_visible(&mut self, visible: bool)
fn set_visible(&mut self, visible: bool)
Sets the visibility of the surface without adjusting the stored opacity
Auto Trait Implementations§
impl<U> Freeze for BufferedSurface<U>
impl<U> !RefUnwindSafe for BufferedSurface<U>
impl<U> Send for BufferedSurface<U>
impl<U> Sync for BufferedSurface<U>
impl<U> Unpin for BufferedSurface<U>
impl<U> !UnwindSafe for BufferedSurface<U>
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