MCPcopy Create free account
hub / github.com/FastLED/FastLED / nextOption

Method nextOption

src/fl/ui/dropdown.h:150–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 void addNextButton(int pin) FL_NOEXCEPT;
149
150 void nextOption() FL_NOEXCEPT {
151 int currentIndex = as_int();
152 int nextIndex = (currentIndex + 1) % static_cast<int>(getOptionCount());
153 setSelectedIndex(nextIndex);
154 }
155
156 void setGroup(const fl::string& groupName) FL_NOEXCEPT override {
157 UIElement::setGroup(groupName);

Callers 1

onBeginFrameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected