| 2415 | } |
| 2416 | |
| 2417 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 2418 | { |
| 2419 | ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key); |
| 2420 | if (it == Data.end() || it->key != key) |
| 2421 | return default_val; |
| 2422 | return it->val_i; |
| 2423 | } |
| 2424 | |
| 2425 | bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const |
| 2426 | { |
no test coverage detected