| 1870 | } |
| 1871 | |
| 1872 | void* 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. |
| 1881 | int* ImGuiStorage::GetIntRef(ImGuiID key, int default_val) |
no test coverage detected