Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
PtSetExtentFromArea()
Calculate the extent of a widget
Synopsis:
PhRect_t * PtSetExtentFromArea(
PtWidget_t *widget,
PhArea_t const *area,
PhRect_t *extent );
Arguments:
- widget
- A pointer to the widget for which you want to calculate the extent.
- area
- A pointer to a PhArea_t structure that defines the area that the extent will be based on.
- extent
- A pointer to a PhRect_t where the function can store the extent.
Description:
This function calculates the extent rectangle of widget and places the result in the structure pointed to by extent. The extent is calculated based on the area, and the widget's borders only (i.e. no anchoring or resize policy is enforced).
Returns:
The same pointer as the extent rectangle.
Classification:
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
PhArea_t, PhRect_t in the Photon Library Reference
![]() |
![]() |
![]() |
![]() |

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