Class to handle configuration and automatic determination of the DPI scale to use for canvases.
double GetScaleFactor() const
Get the DPI scale from all known sources in order:
void SetDpiConfig(bool aAuto, double aValue)
Set the common DPI config in a given config object.
double GetContentScaleFactor() const
Get the content scale factor, which may be different from the scale factor on some platforms.
COMMON_SETTINGS * m_config
The configuration object to use to get/set user setting.
static double GetDefaultScaleFactor()
Get the "default" scaling factor to use if not other config is available.
const wxWindow * m_window
The WX window to use for WX's automatic DPI checking.
static double GetMaxScaleFactor()
bool GetCanvasIsAutoScaled() const
Is the current value auto scaled, or is it user-set in the config.
static double GetMinScaleFactor()