0ad/source/tools/atlas/AtlasUI/CustomControls/Canvas/Canvas.h
Ykkrosh 38a5e807ff # Fixed Atlas on Linux
Added call to XInitThreads, for required thread safety.
Fixed conversions between wchar_t and XMLCh strings. (Not tested much
yet.)
Fixed COLLADA too.

This was SVN commit r4964.
2007-03-20 01:06:34 +00:00

23 lines
445 B
C++

#include "wx/glcanvas.h"
class Canvas : public wxGLCanvas
{
public:
Canvas(wxWindow* parent, int* attribList, long style);
void InitSize();
protected:
virtual void HandleMouseEvent(wxMouseEvent& evt) = 0;
private:
void OnResize(wxSizeEvent& evt);
void OnMouseCapture(wxMouseCaptureChangedEvent& evt);
void OnMouse(wxMouseEvent& evt);
bool m_SuppressResize;
wxPoint m_LastMousePos;
bool m_MouseCaptured;
DECLARE_EVENT_TABLE();
};