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

Method ScaleWindowsInViewport

include/imgui/imgui.cpp:15800–15806  ·  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

15798
15799// Scale all windows (position, size). Use when e.g. changing DPI. (This is a lossy operation!)
15800void ImGui::ScaleWindowsInViewport(ImGuiViewportP* viewport, float scale)
15801{
15802 ImGuiContext& g = *GImGui;
15803 for (ImGuiWindow* window : g.Windows)
15804 if (window->Viewport == viewport)
15805 ScaleWindow(window, scale);
15806}
15807
15808// Update viewports and monitor infos
15809static void ImGui::UpdateViewportsNewFrame()

Callers

nothing calls this directly

Calls 1

ScaleWindowFunction · 0.85

Tested by

no test coverage detected