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

Method GetInt

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:2575–2581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2573}
2574
2575int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2576{
2577 ImGuiStoragePair* it = ImLowerBound(const_cast<ImGuiStoragePair*>(Data.Data), const_cast<ImGuiStoragePair*>(Data.Data + Data.Size), key);
2578 if (it == Data.end() || it->key != key)
2579 return default_val;
2580 return it->val_i;
2581}
2582
2583bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2584{

Callers 3

TreeNodeGetOpenMethod · 0.80
GetByKeyMethod · 0.80

Calls 2

ImLowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected