#include <MappedValue.h>
◆ MappedStringListValue()
Creates a MappedStringListValue.
- Parameters
-
itemStrings | An Array of strings, one for each possible item. |
numItems | The number of possible items |
defaultIndex | The default index |
◆ ~MappedStringListValue()
daisy::MappedStringListValue::~MappedStringListValue |
( |
| ) |
|
|
inlineoverride |
◆ AppentToString()
Generates a string representation and adds it to an existing string.
- Parameters
-
string | The string to add to |
Implements daisy::MappedValue.
◆ GetAs0to1()
float daisy::MappedStringListValue::GetAs0to1 |
( |
| ) |
const |
|
overridevirtual |
Returns the 0..1 normalized representation of the value, e.g. to display a slider/knob on a UI.
Implements daisy::MappedValue.
◆ GetIndex()
int daisy::MappedStringListValue::GetIndex |
( |
| ) |
const |
|
inline |
Returns the current item index.
◆ GetIndexPtr()
const uint32_t * daisy::MappedStringListValue::GetIndexPtr |
( |
| ) |
const |
|
inline |
Returns a pointer to the current item index.
◆ GetString()
const char * daisy::MappedStringListValue::GetString |
( |
| ) |
const |
|
inline |
Returns the current item string.
◆ operator const char *()
daisy::MappedStringListValue::operator const char * |
( |
| ) |
const |
|
inline |
Returns the current item string.
◆ operator int()
daisy::MappedStringListValue::operator int |
( |
| ) |
const |
|
inline |
Returns the current item index.
◆ operator=()
Sets the current item index, clamping it to a valid item index.
◆ ResetToDefault()
void daisy::MappedStringListValue::ResetToDefault |
( |
| ) |
|
|
overridevirtual |
◆ SetFrom0to1()
void daisy::MappedStringListValue::SetFrom0to1 |
( |
float |
normalizedValue0to1 | ) |
|
|
overridevirtual |
◆ SetIndex()
void daisy::MappedStringListValue::SetIndex |
( |
uint32_t |
index | ) |
|
Sets the current item index, clamping it to a valid item index.
◆ Step()
void daisy::MappedStringListValue::Step |
( |
int16_t |
numStepsUp, |
|
|
bool |
useCoarseStepSize |
|
) |
| |
|
overridevirtual |
Steps through the items up or down. If the coarse step size is used, the value will jump to the first or last item.
Implements daisy::MappedValue.
The documentation for this class was generated from the following file: