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