androidx.graphics.path


Classes

PathIterator

A path iterator can be used to iterate over all the segments that make up a path.

PathSegment

A path segment represents a curve (line, cubic, quadratic or conic) or a command inside a fully formed path object.

Enums

Extension functions summary

operator PathIterator

Creates a new PathIterator for this path that evaluates conics as quadratics.

PathIterator
Path.iterator(
    conicEvaluation: PathIterator.ConicEvaluation,
    tolerance: Float
)

Creates a new PathIterator for this path.

Top-level properties summary

PathSegment

A PathSegment containing the Close command.

PathSegment

A PathSegment containing the Done command.

Extension functions

iterator

operator fun Path.iterator(): PathIterator

Creates a new PathIterator for this path that evaluates conics as quadratics. To preserve conics, use the Path.iterator function that takes a PathIterator.ConicEvaluation parameter.

iterator

fun Path.iterator(
    conicEvaluation: PathIterator.ConicEvaluation,
    tolerance: Float = 0.25f
): PathIterator

Creates a new PathIterator for this path. To preserve conics as conics (not convert them to quadratics), set conicEvaluation to PathIterator.ConicEvaluation.AsConic.

Top-level properties

val CloseSegmentPathSegment

A PathSegment containing the Close command. This static object exists to avoid allocating a new segment when returning a Close result from PathIterator.next.

val DoneSegmentPathSegment

A PathSegment containing the Done command. This static object exists to avoid allocating a new segment when returning a Done result from PathIterator.next.