Back to index

libsfml  1.6+dfsg2
wxSFMLCanvas.hpp
Go to the documentation of this file.
00001 
00002 #ifndef WXSFMLCANVAS_HPP
00003 #define WXSFMLCANVAS_HPP
00004 
00006 // Headers
00008 #include <SFML/Graphics.hpp>
00009 #include <wx/wx.h>
00010 
00011 
00015 class wxSFMLCanvas : public wxControl, public sf::RenderWindow
00016 {
00017 public :
00018 
00029     wxSFMLCanvas(wxWindow* Parent = NULL, wxWindowID Id = -1, const wxPoint& Position = wxDefaultPosition, const wxSize& Size = wxDefaultSize, long Style = 0);
00030 
00035     virtual ~wxSFMLCanvas();
00036 
00037 private :
00038 
00039     DECLARE_EVENT_TABLE()
00040 
00041     
00042 
00043 
00044 
00045 
00046     virtual void OnUpdate();
00047 
00053     void OnIdle(wxIdleEvent&);
00054 
00060     void OnPaint(wxPaintEvent&);
00061 
00066     void OnEraseBackground(wxEraseEvent&);
00067 };
00068 
00069 
00070 #endif // WXSFMLCANVAS_HPP