Skip to content

API Reference / @gtkx/cairo / Path

Abstract Class: Path ​

Defined in: path.d.ts:9

A cairo path (cairo_path_t). Instances come from the bindings that hand one back, and the bindings that take one, such as Gsk.PathBuilder.addCairoPath, accept it as is.

Constructors ​

Constructor ​

new Path(): Path

Returns ​

Path

Methods ​

toData() ​

toData(): PathData[]

Defined in: path.d.ts:11

Reads the segments of the path in drawing order.

Returns ​

PathData[]