Enum tiny_skia_path::LineJoin
source · pub enum LineJoin {
Miter,
MiterClip,
Round,
Bevel,
}
Expand description
Specifies how corners are drawn when a shape is stroked.
Join affects the four corners of a stroked rectangle, and the connected segments in a stroked path.
Choose miter join to draw sharp corners. Choose round join to draw a circle with a radius equal to the stroke width on top of the corner. Choose bevel join to minimally connect the thick strokes.
The fill path constructed to describe the stroked path respects the join setting but may not contain the actual join. For instance, a fill path constructed with round joins does not necessarily include circles at each connected segment.
Variants§
Miter
Extends to miter limit, then switches to bevel.
MiterClip
Extends to miter limit, then clips the corner.
Round
Adds circle.
Bevel
Connects outside edges.
Trait Implementations§
impl Copy for LineJoin
impl StructuralPartialEq for LineJoin
Auto Trait Implementations§
impl Freeze for LineJoin
impl RefUnwindSafe for LineJoin
impl Send for LineJoin
impl Sync for LineJoin
impl Unpin for LineJoin
impl UnwindSafe for LineJoin
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)