pub enum PaintCall {
Fill(Color),
FillRect(Rect, Color),
Rect(Rect, Color),
Line(Point, Point, Color),
Text(Rect, String, Color),
Image(String, Rect),
Dither(Rect, Color, Color),
DitherOverlay(Rect, Color),
Clip(Option<Rect>),
}Expand description
One call made on a RecordingPainter.
Variants§
Fill(Color)
fill(color)
FillRect(Rect, Color)
fill_rect(bounds, color)
Rect(Rect, Color)
rect(bounds, color)
Line(Point, Point, Color)
line(from, to, color)
Text(Rect, String, Color)
text(bounds, msg, color)
Image(String, Rect)
image(path, bounds)
Dither(Rect, Color, Color)
dither(bounds, first, second)
DitherOverlay(Rect, Color)
dither_overlay(bounds, color)
Clip(Option<Rect>)
clip(bounds)
Trait Implementations§
impl Eq for PaintCall
impl StructuralPartialEq for PaintCall
Auto Trait Implementations§
impl Freeze for PaintCall
impl RefUnwindSafe for PaintCall
impl Send for PaintCall
impl Sync for PaintCall
impl Unpin for PaintCall
impl UnsafeUnpin for PaintCall
impl UnwindSafe for PaintCall
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