PtFindContainer()

Return the nearest container parent

Synopsis:

PtWidget_t *PtFindContainer( PtWidget_t *widget );

Library:

ph

Description:

This function returns the nearest container parent (which could be widget itself).


Note: Some container widgets, including PtDivider, PtMenuBar, PtMultiText, and PtScrollArea redirect children to an alternate parent. For all container widgets, it's best to call PtValidParent() to determine the “real” parent of the children.

Returns:

A pointer to the nearest container parent of widget, or NULL if no container parent was found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No