MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / GetInt

Method GetInt

engine/3rdparty/imgui/imgui.cpp:2150–2156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2148}
2149
2150int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2151{
2152 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
2153 if (it == Data.end() || it->key != key)
2154 return default_val;
2155 return it->val_i;
2156}
2157
2158bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2159{

Callers 2

GetByKeyFunction · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected