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

Detailed Description

Examples
Animartrix.ino, AnimartrixRing.ino, and FlowField.ino.

Definition at line 118 of file dropdown.h.

#include <dropdown.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) FL_NO_EXCEPT
 
 ~UIDropdown () FL_NO_EXCEPT
 
void addNextButton (int pin) FL_NO_EXCEPT
 
int as_int () const FL_NO_EXCEPT
 
fl::string as_string () const FL_NO_EXCEPT
 
void clearCallbacks () FL_NO_EXCEPT
 
 FL_NO_COPY (UIDropdown) UIDropdown(const char *name
 
fl::string getOption (fl::size index) const FL_NO_EXCEPT
 
fl::size getOptionCount () const FL_NO_EXCEPT
 
void nextOption () FL_NO_EXCEPT
 
int onChanged (function< void(UIDropdown &)> callback) FL_NO_EXCEPT
 
 operator fl::string () const FL_NO_EXCEPT
 
 operator int () const FL_NO_EXCEPT
 
UIDropdown & operator= (int index) FL_NO_EXCEPT
 
void setGroup (const fl::string &groupName) FL_NO_EXCEPT override
 
void setSelectedIndex (int index) FL_NO_EXCEPT
 
fl::string value () const FL_NO_EXCEPT
 
- Public Member Functions inherited from fl::UIElement
 UIElement () FL_NO_EXCEPT
 
VIRTUAL_IF_NOT_AVR ~UIElement () FL_NO_EXCEPT
 
fl::string getGroup () const FL_NO_EXCEPT
 
bool hasGroup () const FL_NO_EXCEPT
 

Public Attributes

fl::span< fl::string > options FL_NO_EXCEPT
 

Protected Attributes

UIDropdownImpl mImpl
 

Private Attributes

function_list< void(UIDropdown &)> mCallbacks
 
int mLastFrameValue = -1
 
bool mLastFrameValueValid = false
 
Listener mListener
 
fl::shared_ptr< IButtonInput > mNextButton
 

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