For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.
| 2909 | |
| 2910 | // For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once. |
| 2911 | void ImGuiStorage::BuildSortByKey() |
| 2912 | { |
| 2913 | ImQsort(Data.Data, (size_t)Data.Size, sizeof(ImGuiStoragePair), PairComparerByID); |
| 2914 | } |
| 2915 | |
| 2916 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 2917 | { |
no test coverage detected