getBounds

fun getBounds(bounds: <Error class: unknown class>): Boolean

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 graphene_rect_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.

Return

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

Since

4.14

Parameters

bounds

the bounds of the given path