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

◆ onClicked()

int fl::UIButton::onClicked ( function< void()> callback)
inline

Definition at line 146 of file ui.h.

146 {
147 int id = mCallbacks.add([callback](UIButton &btn) {
148 if (btn.clicked()) {
149 callback();
150 }
151 });
152 mListener.addToEngineEventsOnce();
153 return id;
154 }
FunctionList< UIButton & > mCallbacks
Definition ui.h:185
Listener mListener
Definition ui.h:186
UIButton(const char *name)
Definition ui.h:109

References UIButton(), clicked(), mCallbacks, and mListener.

+ Here is the call graph for this function: