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

288 : mSelectedIndex(0) {
289 FASTLED_UNUSED(name);
290 for (fl::size i = 0; i < options.size(); ++i) {
291 mOptions.push_back(options[i]);
292 }
293 if (mOptions.empty()) {
294 mOptions.push_back(fl::string("No options"));
295 }
296 }
fl::size size() const
Definition slice.h:142
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::Slice< T >::size().

+ Here is the call graph for this function: