[Previous] [Contents] [Index] [Next]

PtCompoundRedirect()

Redirect widgets to a parent

Synopsis:

PtWidget_t *PtCompoundRedirect( 
                PtWidget_t *container,
                PtWidgetClassRef_t *child_cref );

Description:

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 calling PtContainerChildRedirect().

Returns:

A pointer to the parent of the given compound widget.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtContainerChildRedirect()


[Previous] [Contents] [Index] [Next]