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

Method onChanged

src/fl/ui/button.h:78–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 }
77
78 int onChanged(function<void(UIButton &)> callback) FL_NOEXCEPT {
79 int id = mCallbacks.add(callback);
80 mListener.addToEngineEventsOnce();
81 return id;
82 }
83
84 int onClicked(function<void()> callback) FL_NOEXCEPT {
85 int id = mCallbacks.add([callback](UIButton &btn) {

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
addToEngineEventsOnceMethod · 0.45

Tested by

no test coverage detected