cgv
|
#include <control.h>
Public Member Functions | |
virtual void | set_value (const T &value, void *user_data)=0 |
overload to set the value | |
virtual const T | get_value (void *user_data) const =0 |
overload to get the value | |
virtual bool | controls (const void *ptr, void *user_data) const |
the default implementation compares ptr to &get_value(). | |
reimplement the control provider for a customized control. A control provider can be used as argument to the constructor of the control class. The provider class also implements an overloaded version of the add_control method that takes a control provider as second argument instead of the reference to a value.