ShapeCommand

Type Alias ShapeCommand 

Source
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.

§

Line

The line command.

§

HLine

The hline command.

§

VLine

The vline command.

§

CubicCurve

The cubic Bézier curve command.

§

QuadCurve

The quadratic Bézier curve command.

§

SmoothCubic

The smooth command.

§

SmoothQuad

The smooth quadratic Bézier curve command.

§

Arc

The arc command.

§

Close

The closepath command.

Trait Implementations§

Source§

impl From<&GenericShapeCommand<f32, GenericPosition<f32, f32>, f32>> for ShapeCommand

Source§

fn from(path: &PathCommand) -> Self

Converts to this type from the input type.