18 #ifndef __PONGASOFT_VST_GUI_PARAMETER_H__ 19 #define __PONGASOFT_VST_GUI_PARAMETER_H__ 56 inline explicit Editor(std::unique_ptr<GUIRawVstParameter::Editor> iRawEditor,
202 auto editor =
edit();
203 editor->setValue(iValue);
307 std::unique_ptr<typename GUIVstParameter<T>::Editor>
edit() {
return fPtr->edit(); }
314 std::unique_ptr<typename GUIVstParameter<T>::Editor>
edit(T
const &iValue) {
return fPtr->edit(iValue); }
317 inline operator T()
const {
return fPtr->getValue(); }
339 std::unique_ptr<GUIVstParameter<T>>
fPtr;
356 #endif // __PONGASOFT_VST_GUI_PARAMETER_H__ T getValue() const
Definition: GUIVstParameter.h:264
Editor & operator=(Editor const &)=delete
std::shared_ptr< VstParamDef< T > > fVstParamDef
Definition: GUIVstParameter.h:106
tresult setValue(ParamType const &iValue)
Definition: GUIVstParameter.h:70
int32 getStepCount() const
Definition: GUIVstParameter.h:292
std::shared_ptr< VstParamDef< T > > fVstParamDef
Definition: GUIVstParameter.h:225
bool operator==(const GUIVstParam< T > &rhs) const
Definition: GUIVstParameter.h:323
GUIVstParam(GUIVstParam< T > &&iPtr) noexcept
Definition: GUIVstParameter.h:250
tresult commit()
Definition: GUIVstParameter.h:79
GUIVstParam(std::unique_ptr< GUIVstParameter< T >> &&iPtr)
Definition: GUIVstParameter.h:244
std::unique_ptr< GUIRawVstParameter::Editor > fRawEditor
Definition: GUIVstParameter.h:105
ParamValue getNormalizedValue() const
Definition: GUIVstParameter.h:143
std::unique_ptr< GUIVstParameter< T > > fPtr
Definition: GUIVstParameter.h:339
Editor(std::unique_ptr< GUIRawVstParameter::Editor > iRawEditor, std::shared_ptr< VstParamDef< T >> iVstParamDef)
Definition: GUIVstParameter.h:56
T ParamType
Definition: GUIVstParameter.h:37
std::unique_ptr< typename GUIVstParameter< T >::Editor > edit()
Definition: GUIVstParameter.h:307
String toString()
Definition: GUIVstParameter.h:182
int32 getStepCount() const
Definition: GUIVstParameter.h:169
Definition: GUIVstParameter.h:238
ParamType getValue() const
Definition: GUIVstParameter.h:135
tresult commit(ParamType const &iValue)
Definition: GUIVstParameter.h:89
ParamValue getNormalizedValue() const
Definition: GUIVstParameter.h:269
ParamID getParamID() const
Definition: GUIVstParameter.h:259
GUIVstParam< T > & operator=(GUIVstParam< T > &&iPtr) noexcept
Definition: GUIVstParameter.h:253
GUIVstParameter(std::shared_ptr< GUIRawVstParameter > iRawParameter, std::shared_ptr< VstParamDef< T >> iVstParamDef)
Definition: GUIVstParameter.h:111
std::unique_ptr< typename GUIVstParameter< T >::Editor > GUIVstParamEditor
Definition: GUIVstParameter.h:346
tresult setValue(ParamType const &iValue)
Definition: GUIVstParameter.h:152
tresult setValue(T const &iValue)
Definition: GUIVstParameter.h:275
std::unique_ptr< FObjectCx > connect(Parameters::IChangeListener *iChangeListener) const
Definition: GUIVstParameter.h:210
std::unique_ptr< FObjectCx > connect(Parameters::ChangeCallback iChangeCallback) const
Definition: GUIVstParameter.h:336
tresult rollback()
Definition: GUIVstParameter.h:99
tresult copyValueFrom(GUIVstParam< T > const &iParam)
Definition: GUIVstParameter.h:287
std::unique_ptr< Editor > edit(ParamType iValue)
Definition: GUIVstParameter.h:200
std::shared_ptr< GUIRawVstParameter > fRawParameter
Definition: GUIVstParameter.h:224
std::function< void()> ChangeCallback
Definition: Parameters.h:57
std::unique_ptr< FObjectCx > connect(Parameters::ChangeCallback iChangeCallback) const
Definition: GUIVstParameter.h:218
Definition: GUIVstParameter.h:34
tresult setNormalizedValue(ParamValue const &iNormalizedValue)
Definition: GUIVstParameter.h:161
tresult setNormalizedValue(ParamValue const &iNormalizedValue)
Definition: GUIVstParameter.h:281
bool exists() const
Definition: GUIVstParameter.h:256
std::unique_ptr< typename GUIVstParameter< T >::Editor > edit(T const &iValue)
Definition: GUIVstParameter.h:314
std::unique_ptr< FObjectCx > connect(Parameters::IChangeListener *iChangeListener) const
Definition: GUIVstParameter.h:331
GUIVstParam()
Definition: GUIVstParameter.h:241
void toString(String128 oString)
Definition: GUIVstParameter.h:297
Definition: GUIVstParameter.h:53
Definition: ParamDef.h:129
void operator=(T const &iValue)
Definition: GUIVstParameter.h:320
void toString(String128 oString)
Definition: GUIVstParameter.h:174
std::unique_ptr< Editor > edit()
Definition: GUIVstParameter.h:190
~GUIVstParameter()
Definition: GUIVstParameter.h:121
Definition: Parameters.h:45
bool operator!=(const GUIVstParam &rhs) const
Definition: GUIVstParameter.h:326
String toString()
Definition: GUIVstParameter.h:302
ParamID getParamID() const
Definition: GUIVstParameter.h:127