MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / FindOrCreateColumns

Method FindOrCreateColumns

include/imgui/imgui_tables.cpp:4408–4419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4406}
4407
4408ImGuiOldColumns* ImGui::FindOrCreateColumns(ImGuiWindow* window, ImGuiID id)
4409{
4410 // We have few columns per window so for now we don't need bother much with turning this into a faster lookup.
4411 for (int n = 0; n < window->ColumnsStorage.Size; n++)
4412 if (window->ColumnsStorage[n].ID == id)
4413 return &window->ColumnsStorage[n];
4414
4415 window->ColumnsStorage.push_back(ImGuiOldColumns());
4416 ImGuiOldColumns* columns = &window->ColumnsStorage.back();
4417 columns->ID = id;
4418 return columns;
4419}
4420
4421ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count)
4422{

Callers

nothing calls this directly

Calls 2

ImGuiOldColumnsClass · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected