MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / Columns

Method Columns

extern/imgui/imgui_tables.cpp:4064–4080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4062}
4063
4064void ImGui::Columns(int columns_count, const char* id, bool border)
4065{
4066 ImGuiWindow* window = GetCurrentWindow();
4067 IM_ASSERT(columns_count >= 1);
4068
4069 ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder);
4070 //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior
4071 ImGuiOldColumns* columns = window->DC.CurrentColumns;
4072 if (columns != NULL && columns->Count == columns_count && columns->Flags == flags)
4073 return;
4074
4075 if (columns != NULL)
4076 EndColumns();
4077
4078 if (columns_count != 1)
4079 BeginColumns(id, columns_count, flags);
4080}
4081
4082//-------------------------------------------------------------------------
4083

Callers

nothing calls this directly

Calls 1

GetCurrentWindowFunction · 0.85

Tested by

no test coverage detected