Calculate the extent of a control surface
PhRect_t *PtSurfaceExtent( PtWidget_t *widget, PtSurface_t const *surface, PhRect_t *extent ); PhRect_t *PtSurfaceExtentById( PtWidget_t *widget, unsigned char surface_id, PhRect_t *extent );
ph
These functions calculate the extent of a control surface belonging to a given widget. They differ in how they identify the control surface:
The extent argument points to a PhRect_t structure in which the result is stored.
The same pointer as extent. PtSurfaceExtentById() returns NULL if it can't find the control surface with the given ID.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PhRect_t, PtCalcSurface(), PtCalcSurfaceByAction(), PtCalcSurfaceById(), PtSurfaceCalcBoundingBox(), PtSurfaceCalcBoundingBoxById(), PtSurfaceRect(), PtSurfaceRectById()
Control Surfaces chapter of the Photon Programmer's Guide