Enum piet_common::LineJoin[][src]

pub enum LineJoin {
    Miter {
        limit: f64,
    },
    Round,
    Bevel,
}

Options for angled joins in strokes.

Variants

Miter

The outer edges of the two paths are extended until they intersect.

Because the miter length can be extreme for small angles, you must supply a ‘limit’ at which we will fallback on LineJoin::Bevel.

This limit is the distance from the point where the inner edges of the stroke meet to the point where the outer edges meet.

The default limit is 10.0.

This is also currently the default LineJoin; you should only need to construct it if you need to customize the limit.

Fields of Miter

limit: f64

The maximum distance between the inner and outer stroke edges before beveling.

Round

The two lines are joined by a circular arc.

Bevel

The two segments are capped with LineCap::Butt, and the notch is filled.

Implementations

impl LineJoin[src]

pub const DEFAULT_MITER_LIMIT: f64[src]

The default maximum length for a LineJoin::Miter.

This is defined in the Postscript Language Reference (pp 676).

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> RoundFrom<T> for T[src]

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<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.