PtPGFindIndexByPanel()

Get the index of a panel, given a pointer to the panel

Synopsis:

int PtPGFindIndexByPanel( PtWidget_t *widget,
                          PtWidget_t const *panel );

Description:

This function retrieves the index for a specified panel within the PtPanelGroup specified by the widget argument.

Returns:

The panel index, or Pt_PG_INVALID if the panel couldn't be found, or if the PtPanelGroup isn't in multiple-container mode.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtPanelGroup, PtPGFindIndexByTitle(), PtPGFindPanelByIndex(), PtPGFindPanelByTitle(), PtPGFindTitleByIndex()