| 2285 | } |
| 2286 | |
| 2287 | void* ImGuiStorage::GetVoidPtr(ImGuiID key) const |
| 2288 | { |
| 2289 | ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key); |
| 2290 | if (it == Data.end() || it->key != key) |
| 2291 | return NULL; |
| 2292 | return it->val_p; |
| 2293 | } |
| 2294 | |
| 2295 | // 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. |
| 2296 | int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) |
no test coverage detected