Get the bounding box of a control surface
PhRect_t *PtSurfaceRect( PtSurface_t *surface, PhRect_t *rect ); PhRect_t *PtSurfaceRectById( PtWidget_t *widget, unsigned char surface_id, PhRect_t *rect );
These functions retrieve the bounding box of a control surface. They differ in the way they identify the control surface:
If rect is non-NULL, the result is copied there and the functions return rect. Otherwise, a pointer to the surface's internal data is returned.
PtSurfaceRect() is a macro.
PhRect_t, PtCalcSurface(), PtCalcSurfaceByAction(), PtCalcSurfaceById(), PtSurfaceCalcBoundingBox(), PtSurfaceCalcBoundingBoxById(), PtSurfaceExtent(), PtSurfaceExtentById()
Control Surfaces chapter of the Photon Programmer's Guide