This class wraps a GUIRawVstParameter to deal with any type T.
More...
#include <GUIRawVstParameter.h>
Inherits ITGUIParameter< T >.
template<typename T>
class pongasoft::VST::GUI::Params::GUIVstParameter< T >
This class wraps a GUIRawVstParameter to deal with any type T.
◆ EditorType
◆ ParamType
◆ GUIVstParameter()
◆ ~GUIVstParameter()
◆ 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]
- Returns
- an object maintaining the connection between the parameter and the listener
Implements IGUIParameter.
◆ connect() [2/2]
- Returns
- an object maintaining the connection between the parameter and the callback
Implements IGUIParameter.
◆ edit()
◆ getNormalizedValue()
ParamValue getNormalizedValue |
( |
| ) |
const |
|
inline |
- Returns
- the current value of the parameter as a normalized value
◆ getParamID()
ParamID getParamID |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getStepCount()
int32 getStepCount |
( |
| ) |
const |
|
inlineoverridevirtual |
- Returns
- number of steps (for discrete param) or 0 for continuous
Implements IGUIParameter.
◆ getValue()
- Returns
- the current value of the parameter as a T (using the Denormalizer)
◆ resetToDefault()
tresult resetToDefault |
( |
| ) |
|
|
inlineoverridevirtual |
Resets the parameter to its default value.
Implements IGUIParameter.
◆ setNormalizedValue()
tresult setNormalizedValue |
( |
ParamValue const & |
iNormalizedValue | ) |
|
|
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
◆ setValue()
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
Implements ITGUIParameter< T >.
◆ toString() [1/2]
void toString |
( |
String128 |
oString | ) |
|
|
inline |
Populates the oString with a string representation of this parameter.
◆ toString() [2/2]
Steinberg::String toString |
( |
| ) |
|
|
inline |
Returns a string representation of this parameter.
◆ 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 >.
◆ fConverter
◆ fRawParameter
The documentation for this class was generated from the following files: