MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / GetVoidPtr

Method GetVoidPtr

lib/imgui/imgui.cpp:1872–1878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1870}
1871
1872void* ImGuiStorage::GetVoidPtr(ImGuiID key) const
1873{
1874 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
1875 if (it == Data.end() || it->key != key)
1876 return NULL;
1877 return it->val_p;
1878}
1879
1880// 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.
1881int* 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