GuiShapePolygon class

The GuiShapePolygon class defines a polygon's properties.

Implemented types

Constructors

GuiShapePolygon({required int sides, required GeoAngle startAngle, bool clockwise = false, BoxFit boxFit = BoxFit.none, double cornerRadius = 0})

Properties

boxFit BoxFit
Resize custom shape to fit rendering area.
final
clockwise bool
Direction of rotation
final
cornerRadius double
Radius of smoothing or curving corners of the shape.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sides int
Number of sides of a polygon
final
startAngle GeoAngle
Starting angle of polygon
final

Methods

getPath({required Size size}) Path
Retrieve Path of shape
override
lerpFrom(IGuiShape shape, double t) IGuiShape
Linearly interpolate from other shape to this shape by an extrapolation factor t.
override
lerpTo(IGuiShape shape, double t) IGuiShape
Linearly interpolate from this shape to other shape by an extrapolation factor t.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited