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

Method FindOrCreateColumns

KBotExt/imgui/imgui_tables.cpp:3885–3896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3883}
3884
3885ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id)
3886{
3887 // We have few columns per window so for now we don't need bother much with turning this into a faster lookup.
3888 for (int n = 0; n < window->ColumnsStorage.Size; n++)
3889 if (window->ColumnsStorage[n].ID == id)
3890 return &window->ColumnsStorage[n];
3891
3892 window->ColumnsStorage.push_back(ImGuiOldColumns());
3893 ImGuiOldColumns* columns = &window->ColumnsStorage.back();
3894 columns->ID = id;
3895 return columns;
3896}
3897
3898ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count)
3899{

Callers

nothing calls this directly

Calls 1

ImGuiOldColumnsClass · 0.85

Tested by

no test coverage detected