Enum piet::LineJoin[][src]

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

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

The default maximum length for a LineJoin::Miter.

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.