PathBuilder

interface PathBuilder<out P>

Interface used by a PathTypeMarker to generate platform types for Path instances.

Inheritors

Functions

Link copied to clipboard
abstract fun arcTo(left: Float, top: Float, right: Float, bottom: Float, startAngle: Float, sweepAngle: Float, forceMoveTo: Boolean)

Append the specified arc to the path as a new contour. startAngle and sweepAngle are both given in degrees.

Link copied to clipboard
abstract fun build(): P

Returns the path built by previous function calls. If P is mutable, then future builder calls should not modify it and multiple calls to build must not return the same instance.

Link copied to clipboard
abstract fun close()

Close the current contour.

Link copied to clipboard
abstract fun cubicTo(beginControlX: Float, beginControlY: Float, endControlX: Float, endControlY: Float, endX: Float, endY: Float)

Add a cubic bezier from the last point, approaching control points beginControlX, beginControlY and endControlX, endControlY, and ending at point endX, endY.

Link copied to clipboard
abstract fun lineTo(x: Float, y: Float)

Add a line from the last point to the specified point x, y.

Link copied to clipboard
abstract fun moveTo(x: Float, y: Float)

Set the beginning of the next contour to the point x, y.

Link copied to clipboard
abstract fun quadraticTo(controlX: Float, controlY: Float, endX: Float, endY: Float)

Add a quadratic bezier from the last point, approaching control point controlX, controlY, and ending at point endX, endY.

Link copied to clipboard
abstract fun relativeCubicTo(beginControlX: Float, beginControlY: Float, endControlX: Float, endControlY: Float, endX: Float, endY: Float)

Same as cubicTo, except coordinates are relative to the current location.

Link copied to clipboard
abstract fun relativeLineTo(x: Float, y: Float)

Same as lineTo, except coordinates are relative to the current location.

Link copied to clipboard
abstract fun relativeMoveTo(x: Float, y: Float)

Same as moveTo, except coordinates are relative to the current location.

Link copied to clipboard
abstract fun relativeQuadraticTo(controlX: Float, controlY: Float, endX: Float, endY: Float)

Same as quadraticTo, except coordinates are relative to the current location.

Link copied to clipboard
abstract fun reset()

Start over!