summaryrefslogtreecommitdiffstats
path: root/Project/WorkspaceDC.h
blob: 609663a0bae122fa23dc8cbcfc45425ebd99b797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
};