Jamba
3.0.2
|
#include <GUIVstParameter.h>
Public Member Functions | |
std::unique_ptr< FObjectCx > | connect (Parameters::IChangeListener *iChangeListener) const |
std::unique_ptr< FObjectCx > | connect (Parameters::ChangeCallback iChangeCallback) const |
tresult | copyValueFrom (GUIVstParam< T > const &iParam) |
std::unique_ptr< typename GUIVstParameter< T >::Editor > | edit () |
std::unique_ptr< typename GUIVstParameter< T >::Editor > | edit (T const &iValue) |
bool | exists () const |
ParamValue | getNormalizedValue () const |
ParamID | getParamID () const |
T | getValue () const |
GUIVstParam () | |
GUIVstParam (std::unique_ptr< GUIVstParameter< T >> &&iPtr) | |
GUIVstParam (GUIVstParam< T > &iPtr)=delete | |
GUIVstParam (GUIVstParam< T > &&iPtr) noexcept | |
operator T () const | |
bool | operator!= (const GUIVstParam &rhs) const |
GUIVstParam< T > & | operator= (GUIVstParam< T > &&iPtr) noexcept |
void | operator= (T const &iValue) |
bool | operator== (const GUIVstParam< T > &rhs) const |
tresult | setNormalizedValue (ParamValue const &iNormalizedValue) |
tresult | setValue (T const &iValue) |
void | toString (String128 oString) |
String | toString () |
Private Attributes | |
std::unique_ptr< GUIVstParameter< T > > | 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).
T | the underlying type of the param |
|
inline |
|
inlineexplicit |
|
delete |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
Shortcut to copy the value from another param to this one. Implementation note: uses normalized value as this is faster and avoid math precision loss in normalize/denormalize
|
inline |
|
inline |
Shortcut to create an editor and set the value to it
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
Sets the value of this parameter as a normalized value. 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 |
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 |