#include <MappedValue.h>
Public Member Functions | |
virtual | ~MappedValue () |
virtual void | AppentToString (FixedCapStrBase< char > &string) const =0 |
virtual void | ResetToDefault ()=0 |
virtual float | GetAs0to1 () const =0 |
virtual void | SetFrom0to1 (float normalizedValue0to1)=0 |
virtual void | Step (int16_t numStepsUp, bool useCoarseStepSize)=0 |
|
inlinevirtual |
|
pure virtual |
Generates a string representation and adds it to an existing string.
string | The string to add to |
Implemented in daisy::MappedFloatValue, daisy::MappedIntValue, and daisy::MappedStringListValue.
Returns the 0..1 normalized representation of the value, e.g. to display a slider/knob on a UI.
Implemented in daisy::MappedFloatValue, daisy::MappedIntValue, and daisy::MappedStringListValue.
Resets the value to its default.
Implemented in daisy::MappedFloatValue, daisy::MappedIntValue, and daisy::MappedStringListValue.
Sets the value so that GetAs0to1()
returns normalizedValue0to1
.
Implemented in daisy::MappedFloatValue, daisy::MappedIntValue, and daisy::MappedStringListValue.
Steps the value up by whatever is appropriate. This function can be used to increment/decrement the value with buttons/encoders while making use of the specific mapping.
Implemented in daisy::MappedFloatValue, daisy::MappedIntValue, and daisy::MappedStringListValue.