FastLED 3.9.15
Loading...
Searching...
No Matches

◆ UISliderImpl()

fl::UISliderImpl::UISliderImpl ( const char * name,
float value = 128.0f,
float min = 1,
float max = 255,
float step = -1.f )
inline

Definition at line 56 of file ui_impl.h.

58 : mValue(value), mMin(MIN(min, max)), mMax(MAX(min, max)) {
59 FASTLED_UNUSED(name);
60 FASTLED_UNUSED(step);
61 if (value < min) {
62 mValue = min;
63 }
64 if (value > max) {
65 mValue = max;
66 }
67 }
float value() const
Definition ui_impl.h:69
#define MIN(a, b)
Definition math_macros.h:41
#define MAX(a, b)
Definition math_macros.h:37
#define FASTLED_UNUSED(x)
Definition unused.h:4

References FASTLED_UNUSED, MAX, MIN, mMax, mMin, mValue, and value().

Referenced by operator=(), and operator=().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: