Enum jiao::core::paint_types::StrokeJoin
source · #[repr(u8)]pub enum StrokeJoin {
Miter = 0,
Round = 1,
Bevel = 2,
}
Expand description
StrokeJoin
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§
Trait Implementations§
source§impl Clone for StrokeJoin
impl Clone for StrokeJoin
source§fn clone(&self) -> StrokeJoin
fn clone(&self) -> StrokeJoin
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StrokeJoin
impl Debug for StrokeJoin
source§impl Default for StrokeJoin
impl Default for StrokeJoin
source§impl Hash for StrokeJoin
impl Hash for StrokeJoin
source§impl Ord for StrokeJoin
impl Ord for StrokeJoin
source§fn cmp(&self, other: &StrokeJoin) -> Ordering
fn cmp(&self, other: &StrokeJoin) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StrokeJoin
impl PartialEq for StrokeJoin
source§fn eq(&self, other: &StrokeJoin) -> bool
fn eq(&self, other: &StrokeJoin) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StrokeJoin
impl PartialOrd for StrokeJoin
source§fn partial_cmp(&self, other: &StrokeJoin) -> Option<Ordering>
fn partial_cmp(&self, other: &StrokeJoin) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for StrokeJoin
impl Eq for StrokeJoin
impl StructuralPartialEq for StrokeJoin
Auto Trait Implementations§
impl Freeze for StrokeJoin
impl RefUnwindSafe for StrokeJoin
impl Send for StrokeJoin
impl Sync for StrokeJoin
impl Unpin for StrokeJoin
impl UnwindSafe for StrokeJoin
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
Mutably borrows from an owned value. Read more