This parameter is not tied to any parameter definition/registration and is primarily used by the optional parameter.
More...
#include <GUIValParameter.h>
Inherits ITGUIParameter< T >, and FObject.
template<typename T>
class pongasoft::VST::GUI::Params::GUIValParameter< T >
This parameter is not tied to any parameter definition/registration and is primarily used by the optional parameter.
- Private API
- This is part of the internal/private API of Jamba and should not be used directly.
◆ EditorType
◆ ParamType
◆ GUIValParameter()
◆ ~GUIValParameter()
◆ accessValue()
◆ asDiscreteParameter()
Converts this parameter into a discrete parameter.
The discrete parameter returned is a parameter with an underlying backing type int32 and values in the discrete range [0, getStepCount()] or [0, iStepCount] if getStepCount() <= 0.
- Parameters
-
| iStepCount | if this parameter already defines a step count (getStepCount() > 0), then this parameter is ignored, otherwise it is used to convert this parameter into a discrete parameter with iStepCount steps. |
- Returns
- the discrete parameter or
nullptr if this parameter cannot be converted to a discrete parameter.
Implements IGUIParameter.
◆ connect() [1/2]
◆ connect() [2/2]
◆ edit()
◆ getParamID()
| ParamID getParamID |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getStepCount()
| int32 getStepCount |
( |
| ) |
const |
|
inlineoverridevirtual |
When a parameter is a discrete parameter (which means its underlying backing type is an int32 with values in the discrete range [0, getStepCount()]), this method will return the number of steps (> 0).
- Note
- Although a parameter may not be a discrete parameter itself, the method
asDiscreteParameter(int32) may be able to convert/adapt it to one.
- Returns
- the number of steps which is
> 0 if and only if this parameter is a discrete parameter.
Implements IGUIParameter.
◆ getValue() [1/2]
◆ getValue() [2/2]
◆ resetToDefault()
| tresult resetToDefault |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setParamID()
| void setParamID |
( |
ParamID |
iParamID | ) |
|
|
inline |
◆ setValue()
Sets the value.
The difference with update is that it does not check for equality (case when ParamType is not comparable)
Implements ITGUIParameter< T >.
◆ toUTF8String()
| std::string toUTF8String |
( |
int32 |
iPrecision | ) |
const |
|
inlineoverridevirtual |
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 |
Implements IGUIParameter.
◆ update()
Update the parameter with a value.
- Returns
- true if the value was actually updated, false if it is the same
Implements ITGUIParameter< T >.
◆ 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 (of type T *). The callback should return true when the value was updated, false otherwise
◆ fDefaultValue
◆ fParamID
◆ fValue
The documentation for this class was generated from the following file: