gsk.path_measure
Module for [PathMeasure] class
class PathMeasure
Types 1
classPathMeasure : gobject.boxed.Boxed
[gsk.path_measure.PathMeasure] is an object that allows measurements on [gsk.path.Path]s 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
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 selffloat getTolerance()Returns the tolerance that the measure was created with. Returns: the tolerance of selfConstructors
this(gsk.path.Path path)Creates a measure object for the given path with the default tolerance.