Path

A data structure for holding a path. This data structure serves as the return value for cairo.context.Context.copyPath and cairo.context.Context.copyPathFlat as well the input value for cairo.context.Context.appendPath.

See #cairo_path_data_t for hints on how to iterate over the actual data within the path.

The num_data member gives the number of elements in the data array. This number is larger than the number of independent path portions (defined in #cairo_path_data_type_t), since the data includes both headers and coordinates for each portion.

Constructors

this
this(cairo.types.Status status, int numData)

Create a path.Path boxed type.

this
this(void* ptr, Flag!"Take" take)

Members

Functions

cPtr
void* cPtr(Flag!"Dup" dup)
self
Path self()

Returns this, for use in with statements.

Properties

gType
GType gType [@property getter]
numData
int numData [@property setter]

Set field numData.

numData
int numData [@property getter]

Get field numData.

status
cairo.types.Status status [@property getter]

Get field status.

status
cairo.types.Status status [@property setter]

Set field status.

Static functions

getGType
GType getGType()

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.