MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / GetInt

Method GetInt

plugins/Cardinal/src/DearImGui/imgui.cpp:1964–1970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1962}
1963
1964int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
1965{
1966 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
1967 if (it == Data.end() || it->key != key)
1968 return default_val;
1969 return it->val_i;
1970}
1971
1972bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
1973{

Callers 2

GetByKeyFunction · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected