pub struct Path<'a> {
pub verbs: &'a [Verb],
pub points: &'a [LogicalPoint],
pub fill: Fill<'a>,
pub rule: FillRule,
pub stroke: Option<Stroke>,
pub opacity: f32,
}Expand description
filled or stroked vector path in logical coordinates
subpaths are closed implicitly when filled
Fields§
§verbs: &'a [Verb]§points: &'a [LogicalPoint]§fill: Fill<'a>§rule: FillRule§stroke: Option<Stroke>paints the stroke outline with the fill instead of the interior
opacity: f32Implementations§
Source§impl<'a> Path<'a>
impl<'a> Path<'a>
Sourcepub fn new(verbs: &'a [Verb], points: &'a [LogicalPoint]) -> Self
pub fn new(verbs: &'a [Verb], points: &'a [LogicalPoint]) -> Self
creates a new Path
Sourcepub fn verbs(self, value: &'a [Verb]) -> Self
pub fn verbs(self, value: &'a [Verb]) -> Self
sets Self::verbs
Sourcepub fn points(self, value: &'a [LogicalPoint]) -> Self
pub fn points(self, value: &'a [LogicalPoint]) -> Self
sets Self::points
Sourcepub fn fill(self, value: impl Into<Fill<'a>>) -> Self
pub fn fill(self, value: impl Into<Fill<'a>>) -> Self
sets Self::fill
Sourcepub fn rule(self, value: FillRule) -> Self
pub fn rule(self, value: FillRule) -> Self
sets Self::rule
Sourcepub fn opacity(self, value: f32) -> Self
pub fn opacity(self, value: f32) -> Self
sets Self::opacity
Trait Implementations§
impl<'a> Copy for Path<'a>
impl<'a> StructuralPartialEq for Path<'a>
Auto Trait Implementations§
impl<'a> Forget for Path<'a>
impl<'a> Freeze for Path<'a>
impl<'a> Move for Path<'a>
impl<'a> RefUnwindSafe for Path<'a>
impl<'a> Send for Path<'a>
impl<'a> Sync for Path<'a>
impl<'a> Unpin for Path<'a>
impl<'a> UnsafeUnpin for Path<'a>
impl<'a> UnwindSafe for Path<'a>
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