FastLED
3.9.15
Loading...
Searching...
No Matches
◆
onChanged()
int fl::UIButton::onChanged
(
function< void()>
callback
)
inline
Definition at line
126
of file
ui.h
.
126
{
127
function<void(
UIButton
&)> wrapped_cb = [callback](
UIButton
&
button
) {
128
FASTLED_UNUSED
(
button
);
129
callback();
130
};
131
int
id
=
mCallbacks
.add(wrapped_cb);
132
mListener
.addToEngineEventsOnce();
133
return
id;
134
}
button
UIButton button("Trigger")
UIButton::mCallbacks
FunctionList< UIButton & > mCallbacks
Definition
ui.h:171
UIButton::mListener
Listener mListener
Definition
ui.h:172
UIButton::UIButton
UIButton(const char *name)
Definition
ui.h:117
FASTLED_UNUSED
#define FASTLED_UNUSED(x)
Definition
unused.h:3
UIButton
Generated on Sat May 24 2025 22:44:24 for FastLED by
1.13.2