Path.getStrokeBounds

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.

class Path
bool
getStrokeBounds

Parameters

stroke gsk.stroke.Stroke

stroke parameters

bounds graphene.rect.Rect

the bounds to fill in

Return Value

Type: bool

TRUE if the path has bounds, FALSE if the path is known to be empty and have no bounds.