MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetVoidPtr

Method GetVoidPtr

KBotExt/imgui/imgui.cpp:2411–2417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2409}
2410
2411void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
2412{
2413 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
2414 if (it == Data.end() || it->key != key)
2415 return NULL;
2416 return it->val_p;
2417}
2418
2419// 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.
2420int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val)

Callers 1

FindWindowByIDMethod · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected