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
sourceimpl Paint
impl Paint
pub fn vger_paint(&self, vger: &mut Vger) -> PaintIndex
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more