Jamba
3.2.0
|
#include <GUIRawVstParameter.h>
Public Member Functions | |
tresult | commit () |
tresult | commit (ParamValue iValue) |
Editor (ParamID iParamID, VstParametersSPtr iVstParameters) | |
Editor (Editor const &)=delete | |
Editor & | operator= (Editor const &)=delete |
tresult | rollback () |
tresult | setValue (ParamValue iValue) |
~Editor () | |
Private Attributes | |
ParamValue | fInitialParamValue |
bool | fIsEditing |
ParamID | fParamID |
VstParametersSPtr | fVstParameters |
Wrapper to edit a single parameter. Usage:
// from a CView::onMouseDown callback fMyParamEditor = fParameter.edit(myParamID); fParamEditor->setValue(myValue);
// from a CView::onMouseMoved callback fParamEditor->setValue(myValue);
// from a CView::onMouseUp/onMouseCancelled callback fMyParamEditor->commit();
pongasoft::VST::GUI::Params::GUIRawVstParameter::Editor::Editor | ( | ParamID | iParamID, |
VstParametersSPtr | iVstParameters | ||
) |
|
delete |
|
inline |
Destructor which calls rollback by default
tresult pongasoft::VST::GUI::Params::GUIRawVstParameter::Editor::commit | ( | ) |
|
inline |
|
delete |
tresult pongasoft::VST::GUI::Params::GUIRawVstParameter::Editor::rollback | ( | ) |
Call this if you want to revert to the original value of the parameter (when the editor is created). This has no effect if commit() has already been called
tresult pongasoft::VST::GUI::Params::GUIRawVstParameter::Editor::setValue | ( | ParamValue | iValue | ) |
Change the value of the parameter. Note that nothing happens if you have called commit or rollback already
|
private |
|
private |
|
private |
|
private |