PathOperation

Path operations are used to describe the segments of a GskPath.

More values may be added in the future.

Since

4.14

Entries

Link copied to clipboard

A move-to operation, with 1 point describing the target point.

Link copied to clipboard

A close operation ending the current contour with a line back to the starting point. Two points describe the start and end of the line.

Link copied to clipboard

A line-to operation, with 2 points describing the start and end point of a straight line.

Link copied to clipboard

A curve-to operation describing a quadratic Bézier curve with 3 points describing the start point, the control point and the end point of the curve.

Link copied to clipboard

A curve-to operation describing a cubic Bézier curve with 4 points describing the start point, the two control points and the end point of the curve.

Link copied to clipboard

A rational quadratic Bézier curve with 3 points describing the start point, control point and end point of the curve. A weight for the curve will be passed, too.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.