FastLED 3.9.15
Loading...
Searching...
No Matches
UISlider Class Reference

Detailed Description

Examples
FxEngine.ino.

Definition at line 24 of file ui.h.

#include <ui.h>

+ Inheritance diagram for UISlider:
+ Collaboration diagram for UISlider:

Classes

struct  Listener
 

Public Member Functions

 UISlider (const char *name, float value=128.0f, float min=1, float max=255, float step=-1.f)
 
template<typename T>
as () const
 
int as_int () const
 
void clearCallbacks ()
 
 FL_NO_COPY (UISlider) using Super
 
float getMax () const
 
int onChanged (function< void(float)> callback)
 
int onChangedEx (function< void(UISlider &, float)> callback)
 
 operator float () const
 
 operator int () const
 
 operator uint16_t () const
 
 operator uint8_t () const
 
UISlideroperator= (float value)
 
UISlideroperator= (int value)
 
void setValue (float value)
 
float value () const
 
float value_normalized () const
 
- Public Member Functions inherited from fl::UISliderImpl
 UISliderImpl (const char *name, float value=128.0f, float min=1, float max=255, float step=-1.f)
 
 ~UISliderImpl ()
 
template<typename T>
as () const
 
int as_int () const
 
float getMax () const
 
float getMin () const
 
 operator float () const
 
 operator int () const
 
 operator uint16_t () const
 
 operator uint8_t () const
 
UISliderImploperator= (float value)
 
UISliderImploperator= (int value)
 
void setValue (float value)
 
float value () const
 

Private Attributes

FunctionList< UISlider &, float > mCallbacks
 
float mLastFrameValue = 0
 
bool mLastFramevalueValid = false
 
Listener mListener
 

The documentation for this class was generated from the following files: