PathPoint
GskPathPoint
is an opaque type representing a point on a path.
It can be queried for properties of the path at that point, such as its tangent or its curvature.
To obtain a GskPathPoint
, use method@Gsk.Path.get_closest_point, method@Gsk.Path.get_start_point, method@Gsk.Path.get_end_point or method@Gsk.PathMeasure.get_point.
Note that GskPathPoint
structs are meant to be stack-allocated, and don't hold a reference to the path object they are obtained from. It is the callers responsibility to keep a reference to the path as long as the GskPathPoint
is used.
Skipped during bindings generation
field
padding
: Array parameter of type gpointer is not supportedfield
alignment
: Graphene.Vec4
Since
4.14
Constructors
Allocate a new PathPoint.
Allocate a new PathPoint using the provided AutofreeScope.
Allocate a new PathPoint.
Allocate a new PathPoint using the provided AutofreeScope.
Functions
Calculates the curvature of the path at the point.
Returns the distance from the beginning of the path to @point.
Gets the position of the point.
Gets the direction of the tangent at a given point.
Gets the tangent of the path at the point.