Package: gsk

Function gsk:path-stroke-bounds

Lambda List

gsk:path-stroke-bounds (path stroke bounds)

Arguments

path -- a gsk:path instance
stroke -- a gsk:stroke instance with the stroke parameters
bounds -- a graphene:rect-t instance with the bounds to fill in

Return Value

The graphene:rect-t instance with the bounds, or nil.

Details

Computes the bounds for stroking the given path with the parameters in stroke. The returned bounds may be larger than necessary, because this function aims to be fast, not accurate. The bounds are guaranteed to contain the area affected by the stroke, including protrusions like miters.

Since 4.14
 

See also

#2024-11-12