androidx.graphics.path
Classes
PathIterator |
A path iterator can be used to iterate over all the |
PathSegment |
A path segment represents a curve (line, cubic, quadratic or conic) or a command inside a fully formed |
Enums
PathIterator.ConicEvaluation |
|
PathSegment.Type |
Type of a given segment in a |
Extension functions summary
operator PathIterator |
Creates a new |
PathIterator |
Path.iterator( Creates a new |
Top-level properties summary
PathSegment |
A |
PathSegment |
A |
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
CloseSegment
val CloseSegment: PathSegment
A PathSegment
containing the Close
command. This static object exists to avoid allocating a new segment when returning a Close
result from PathIterator.next
.
DoneSegment
val DoneSegment: PathSegment
A PathSegment
containing the Done
command. This static object exists to avoid allocating a new segment when returning a Done
result from PathIterator.next
.