6#pragma GCC diagnostic push
7#pragma GCC diagnostic ignored "-Wfloat-equal"
13 if (
value != Super::value()) {
14 Super::setValue(
value);
33 bool clicked_this_frame =
mOwner->clicked();
37 if (
mOwner->mRealButton->isPressed()) {
38 clicked_this_frame =
true;
45 if (clicked_changed) {
83#pragma GCC diagnostic pop
FunctionList< UICheckbox & > mCallbacks
bool mLastFrameValueValid
UICheckbox(const char *name, bool value=false)
FunctionList< UINumberField & > mCallbacks
UINumberField(const char *name, double value, double min=0, double max=100)
bool mLastFrameValueValid
bool mLastFramevalueValid
UISlider(const char *name, float value=128.0f, float min=1, float max=255, float step=-1.f)
void setValue(float value)
FunctionList< UISlider & > mCallbacks
Implements a simple red square effect for 2D LED grids.
void onBeginFrame() override
void onBeginFrame() override
void onBeginFrame() override