nux-1.16.0
|
A read/write property that stores the value type. More...
#include <NuxCore/Property.h>
Public Types | |
typedef VALUE_TYPE | ValueType |
typedef PropertyChangedSignal < VALUE_TYPE > | SignalBase |
typedef sigc::slot< bool, VALUE_TYPE &, VALUE_TYPE const & > | SetterFunction |
Public Member Functions | |
Property (VALUE_TYPE const &initial) | |
Property (VALUE_TYPE const &initial, SetterFunction setter_function) | |
VALUE_TYPE | operator= (VALUE_TYPE const &value) |
operator VALUE_TYPE () const | |
VALUE_TYPE | operator() () const |
VALUE_TYPE | operator() (VALUE_TYPE const &value) |
VALUE_TYPE | Get () const |
VALUE_TYPE | Set (VALUE_TYPE const &value) |
void | SetSetterFunction (SetterFunction setter_function) |
A read/write property that stores the value type.
The default setter emits the changed event if and only if the value changes. A custom setter can be provided by passing in a setter function using sigc::mem_fun or sigc::ptr_fun.
Definition at line 66 of file Property.h.