FLTK 1.5.0
|
A class prototype that allows for additional data in callbacks. More...
#include <Fl_Widget.H>
Public Member Functions | |
virtual | ~Fl_Callback_User_Data () |
Destructor. | |
Protected Member Functions | |
Fl_Callback_User_Data () | |
Protected constructor. | |
A class prototype that allows for additional data in callbacks.
Users can derive this class and pass objects of such derived classes to widget callbacks. Widgets can take ownership of the callback data, deleting the data when the widget itself is deleted.
The destructor of this class is virtual, allowing for additional code to deallocate resources when the user data is deleted.