Lines Matching defs:scale
1118 // 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.
1119 // 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.
2399 void ImGui::RenderArrow(ImVec2 p_min, ImGuiDir dir, float scale)
2404 float r = h * 0.40f * scale;
2405 ImVec2 center = p_min + ImVec2(h * 0.50f, h * 0.50f * scale);
2788 // it may not scale very well for windows with ten of thousands of item, but at least NavMoveRequest is only set on user interaction, aka maximum once a frame.
3274 const float scale = new_font_scale / window->FontWindowScale;
3277 const ImVec2 offset = window->Size * (1.0f - scale) * (g.IO.MousePos - window->Pos) / window->Size;
3279 window->Size *= scale;
3280 window->SizeFull *= scale;
3498 // Mouse wheel scrolling, scale
6317 void ImGui::SetWindowFontScale(float scale)
6321 window->FontWindowScale = scale;