Enum svg::node::element::path::Command [] [src]

pub enum Command {
    Move(PositionParameters),
    Line(PositionParameters),
    HorizontalLine(PositionParameters),
    VerticalLine(PositionParameters),
    QuadraticCurve(PositionParameters),
    SmoothQuadraticCurve(PositionParameters),
    CubicCurve(PositionParameters),
    SmoothCubicCurve(PositionParameters),
    EllipticalArc(PositionParameters),
    Close,
}

A command of a data attribute.

Variants

Move(PositionParameters)

Establish a new current point.

Line(PositionParameters)

Draw straight lines.

HorizontalLine(PositionParameters)

Draw horizontal lines.

VerticalLine(PositionParameters)

Draw vertical lines.

QuadraticCurve(PositionParameters)

Draw a quadratic Bézier curve.

SmoothQuadraticCurve(PositionParameters)

Draw a quadratic Bézier curve assuming the control point to be the reflection of the control point on the previous command relative to the current point.

CubicCurve(PositionParameters)

Draw a cubic Bézier curve.

SmoothCubicCurve(PositionParameters)

Draw a cubic Bézier curve assuming the first control point to be the reflection of the second control point on the previous command relative to the current point.

EllipticalArc(PositionParameters)

Draw an elliptical arc.

Close

End the current subpath.

Trait Implementations

impl Clone for Command
[src]

fn clone(&self) -> Command

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more