user_bounds_to_parent


Description:

public void user_bounds_to_parent (Context cr, CanvasBounds bounds)

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

It converts the item's bounds to a bounding box in its parent's coordinate space. If the item has no transformation matrix set then no conversion is needed.

Parameters:

this

a CanvasItemSimple.

cr

a cairo context.

bounds

the bounds of the item, in the item's coordinate space.