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

Method CalcWindowNextAutoFitSize

Dependencies/ImGui/src/imgui.cpp:7091–7099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7089}
7090
7091ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window)
7092{
7093 ImVec2 size_contents_current;
7094 ImVec2 size_contents_ideal;
7095 CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal);
7096 ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal, ~0);
7097 ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit);
7098 return size_final;
7099}
7100
7101static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window)
7102{

Callers

nothing calls this directly

Calls 3

CalcWindowContentSizesFunction · 0.85
CalcWindowAutoFitSizeFunction · 0.85

Tested by

no test coverage detected