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

Function addJsonUiComponent

src/platforms/shared/ui/json/ui.cpp.hpp:87–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void addJsonUiComponent(fl::weak_ptr<JsonUiInternal> component) FL_NOEXCEPT {
88 // FL_WARN("addJsonUiComponent: ENTRY - component=" << component);
89
90 // Check if we have an internal manager first
91 auto& manager = getInternalManager();
92 // FL_WARN("addJsonUiComponent: manager exists=" << (manager ? "true" : "false"));
93
94 if (manager) {
95 // FL_WARN("addJsonUiComponent: Adding component to existing manager");
96 manager->addComponent(component);
97 // FL_WARN("addJsonUiComponent: Component added to manager, RETURNING");
98 return;
99 }
100
101 // Still no manager exists, store in pending list
102 // FL_WARN("addJsonUiComponent: No manager exists, storing in pending list");
103 auto& pending = getPendingComponents();
104 pending.push_back(component);
105 // FL_WARN("addJsonUiComponent: no manager exists, component stored in pending list: " << component);
106}
107
108void removeJsonUiComponent(fl::weak_ptr<JsonUiInternal> component) FL_NOEXCEPT {
109 // Check if we have an internal manager first

Callers 11

WasmAudioImplMethod · 0.85
JsonNumberFieldImplMethod · 0.85
JsonButtonImplMethod · 0.85
JsonDescriptionImplMethod · 0.85
JsonCheckboxImplMethod · 0.85
JsonDropdownImplMethod · 0.85
JsonAudioImplMethod · 0.85
JsonSliderImplMethod · 0.85
JsonTitleImplMethod · 0.85
JsonHelpImplMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls 2

addComponentMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected