Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::gui::UiScaleConfig Struct Reference

HiDPI settings derived from the native window/display scale. More...

#include "donner/editor/gui/EditorWindow.h"

Public Member Functions

float scaledPixels (double basePixels) const
 Scale a logical UI dimension using the configured display scale.
float fontGlobalScale () const
 Return the global font scale used with the configured font rasterization size.

Public Attributes

double displayScale = 1.0
 Display scaling factor applied to logical UI sizing.

Detailed Description

HiDPI settings derived from the native window/display scale.

Member Function Documentation

◆ scaledPixels()

float donner::editor::gui::UiScaleConfig::scaledPixels ( double basePixels) const
inlinenodiscard

Scale a logical UI dimension using the configured display scale.

Parameters
basePixelsUnscaled logical dimension.

The documentation for this struct was generated from the following file: