Compilation Units
Tagged Types
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 GskPathMeasure has a tolerance that determines what precision is required for such approximations.
A GskPathMeasure struct is a reference counted struct and should be treated as opaque.
<gtkada_demo>create_paths.adb</gtkada_demo>
function From_Object (Object : System.Address) return Gsk_Path_Measure
function From_Object_Free (B : access Gsk_Path_Measure'Class) return Gsk_Path_Measure
function Get_Length (Self : Gsk_Path_Measure) return Interfaces.C.C_float
Gets the length of the path being measured. The length is cached, so this function does not do any work. Since: gtk+ 4.14
the length of the path measured by Self
function Get_Path (Self : Gsk_Path_Measure) return Gsk.Path.Gsk_Path
Returns the path that the measure was created for. Since: gtk+ 4.14
the path of Self. Has transfer-ownership='none'.
function Get_Point
(Self : Gsk_Path_Measure;
Distance : Interfaces.C.C_float;
Result : not null access Gsk.Path_Point.Gsk_Path_Point)
return Boolean
Gets the point at the given distance into the path. An empty path has no points, so false is returned in that case. Since: gtk+ 4.14
the distance
return location for the point
true if Result was set
function Get_Tolerance
(Self : Gsk_Path_Measure) return Interfaces.C.C_float
Returns the tolerance that the measure was created with. Since: gtk+ 4.14
the tolerance of Self
function Get_Type return Glib.GType
type Gsk_Path_Measure is new Glib.C_Boxed with null record;
function Gsk_Path_Measure_New
(Path : Gsk.Path.Gsk_Path) return Gsk_Path_Measure
Creates a measure object for the given Path with the default tolerance. Since: gtk+ 4.14
the path to measure
function Gsk_Path_Measure_New_With_Tolerance
(Path : Gsk.Path.Gsk_Path;
Tolerance : Interfaces.C.C_float) return Gsk_Path_Measure
Creates a measure object for the given Path and Tolerance. Since: gtk+ 4.14
the path to measure
the tolerance for measuring operations
procedure Gtk_New (Self : out Gsk_Path_Measure; Path : Gsk.Path.Gsk_Path)
Creates a measure object for the given Path with the default tolerance. Since: gtk+ 4.14
the path to measure
procedure Gtk_New_With_Tolerance
(Self : out Gsk_Path_Measure;
Path : Gsk.Path.Gsk_Path;
Tolerance : Interfaces.C.C_float)
Creates a measure object for the given Path and Tolerance. Since: gtk+ 4.14
the path to measure
the tolerance for measuring operations
Null_Gsk_Path_Measure : constant Gsk_Path_Measure;
function Ref (Self : Gsk_Path_Measure) return Gsk_Path_Measure
Increases the reference count of a GskPathMeasure by one. Since: gtk+ 4.14
the passed in GskPathMeasure. Has transfer-ownership='full'.
procedure Unref (Self : Gsk_Path_Measure)
Decreases the reference count of a GskPathMeasure by one. If the resulting reference count is zero, frees the object. Since: gtk+ 4.14