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

◆ UIDropdownImpl() [4/6]

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

Definition at line 51 of file dropdown.h.

52 : mSelectedIndex(0) {
53 FASTLED_UNUSED(name);
54 for (fl::size i = 0; i < options.size(); ++i) {
55 mOptions.push_back(options[i]);
56 }
57 if (mOptions.empty()) {
58 mOptions.push_back(fl::string("No options"));
59 }
60 }
fl::size mSelectedIndex
Definition dropdown.h:114
fl::vector< fl::string > mOptions
Definition dropdown.h:113
constexpr fl::size size() const FL_NOEXCEPT
Definition span.h:458
#define FASTLED_UNUSED(x)

References FASTLED_UNUSED, mOptions, mSelectedIndex, and fl::span< T, Extent >::size().

+ Here is the call graph for this function: