get_bounds


Description:

public bool get_bounds (out Rect bounds)

Computes the bounds of the given path.

The returned bounds may be larger than necessary, because this function aims to be fast, not accurate. The bounds are guaranteed to contain the path.

It is possible that the returned rectangle has 0 width and/or height. This can happen when the path only describes a point or an axis-aligned line.

If the path is empty, `FALSE` is returned and bounds are set to zero. This is different from the case where the path is a single point at the origin, where the bounds will also be set to the zero rectangle but `TRUE` will be returned.

Parameters:

this

a `GskPath`

bounds

the bounds of the given path

Returns:

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