MCPcopy Create free account
hub / github.com/cinder/Cinder / GetInt

Method GetInt

src/imgui/imgui.cpp:2812–2818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2810}
2811
2812int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
2813{
2814 ImGuiStoragePair* it = ImLowerBound(const_cast<ImGuiStoragePair*>(Data.Data), const_cast<ImGuiStoragePair*>(Data.Data + Data.Size), key);
2815 if (it == Data.Data + Data.Size || it->key != key)
2816 return default_val;
2817 return it->val_i;
2818}
2819
2820bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
2821{

Callers 5

TreeNodeGetOpenMethod · 0.80
ContainsMethod · 0.80
GetByKeyMethod · 0.80

Calls 1

ImLowerBoundFunction · 0.70

Tested by

no test coverage detected