Generic index/value struct for widget notifications. More...
#include <glv_observer_pattern.h>
Public Member Functions | |
ChangedValue (const T &v, int i=0) | |
const T & | value () const |
Get value. | |
int | index () const |
Get index of value. |
Generic index/value struct for widget notifications.
Since some widgets have multiple values, an index is used to specify which element corresponds to the update. If a widget only has one value, an index of zero is used.
glv::ChangedValue< T >::ChangedValue | ( | const T & | v, | |
int | i = 0 | |||
) | [inline] |
[in] | v | value |
[in] | i | index of value |