MCPcopy Create free account
hub / github.com/SsageParuders/Android_Native_Surface / ScaleAllSizes

Method ScaleAllSizes

src/source/ImGui/imgui.cpp:1082–1107  ·  view source on GitHub ↗

To scale your entire UI (e.g. if you want your app to use High DPI or generally be DPI aware) you may use this helper function. Scaling the fonts is done separately and is up to you. Important: This operation is lossy because we round all sizes to integer. If you need to change your scale multiples, call this over a freshly initialized ImGuiStyle structure rather than scaling multiple times.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ImGui_initFunction · 0.80

Calls 1

ImFloorFunction · 0.85

Tested by

no test coverage detected