pub enum PathStyle {
Fill,
Stroke {
width: f64,
dash: Option<DashPattern>,
},
}Expand description
How a Command::Path is rendered: filled or stroked.
Kept intentionally minimal: the fill/stroke shape
widgets need for arcs (circular progress, activity indicators) — a
nonzero-fill, or a stroke with a fixed width, round caps/joins, and an
optional DashPattern. No miter limit or even-odd fill rule yet; extend
here (and in frust-render::convert) if a later widget needs one.
Variants§
Fill
Fill using the nonzero winding rule.
Stroke
Stroke with the given width (pre-transform coordinate space) and round caps/joins.
Fields
§
dash: Option<DashPattern>Dash pattern, or None for a solid stroke — what every stroke that
predates dashing records, and what the render crate falls back to
for a degenerate pattern (see DashPattern::is_effective).
Trait Implementations§
impl Copy for PathStyle
impl StructuralPartialEq for PathStyle
Auto Trait Implementations§
impl Freeze for PathStyle
impl RefUnwindSafe for PathStyle
impl Send for PathStyle
impl Sync for PathStyle
impl Unpin for PathStyle
impl UnsafeUnpin for PathStyle
impl UnwindSafe for PathStyle
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