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

Method DebugNodeColumns

imgui_tiny_app/imgui/imgui.cpp:23039–23047  ·  view source on GitHub ↗

[DEBUG] Display contents of Columns

Source from the content-addressed store, hash-verified

23037
23038// [DEBUG] Display contents of Columns
23039void ImGui::DebugNodeColumns(ImGuiOldColumns* columns)
23040{
23041 if (!TreeNode((void*)(uintptr_t)columns->ID, "Columns Id: 0x%08X, Count: %d, Flags: 0x%04X", columns->ID, columns->Count, columns->Flags))
23042 return;
23043 BulletText("Width: %.1f (MinX: %.1f, MaxX: %.1f)", columns->OffMaxX - columns->OffMinX, columns->OffMinX, columns->OffMaxX);
23044 for (ImGuiOldColumnData& column : columns->Columns)
23045 BulletText("Column %02d: OffsetNorm %.3f (= %.1f px)", (int)columns->Columns.index_from_ptr(&column), column.OffsetNorm, GetColumnOffsetFromNorm(columns, column.OffsetNorm));
23046 TreePop();
23047}
23048
23049static void DebugNodeDockNodeFlags(ImGuiDockNodeFlags* p_flags, const char* label, bool enabled)
23050{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected