Class (GI Struct)

Gsk-4.0GskPathMeasureSince 4.14

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.

4.14

Index

Constructors

Properties

Methods

  • Gets the length of the path being measured.

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

    Returns number

    the length of the path measured by self

  • Gets the point at the given distance into the path.

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

    Parameters

    • distance: number

      the distance

    Returns [boolean, PathPoint]

    true if result was set

  • Returns the tolerance that the measure was created with.

    Returns number

    the tolerance of self