class Gsk::PathMeasure

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.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(path : Gsk::Path) : self #

def self.new_with_tolerance(path : Gsk::Path, tolerance : Float32) : self #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def finalize #

def length : Float32 #

def path : Gsk::Path #

def point(distance : Float32) : Gsk::PathPoint #

def ref : Gsk::PathMeasure #

def to_unsafe : Pointer(Void) #

def tolerance : Float32 #

def unref : Nil #