| 4406 | } |
| 4407 | |
| 4408 | ImGuiOldColumns* 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 | |
| 4421 | ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) |
| 4422 | { |
nothing calls this directly
no test coverage detected