pub type ShapeCommand = GenericShapeCommand<Angle, LengthPercentage>;Expand description
The specified value of ShapeCommand.
Aliased Type§
#[repr(C, u8)]pub enum ShapeCommand {
Move {
point: CommandEndPoint<LengthPercentage>,
},
Line {
point: CommandEndPoint<LengthPercentage>,
},
HLine {
by_to: ByTo,
x: LengthPercentage,
},
VLine {
by_to: ByTo,
y: LengthPercentage,
},
CubicCurve {
point: CommandEndPoint<LengthPercentage>,
control1: CoordinatePair<LengthPercentage>,
control2: CoordinatePair<LengthPercentage>,
},
QuadCurve {
point: CommandEndPoint<LengthPercentage>,
control1: CoordinatePair<LengthPercentage>,
},
SmoothCubic {
point: CommandEndPoint<LengthPercentage>,
control2: CoordinatePair<LengthPercentage>,
},
SmoothQuad {
point: CommandEndPoint<LengthPercentage>,
},
Arc {
point: CommandEndPoint<LengthPercentage>,
radii: CoordinatePair<LengthPercentage>,
arc_sweep: ArcSweep,
arc_size: ArcSize,
rotate: Angle,
},
Close,
}Variants§
Move
The move command.
Fields
§
point: CommandEndPoint<LengthPercentage>Line
The line command.
Fields
§
point: CommandEndPoint<LengthPercentage>HLine
The hline command.
VLine
The vline command.
CubicCurve
The cubic Bézier curve command.
Fields
§
point: CommandEndPoint<LengthPercentage>§
control1: CoordinatePair<LengthPercentage>§
control2: CoordinatePair<LengthPercentage>QuadCurve
The quadratic Bézier curve command.
SmoothCubic
The smooth command.
SmoothQuad
The smooth quadratic Bézier curve command.
Fields
§
point: CommandEndPoint<LengthPercentage>Arc
The arc command.
Close
The closepath command.
Trait Implementations§
Source§impl Parse for ShapeCommand
impl Parse for ShapeCommand
Source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more