PathMeasure
Object Hierarchy:
Description:
[ CCode ( ref_function = "gsk_path_measure_ref" , type_id = "gsk_path_measure_get_type ()" , unref_function = "gsk_path_measure_unref" ) ]
[ Compact ]
[ Version ( since = "4.14" ) ]
public class PathMeasure
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.
Content:
Creation methods:
Methods:
- public unowned PathMeasure @ref ()
Increases the reference count of a `GskPathMeasure` by one.
- public float get_length ()
Gets the length of the path being measured.
- public unowned Path get_path ()
Returns the path that the measure was created for.
- public bool get_point (float distance, out unowned PathPoint result)
Gets the point at the given distance into the path.
- public float get_tolerance ()
Returns the tolerance that the measure was created with.
- public void unref ()
Decreases the reference count of a `GskPathMeasure` by one.