| 2409 | } |
| 2410 | |
| 2411 | void* 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. |
| 2420 | int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) |
no test coverage detected