Package: gtk

Function gtk:snapshot-push-stroke

Lambda List

gtk:snapshot-push-stroke (snapshot path stroke)

Arguments

snapshot -- a gtk:snapshot object
path -- a gsk:path instance for the path to stroke
stroke -- a gsk:stroke instance for the stroke attributes

Details

Strokes the given path with the attributes given by stroke and an image. The image is recorded until the next call to the gtk:snapshot-pop function.

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, the gtk:snapshot-append-stroke function may be more convenient.

Since 4.14
 

See also

2025-2-12