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

Method setValue

src/platforms/shared/ui/json/checkbox.cpp.hpp:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63bool JsonCheckboxImpl::value() const FL_NOEXCEPT { return mInternal->value(); }
64
65void JsonCheckboxImpl::setValue(bool value) FL_NOEXCEPT {
66 bool oldValue = mInternal->value();
67 mInternal->setValue(value);
68
69 // If value actually changed, mark this component as changed for polling
70 if (mInternal->value() != oldValue) {
71 mInternal->markChanged();
72 }
73}
74
75fl::string JsonCheckboxImpl::groupName() const FL_NOEXCEPT { return mInternal->groupName(); }
76

Callers

nothing calls this directly

Calls 2

markChangedMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected