gsk.path_point

Module for [PathPoint] class

class PathPoint

Types 1

gsk.path_point.PathPoint 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 gsk.path_point.PathPoint, use gsk.path.Path.getClosestPoint, gsk.path.Path.getStartPoint, gsk.path.Path.getEndPoint or gsk.path_measure.PathMeasure.getPoint.

Note that gsk.path_point.PathPoint 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 gsk.path_point.PathPoint is used.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
PathPoint self() nothrowReturns `this`, for use in `with` statements.
int compare(gsk.path_point.PathPoint point2) nothrowReturns whether point1 is before or after point2.
bool equal(gsk.path_point.PathPoint point2) nothrowReturns whether the two path points refer to the same location on all paths.
float getCurvature(gsk.path.Path path, gsk.types.PathDirection direction, out graphene.point.Point center) nothrowCalculates the curvature of the path at the point.
float getDistance(gsk.path_measure.PathMeasure measure) nothrowReturns the distance from the beginning of the path to point.
void getPosition(gsk.path.Path path, out graphene.point.Point position) nothrowGets the position of the point.
float getRotation(gsk.path.Path path, gsk.types.PathDirection direction) nothrowGets the direction of the tangent at a given point.
void getTangent(gsk.path.Path path, gsk.types.PathDirection direction, out graphene.vec2.Vec2 tangent) nothrowGets the tangent of the path at the point.
Constructors
this(void * ptr, Flag!"Take" take)