MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / GetInt

Method GetInt

ImGUI GLFW Tutorial/imgui/imgui.cpp:1912–1918  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1910}
1911
1912int ImGuiStorage::GetInt(ImGuiID key, int default_val) const
1913{
1914 ImGuiStoragePair* it = LowerBound(const_cast<ImVector<ImGuiStoragePair>&>(Data), key);
1915 if (it == Data.end() || it->key != key)
1916 return default_val;
1917 return it->val_i;
1918}
1919
1920bool ImGuiStorage::GetBool(ImGuiID key, bool default_val) const
1921{

Callers 2

GetByKeyFunction · 0.45

Calls 2

LowerBoundFunction · 0.70
endMethod · 0.45

Tested by

no test coverage detected