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

Method GetVoidPtr

src/imgui/imgui.cpp:2833–2839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2831}
2832
2833void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
2834{
2835 ImGuiStoragePair* it = ImLowerBound(const_cast<ImGuiStoragePair*>(Data.Data), const_cast<ImGuiStoragePair*>(Data.Data + Data.Size), key);
2836 if (it == Data.Data + Data.Size || it->key != key)
2837 return NULL;
2838 return it->val_p;
2839}
2840
2841// References are only valid until a new value is added to the storage. Calling a Set***() function or a Get***Ref() function invalidates the pointer.
2842int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)

Callers 1

FindWindowByIDMethod · 0.80

Calls 1

ImLowerBoundFunction · 0.70

Tested by

no test coverage detected