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

264 : mSelectedIndex(0) {
265 FASTLED_UNUSED(name);
266 for (fl::size i = 0; i < options.size(); ++i) {
267 mOptions.push_back(options[i]);
268 }
269 if (mOptions.empty()) {
270 mOptions.push_back(fl::string("No options"));
271 }
272 }
fl::size size() const
Definition vector.h:545
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, mSelectedIndex, and fl::HeapVector< T, Allocator >::size().

+ Here is the call graph for this function: