For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.
| 2976 | |
| 2977 | // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. |
| 2978 | void ImGuiStorage::BuildSortByKey() |
| 2979 | { |
| 2980 | ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), PairComparerByID); |
| 2981 | } |
| 2982 | |
| 2983 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 2984 | { |
no test coverage detected