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

Method JsonCheckboxImpl

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

Source from the content-addressed store, hash-verified

37};
38
39JsonCheckboxImpl::JsonCheckboxImpl(const fl::string &name, bool value) FL_NOEXCEPT {
40 // Create an instance of the new internal class
41 mInternal = fl::make_shared<JsonUiCheckboxInternal>(name, value);
42
43 // Register the component with the JsonUiManager
44 addJsonUiComponent(mInternal);
45}
46
47JsonCheckboxImpl::~JsonCheckboxImpl() {
48 // Ensure the component is removed from the global registry

Callers

nothing calls this directly

Calls 1

addJsonUiComponentFunction · 0.85

Tested by

no test coverage detected