| 3883 | } |
| 3884 | |
| 3885 | ImGuiOldColumns* 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 | |
| 3898 | ImGuiID ImGui::GetColumnsID(const char* str_id, int columns_count) |
| 3899 | { |
nothing calls this directly
no test coverage detected