24#ifndef GAL_DISPLAY_OPTIONS_H__
25#define GAL_DISPLAY_OPTIONS_H__
69 class GAL_DISPLAY_OPTIONS;
Class to handle configuration and automatic determination of the DPI scale to use for canvases.
virtual void OnGalDisplayOptionsChanged(const GAL_DISPLAY_OPTIONS &)=0
virtual ~GAL_DISPLAY_OPTIONS_OBSERVER()
void WriteConfig(WINDOW_SETTINGS &aCfg)
DPI_SCALING m_dpi
The grid style to draw the grid in.
double m_gridLineWidth
Minimum pixel distance between displayed grid lines.
void ReadWindowSettings(WINDOW_SETTINGS &aCfg)
Read GAL config options from application-level config.
double m_gridMinSpacing
Whether or not to draw the coordinate system axes.
OPENGL_ANTIALIASING_MODE gl_antialiasing_mode
void ReadCommonConfig(COMMON_SETTINGS &aCommonSettings, wxWindow *aWindow)
Read GAL config options from the common config store.
CAIRO_ANTIALIASING_MODE cairo_antialiasing_mode
void ReadConfig(COMMON_SETTINGS &aCommonConfig, WINDOW_SETTINGS &aWindowConfig, wxWindow *aWindow)
Read application and common configs.
bool m_forceDisplayCursor
The pixel scale factor (>1 for hi-DPI scaled displays)
KIGFX::GRID_STYLE m_gridStyle
Snapping options for the grid.
bool m_axesEnabled
Fullscreen crosshair or small cross.
bool m_fullscreenCursor
Force cursor display.
GRID_SNAPPING m_gridSnapping
Thickness to render grid lines/dots.
The Cairo implementation of the graphics abstraction layer.
GRID_STYLE
GRID_STYLE: Type definition of the grid style.
@ SMALL_CROSS
Use small cross instead of dots for the grid.
@ DOTS
Use dots for the grid.
@ LINES
Use lines for the grid.
@ NONE
No updates are required.
Stores the common settings that are saved and loaded for each window / frame.