![]()  | 
![]()  | 
![]()  | 
![]()  | 
Remove data from a control surface
int PtSurfaceRemoveData( PtWidget_t *widget,
                         PtSurface_t *surface );
int PtSurfaceRemoveDataById( PtWidget_t *widget,
                             unsigned char surface_id );
ph
These functions remove user data from a control surface belonging to the given widget. They differ in the way they identify the control surface:
If, when the data was added, the len argument was nonzero, the copy of the data that was made is automatically freed, otherwise no deallocation takes place.
![]()  | 
Data is automatically removed when a control surface is destroyed. | 
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PtSurfaceAddData(), PtSurfaceAddDataById(), PtSurfaceGetData(), PtSurfaceGetDataById()
Control Surfaces chapter of the Photon Programmer's Guide
![]()  | 
![]()  | 
![]()  | 
![]()  |