Skip to content

API Reference / @gtkx/cairo / Path

Abstract Class: Path ​

Defined in: packages/cairo/src/path.ts:67

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: packages/cairo/src/path.ts:69

Reads the segments of the path in drawing order.

Returns ​

PathData[]