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

◆ UIDropdownImpl() [3/6]

template<typename Iterator>
fl::UIDropdownImpl::UIDropdownImpl ( const fl::string & name,
Iterator begin,
Iterator end )
inline

Definition at line 40 of file dropdown.h.

41 : mSelectedIndex(0) {
42 FASTLED_UNUSED(name);
43 for (Iterator it = begin; it != end; ++it) {
44 mOptions.push_back(*it);
45 }
46 if (mOptions.empty()) {
47 mOptions.push_back(fl::string("No options"));
48 }
49 }
fl::size mSelectedIndex
Definition dropdown.h:114
fl::vector< fl::string > mOptions
Definition dropdown.h:113
constexpr T * begin(T(&array)[N]) FL_NOEXCEPT
#define FASTLED_UNUSED(x)

References fl::begin(), fl::end(), FASTLED_UNUSED, mOptions, and mSelectedIndex.

+ Here is the call graph for this function: