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

◆ onClicked()

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

Definition at line 180 of file ui.h.

180 {
181 int id = mCallbacks.add([callback](UIButton &btn) {
182 if (btn.clicked()) {
183 callback();
184 }
185 });
186 mListener.addToEngineEventsOnce();
187 return id;
188 }
FunctionList< UIButton & > mCallbacks
Definition ui.h:221
Listener mListener
Definition ui.h:222

References clicked(), mCallbacks, and mListener.

+ Here is the call graph for this function: