]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dfb/dcclient.h
wrap print headers at top level
[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:
20671963 25 wxWindowDC() : m_win(NULL) {}
b3c86150 26 wxWindowDC(wxWindow *win);
20671963 27 virtual ~wxWindowDC();
b3c86150
VS
28
29protected:
716af436
VS
30 // initializes the DC for painting on given window; if rect!=NULL, then
31 // for painting only on the given region of the window
32 void InitForWin(wxWindow *win, const wxRect *rect);
b3c86150 33
20671963
VS
34private:
35 wxWindow *m_win; // the window the DC paints on
36
b3c86150
VS
37 DECLARE_DYNAMIC_CLASS(wxWindowDC)
38 DECLARE_NO_COPY_CLASS(wxWindowDC)
39};
40
b3c86150
VS
41//-----------------------------------------------------------------------------
42// wxClientDC
43//-----------------------------------------------------------------------------
44
20671963 45class WXDLLIMPEXP_CORE wxClientDC : public wxWindowDC
b3c86150
VS
46{
47public:
48 wxClientDC() {}
20671963 49 wxClientDC(wxWindow *win);
b3c86150
VS
50
51 DECLARE_DYNAMIC_CLASS(wxClientDC)
52 DECLARE_NO_COPY_CLASS(wxClientDC)
53};
54
55
56//-----------------------------------------------------------------------------
57// wxPaintDC
58//-----------------------------------------------------------------------------
59
20671963 60class WXDLLIMPEXP_CORE wxPaintDC : public wxClientDC
b3c86150
VS
61{
62public:
63 wxPaintDC() {}
20671963 64 wxPaintDC(wxWindow *win) : wxClientDC(win) {}
b3c86150
VS
65
66 DECLARE_DYNAMIC_CLASS(wxPaintDC)
67 DECLARE_NO_COPY_CLASS(wxPaintDC)
68};
69
70#endif // _WX_DFB_DCCLIENT_H_