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)
GType _gType() @property
PathMeasure self()Returns `this`, for use in `with` statements.
gsk.path_measure.PathMeasure newWithTolerance(gsk.path.Path path, float tolerance)Creates a measure object for the given path and tolerance.
float getLength()Gets the length of the path being measured.
gsk.path.Path getPath()Returns the path that the measure was created for. Returns: the path of self
float getTolerance()Returns 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.