| 1849 | } |
| 1850 | |
| 1851 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 1852 | { |
| 1853 | ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key); |
| 1854 | if (it == Data.end() || it->key != key) |
| 1855 | return default_val; |
| 1856 | return it->val_i; |
| 1857 | } |
| 1858 | |
| 1859 | bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const |
| 1860 | { |
no test coverage detected