| 2347 | } |
| 2348 | |
| 2349 | void* 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. |
| 2358 | int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) |
no test coverage detected