pub enum DrawStyle {
Fill,
Stroke(Stroke),
DashedStroke(Stroke, DashPathEffect),
}Expand description
How crate::DrawScope::draw_path paints a path: Compose’s Fill and
Stroke draw styles, the stroke dashed when it carries a path effect.
Variants§
Fill
Fills the path’s contours, each closed, under the non-zero rule.
Stroke(Stroke)
Strokes the path’s edges with the stroke’s width, cap and join.
DashedStroke(Stroke, DashPathEffect)
Strokes the dashes the effect cuts the path’s edges into, each dash capped by the stroke’s cap.
Trait Implementations§
impl Copy for DrawStyle
impl StructuralPartialEq for DrawStyle
Auto Trait Implementations§
impl Freeze for DrawStyle
impl RefUnwindSafe for DrawStyle
impl Send for DrawStyle
impl Sync for DrawStyle
impl Unpin for DrawStyle
impl UnsafeUnpin for DrawStyle
impl UnwindSafe for DrawStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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