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 51 of file ui_impl.h.

53 : mValue(value), mMin(MIN(min, max)), mMax(MAX(min, max)) {
54 FASTLED_UNUSED(name);
55 FASTLED_UNUSED(step);
56 if (value < min) {
57 mValue = min;
58 }
59 if (value > max) {
60 mValue = max;
61 }
62 }
float value() const
Definition ui_impl.h:64
#define MIN(a, b)
Definition math_macros.h:15
#define MAX(a, b)
Definition math_macros.h:11
#define FASTLED_UNUSED(x)
Definition unused.h:3

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

Referenced by fl::UISlider::UISlider(), fl::UISlider::FL_NO_COPY(), operator=(), and operator=().

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