Enum pizarra::app::ShouldRedraw
source · pub enum ShouldRedraw {
All,
Shape,
No,
}
Expand description
Indicates wether or not an action should trigger redraw of the canvas
Variants§
All
The change was so big that it is worth repainting the whole visible screen
Shape
Only the last shape changed, no need to repaint the whole screen
No
Nothing has changed, don’t queue a draw event
Trait Implementations§
source§impl Clone for ShouldRedraw
impl Clone for ShouldRedraw
source§fn clone(&self) -> ShouldRedraw
fn clone(&self) -> ShouldRedraw
Returns a copy 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 ShouldRedraw
impl Debug for ShouldRedraw
source§impl PartialEq<ShouldRedraw> for ShouldRedraw
impl PartialEq<ShouldRedraw> for ShouldRedraw
source§fn eq(&self, other: &ShouldRedraw) -> bool
fn eq(&self, other: &ShouldRedraw) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.