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

Method GetFloatRef

src/imgui/imgui.cpp:2855–2861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2853}
2854
2855float* ImGuiStorage::GetFloatRef(ImGuiID key, float default_val)
2856{
2857 ImGuiStoragePair* it = ImLowerBound(Data.Data, Data.Data + Data.Size, key);
2858 if (it == Data.Data + Data.Size || it->key != key)
2859 it = Data.insert(it, ImGuiStoragePair(key, default_val));
2860 return &it->val_f;
2861}
2862
2863void** ImGuiStorage::GetVoidPtrRef(ImGuiID key, void* default_val)
2864{

Callers

nothing calls this directly

Calls 3

ImGuiStoragePairClass · 0.85
ImLowerBoundFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected