pub enum Style {
Fill,
Stroke(StrokeStyle),
}Expand description
Fill the shape, or trace its outline.
Variants§
Fill
Stroke(StrokeStyle)
Stroke with the given width and joinery.
The width is in the coordinate space the shape is drawn in, so it scales with the canvas transform. A caller wanting a hairline that stays one pixel wide under zoom divides by the current scale.
Trait Implementations§
impl Copy for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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