MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / ScaleWindowsInViewport

Method ScaleWindowsInViewport

include/imgui/imgui.cpp:15891–15897  ·  view source on GitHub ↗

Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)

Source from the content-addressed store, hash-verified

15889
15890// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)
15891void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale)
15892{
15893 ImGuiContext& g = *GImGui;
15894 for (ImGuiWindow* window : g.Windows)
15895 if (window->Viewport == viewport)
15896 ScaleWindow(window, scale);
15897}
15898
15899// Update viewports and monitor infos
15900static void ImGui::UpdateViewportsNewFrame()

Callers

nothing calls this directly

Calls 1

ScaleWindowFunction · 0.85

Tested by

no test coverage detected