FastLED 3.9.15
Loading...
Searching...
No Matches
fl::UIDropdown Class Reference

Detailed Description

Definition at line 432 of file ui.h.

#include <ui.h>

+ Inheritance diagram for fl::UIDropdown:
+ Collaboration diagram for fl::UIDropdown:

Classes

struct  Listener
 

Public Member Functions

 UIDropdown (const char *name, fl::initializer_list< fl::string > options)
 
 ~UIDropdown ()
 
void addNextButton (int pin)
 
int as_int () const
 
fl::string as_string () const
 
void clearCallbacks ()
 
 FL_NO_COPY (UIDropdown) UIDropdown(const char *name
 
fl::string getOption (fl::size index) const
 
fl::size getOptionCount () const
 
fl::span< fl::stringmListener (this)
 
void nextOption ()
 
int onChanged (function< void(UIDropdown &)> callback)
 
 operator fl::string () const
 
 operator int () const
 
UIDropdownoperator= (int index)
 
void setGroup (const fl::string &groupName) override
 
void setSelectedIndex (int index)
 
fl::string value () const
 
- Public Member Functions inherited from fl::UIElement
 UIElement ()
 
VIRTUAL_IF_NOT_AVR ~UIElement ()
 
fl::string getGroup () const
 
bool hasGroup () const
 

Public Attributes

fl::span< fl::stringoptions: mImpl(fl::string(name)
 

Protected Attributes

UIDropdownImpl mImpl
 

Private Attributes

FunctionList< UIDropdown & > mCallbacks
 
int mLastFrameValue = -1
 
bool mLastFrameValueValid = false
 
Listener mListener
 
fl::shared_ptr< ButtonmNextButton
 

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