Jamba
3.1.0
|
#include <GUIVstParameter.h>
Public Member Functions | |
tresult | commit () |
tresult | commit (ParamType const &iValue) |
Editor (std::unique_ptr< GUIRawVstParameter::Editor > iRawEditor, std::shared_ptr< VstParamDef< T >> iVstParamDef) | |
Editor (Editor const &)=delete | |
Editor & | operator= (Editor const &)=delete |
tresult | rollback () |
tresult | setValue (ParamType const &iValue) |
Private Attributes | |
std::unique_ptr< GUIRawVstParameter::Editor > | fRawEditor |
std::shared_ptr< VstParamDef< T > > | fVstParamDef |
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();
|
inlineexplicit |
|
delete |
|
inline |
|
inline |
|
delete |
|
inline |
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
|
inline |
Change the value of the parameter. Note that nothing happens if you have called commit or rollback already
|
private |
|
private |