ShapePath Class

ShapePath class

Represents a creation path consisting of a series of moves, lines and curves that when combined will form a geometric shape.


type ShapePath struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewShapePathInitializes a new instance of the class.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetPathSegementListGets list
MoveToStarts a new figure from the specified point without closing the current figure. All subsequent points added to the path are added to this new figure.
LineToAppends a line segment to the current figure. The starting point is the end point of the current figure.
CubicBezierToAppends a cubic Bézier curve to the current figure. The starting point is the end point of the current figure.
ArcToAppends an elliptical arc to the current figure. The starting point is the end point of the current figure.
CloseCloses the current figure and starts a new figure. If the current figure contains a sequence of connected lines and curves, the method closes the loop by connecting a line from the endpoint to the starting point.