| 
    KiCad PCB EDA Suite
    
   | 
 
#include <dpi_scaling_common.h>#include <optional>#include <env_vars.h>#include <settings/common_settings.h>#include <kiplatform/ui.h>#include <wx/log.h>#include <wx/window.h>Go to the source code of this file.
Functions | |
| static std::optional< double > | getKiCadConfiguredScale (const COMMON_SETTINGS &aConfig) | 
| Get a user-configured scale factor from KiCad config file.   | |
| static std::optional< double > | getEnvironmentScale () | 
| Get the toolkit scale factor from a user-set environment variable (for example GDK_SCALE on GTK).   | |
Variables | |
| const wxChar *const | traceHiDpi = wxT( "KICAD_TRACE_HIGH_DPI" ) | 
| Flag to enable trace for HiDPI scaling factors.   | |
      
  | 
  static | 
Get the toolkit scale factor from a user-set environment variable (for example GDK_SCALE on GTK).
Definition at line 71 of file dpi_scaling_common.cpp.
References ENV_VAR::GetEnvVar(), and scale.
Referenced by DPI_SCALING_COMMON::GetContentScaleFactor(), and DPI_SCALING_COMMON::GetScaleFactor().
      
  | 
  static | 
Get a user-configured scale factor from KiCad config file.
Definition at line 51 of file dpi_scaling_common.cpp.
References COMMON_SETTINGS::APPEARANCE::canvas_scale, COMMON_SETTINGS::m_Appearance, and scale.
Referenced by DPI_SCALING_COMMON::GetCanvasIsAutoScaled(), DPI_SCALING_COMMON::GetContentScaleFactor(), and DPI_SCALING_COMMON::GetScaleFactor().