PathMeasure

class PathMeasure(pointer: <Error class: unknown class><<Error class: unknown class>>)

GskPathMeasure is an object that allows measurements on GskPaths such as determining the length of the path.

Many measuring operations require sampling the path length at intermediate points. Therefore, a GskPathMeasure has a tolerance that determines what precision is required for such approximations.

A GskPathMeasure struct is a reference counted struct and should be treated as opaque.

Since

4.14

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
fun getLength(): <Error class: unknown class>

Gets the length of the path being measured.

Link copied to clipboard
fun getPath(): Path

Returns the path that the measure was created for.

Link copied to clipboard
fun getPoint(distance: <Error class: unknown class>, result: PathPoint): Boolean

Sets @result to the point at the given distance into the path.

Link copied to clipboard
fun getTolerance(): <Error class: unknown class>

Returns the tolerance that the measure was created with.

Link copied to clipboard

Increases the reference count of a GskPathMeasure by one.

Link copied to clipboard
fun unref()

Decreases the reference count of a GskPathMeasure by one.