pub type ShapeCommand = GenericShapeCommand<Angle, Position, LengthPercentage>;Expand description
The computed value of ShapeCommand.
Aliased Type§
#[repr(C, u8)]pub enum ShapeCommand {
Move {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
},
Line {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
},
HLine {
x: AxisEndPoint<LengthPercentage>,
},
VLine {
y: AxisEndPoint<LengthPercentage>,
},
CubicCurve {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
control1: ControlPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
control2: ControlPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
},
QuadCurve {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
control1: ControlPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
},
SmoothCubic {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
control2: ControlPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
},
SmoothQuad {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
},
Arc {
point: CommandEndPoint<GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>,
radii: ArcRadii<LengthPercentage>,
arc_sweep: ArcSweep,
arc_size: ArcSize,
rotate: Angle,
},
Close,
}Variants§
Move
The move command.
Fields
Line
The line command.
Fields
HLine
The hline command.
Fields
VLine
The vline command.
Fields
CubicCurve
The cubic Bézier curve command.
Fields
QuadCurve
The quadratic Bézier curve command.
Fields
SmoothCubic
The smooth command.
Fields
SmoothQuad
The smooth quadratic Bézier curve command.
Fields
Arc
The arc command.
Fields
§
radii: ArcRadii<LengthPercentage>Close
The closepath command.
Trait Implementations§
Source§impl From<&GenericShapeCommand<f32, GenericPosition<f32, f32>, f32>> for ShapeCommand
impl From<&GenericShapeCommand<f32, GenericPosition<f32, f32>, f32>> for ShapeCommand
Source§fn from(path: &PathCommand) -> Self
fn from(path: &PathCommand) -> Self
Converts to this type from the input type.