PathMeasure

gsk.path_measure.PathMeasure is an object that allows measurements on gsk.path.Paths such as determining the length of the path.

Many measuring operations require sampling the path length at intermediate points. Therefore, a gsk.path_measure.PathMeasure has a tolerance that determines what precision is required for such approximations.

A gsk.path_measure.PathMeasure struct is a reference counted struct and should be treated as opaque.

Constructors

this
this(gsk.path.Path path)

Creates a measure object for the given path with the default tolerance.

Members

Functions

getLength
float getLength()

Gets the length of the path being measured.

getPath
gsk.path.Path getPath()

Returns the path that the measure was created for.

getTolerance
float getTolerance()

Returns the tolerance that the measure was created with.

Static functions

newWithTolerance
gsk.path_measure.PathMeasure newWithTolerance(gsk.path.Path path, float tolerance)

Creates a measure object for the given path and tolerance.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.