Enum piet_common::LineJoin [−][src]
Options for angled joins in strokes.
Variants
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.
The two lines are joined by a circular arc.
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
impl RefUnwindSafe for LineJoin
impl Send for LineJoin
impl Sync for LineJoin
impl Unpin for LineJoin
impl UnwindSafe for LineJoin
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
[src]
pub fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
pub fn round_into(self) -> U
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,