Enum PaintJoin
#[repr(u8)]pub enum PaintJoin {
Miter = 0,
Round = 1,
Bevel = 2,
}Expand description
Join 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§
Implementations§
§impl SkPaint_Join
impl SkPaint_Join
pub const Last: SkPaint_Join = SkPaint_Join::Bevel
§impl SkPaint_Join
impl SkPaint_Join
pub const Default: SkPaint_Join = SkPaint_Join::Miter
Trait Implementations§
§impl Clone for SkPaint_Join
impl Clone for SkPaint_Join
§fn clone(&self) -> SkPaint_Join
fn clone(&self) -> SkPaint_Join
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SkPaint_Join
§impl Debug for SkPaint_Join
impl Debug for SkPaint_Join
§impl Default for SkPaint_Join
impl Default for SkPaint_Join
§fn default() -> SkPaint_Join
fn default() -> SkPaint_Join
Returns the “default value” for a type. Read more
impl Eq for SkPaint_Join
§impl Hash for SkPaint_Join
impl Hash for SkPaint_Join
§impl PartialEq for SkPaint_Join
impl PartialEq for SkPaint_Join
impl StructuralPartialEq for SkPaint_Join
Auto Trait Implementations§
impl Freeze for SkPaint_Join
impl RefUnwindSafe for SkPaint_Join
impl Send for SkPaint_Join
impl Sync for SkPaint_Join
impl Unpin for SkPaint_Join
impl UnsafeUnpin for SkPaint_Join
impl UnwindSafe for SkPaint_Join
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.