Enum tiny_skia::LineJoin[][src]

pub enum LineJoin {
    Miter,
    Round,
    Bevel,
}

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.

Round

Adds circle.

Bevel

Connects outside edges.

Trait Implementations

impl Clone for LineJoin[src]

impl Copy for LineJoin[src]

impl Debug for LineJoin[src]

impl Default for LineJoin[src]

impl PartialEq<LineJoin> for LineJoin[src]

impl StructuralPartialEq for LineJoin[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.