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

◆ nextOption()

void fl::UIDropdown::nextOption ( )
inline

Definition at line 150 of file dropdown.h.

150 {
151 int currentIndex = as_int();
152 int nextIndex = (currentIndex + 1) % static_cast<int>(getOptionCount());
153 setSelectedIndex(nextIndex);
154 }
void setSelectedIndex(int index) FL_NOEXCEPT
Definition dropdown.h:130
fl::size getOptionCount() const FL_NOEXCEPT
Definition dropdown.h:134
int as_int() const FL_NOEXCEPT
Definition dropdown.h:127

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

Referenced by fl::UIDropdown::Listener::onBeginFrame().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: