PtSurfaceToFront(), PtSurfaceToFrontById()

Move a control surface in front of all other control surfaces belonging to a widget

Synopsis:

int PtSurfaceToFront( PtWidget_t *widget,
                      PtSurface_t *surface );

int PtSurfaceToFrontById( PtWidget_t *widget,
                          unsigned char surface_id );

Library:

ph

Description:

These functions move a surface in front of all other surfaces belonging to the given widget. They differ in how they identify the control surface:

PtSurfaceToFront()
Uses the surface argument, which points to a PtSurface_t structure that describes the control surface. This pointer must not be NULL.
PtSurfaceToFrontById()
Searches the control surfaces belonging to the widget for the one with an ID of surface_id.

Returns:

0
Success.
-1
The specified surface couldn't be found.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtInsertSurface(), PtInsertSurfaceById(), PtSurfaceBrotherBehind(), PtSurfaceBrotherInFront(), PtSurfaceInBack(), PtSurfaceInFront(), PtSurfaceToBack(), PtSurfaceToBackById()

Control Surfaces chapter of the Photon Programmer's Guide