]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/dcclient.h
fixed wxDC to correctly handle SetFoo(wxNullFoo) calls
[wxWidgets.git] / include / wx / dfb / dcclient.h
CommitLineData
b3c86150
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/dfb/dcclient.h
3// Purpose: wxWindowDC, wxClientDC and wxPaintDC
4// Author: Vaclav Slavik
5// Created: 2006-08-10
6// RCS-ID: $Id$
7// Copyright: (c) 2006 REA Elektronik GmbH
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_DFB_DCCLIENT_H_
12#define _WX_DFB_DCCLIENT_H_
13
14#include "wx/dc.h"
15
16class WXDLLIMPEXP_CORE wxWindow;
17
18//-----------------------------------------------------------------------------
19// wxWindowDC
20//-----------------------------------------------------------------------------
21
22class WXDLLIMPEXP_CORE wxWindowDC : public wxDC
23{
24public:
25 wxWindowDC() {}
26 wxWindowDC(wxWindow *win);
27
28protected:
29 void InitForWin(wxWindow *win);
30
31 DECLARE_DYNAMIC_CLASS(wxWindowDC)
32 DECLARE_NO_COPY_CLASS(wxWindowDC)
33};
34
35//-----------------------------------------------------------------------------
36// base class for wxClientDC and wxPaintDC
37//-----------------------------------------------------------------------------
38
39class WXDLLIMPEXP_CORE wxClientDCBase : public wxWindowDC
40{
41public:
42 wxClientDCBase() {}
43 wxClientDCBase(wxWindow *win);
44};
45
46//-----------------------------------------------------------------------------
47// wxClientDC
48//-----------------------------------------------------------------------------
49
50class WXDLLIMPEXP_CORE wxClientDC : public wxClientDCBase
51{
52public:
53 wxClientDC() {}
54 wxClientDC(wxWindow *win) : wxClientDCBase(win) {}
55 ~wxClientDC();
56
57 DECLARE_DYNAMIC_CLASS(wxClientDC)
58 DECLARE_NO_COPY_CLASS(wxClientDC)
59};
60
61
62//-----------------------------------------------------------------------------
63// wxPaintDC
64//-----------------------------------------------------------------------------
65
66class WXDLLIMPEXP_CORE wxPaintDC : public wxClientDCBase
67{
68public:
69 wxPaintDC() {}
70 wxPaintDC(wxWindow *win) : wxClientDCBase(win) {}
71 ~wxPaintDC();
72
73 DECLARE_DYNAMIC_CLASS(wxPaintDC)
74 DECLARE_NO_COPY_CLASS(wxPaintDC)
75};
76
77#endif // _WX_DFB_DCCLIENT_H_