pub struct SubPath {
pub points: Vec<(f32, f32)>,
pub closed: bool,
pub fill: bool,
pub stroke: bool,
}Expand description
One stroke of the pen: a run of points, and what is done with them.
Fields§
§points: Vec<(f32, f32)>The points, in the shape’s own coordinate space.
closed: boolWhether the last point joins the first.
fill: boolWhether the inside is filled. F in the path turns it off for the rest
of the path, which is how a shape draws a detail over its own body.
stroke: boolWhether the outline is drawn. S turns it off.
Trait Implementations§
impl StructuralPartialEq for SubPath
Auto Trait Implementations§
impl Freeze for SubPath
impl RefUnwindSafe for SubPath
impl Send for SubPath
impl Sync for SubPath
impl Unpin for SubPath
impl UnsafeUnpin for SubPath
impl UnwindSafe for SubPath
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