MCPcopy Create free account
hub / github.com/cinder/Cinder / SetVoidPtr

Method SetVoidPtr

src/imgui/imgui.cpp:2895–2902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2893}
2894
2895void ImGuiStorage::SetVoidPtr(ImGuiID key, void* val)
2896{
2897 ImGuiStoragePair* it = ImLowerBound(Data.Data, Data.Data + Data.Size, key);
2898 if (it == Data.Data + Data.Size || it->key != key)
2899 Data.insert(it, ImGuiStoragePair(key, val));
2900 else
2901 it->val_p = val;
2902}
2903
2904void ImGuiStorage::SetAllInt(int v)
2905{

Callers 3

CreateNewWindowFunction · 0.80
ImFontAtlasBakedDiscardFunction · 0.80

Calls 3

ImGuiStoragePairClass · 0.85
ImLowerBoundFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected