pub enum Paint {
Solid(Color),
Linear {
start: Point,
end: Point,
stops: Vec<GradientStop>,
extend: (bool, bool),
},
Radial {
center: Point,
radius: f64,
focal: Point,
stops: Vec<GradientStop>,
extend: (bool, bool),
},
Tile {
image: MediaId,
tile: Rect,
transform: Transform,
},
}Expand description
Fill or stroke paint independent of a rendering backend.
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin 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