Performs measurements on paths 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.
Gets the length of the path being measured.
The length is cached, so this function does not do any work.
Passed: a <GskPathMeasure>.
a path measure
Returned: a real number.
the length of the path measured by self
Returns the path that the measure was created for.
Passed: a <GskPathMeasure>.
a path measure
Returned: a <GskPath>.
the path of self
Gets the point at the given distance into the path.
An empty path has no points, so false is returned in that case.
Passed: a <GskPathMeasure>.
a path measure
Passed: a real number.
the distance
Passed, filled in, and returned: a
<GskPathPoint>.
return location for the point
Returned: a boolean.
true if result was set
Returns the tolerance that the measure was created with.
Passed: a <GskPathMeasure>.
a path measure
Returned: a real number.
the tolerance of self
Creates a measure object for the given path with the default tolerance.
Passed: a <GskPath>.
the path to measure
Returned: a <GskPathMeasure>.
a new <GskPathMeasure> representing path
Creates a measure object for the given path and tolerance.
Passed: a <GskPath>.
the path to measure
Passed: a real number.
the tolerance for measuring operations
Returned: a <GskPathMeasure>.
a new <GskPathMeasure> representing path
Increases the reference count of a
<GskPathMeasure> by one.
Passed: a <GskPathMeasure>.
a path measure
Returned: a <GskPathMeasure>.
the passed in <GskPathMeasure>.
Decreases the reference count of a
<GskPathMeasure> by one.
If the resulting reference count is zero, frees the object.
Passed: a <GskPathMeasure>.
a path measure