pub enum Paint {
Solid(Color),
Gradient(Gradient),
Image(ImageData, Affine),
}Expand description
What a Draw::Fill covers its path with.
Variants§
Solid(Color)
Gradient(Gradient)
A gradient whose points are in scene pixels.
Image(ImageData, Affine)
An image, placed by the transform from its pixels to scene pixels.
Auto Trait Implementations§
impl !RefUnwindSafe for Paint
impl !UnwindSafe for Paint
impl Freeze for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
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