pub enum PdfPageObjectLineJoin {
Miter = 0,
Round = 1,
Bevel = 2,
}Expand description
The shape that should be used at the corners of stroked paths.
Join styles are significant only at points where consecutive segments of a path connect at an angle; segments that meet or intersect fortuitously receive no special treatment.
A formal definition of these styles can be found in Section 4.3.2 of the PDF Reference Manual, version 1.7, on page 216.
Variants§
Miter = 0
The outer edges of the strokes for the two path segments are extended until they meet at an angle, as in a picture frame. If the segments meet at too sharp an angle, a bevel join is used instead.
Round = 1
An arc of a circle with a diameter equal to the line width is drawn around the point where the two path segments meet, connecting the outer edges of the strokes for the two segments. This pie-slice-shaped figure is filled in, producing a rounded corner.
Bevel = 2
The two path segments are finished with butt caps and the resulting notch beyond the ends of the segments is filled with a triangle.
Trait Implementations§
Source§impl Clone for PdfPageObjectLineJoin
impl Clone for PdfPageObjectLineJoin
Source§fn clone(&self) -> PdfPageObjectLineJoin
fn clone(&self) -> PdfPageObjectLineJoin
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PdfPageObjectLineJoin
impl Debug for PdfPageObjectLineJoin
Source§impl PartialEq for PdfPageObjectLineJoin
impl PartialEq for PdfPageObjectLineJoin
impl Copy for PdfPageObjectLineJoin
impl StructuralPartialEq for PdfPageObjectLineJoin
Auto Trait Implementations§
impl Freeze for PdfPageObjectLineJoin
impl RefUnwindSafe for PdfPageObjectLineJoin
impl Send for PdfPageObjectLineJoin
impl Sync for PdfPageObjectLineJoin
impl Unpin for PdfPageObjectLineJoin
impl UnwindSafe for PdfPageObjectLineJoin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more