Snapshot.pushStroke
void pushStroke(gsk.path.Path path, gsk.stroke.Stroke stroke)Strokes the given path with the attributes given by stroke and an image.
The image is recorded until the next call to [gtk.snapshot.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, [gtk.snapshot.Snapshot.appendStroke] may be more convenient.
Parameters
path | The path to stroke |
stroke | The stroke attributes |