pub type BasicShape = GenericBasicShape<Angle, Position, LengthPercentage, InsetRect>;Expand description
A computed basic shape.
Aliased Type§
#[repr(C, u8)]pub enum BasicShape {
Rect(GenericInsetRect<LengthPercentage>),
Circle(Circle<LengthPercentage>),
Ellipse(Ellipse<LengthPercentage>),
Polygon(GenericPolygon<LengthPercentage>),
PathOrShape(GenericPathOrShapeFunction<Angle, GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>),
}Variants§
Rect(GenericInsetRect<LengthPercentage>)
The
Circle(Circle<LengthPercentage>)
Defines a circle with a center and a radius.
Ellipse(Ellipse<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, GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage>)
Defines a path() or shape().