Jamba C++ API
4.2.0
|
Wrapper to edit a single parameter. More...
#include <GUIVstParameter.h>
Inherits EditorType.
Public Member Functions | |
tresult | commit () override |
Editor (GUIRawVstParamEditor iRawEditor, std::shared_ptr< IParamConverter< T >> iConverter) | |
Editor (Editor const &)=delete | |
Editor & | operator= (Editor const &)=delete |
tresult | rollback () override |
Call this if you want to revert to the original value of the parameter (when the editor is created). More... | |
tresult | setValue (ParamType const &iValue) override |
Change the value of the parameter. More... | |
bool | updateValue (ParamType const &iValue) override |
Change the value of the parameter. More... | |
~Editor () override | |
Private Attributes | |
std::shared_ptr< IParamConverter< T > > | fConverter |
GUIRawVstParamEditor | fRawEditor |
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 |
|
inlineoverride |
|
inlineoverride |
|
inlineoverride |
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
|
inlineoverride |
Change the value of the parameter.
Note that nothing happens if you have called commit or rollback already
|
inlineoverride |
Change the value of the parameter.
Note that nothing happens if you have called commit or rollback already
true
if the value was updated
|
private |
|
private |