MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / GetVoidPtrRef

Method GetVoidPtrRef

Dependencies/ImGui/src/imgui.cpp:2822–2828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2820}
2821
2822void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2823{
2824 ImGuiStoragePair* it = ImLowerBound(Data.Data, Data.Data + Data.Size, key);
2825 if (it == Data.Data + Data.Size || it->key != key)
2826 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2827 return &it->val_p;
2828}
2829
2830// FIXME-OPT: Need a way to reuse the result of lower_bound when doing GetInt()/SetInt() - not too bad because it only happens on explicit interaction (maximum one a frame)
2831void ImGuiStorage::SetInt(ImGuiID key, int val)

Callers

nothing calls this directly

Calls 3

ImLowerBoundFunction · 0.85
ImGuiStoragePairClass · 0.85
insertMethod · 0.45

Tested by

no test coverage detected