Skip to content

Class eva::Slider

template <class TReader, unsigned short tMinPos, unsigned short tMaxPos>

ClassList > eva > Slider

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 (unsigned short aMinPos, unsigned short aMaxPos)
Gets normalized slider position with custom range.
signed short getValue ()
Gets normalized slider position.

Detailed Description

Template parameters:

  • TReader Underlying reader type
  • tMinPos Minimum analog reading
  • tMaxPos Maximum analog reading

Public Functions Documentation

function Slider

Constructs a Slider .

template<typename... Args>
inline eva::Slider::Slider (
    Args... args
) 

Parameters:

  • args Additional arguments passed to TReader constructor

function getValue [1/2]

Gets normalized slider position with custom range.

inline signed short eva::Slider::getValue (
    unsigned short aMinPos,
    unsigned short aMaxPos
) 

Parameters:

  • aMinPos Minimum analog reading
  • aMaxPos Maximum 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