33 const wxGLAttributes& aGLAttribs, wxWindowID aId,
34 const wxPoint& aPos,
const wxSize& aSize,
long aStyle,
35 const wxString& aName,
const wxPalette& aPalette ) :
36 wxGLCanvas( aParent, aGLAttribs, aId, aPos, aSize, aStyle, aName, aPalette ),
37 m_settings( aSettings )
44 wxSize size = wxGLCanvas::GetClientSize();
47 size.x *= scaleFactor;
48 size.y *= scaleFactor;
56 wxPoint nativePoint = aPoint;
59 nativePoint.x *= scaleFactor;
60 nativePoint.y *= scaleFactor;
68 return GetContentScaleFactor();
HIDPI_GL_CANVAS(const KIGFX::VC_SETTINGS &aSettings, wxWindow *aParent, const wxGLAttributes &aGLAttribs, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=0, const wxString &aName=wxGLCanvasName, const wxPalette &aPalette=wxNullPalette)
virtual wxSize GetNativePixelSize() const
wxPoint GetNativePosition(const wxPoint &aPoint) const
Convert the given point from client coordinates to native pixel coordinates.
double GetScaleFactor() const
Get the current scale factor.
Structure to keep VIEW_CONTROLS settings for easy store/restore operations.