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 299 of file ui_impl.h.

300 : mSelectedIndex(0) {
301 FASTLED_UNUSED(name);
302 for (const auto& option : options) {
303 mOptions.push_back(option);
304 }
305 if (mOptions.empty()) {
306 mOptions.push_back(fl::string("No options"));
307 }
308 }
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.