MCPcopy Create free account
hub / github.com/RenderKit/embree / GetInt

Method GetInt

tutorials/common/imgui/imgui.cpp:2266–2272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2264}
2265
2266int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2267{
2268 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
2269 if (it == Data.end() || it->key != key)
2270 return default_val;
2271 return it->val_i;
2272}
2273
2274bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2275{

Callers 2

GetByKeyMethod · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected