[Previous] [Contents] [Index] [Next]

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 );

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.

If the canvas parameter isn't NULL, it's set to the canvas rectangle of the PtBasic-class level for the specified widget.

The render parameter is set to this bounding box and is also the returned pointer. The render parameter must be provided.

Returns:

A pointer to the render rectangle.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtBasicWidgetCanvas(), PtSuperClassExtent()


[Previous] [Contents] [Index] [Next]