Type Alias BasicShape

Source
pub type BasicShape = GenericBasicShape<Angle, Position, LengthPercentage, NonNegativeLengthPercentage, InsetRect>;
Expand description

A computed basic shape.

Aliased Type§

#[repr(C, u8)]
pub enum BasicShape { Rect(GenericInsetRect<LengthPercentage, NonNegative<LengthPercentage>>), Circle(Circle<GenericPosition<LengthPercentage, LengthPercentage>, NonNegative<LengthPercentage>>), Ellipse(Ellipse<GenericPosition<LengthPercentage, LengthPercentage>, NonNegative<LengthPercentage>>), Polygon(GenericPolygon<LengthPercentage>), PathOrShape(GenericPathOrShapeFunction<Angle, LengthPercentage>), }

Variants§

§

Rect(GenericInsetRect<LengthPercentage, NonNegative<LengthPercentage>>)

The .

§

Circle(Circle<GenericPosition<LengthPercentage, LengthPercentage>, NonNegative<LengthPercentage>>)

Defines a circle with a center and a radius.

§

Ellipse(Ellipse<GenericPosition<LengthPercentage, LengthPercentage>, NonNegative<LengthPercentage>>)

Defines an ellipse with a center and x-axis/y-axis radii.

§

Polygon(GenericPolygon<LengthPercentage>)

Defines a polygon with pair arguments.

§

PathOrShape(GenericPathOrShapeFunction<Angle, LengthPercentage>)

Defines a path() or shape().