|
Jamba C++ API
5.1.1
|
Wrapper to edit a single parameter. More...
#include <GUIRawVstParameter.h>
Inherits EditorType.
Public Member Functions | |
| tresult | commit () override |
| Editor (ParamID iParamID, VstParametersSPtr iVstParameters) | |
| 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 (ParamValue const &iValue) override |
| Change the value of the parameter. More... | |
| bool | updateValue (ParamValue const &iValue) override |
| Change the value of the parameter. More... | |
| ~Editor () override | |
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();
| Editor | ( | ParamID | iParamID, |
| VstParametersSPtr | iVstParameters | ||
| ) |
|
inlineoverride |
|
override |
|
override |
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
|
override |
Change the value of the parameter.
Note that nothing happens if you have called commit or rollback already
|
override |
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 |
|
private |
|
private |