Get data associated with a control surface
void *PtSurfaceGetData( PtWidget_t *widget, PtSurface_t *surface ); void *PtSurfaceGetDataById( PtWidget_t *widget, unsigned char surface_id );
These functions retrieve the user data stored with a control surface belonging to the given widget. They differ in the way they identify the control surface:
A pointer to the data, or NULL if either the specified surface couldn't be found, or it doesn't have any data attached to it.
PtSurfaceAddData(), PtSurfaceAddDataById(), PtSurfaceRemoveData(), PtSurfaceRemoveDataById()
Control Surfaces chapter of the Photon Programmer's Guide