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

◆ nextOption()

void fl::UIDropdown::nextOption ( )
inline

Definition at line 473 of file ui.h.

473 {
474 int currentIndex = as_int();
475 int nextIndex = (currentIndex + 1) % static_cast<int>(getOptionCount());
476 setSelectedIndex(nextIndex);
477 }
fl::size getOptionCount() const
Definition ui.h:456
void setSelectedIndex(int index)
Definition ui.h:452
int as_int() const
Definition ui.h:449

References as_int(), getOptionCount(), and setSelectedIndex().

+ Here is the call graph for this function: