MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / GetInt

Method GetInt

Dependencies/ImGui/src/imgui.cpp:2771–2777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2769}
2770
2771int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2772{
2773 ImGuiStoragePair* it = ImLowerBound(const_cast<ImGuiStoragePair*>(Data.Data), const_cast<ImGuiStoragePair*>(Data.Data + Data.Size), key);
2774 if (it == Data.Data + Data.Size || it->key != key)
2775 return default_val;
2776 return it->val_i;
2777}
2778
2779bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2780{

Callers 4

TreeNodeGetOpenMethod · 0.80
ContainsMethod · 0.80
GetByKeyMethod · 0.80

Calls 1

ImLowerBoundFunction · 0.85

Tested by

no test coverage detected