Package: gsk
Function gsk:path-bounds
Lambda Listgsk:path-bounds (path bounds) ArgumentsReturn ValueThe graphene:rect-t instance or nil. Details 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 the graphene:rect-zero value. 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. Since 4.14 | See also |
#2024-11-12