18 #ifndef __PONGASOFT_VST_GUI_PARAMETER_H__ 19 #define __PONGASOFT_VST_GUI_PARAMETER_H__ 56 inline explicit Editor(std::unique_ptr<GUIRawVstParameter::Editor> iRawEditor,
197 auto editor =
edit();
198 editor->setValue(iValue);
297 std::unique_ptr<typename GUIVstParameter<T>::Editor>
edit() {
return fPtr->edit(); }
304 std::unique_ptr<typename GUIVstParameter<T>::Editor>
edit(T
const &iValue) {
return fPtr->edit(iValue); }
307 inline operator T()
const {
return fPtr->getValue(); }
329 std::unique_ptr<GUIVstParameter<T>>
fPtr;
346 #endif // __PONGASOFT_VST_GUI_PARAMETER_H__ T getValue() const
Definition: GUIVstParameter.h:259
Editor & operator=(Editor const &)=delete
std::shared_ptr< VstParamDef< T > > fVstParamDef
Definition: GUIVstParameter.h:106
tresult setValue(ParamType const &iValue)
Definition: GUIVstParameter.h:70
std::shared_ptr< VstParamDef< T > > fVstParamDef
Definition: GUIVstParameter.h:220
bool operator==(const GUIVstParam< T > &rhs) const
Definition: GUIVstParameter.h:313
GUIVstParam(GUIVstParam< T > &&iPtr) noexcept
Definition: GUIVstParameter.h:245
tresult commit()
Definition: GUIVstParameter.h:79
GUIVstParam(std::unique_ptr< GUIVstParameter< T >> &&iPtr)
Definition: GUIVstParameter.h:239
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:329
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:297
String toString()
Definition: GUIVstParameter.h:177
Definition: GUIVstParameter.h:233
ParamType getValue() const
Definition: GUIVstParameter.h:135
tresult commit(ParamType const &iValue)
Definition: GUIVstParameter.h:89
ParamValue getNormalizedValue() const
Definition: GUIVstParameter.h:264
ParamID getParamID() const
Definition: GUIVstParameter.h:254
GUIVstParam< T > & operator=(GUIVstParam< T > &&iPtr) noexcept
Definition: GUIVstParameter.h:248
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:336
tresult setValue(ParamType const &iValue)
Definition: GUIVstParameter.h:152
tresult setValue(T const &iValue)
Definition: GUIVstParameter.h:270
std::unique_ptr< FObjectCx > connect(Parameters::IChangeListener *iChangeListener) const
Definition: GUIVstParameter.h:205
std::unique_ptr< FObjectCx > connect(Parameters::ChangeCallback iChangeCallback) const
Definition: GUIVstParameter.h:326
tresult rollback()
Definition: GUIVstParameter.h:99
tresult copyValueFrom(GUIVstParam< T > const &iParam)
Definition: GUIVstParameter.h:282
std::unique_ptr< Editor > edit(ParamType iValue)
Definition: GUIVstParameter.h:195
std::shared_ptr< GUIRawVstParameter > fRawParameter
Definition: GUIVstParameter.h:219
std::function< void()> ChangeCallback
Definition: Parameters.h:57
std::unique_ptr< FObjectCx > connect(Parameters::ChangeCallback iChangeCallback) const
Definition: GUIVstParameter.h:213
Definition: GUIVstParameter.h:34
tresult setNormalizedValue(ParamValue const &iNormalizedValue)
Definition: GUIVstParameter.h:161
tresult setNormalizedValue(ParamValue const &iNormalizedValue)
Definition: GUIVstParameter.h:276
bool exists() const
Definition: GUIVstParameter.h:251
std::unique_ptr< typename GUIVstParameter< T >::Editor > edit(T const &iValue)
Definition: GUIVstParameter.h:304
std::unique_ptr< FObjectCx > connect(Parameters::IChangeListener *iChangeListener) const
Definition: GUIVstParameter.h:321
GUIVstParam()
Definition: GUIVstParameter.h:236
void toString(String128 oString)
Definition: GUIVstParameter.h:287
Definition: GUIVstParameter.h:53
Definition: ParamDef.h:129
void operator=(T const &iValue)
Definition: GUIVstParameter.h:310
void toString(String128 oString)
Definition: GUIVstParameter.h:169
std::unique_ptr< Editor > edit()
Definition: GUIVstParameter.h:185
~GUIVstParameter()
Definition: GUIVstParameter.h:121
Definition: Parameters.h:45
bool operator!=(const GUIVstParam &rhs) const
Definition: GUIVstParameter.h:316
String toString()
Definition: GUIVstParameter.h:292
ParamID getParamID() const
Definition: GUIVstParameter.h:127