pub enum BrushCap {
Round,
Flat,
Tapered(f64),
}Expand description
Analytic pressure treatment at the endpoints of a variable-width BrushStroke.
This is not LineCap: LineCap picks the end geometry (butt, round
or square) of a uniform-width StrokeStyle outline, whereas
BrushCap shapes how the nib imprint and pressure end a brush stroke. Round resembles
LineCap::Round, Flat resembles Butt, and Tapered has no LineCap counterpart.
Variants§
Round
Full rounded nib imprint.
Flat
Clips the nib and connector geometry at an endpoint tangent plane.
Tapered(f64)
Smoothly tapers over the specified arc length.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BrushCap
impl Freeze for BrushCap
impl Move for BrushCap
impl RefUnwindSafe for BrushCap
impl Send for BrushCap
impl Sync for BrushCap
impl Unpin for BrushCap
impl UnsafeUnpin for BrushCap
impl UnwindSafe for BrushCap
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