package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gsk/Ocgtk_gsk/Gsk/Wrappers/Path_measure/index.html

Module Wrappers.Path_measure

type t = [ `path_measure ] Gobject.obj
val new_ : [ `path ] Gobject.obj -> t

Create a new PathMeasure

val new_with_tolerance : [ `path ] Gobject.obj -> float -> t

Create a new PathMeasure

val ref : t -> t

Increases the reference count of a `GskPathMeasure` by one.

val get_tolerance : t -> float

Returns the tolerance that the measure was created with.

val get_point : t -> float -> bool * [ `path_point ] Gobject.obj

Sets @result to the point at the given distance into the path.

An empty path has no points, so `FALSE` is returned in that case.

val get_path : t -> [ `path ] Gobject.obj

Returns the path that the measure was created for.

val get_length : t -> float

Gets the length of the path being measured.

The length is cached, so this function does not do any work.