]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/dcclient.h
Added the ability to use built-in bullet styles, currently standard/circle or standar...
[wxWidgets.git] / include / wx / dfb / dcclient.h
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
16 class WXDLLIMPEXP_CORE wxWindow;
17
18 //-----------------------------------------------------------------------------
19 // wxWindowDC
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxWindowDC : public wxDC
23 {
24 public:
25 wxWindowDC() : m_shouldFlip(false) {}
26 wxWindowDC(wxWindow *win);
27 virtual ~wxWindowDC();
28
29 protected:
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);
33
34 private:
35 bool m_shouldFlip; // flip the surface when done?
36
37 DECLARE_DYNAMIC_CLASS(wxWindowDC)
38 DECLARE_NO_COPY_CLASS(wxWindowDC)
39 };
40
41 //-----------------------------------------------------------------------------
42 // wxClientDC
43 //-----------------------------------------------------------------------------
44
45 class WXDLLIMPEXP_CORE wxClientDC : public wxWindowDC
46 {
47 public:
48 wxClientDC() {}
49 wxClientDC(wxWindow *win);
50
51 DECLARE_DYNAMIC_CLASS(wxClientDC)
52 DECLARE_NO_COPY_CLASS(wxClientDC)
53 };
54
55
56 //-----------------------------------------------------------------------------
57 // wxPaintDC
58 //-----------------------------------------------------------------------------
59
60 class WXDLLIMPEXP_CORE wxPaintDC : public wxClientDC
61 {
62 public:
63 wxPaintDC() {}
64 wxPaintDC(wxWindow *win) : wxClientDC(win) {}
65
66 DECLARE_DYNAMIC_CLASS(wxPaintDC)
67 DECLARE_NO_COPY_CLASS(wxPaintDC)
68 };
69
70 #endif // _WX_DFB_DCCLIENT_H_