27#ifndef HIDPI_GL_CANVAS_H
28#define HIDPI_GL_CANVAS_H
31#include <wx/glcanvas.h>
45 wxWindowID aId = wxID_ANY,
const int* aAttribList =
nullptr,
46 const wxPoint& aPos = wxDefaultPosition,
const wxSize& aSize = wxDefaultSize,
47 long aStyle = 0,
const wxString& aName = wxGLCanvasName,
48 const wxPalette& aPalette = wxNullPalette );
50 virtual wxSize GetNativePixelSize()
const;
55 wxPoint GetNativePosition(
const wxPoint& aPoint )
const;
60 void SetScaleFactor(
double aFactor );
65 double GetScaleFactor()
const;
wxGLCanvas wrapper for HiDPI/Retina support.
KIGFX::VC_SETTINGS m_settings
< Current VIEW_CONTROLS settings.
void SetVcSettings(const KIGFX::VC_SETTINGS &aVcSettings)
double m_scale_factor
The current scale factor (e.g.
Structure to keep VIEW_CONTROLS settings for easy store/restore operations.