Calculate a widget's canvas and its children's bounding boxes
PhRect_t *PtChildBoundingBox( PtWidget_t *widget, PhRect_t *canvas, PhRect_t *render );
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.
A pointer to the render rectangle.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PtBasicWidgetCanvas(), PtSuperClassExtent()