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(void* ptr, Flag!"Take" take)
this
this(gsk.path.Path path)

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

Members

Functions

_cPtr
void* _cPtr(Flag!"Dup" dup)
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.

self
PathMeasure self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
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

_getGType
GType _getGType()

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.