18 #ifndef __PONGASOFT_VST_GUI_RAW_PARAMETER_H__ 19 #define __PONGASOFT_VST_GUI_RAW_PARAMETER_H__ 79 inline tresult
commit(ParamValue iValue)
139 parameter->toString(
getValue(), oString);
176 std::unique_ptr<Editor>
edit(ParamValue iValue)
178 auto editor =
edit();
179 editor->setValue(iValue);
243 tresult
setValue(ParamValue
const &iValue) {
return fPtr->setValue(iValue); }
263 std::unique_ptr<GUIRawVstParameter::Editor>
edit() {
return fPtr->edit(); }
270 std::unique_ptr<GUIRawVstParameter::Editor>
edit(ParamValue
const &iValue) {
return fPtr->edit(iValue); }
273 inline operator ParamValue()
const {
return fPtr->getValue(); }
285 std::unique_ptr<GUIRawVstParameter>
fPtr;
298 #endif //__PONGASOFT_VST_GUI_RAW_PARAMETER_H__ ~GUIRawVstParameter()=default
bool operator==(const GUIRawVstParam &rhs) const
Definition: GUIRawVstParameter.h:279
std::unique_ptr< GUIRawVstParameter::Editor > GUIRawVstParamEditor
Definition: GUIRawVstParameter.h:291
tresult setValue(ParamValue const &iValue)
Definition: GUIRawVstParameter.h:243
Definition: GUIRawVstParameter.h:211
std::unique_ptr< GUIRawVstParameter > fPtr
Definition: GUIRawVstParameter.h:285
tresult rollback()
Definition: GUIRawVstParameter.cpp:70
bool operator!=(const GUIRawVstParam &rhs) const
Definition: GUIRawVstParameter.h:282
GUIRawVstParameter(ParamID iParamID, VstParametersSPtr iVstParameters)
Definition: GUIRawVstParameter.cpp:85
String toString()
Definition: GUIRawVstParameter.h:145
ParamID fParamID
Definition: GUIRawVstParameter.h:101
std::unique_ptr< FObjectCx > connect(Parameters::ChangeCallback iChangeCallback) const
Definition: GUIRawVstParameter.h:194
void toString(String128 oString)
Definition: GUIRawVstParameter.h:135
GUIRawVstParam()
Definition: GUIRawVstParameter.h:214
tresult setValue(ParamValue iValue)
Definition: GUIRawVstParameter.cpp:41
tresult commit()
Definition: GUIRawVstParameter.cpp:56
tresult setValue(ParamValue iValue)
Definition: GUIRawVstParameter.h:156
tresult copyValueFrom(GUIRawVstParam const &iParam)
Definition: GUIRawVstParameter.h:248
Editor & operator=(Editor const &)=delete
void toString(String128 oString)
Definition: GUIRawVstParameter.h:253
bool fIsEditing
Definition: GUIRawVstParameter.h:105
VstParametersSPtr fVstParameters
Definition: GUIRawVstParameter.h:102
std::unique_ptr< GUIRawVstParameter::Editor > edit(ParamValue const &iValue)
Definition: GUIRawVstParameter.h:270
VstParametersSPtr fVstParameters
Definition: GUIRawVstParameter.h:201
~Editor()
Definition: GUIRawVstParameter.h:94
std::unique_ptr< FObjectCx > connect(Parameters::IChangeListener *iChangeListener) const
Definition: GUIRawVstParameter.h:186
std::function< void()> ChangeCallback
Definition: Parameters.h:57
GUIRawVstParam(GUIRawVstParam &&iPtr) noexcept
Definition: GUIRawVstParameter.h:223
GUIRawVstParam & operator=(GUIRawVstParam &&iPtr) noexcept
Definition: GUIRawVstParameter.h:226
Editor(ParamID iParamID, VstParametersSPtr iVstParameters)
Definition: GUIRawVstParameter.cpp:28
std::unique_ptr< Editor > edit(ParamValue iValue)
Definition: GUIRawVstParameter.h:176
std::unique_ptr< Editor > edit()
Definition: GUIRawVstParameter.h:166
bool exists() const
Definition: GUIRawVstParameter.h:229
ParamValue getValue() const
Definition: GUIRawVstParameter.h:237
ParamValue fInitialParamValue
Definition: GUIRawVstParameter.h:104
ParamID fParamID
Definition: GUIRawVstParameter.h:200
ParamValue getValue() const
Definition: GUIRawVstParameter.h:127
String toString()
Definition: GUIRawVstParameter.h:258
tresult commit(ParamValue iValue)
Definition: GUIRawVstParameter.h:79
ParamID getParamID() const
Definition: GUIRawVstParameter.h:232
std::shared_ptr< VstParameters > VstParametersSPtr
Definition: VstParameters.h:87
GUIRawVstParam(std::unique_ptr< GUIRawVstParameter > &&iPtr)
Definition: GUIRawVstParameter.h:217
Definition: GUIRawVstParameter.h:54
Definition: GUIRawVstParameter.h:38
ParamID getParamID() const
Definition: GUIRawVstParameter.h:119
Definition: Parameters.h:45
std::unique_ptr< GUIRawVstParameter::Editor > edit()
Definition: GUIRawVstParameter.h:263
void operator=(ParamValue const &iValue)
Definition: GUIRawVstParameter.h:276