| 1910 | } |
| 1911 | |
| 1912 | int ImGuiStorage::GetInt(ImGuiID key, int default_val) const |
| 1913 | { |
| 1914 | ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key); |
| 1915 | if (it == Data.end() || it->key != key) |
| 1916 | return default_val; |
| 1917 | return it->val_i; |
| 1918 | } |
| 1919 | |
| 1920 | bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const |
| 1921 | { |
no test coverage detected