pub enum RepaintBufferType {
NewBuffer,
ReusedBuffer,
SwappedBuffers,
}Expand description
This enum describes which parts of the buffer passed to the SoftwareRenderer may be re-used to speed up painting.
Variants§
NewBuffer
The full window is always redrawn. No attempt at partial rendering will be made.
ReusedBuffer
Only redraw the parts that have changed since the previous call to render().
This variant assumes that the same buffer is passed on every call to render() and that it still contains the previously rendered frame.
SwappedBuffers
Redraw the part that have changed since the last two frames were drawn.
This is used when using double buffering and swapping of the buffers.
Trait Implementations§
Source§impl Clone for RepaintBufferType
impl Clone for RepaintBufferType
Source§fn clone(&self) -> RepaintBufferType
fn clone(&self) -> RepaintBufferType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepaintBufferType
impl Debug for RepaintBufferType
Source§impl Default for RepaintBufferType
impl Default for RepaintBufferType
Source§fn default() -> RepaintBufferType
fn default() -> RepaintBufferType
Returns the “default value” for a type. Read more
Source§impl PartialEq for RepaintBufferType
impl PartialEq for RepaintBufferType
impl Copy for RepaintBufferType
impl Eq for RepaintBufferType
impl StructuralPartialEq for RepaintBufferType
Auto Trait Implementations§
impl Freeze for RepaintBufferType
impl RefUnwindSafe for RepaintBufferType
impl Send for RepaintBufferType
impl Sync for RepaintBufferType
impl Unpin for RepaintBufferType
impl UnsafeUnpin for RepaintBufferType
impl UnwindSafe for RepaintBufferType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.