pub struct Path { /* private fields */ }
Expand description
A collection of verbs (move_to()
, line_to()
, bezier_to()
, etc.)
describing one or more contours.
Implementations
Starts new sub-path with specified point as first point.
Adds line segment from the last point in the path to the specified point.
Adds cubic bezier segment from last point in the path via two control points to the specified point.
Adds quadratic bezier segment from last point in the path via a control point to the specified point.
Creates new circle arc shaped sub-path. The arc center is at cx,cy, the arc radius is r, and the arc is drawn from angle a0 to a1, and swept in direction dir (Winding) Angles are specified in radians.
Adds an arc segment at the corner defined by the last path point, and two specified points.
Creates new rounded rectangle shaped sub-path.
Creates new rounded rectangle shaped sub-path with varying radii for each corner.
Creates new ellipse shaped sub-path.
Trait Implementations
Appends a CurveTo segment.
Auto Trait Implementations
impl RefUnwindSafe for Path
impl UnwindSafe for Path
Blanket Implementations
Mutably borrows from an owned value. Read more