PtChildBoundingBox()

Calculate a widget's canvas and its children's bounding boxes

Synopsis:

PhRect_t *PtChildBoundingBox( PtWidget_t *widget, 
                              PhRect_t *canvas, 
                              PhRect_t *render );

Arguments:

widget
A pointer to the widget for which you want to calculate the canvas.
canvas
A pointer to a PhRect_t structure (see the Photon Library Reference). If this pointer isn't NULL, the rectangle it points to is set to the canvas rectangle of the PtBasic-class level for the specified widget.
render
A pointer to a PhRect_t structure in which the function stores the bounding box. You must provide a non-NULL pointer for this argument.

Description:

This function calculates the canvas of widget and finds the bounding box of widget's children relative to the origin of the parent's position.

Returns:

The same pointer as the render argument.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtSuperClassExtent()

PhRect_t, PtCalcCanvas() in the Photon Library Reference