For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.
| 2935 | |
| 2936 | // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. |
| 2937 | void ImGuiStorage::BuildSortByKey() |
| 2938 | { |
| 2939 | ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), PairComparerByID); |
| 2940 | } |
| 2941 | |
| 2942 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 2943 | { |
no test coverage detected