| 2388 | } |
| 2389 | |
| 2390 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 2391 | { |
| 2392 | ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key); |
| 2393 | if (it == Data.end() || it->key != key) |
| 2394 | return default_val; |
| 2395 | return it->val_i; |
| 2396 | } |
| 2397 | |
| 2398 | bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const |
| 2399 | { |
no test coverage detected