PathMeasure
Added in version 4.14.
- class PathMeasure(**kwargs)
- Constructors:
new(path:Gsk.Path) -> Gsk.PathMeasure
new_with_tolerance(path:Gsk.Path, tolerance:float) -> Gsk.PathMeasure
Constructors
- class PathMeasure
- classmethod new(path: Path) PathMeasure
Creates a measure object for the given
path
with the default tolerance.Added in version 4.14.
- Parameters:
path – the path to measure
- classmethod new_with_tolerance(path: Path, tolerance: float) PathMeasure
Creates a measure object for the given
path
andtolerance
.Added in version 4.14.
- Parameters:
path – the path to measure
tolerance – the tolerance for measuring operations
Methods
- class PathMeasure
- get_length() float
Gets the length of the path being measured.
The length is cached, so this function does not do any work.
Added in version 4.14.