get_path_bounds


Description:

public void get_path_bounds (Context cr, out CanvasBounds bounds)

This function is intended to be used by subclasses of CanvasItemSimple, typically in their update or get_requested_area methods.

It calculates the bounds of the current path, using the item's style settings, and stores the results in the given CanvasBounds struct.

The returned bounds contains the bounding box of the path in device space, converted to user space coordinates. To calculate the bounds completely in user space, use identity_matrix to temporarily reset the current transformation matrix to the identity matrix.

Parameters:

this

a CanvasItemSimple.

cr

a cairo context.

bounds

the CanvasBounds struct to store the resulting bounding box.