pub enum Paint {
Color(Color),
Gradient {
start: LocalPoint,
end: LocalPoint,
inner_color: Color,
outer_color: Color,
},
}
Expand description
Specifies how a region should be filled.
Variants§
Color(Color)
Fill a region with a solid color.
Gradient
Fill a region with a linear gradient between two colors.
Implementations§
source§impl Paint
impl Paint
pub fn vger_paint(&self, vger: &mut Vger) -> PaintIndex
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnwindSafe 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