Redirect widgets to a parent
PtWidget_t *PtCompoundRedirect( PtWidget_t *container, PtWidgetClassRef_t *child_cref );
This function returns the parent of a compound widget, making the compound widget seem like a simple widget (i.e. users can't place widgets inside container).
This is especially useful for rejecting widgets or redirecting widgets to subordinate containers (e.g. PtScrollArea does this).
This redirector function can be added to a custom compound widget by using the Pt_SET_CHILD_REDIRECT_F manifest defined by PtContainer.
A pointer to the parent of the given compound widget.
“Container widget anatomy” in the Anatomy of a Widget chapter.