Basics
Guides
API Reference
Basics
Guides
API Reference
[30:7] extends: object
Constructs GskPath objects. A path is constructed like this: c GskPath * construct_path (void) { GskPathBuilder *builder; builder = gsk_path_builder_new (); // add contours to the path here return gsk_path_builder_free_to_path (builder); Adding contours to the path can
be done in two ways. The easiest option is to use the
gsk_path_builder_add_* group of functions that add predefined contours to
the current path, either common shapes like
[method@Gsk.PathBuilder.add_circle] or by adding from other paths like
[method@Gsk.PathBuilder.add_path]. The gsk_path_builder_add_* methods
always add complete contours, and do not use or modify the current point. The
other option is to define each line and curve manually with the
gsk_path_builder_*_to group of functions. You start with a call to
[method@Gsk.PathBuilder.move_to] to set the starting point and then use
multiple calls to any of the drawing functions to move the pen along the
plane. Once you are done, you can call [method@Gsk.PathBuilder.close] to
close the path by connecting it back with a line to the starting point. This
is similar to how paths are drawn in Cairo. Note that GskPathBuilder will
reduce the degree of added Bézier curves as much as possible, to simplify
rendering.
PathBuilder (Handle = null)
Creates a new
PathBuilderby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.