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 <GUIJmbParameter.h>
Inherits Dereferenceable< GUIJmbParam< T > >.
template<typename T>
class pongasoft::VST::GUI::Params::GUIJmbParam< T >
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).
- Template Parameters
-
T | the underlying type of the param |
◆ Editor
◆ EditorType
◆ ParamType
◆ GUIJmbParam()
◆ broadcast() [1/3]
tresult broadcast |
( |
| ) |
const |
|
inline |
◆ broadcast() [2/3]
void broadcast |
( |
T const & |
iValue | ) |
|
|
inline |
◆ broadcast() [3/3]
void broadcast |
( |
T && |
iValue | ) |
|
|
inline |
◆ connect() [1/2]
◆ connect() [2/2]
◆ edit() [1/2]
- Returns
- the editor to change the parameter (commit/rollback)
◆ edit() [2/2]
Editor edit |
( |
T const & |
iValue | ) |
|
|
inline |
- Parameters
-
- Returns
- the editor to change the parameter (commit/rollback)
◆ exists()
◆ getParamID()
ParamID getParamID |
( |
| ) |
const |
|
inline |
◆ getValue()
T const& getValue |
( |
| ) |
const |
|
inline |
◆ operator *()
constexpr T const& operator * |
( |
| ) |
const |
|
inline |
allow writing *param to access the underlying value (or in other words, *param
is the same param.value()
)
◆ operator T const &()
operator T const & |
( |
| ) |
const |
|
inline |
◆ operator->()
constexpr T const* operator-> |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
Assignment operator: fMyParam = registerParam(...);
◆ operator=() [2/2]
Allow to write param = 3.0.
◆ resetToDefault()
tresult resetToDefault |
( |
| ) |
|
|
inline |
Resets the param to its default value.
◆ setValue() [1/2]
void setValue |
( |
T const & |
iNewValue | ) |
|
|
inline |
The difference with update is that it does not check for equality (case when T is not comparable)
◆ setValue() [2/2]
void setValue |
( |
T && |
iNewValue | ) |
|
|
inline |
The difference with update is that it does not check for equality (case when T is not comparable)
◆ toUTF8String()
std::string toUTF8String |
( |
int32 |
iPrecision | ) |
const |
|
inline |
Returns the current value of the parameter as a string (which is properly UTF-8 encoded).
- Parameters
-
iPrecision | if iPrecision < 0 the parameter is free to use whichever precision is tied to the parameter otherwise it should use the one provided |
◆ update()
bool update |
( |
T const & |
iNewValue | ) |
|
|
inline |
This method is typically called by a view to change the value of the parameter.
Listeners will be notified of the changes.
◆ updateIf()
bool updateIf |
( |
ValueModifier const & |
iValueModifier | ) |
|
|
inline |
Use this flavor of update if you want to modify the value itself.
ValueModifier will be called back with &fValue. The callback should return true when the value was updated, false otherwise
◆ value()
◆ fPtr
The documentation for this class was generated from the following file: