Game Develop C++ Platform: wxSFMLCanvas.hpp Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
wxSFMLCanvas.hpp
1 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
2
3 #ifndef WXSFMLCANVAS_HPP
4 #define WXSFMLCANVAS_HPP
5
7 // Headers
9 #include <wx/window.h>
10 #include <wx/control.h>
11 #include <SFML/Graphics.hpp>
12
13
17 class wxSFMLCanvas : public wxControl, public sf::RenderWindow
18 {
19 public :
20
31 wxSFMLCanvas(wxWindow* Parent = NULL, wxWindowID Id = -1, const wxPoint& Position = wxDefaultPosition, const wxSize& Size = wxDefaultSize, long Style = 0);
32
37 virtual ~wxSFMLCanvas();
38
39 private :
40
41 DECLARE_EVENT_TABLE()
42
43
44 virtual void OnUpdate();
49
55 void OnIdle(wxIdleEvent&);
56
62 void OnPaint(wxPaintEvent&);
63
68 void OnEraseBackground(wxEraseEvent&);
69
70 virtual void OnLeftDown(wxMouseEvent &event);
71 virtual void OnLeftUp(wxMouseEvent &event);
72 virtual void OnLeftDClick(wxMouseEvent &event);
73 virtual void OnRightDown(wxMouseEvent &event);
74 virtual void OnRightUp(wxMouseEvent &event);
75 virtual void OnRightDClick(wxMouseEvent &event);
76 virtual void OnMiddleDown(wxMouseEvent &event);
77 virtual void OnMiddleUp(wxMouseEvent &event);
78 virtual void OnAnyMouseEvent(wxMouseEvent & event);
79 virtual void OnMotion(wxMouseEvent &event);
80 virtual void OnKey(wxKeyEvent& evt);
81 virtual void OnKeyUp(wxKeyEvent& evt);
82 virtual void OnMouseWheel(wxMouseEvent& event);
83 };
84
85
86 #endif // WXSFMLCANVAS_HPP
87 #endif