5 * Created by Toshi Nagata on 08/10/24.
6 * Copyright 2008 Toshi Nagata. All rights reserved.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation version 2 of the License.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
18 #ifndef __MyGLCanvas_h__
19 #define __MyGLCanvas_h__
21 #include "wx/glcanvas.h"
22 #include "../MolLib/MolLib.h"
26 class MyGLCanvas: public wxGLCanvas
31 MyGLCanvas(MoleculeView *v, wxWindow *frame, const wxPoint& pos, const wxSize& size, long style = 0);
32 void OnPaint(wxPaintEvent &event);
33 void OnMouseEvent(wxMouseEvent &event);
34 void OnEraseBackground(wxEraseEvent &event);
35 void OnSize(wxSizeEvent &event);
36 void OnChar(wxKeyEvent &event);
37 void OnCaptureLost(wxMouseCaptureLostEvent &event);
44 #endif /* __MyGLCanvas_h__ */