PathBuilder.toPath

gsk.path.Path toPath()

Creates a new [gsk.path.Path] from the given builder.

The given [gsk.path_builder.PathBuilder] is reset once this function returns; you cannot call this function multiple times on the same builder instance.

This function is intended primarily for language bindings. C code should use [gsk.path_builder.PathBuilder.freeToPath].

Returns

the newly created [gsk.path.Path]

with all the contours added to the builder