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

pub enum Command {
    MoveTo(PositioningVec<f64>),
    ClosePath,
    LineTo(PositioningVec<f64>),
    HorizontalLineTo(PositioningVec<f64>),
    VerticalLineTo(PositioningVec<f64>),
    CurveTo(PositioningVec<f64>),
    SmoothCurveTo(PositioningVec<f64>),
    QuadraticBezierCurveTo(PositioningVec<f64>),
    SmoothQuadraticBezierCurveTo(PositioningVec<f64>),
    EllipticalArc(PositioningVec<f64>),
}

A command used to draw a path.

Variants

MoveTo(PositioningVec<f64>)

Establish a new current point.

ClosePath

End the current subpath.

LineTo(PositioningVec<f64>)

Draw straight lines.

HorizontalLineTo(PositioningVec<f64>)

Draw horizontal lines.

VerticalLineTo(PositioningVec<f64>)

Draw vertical lines.

CurveTo(PositioningVec<f64>)

Draw a cubic Bézier curve.

SmoothCurveTo(PositioningVec<f64>)

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.

QuadraticBezierCurveTo(PositioningVec<f64>)

Draw a quadratic Bézier curve.

SmoothQuadraticBezierCurveTo(PositioningVec<f64>)

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.

EllipticalArc(PositioningVec<f64>)

Draw an elliptical arc.

Trait Implementations

impl Debug for Command
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.