32 const wxGLAttributes& aGLAttribs, wxWindowID aId,
const wxPoint& aPos,
33 const wxSize& aSize,
long aStyle,
const wxString& aName,
34 const wxPalette& aPalette ) :
35 HIDPI_GL_CANVAS( aVcSettings, aParent, aGLAttribs, aId, aPos, aSize, aStyle, aName, aPalette ),
82 bool mouseActivity =
false;
89 event.ShiftDown() ? WXK_SHIFT : (
event.ControlDown() ? WXK_CONTROL : ( event.AltDown() ? WXK_ALT : 0 ) );
92 float horizontalSign =
m_settings.m_scrollReversePanH ? -1 : 1;
93 float zoomSign =
m_settings.m_scrollReverseZoom ? -1 : 1;
96 delta_move *= 0.01f *
event.GetWheelRotation();
97 else if( event.GetWheelRotation() < 0 )
98 delta_move = -delta_move;
109 if( aPan && modifiers !=
m_settings.m_scrollModifierZoom )
111 if( event.GetWheelAxis() == wxMOUSE_WHEEL_HORIZONTAL || modifiers ==
m_settings.m_scrollModifierPanH )
116 mouseActivity =
true;
118 else if( modifiers ==
m_settings.m_scrollModifierPanV && !aPan )
121 mouseActivity =
true;
123 else if( modifiers ==
m_settings.m_scrollModifierPanH && !aPan )
126 mouseActivity =
true;
130 mouseActivity =
m_camera.Zoom( ( event.GetWheelRotation() * zoomSign ) > 0 ? 1.1f : 1 / 1.1f );
HIDPI_GL_3D_CANVAS(const KIGFX::VC_SETTINGS &aVcSettings, CAMERA &aCamera, wxWindow *parent, const wxGLAttributes &aGLAttribs, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxGLCanvasName, const wxPalette &palette=wxNullPalette)
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)