MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / GetInt

Method GetInt

lib/imgui/imgui.cpp:1851–1857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1849}
1850
1851int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
1852{
1853 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
1854 if (it == Data.end() || it->key != key)
1855 return default_val;
1856 return it->val_i;
1857}
1858
1859bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
1860{

Callers 2

GetByKeyFunction · 0.80

Calls 2

LowerBoundFunction · 0.85
endMethod · 0.45

Tested by

no test coverage detected