FastLED 3.9.3
Loading...
Searching...
No Matches
Slider Class Reference

Detailed Description

Examples
NoisePlusPalette.ino.

Definition at line 40 of file ui.h.

Public Member Functions

 Slider (const char *name, float value=128.0f, float min=1, float max=255, float step=1)
 
float value () const
 
void setValue (float value)
 
 operator float () const
 
 operator uint8_t () const
 
 operator uint16_t () const
 
 operator int () const
 
template<typename T >
as () const
 
Slideroperator= (float value)
 
Slideroperator= (int value)
 

Constructor & Destructor Documentation

◆ Slider()

Slider::Slider ( const char * name,
float value = 128.0f,
float min = 1,
float max = 255,
float step = 1 )
inline

Definition at line 42 of file ui.h.

◆ ~Slider()

Slider::~Slider ( )
inline

Definition at line 44 of file ui.h.

Member Function Documentation

◆ as()

template<typename T >
T Slider::as ( ) const
inline

Definition at line 51 of file ui.h.

◆ operator float()

Slider::operator float ( ) const
inline

Definition at line 47 of file ui.h.

◆ operator int()

Slider::operator int ( ) const
inline

Definition at line 50 of file ui.h.

◆ operator uint16_t()

Slider::operator uint16_t ( ) const
inline

Definition at line 49 of file ui.h.

◆ operator uint8_t()

Slider::operator uint8_t ( ) const
inline

Definition at line 48 of file ui.h.

◆ operator=() [1/2]

Slider & Slider::operator= ( float value)
inline

Definition at line 53 of file ui.h.

◆ operator=() [2/2]

Slider & Slider::operator= ( int value)
inline

Definition at line 54 of file ui.h.

◆ setValue()

void Slider::setValue ( float value)
inline

Definition at line 46 of file ui.h.

◆ value()

float Slider::value ( ) const
inline

Definition at line 45 of file ui.h.


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