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

◆ UIDropdownImpl() [2/6]

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

Definition at line 28 of file dropdown.h.

29 : mSelectedIndex(0) {
30 FASTLED_UNUSED(name);
31 for (fl::size i = 0; i < options.size(); ++i) {
32 mOptions.push_back(options[i]);
33 }
34 if (mOptions.empty()) {
35 mOptions.push_back(fl::string("No options"));
36 }
37 }
fl::size mSelectedIndex
Definition dropdown.h:114
fl::vector< fl::string > mOptions
Definition dropdown.h:113
fl::size size() const FL_NOEXCEPT
#define FASTLED_UNUSED(x)

References FASTLED_UNUSED, mOptions, mSelectedIndex, and fl::vector_basic::size().

+ Here is the call graph for this function: