MCPcopy Create free account
hub / github.com/SatDump/SatDump / GetInt

Method GetInt

src-core/imgui/imgui.cpp:2417–2423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2415}
2416
2417int 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
2425bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2426{

Callers 3

GetByKeyMethod · 0.80
GetIndexMethod · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected