]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mgl/dcclient.h
move Freeze() and Thaw() to wxWindowBase to ensure that they behave consistently...
[wxWidgets.git] / include / wx / mgl / dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcclient.h
3 // Purpose:
4 // Author: Vaclav Slavik
5 // Id: $Id$
6 // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __WX_DCCLIENT_H__
11 #define __WX_DCCLIENT_H__
12
13 #include "wx/dc.h"
14
15 //-----------------------------------------------------------------------------
16 // classes
17 //-----------------------------------------------------------------------------
18
19 class WXDLLIMPEXP_FWD_CORE wxWindowDC;
20 class WXDLLIMPEXP_FWD_CORE wxPaintDC;
21 class WXDLLIMPEXP_FWD_CORE wxClientDC;
22 class WXDLLIMPEXP_FWD_CORE wxWindowMGL;
23
24 //-----------------------------------------------------------------------------
25 // wxWindowDC
26 //-----------------------------------------------------------------------------
27
28 class WXDLLEXPORT wxWindowDC : public wxDC
29 {
30 public:
31 wxWindowDC() {}
32 virtual ~wxWindowDC();
33 wxWindowDC(wxWindow *win);
34
35 protected:
36 wxWindow *m_wnd;
37 bool m_inPaintHandler;
38
39 private:
40 DECLARE_DYNAMIC_CLASS(wxWindowDC)
41 };
42
43 //-----------------------------------------------------------------------------
44 // wxClientDC
45 //-----------------------------------------------------------------------------
46
47 class WXDLLEXPORT wxClientDC : public wxWindowDC
48 {
49 public:
50 wxClientDC() : wxWindowDC() {}
51 wxClientDC(wxWindow *win);
52
53 private:
54 DECLARE_DYNAMIC_CLASS(wxClientDC)
55 };
56
57 //-----------------------------------------------------------------------------
58 // wxPaintDC
59 //-----------------------------------------------------------------------------
60
61 class WXDLLEXPORT wxPaintDC : public wxClientDC
62 {
63 public:
64 wxPaintDC() : wxClientDC() {}
65 wxPaintDC(wxWindow *win) : wxClientDC(win) {}
66
67 private:
68 DECLARE_DYNAMIC_CLASS(wxPaintDC)
69 };
70
71 #endif // __WX_DCCLIENT_H__