MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / CalcWindowNextAutoFitSize

Method CalcWindowNextAutoFitSize

KBotExt/imgui/imgui.cpp:5692–5700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5690}
5691
5692ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window)
5693{
5694 ImVec2 size_contents_current;
5695 ImVec2 size_contents_ideal;
5696 CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal);
5697 ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal);
5698 ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit);
5699 return size_final;
5700}
5701
5702static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window)
5703{

Callers

nothing calls this directly

Calls 3

CalcWindowContentSizesFunction · 0.85
CalcWindowAutoFitSizeFunction · 0.85

Tested by

no test coverage detected