getBounds method
Returns the axis aligned bounding box (AABB) of the region and mesh attachments for the current pose. @param outX The horizontal distance between the skeleton origin and the left side of the AABB. @param outY The vertical distance between the skeleton origin and the bottom side of the AABB. @param outWidth The width of the AABB @param outHeight The height of the AABB. @param outVertexBuffer Reference to hold a Vector of floats. This method will assign it with new floats as needed.
Implementation
Bounds getBounds() {
final nativeBounds = _bindings.spine_skeleton_get_bounds(_skeleton);
final bounds = Bounds(
_bindings.spine_bounds_get_x(nativeBounds),
_bindings.spine_bounds_get_y(nativeBounds),
_bindings.spine_bounds_get_width(nativeBounds),
_bindings.spine_bounds_get_height(nativeBounds));
_allocator.free(nativeBounds);
return bounds;
}