get_requested_area


Description:

public abstract bool get_requested_area (Context cr, CanvasBounds requested_area)

This function is only intended to be used when implementing new canvas items, specifically layout items such as CanvasTable.

It gets the requested area of a child item.

Parameters:

this

a CanvasItem.

cr

a cairo context.

requested_area

a CanvasBounds to return the requested area in, in the parent's coordinate space.

Returns:

true if the item should be allocated space.