diff options
Diffstat (limited to 'Project/WorkspaceDC.h')
-rw-r--r-- | Project/WorkspaceDC.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Project/WorkspaceDC.h b/Project/WorkspaceDC.h new file mode 100644 index 0000000..609663a --- /dev/null +++ b/Project/WorkspaceDC.h @@ -0,0 +1,21 @@ +#pragma once +#include "Workspace.h" + +#include <wx/graphics.h> +//#include <wx/dcclient.h> +#include <wx/dcbuffer.h> + +class WorkspaceDC : public Workspace +{ +public: + WorkspaceDC(); + WorkspaceDC(wxWindow* parent, wxString name = wxEmptyString, wxStatusBar* statusBar = nullptr); + ~WorkspaceDC(); + + virtual void Redraw() { this->Refresh(); } + + protected: + virtual void OnPaint(wxPaintEvent& event); + virtual void OnIdle(wxIdleEvent& event) {} // Prevent OpenGL checks +}; + |