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

Method JsonDescriptionImpl

src/platforms/shared/ui/json/description.cpp.hpp:43–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43JsonDescriptionImpl::JsonDescriptionImpl(const string &text) FL_NOEXCEPT {
44 // Create an instance of the new internal class
45 mInternal = fl::make_shared<JsonUiDescriptionInternal>("description", text);
46
47 // Register the component with the JsonUiManager
48 addJsonUiComponent(fl::weak_ptr<JsonUiInternal>(mInternal));
49}
50
51JsonDescriptionImpl::~JsonDescriptionImpl() {
52 // 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