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

◆ UIDropdownImpl() [6/6]

fl::UIDropdownImpl::UIDropdownImpl ( const fl::string & name,
const fl::string * options,
fl::size count )
inlineprivate

Definition at line 340 of file ui_impl.h.

341 : mSelectedIndex(0) {
342 FASTLED_UNUSED(name);
343 for (fl::size i = 0; i < count; ++i) {
344 mOptions.push_back(options[i]);
345 }
346 if (mOptions.empty()) {
347 mOptions.push_back(fl::string("No options"));
348 }
349 }
fl::size mSelectedIndex
Definition ui_impl.h:352
fl::vector< fl::string > mOptions
Definition ui_impl.h:351
#define FASTLED_UNUSED(x)
Definition unused.h:4

References FASTLED_UNUSED, mOptions, and mSelectedIndex.