MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / CalcWindowNextAutoFitSize

Method CalcWindowNextAutoFitSize

plugins/Cardinal/src/DearImGui/imgui.cpp:5454–5462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5452}
5453
5454ImVec2 ImGui::CalcWindowNextAutoFitSize(ImGuiWindow* window)
5455{
5456 ImVec2 size_contents_current;
5457 ImVec2 size_contents_ideal;
5458 CalcWindowContentSizes(window, &size_contents_current, &size_contents_ideal);
5459 ImVec2 size_auto_fit = CalcWindowAutoFitSize(window, size_contents_ideal);
5460 ImVec2 size_final = CalcWindowSizeAfterConstraint(window, size_auto_fit);
5461 return size_final;
5462}
5463
5464static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window)
5465{

Callers

nothing calls this directly

Calls 3

CalcWindowContentSizesFunction · 0.85
CalcWindowAutoFitSizeFunction · 0.85

Tested by

no test coverage detected