Class eva::Slider¶
template <class TReader, signed short tMinPos, signed short tMaxPos>
Maps analog readings to 0-1000 range. More...
#include <evaSlider.h>
Inherits the following classes: TReader
Public Functions¶
| Type | Name |
|---|---|
| Slider (Args... args) Constructs a Slider . |
|
| signed short | getValue (signed short aMinPos, signed short aMaxPos) Gets normalized slider position with custom range. |
| signed short | getValue () Gets normalized slider position. |
Detailed Description¶
Template parameters:
TReaderUnderlying reader typetMinPosMinimum analog readingtMaxPosMaximum analog reading
Public Functions Documentation¶
function Slider¶
Constructs a Slider .
template<typename... Args>
inline eva::Slider::Slider (
Args... args
)
Parameters:
argsAdditional arguments passed to TReader constructor
function getValue [1/2]¶
Gets normalized slider position with custom range.
inline signed short eva::Slider::getValue (
signed short aMinPos,
signed short aMaxPos
)
Parameters:
aMinPosMinimum analog readingaMaxPosMaximum analog reading
Returns:
Value from 0 to 1000
function getValue [2/2]¶
Gets normalized slider position.
inline signed short eva::Slider::getValue ()
Returns:
Value from 0 to 1000
The documentation for this class was generated from the following file src/evaSlider.h