Struct

GskPathPoint

since: 4.14

Description [src]

struct GskPathPoint {
  /* No available fields */
}

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 gsk_path_get_closest_point(), gsk_path_get_start_point(), gsk_path_get_end_point() or gsk_path_measure_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.

Available since: 4.14

Instance methods

gsk_path_point_compare

Returns whether point1 is before or after point2.

since: 4.14

gsk_path_point_copy

Copies a path point.

since: 4.14

gsk_path_point_equal

Returns whether the two path points refer to the same location on all paths.

since: 4.14

gsk_path_point_free

Frees a path point copied by gsk_path_point_copy().

since: 4.14

gsk_path_point_get_curvature

Calculates the curvature of the path at the point.

since: 4.14

gsk_path_point_get_distance

Returns the distance from the beginning of the path to point.

since: 4.14

gsk_path_point_get_position

Gets the position of the point.

since: 4.14

gsk_path_point_get_rotation

Gets the direction of the tangent at a given point.

since: 4.14

gsk_path_point_get_tangent

Gets the tangent of the path at the point.

since: 4.14