class Gsk::PathPoint
- Gsk::PathPoint
- Reference
- Object
Overview
Represents 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::PathPoint
, use Gsk::Path#closest_point
,
Gsk::Path#start_point
, Gsk::Path#end_point
or Gsk::PathMeasure#point
.
Note that Gsk::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::PathPoint
is used.
Defined in:
lib/gi-crystal/src/auto/gsk-4.0/path_point.crConstructors
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #compare(point2 : Gsk::PathPoint) : Int32
- #copy : Gsk::PathPoint
- #distance(measure : Gsk::PathMeasure) : Float32
- #equal(point2 : Gsk::PathPoint) : Bool
- #finalize
- #free : Nil
- #position(path : Gsk::Path) : Graphene::Point
- #rotation(path : Gsk::Path, direction : Gsk::PathDirection) : Float32
- #tangent(path : Gsk::Path, direction : Gsk::PathDirection) : Graphene::Vec2
- #to_unsafe : Pointer(Void)