Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
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:
PhRect_t, PtCalcCanvas() in the Photon Library Reference
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)