Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PtCalcSurface()

Force a control surface to calculate its geometry

Synopsis:

void PtCalcSurface( PtWidget_t *widget,
                    PtSurface_t *surface );

Library:

ph

Description:

PtCalcSurface() forces a control surface to calculate its geometry.

The widget argument specifies the widget owning the surface, while surface points to the data structure that describes the control surface. Both pointers must not be NULL. This function is useful if the geometry of one surface depends on that of another.


Note: This function call amounts to a no-op if the geometry for the specified surface has already been calculated for this pre/post-extent cycle.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtCalcSurfaceByAction(), PtCalcSurfaceById(), PtSurfaceCalcBoundingBox(), PtSurfaceCalcBoundingBoxById(), PtSurfaceExtent(), PtSurfaceExtentById(), PtSurfaceRect(), PtSurfaceRectById()

Control Surfaces chapter of the Photon Programmer's Guide