Jamba
3.0.2
|
#include <GUIJmbParameter.h>
Public Member Functions | |
tresult | broadcast () const |
void | broadcast (T const &iValue) |
void | broadcast (T &&iValue) |
std::unique_ptr< FObjectCx > | connect (Parameters::IChangeListener *iChangeListener) |
std::unique_ptr< FObjectCx > | connect (Parameters::ChangeCallback iChangeCallback) |
bool | exists () const |
ParamID | getParamID () const |
T const & | getValue () const |
GUIJmbParam (GUIJmbParameter< T > *iPtr=nullptr) | |
operator T const & () const | |
T const * | operator-> () const |
void | setValue (T const &iNewValue) |
void | setValue (T &&iNewValue) |
bool | update (T const &iNewValue) |
template<class ValueModifier > | |
bool | updateIf (ValueModifier const &iValueModifier) |
Private Attributes | |
GUIJmbParameter< T > * | fPtr |
This is the main class that the plugin should use as it exposes only the necessary methods of the param as well as redefine a couple of operators which helps in writing simpler and natural code (the param behaves like T in many ways).
T | the underlying type of the param |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
The difference with update is that it does not check for equality (case when T is not comparable)
|
inline |
The difference with update is that it does not check for equality (case when T is not comparable)
|
inline |
This method is typically called by a view to change the value of the parameter. Listeners will be notified of the changes.
|
inline |
Use this flavor of update if you want to modify the value itself. ValueModifier will be called back with &fValue. The callback should return true when the value was updated, false otherwise
|
private |