MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / Columns

Method Columns

KBotExt/imgui/imgui_tables.cpp:4122–4138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4120}
4121
4122void ImGui::Columns(int columns_count, const char* id, bool border)
4123{
4124 ImGuiWindow* window = GetCurrentWindow();
4125 IM_ASSERT(columns_count >= 1);
4126
4127 ImGuiOldColumnFlags flags = (border ? 0 : ImGuiOldColumnFlags_NoBorder);
4128 //flags |= ImGuiOldColumnFlags_NoPreserveWidths; // NB: Legacy behavior
4129 ImGuiOldColumns* columns = window->DC.CurrentColumns;
4130 if (columns != NULL && columns->Count == columns_count && columns->Flags == flags)
4131 return;
4132
4133 if (columns != NULL)
4134 EndColumns();
4135
4136 if (columns_count != 1)
4137 BeginColumns(id, columns_count, flags);
4138}
4139
4140//-------------------------------------------------------------------------
4141

Callers

nothing calls this directly

Calls 1

GetCurrentWindowFunction · 0.85

Tested by

no test coverage detected