pushStroke

open fun pushStroke(path: <Error class: unknown class>, stroke: <Error class: unknown class>)

Strokes the given @path with the attributes given by @stroke and an image.

The image is recorded until the next call to method@Gtk.Snapshot.pop.

Note that the strokes are subject to the same transformation as everything else, so uneven scaling will cause horizontal and vertical strokes to have different widths.

If you want to stroke the path with a color, method@Gtk.Snapshot.append_stroke may be more convenient.

Since

4.14

Parameters

path

The path to stroke

stroke

The stroke attributes