class Gsk::PathMeasure
- Gsk::PathMeasure
- Reference
- Object
Overview
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 Gsk::PathMeasure
has
a tolerance that determines what precision is required
for such approximations.
A Gsk::PathMeasure
struct is a reference counted struct
and should be treated as opaque.
Defined in:
lib/gi-crystal/src/auto/gsk-4.0/path_measure.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new(path : Gsk::Path) : self
- .new_with_tolerance(path : Gsk::Path, tolerance : Float32) : self
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
- #finalize
- #length : Float32
- #path : Gsk::Path
- #point(distance : Float32) : Gsk::PathPoint
- #ref : Gsk::PathMeasure
- #to_unsafe : Pointer(Void)
- #tolerance : Float32
- #unref : Nil