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.
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.
virtual bool GetCanvasIsAutoScaled() const =0
Is the current value auto scaled, or is it user-set in the config.
virtual void SetDpiConfig(bool aAuto, double aValue)=0
Set the common DPI config in a given config object.
virtual double GetContentScaleFactor() const =0
Get the content scale factor, which may be different from the scale factor on some platforms.
virtual double GetScaleFactor() const =0
Get the DPI scale from all known sources in order: