MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetInt

Method GetInt

3rdparty/imgui/src/imgui.cpp:2942–2948  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2940}
2941
2942int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2943{
2944 ImGuiStoragePair* it = ImLowerBound(const_cast<ImGuiStoragePair*>(Data.Data), const_cast<ImGuiStoragePair*>(Data.Data + Data.Size), key);
2945 if (it == Data.Data + Data.Size || it->key != key)
2946 return default_val;
2947 return it->val_i;
2948}
2949
2950bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2951{

Callers 11

TreeNodeGetOpenMethod · 0.80
ContainsMethod · 0.80
GetByKeyMethod · 0.80
GetIntMemberFunction · 0.80
GetMethod · 0.80
GetMethod · 0.80
fromJsonMethod · 0.80
fromJsonMethod · 0.80
loadMethod · 0.80

Calls 1

ImLowerBoundFunction · 0.70

Tested by

no test coverage detected