Jamba C++ API
4.0.0
|
This is the main class that the plugin should use as it exposes only the necessary methods of the param as well as redefine a couple of operators which helps in writing simpler and natural code (the param behaves like T in many ways). More...
#include <GUIRawVstParameter.h>
Public Member Functions | |
std::unique_ptr< FObjectCx > | connect (Parameters::IChangeListener *iChangeListener) const |
std::unique_ptr< FObjectCx > | connect (Parameters::ChangeCallback iChangeCallback) const |
tresult | copyValueFrom (GUIRawVstParam const &iParam) |
Shortcut to copy the value from another param to this one. More... | |
std::unique_ptr< GUIRawVstParameter::EditorType > | edit () |
std::unique_ptr< GUIRawVstParameter::EditorType > | edit (ParamValue const &iValue) |
Shortcut to create an editor and set the value to it. More... | |
bool | exists () const |
ParamID | getParamID () const |
int32 | getStepCount () const |
ParamValue | getValue () const |
GUIRawVstParam (std::shared_ptr< GUIRawVstParameter > iPtr=nullptr) | |
operator ParamValue () const | |
Allow to use the param as the underlying ParamType (ex: "if(param)" in the case ParamType is bool)) More... | |
bool | operator!= (const GUIRawVstParam &rhs) const |
Allow to write param1 != param2. More... | |
GUIRawVstParam & | operator= (GUIRawVstParam const &iOther)=default |
Assignment operator: fMyParam = registerParam(...); More... | |
GUIRawVstParam & | operator= (ParamValue const &iValue) |
Allow to write param = 0.5. More... | |
bool | operator== (const GUIRawVstParam &rhs) const |
Allow to write param1 == param2. More... | |
tresult | setValue (ParamValue const &iValue) |
Sets the value of this parameter. More... | |
void | toString (String128 oString) |
Populates the oString with a string representation of this parameter. More... | |
String | toString () |
Returns a string representation of this parameter. More... | |
Private Attributes | |
std::shared_ptr< GUIRawVstParameter > | fPtr |
This is the main class that the plugin should use as it exposes only the necessary methods of the param as well as redefine a couple of operators which helps in writing simpler and natural code (the param behaves like T in many ways).
|
inline |
|
inline |
|
inline |
|
inline |
Shortcut to copy the value from another param to this one.
|
inline |
|
inline |
Shortcut to create an editor and set the value to it.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Allow to use the param as the underlying ParamType (ex: "if(param)" in the case ParamType is bool))
|
inline |
Allow to write param1 != param2.
|
default |
Assignment operator: fMyParam = registerParam(...);
|
inline |
Allow to write param = 0.5.
|
inline |
Allow to write param1 == param2.
|
inline |
Sets the value of this parameter.
Note that this is "transactional" and if you want to make further changes that spans multiple calls (ex: onMouseDown / onMouseMoved / onMouseUp) you should use an editor
|
inline |
Populates the oString with a string representation of this parameter.
|
inline |
Returns a string representation of this parameter.
|
private |