pub enum PaintType {
Solid(AlphaColor<Srgb>),
Gradient(Gradient),
Image(Image),
}
Expand description
A kind of paint that can be used for filling and stroking shapes.
Variants§
Trait Implementations§
Source§impl From<AlphaColor<Srgb>> for PaintType
impl From<AlphaColor<Srgb>> for PaintType
Source§fn from(value: AlphaColor<Srgb>) -> Self
fn from(value: AlphaColor<Srgb>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PaintType
impl RefUnwindSafe for PaintType
impl Send for PaintType
impl Sync for PaintType
impl Unpin for PaintType
impl UnwindSafe for PaintType
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