MCPcopy Create free account
hub / github.com/RenderKit/embree / CalcWindowNextAutoFitSize

Method CalcWindowNextAutoFitSize

tutorials/common/imgui/imgui.cpp:5806–5814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5804}
5805
5806ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window)
5807{
5808 ImVec2 size_contents_current;
5809 ImVec2 size_contents_ideal;
5810 CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal);
5811 ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal);
5812 ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit);
5813 return size_final;
5814}
5815
5816static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window)
5817{

Callers

nothing calls this directly

Calls 3

CalcWindowContentSizesFunction · 0.85
CalcWindowAutoFitSizeFunction · 0.85

Tested by

no test coverage detected