24#ifndef DPI_SCALING_COMMON__H 
   25#define DPI_SCALING_COMMON__H 
const wxWindow * m_window
The WX window to use for WX's automatic DPI checking.
 
DPI_SCALING_COMMON(COMMON_SETTINGS *aConfig, const wxWindow *aWindow)
Construct a DPI scale provider.
 
COMMON_SETTINGS * m_config
The configuration object to use to get/set user setting.
 
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.
 
DPI_SCALING()
Construct a DPI scale provider.
 
virtual double GetScaleFactor() const =0
Get the DPI scale from all known sources in order: