user_bounds_to_device


Description:

public void user_bounds_to_device (Context cr, CanvasBounds bounds)

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

It converts the item's bounds to a bounding box in the canvas (device) coordinate space.

Parameters:

this

a CanvasItemSimple.

cr

a cairo context.

bounds

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