MCPcopy Create free account
hub / github.com/Raais/ImStudio / DebugNodeStorage

Method DebugNodeStorage

src/third-party/imgui/imgui.cpp:12739–12749  ·  view source on GitHub ↗

[DEBUG] Display contents of ImGuiStorage

Source from the content-addressed store, hash-verified

12737
12738// [DEBUG] Display contents of ImGuiStorage
12739void ImGui::DebugNodeStorage(ImGuiStorage* storage, const char* label)
12740{
12741 if (!TreeNode(label, "%s: %d entries, %d bytes", label, storage->Data.Size, storage->Data.size_in_bytes()))
12742 return;
12743 for (int n = 0; n < storage->Data.Size; n++)
12744 {
12745 const ImGuiStorage::ImGuiStoragePair& p = storage->Data[n];
12746 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.
12747 }
12748 TreePop();
12749}
12750
12751// [DEBUG] Display contents of ImGuiTabBar
12752void ImGui::DebugNodeTabBar(ImGuiTabBar* tab_bar, const char* label)

Callers

nothing calls this directly

Calls 1

size_in_bytesMethod · 0.80

Tested by

no test coverage detected