Jamba
3.1.0
|
#include <GUIJmbParameter.h>
Inherits pongasoft::VST::GUI::Params::IGUIJmbParameter, and FObject.
Public Types | |
using | ParamType = T |
Public Member Functions | |
std::unique_ptr< FObjectCx > | connect (Parameters::IChangeListener *iChangeListener) |
std::unique_ptr< FObjectCx > | connect (Parameters::ChangeCallback iChangeCallback) |
JmbParamDef< T > const * | getParamDefT () const |
ParamType const & | getValue () const |
ParamType & | getValue () |
GUIJmbParameter (std::shared_ptr< JmbParamDef< T >> iParamDef) | |
tresult | readFromMessage (Message const &iMessage) override |
tresult | readFromStream (IBStreamer &iStreamer) override |
void | resetToDefault () |
void | setValue (ParamType const &iValue) |
void | setValue (ParamType &&iValue) |
bool | update (ParamType const &iValue) |
template<class ValueModifier > | |
bool | updateIf (ValueModifier const &iValueModifier) |
tresult | writeToMessage (Message &oMessage) const override |
tresult | writeToStream (IBStreamer &oStreamer) const override |
void | writeToStream (std::ostream &oStream) const override |
Public Member Functions inherited from pongasoft::VST::GUI::Params::IGUIJmbParameter | |
tresult | broadcast () const |
IJmbParamDef const * | getParamDef () const |
ParamID | getParamID () const |
tresult | handleMessage (Message const &iMessage) override |
IGUIJmbParameter (std::shared_ptr< IJmbParamDef > iParamDef) | |
void | setMessageProducer (IMessageProducer *iMessageProducer) |
Protected Attributes | |
ParamType | fValue |
Protected Attributes inherited from pongasoft::VST::GUI::Params::IGUIJmbParameter | |
IMessageProducer * | fMessageProducer {} |
std::shared_ptr< IJmbParamDef > | fParamDef |
This is the templated version providing serializer methods, very similar to the GUIVstParameter concept.
T | the underlying type of the param |
using pongasoft::VST::GUI::Params::GUIJmbParameter< T >::ParamType = T |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements pongasoft::VST::GUI::Params::IGUIJmbParameter.
|
inlineoverridevirtual |
Implements pongasoft::VST::GUI::Params::IGUIJmbParameter.
|
inline |
Resets the param to its default value
|
inline |
Sets the value. The difference with update is that it does not check for equality (case when ParamType is not comparable)
|
inline |
Sets the value. The difference with update is that it does not check for equality (case when ParamType is not comparable)
|
inline |
Update the parameter with a value.
|
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
|
inlineoverridevirtual |
Implements pongasoft::VST::GUI::Params::IGUIJmbParameter.
|
inlineoverridevirtual |
Implements pongasoft::VST::GUI::Params::IGUIJmbParameter.
|
inlineoverridevirtual |
Implements pongasoft::VST::GUI::Params::IGUIJmbParameter.
|
protected |