MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / DebugNodeStorage

Method DebugNodeStorage

imgui_tiny_app/imgui/imgui.cpp:23498–23508  ·  view source on GitHub ↗

[DEBUG] Display contents of ImGuiStorage

Source from the content-addressed store, hash-verified

23496
23497// [DEBUG] Display contents of ImGuiStorage
23498void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label)
23499{
23500 if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes()))
23501 return;
23502 for (const ImGuiStoragePair& p : storage->Data)
23503 {
23504 BulletText("Key 0x%08X Value { i: %d }", p.key, p.val_i); // Important: we currently don't store a type, real value may not be integer.
23505 DebugLocateItemOnHover(p.key);
23506 }
23507 TreePop();
23508}
23509
23510// [DEBUG] Display contents of ImGuiTabBar
23511void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected