FastLED 3.9.15
Loading...
Searching...
No Matches

◆ UIDropdownImpl() [5/6]

fl::UIDropdownImpl::UIDropdownImpl ( const fl::string & name,
fl::initializer_list< fl::string > options )
inline

Definition at line 62 of file dropdown.h.

63 : mSelectedIndex(0) {
64 FASTLED_UNUSED(name);
65 for (const auto& option : options) {
66 mOptions.push_back(option);
67 }
68 if (mOptions.empty()) {
69 mOptions.push_back(fl::string("No options"));
70 }
71 }
fl::size mSelectedIndex
Definition dropdown.h:114
fl::vector< fl::string > mOptions
Definition dropdown.h:113
#define FASTLED_UNUSED(x)

References FASTLED_UNUSED, mOptions, and mSelectedIndex.