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

Method setValue

src/platforms/shared/ui/json/number_field.cpp.hpp:101–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void JsonNumberFieldImpl::setValue(float value) FL_NOEXCEPT {
102 float oldValue = mInternal->value();
103 mInternal->setValue(value);
104
105 // If value actually changed, mark this component as changed for polling
106 if (!fl::almost_equal(mInternal->value(), oldValue)) {
107 mInternal->markChanged();
108 }
109}
110
111fl::string JsonNumberFieldImpl::groupName() const FL_NOEXCEPT { return mInternal->groupName(); }
112

Callers

nothing calls this directly

Calls 3

almost_equalFunction · 0.85
markChangedMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected