gsk.path_measure

Module for [PathMeasure] class

Types 1

gsk.path_measure.PathMeasure is an object that allows measurements on gsk.path.Paths such as determining the length of the path.

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

A gsk.path_measure.PathMeasure struct is a reference counted struct and should be treated as opaque.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
PathMeasure self() nothrowReturns `this`, for use in `with` statements.
gsk.path_measure.PathMeasure newWithTolerance(gsk.path.Path path, float tolerance) static nothrowCreates a measure object for the given path and tolerance.
float getLength() nothrowGets the length of the path being measured.
gsk.path.Path getPath() nothrowReturns the path that the measure was created for. Returns: the path of self
float getTolerance() nothrowReturns the tolerance that the measure was created with. Returns: the tolerance of self
Constructors
this(void * ptr, Flag!"Take" take)
this(gsk.path.Path path)Creates a measure object for the given path with the default tolerance.