24 #ifndef DPI_SCALING__H 25 #define DPI_SCALING__H 27 #include <wx/window.h> 103 #endif // DPI_SCALING__H DPI_SCALING(COMMON_SETTINGS *aConfig, const wxWindow *aWindow)
Construct a DPI scale provider.
static double GetDefaultScaleFactor()
Get the "default" scaling factor to use if not other config is available.
double GetScaleFactor() const
Get the DPI scale from all known sources in order:
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
void SetDpiConfig(bool aAuto, double aValue)
Set the common DPI config in a given config object.
static double GetMaxScaleFactor()
static double GetMinScaleFactor()
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.
bool GetCanvasIsAutoScaled() const
Is the current value auto scaled, or is it user-set in the config.