MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / GetVoidPtr

Method GetVoidPtr

extern/imgui/imgui.cpp:2349–2355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2347}
2348
2349void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
2350{
2351 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
2352 if (it == Data.end() || it->key != key)
2353 return NULL;
2354 return it->val_p;
2355}
2356
2357// 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.
2358int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)

Callers 2

FindWindowByIDMethod · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected