MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / GetInt

Method GetInt

extern/imgui/imgui.cpp:2328–2334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2326}
2327
2328int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2329{
2330 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
2331 if (it == Data.end() || it->key != key)
2332 return default_val;
2333 return it->val_i;
2334}
2335
2336bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2337{

Callers 2

GetByKeyMethod · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected