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