MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / BuildSortByKey

Method BuildSortByKey

imgui_tiny_app/imgui/imgui.cpp:2978–2981  ·  view source on GitHub ↗

For quicker full rebuild of a storage (instead of an incremental one), you may add all your contents and then sort once.

Source from the content-addressed store, hash-verified

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

Callers 2

GetNextSelectedItemMethod · 0.80

Calls 1

ImQsortFunction · 0.85

Tested by

no test coverage detected