|
Jamba C++ API 7.5.0
|
Wrapper to edit a single parameter. More...
#include <GUIVstParameter.h>
Inherits EditorType.
Public Member Functions | |
| tresult | commit () override |
| Editor (Editor const &)=delete | |
| Editor (GUIRawVstParamEditor iRawEditor, std::shared_ptr< IParamConverter< T > > iConverter) | |
| 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). | |
| tresult | setValue (ParamType const &iValue) override |
| Change the value of the parameter. | |
| bool | updateValue (ParamType const &iValue) override |
| Change the value of the parameter. | |
| ~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 |
|
delete |
|
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
|
private |
|
private |