]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/dcclient.h
Made geometry classes link.
[wxWidgets.git] / include / wx / os2 / dcclient.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcclient.h
3 // Purpose: wxClientDC class
4 // Author: David Webster
5 // Modified by:
6 // Created: 09/12/99
7 // RCS-ID: $Id$
8 // Copyright: (c) David Webster
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DCCLIENT_H_
13 #define _WX_DCCLIENT_H_
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 #include "wx/dc.h"
20 #include "wx/dynarray.h"
21
22 // ----------------------------------------------------------------------------
23 // array types
24 // ----------------------------------------------------------------------------
25
26 // this one if used by wxPaintDC only
27 struct WXDLLEXPORT wxPaintDCInfo;
28
29 WX_DECLARE_OBJARRAY(wxPaintDCInfo, wxArrayDCInfo);
30
31 // ----------------------------------------------------------------------------
32 // DC classes
33 // ----------------------------------------------------------------------------
34
35 class WXDLLEXPORT wxWindowDC : public wxDC
36 {
37 DECLARE_DYNAMIC_CLASS(wxWindowDC)
38
39 public:
40 wxWindowDC();
41
42 // Create a DC corresponding to the whole window
43 wxWindowDC(wxWindow *win);
44
45 virtual ~wxWindowDC();
46
47 private:
48 HAB m_hab;
49 SIZEL m_PageSize;
50 };
51
52 class WXDLLEXPORT wxClientDC : public wxWindowDC
53 {
54 DECLARE_DYNAMIC_CLASS(wxClientDC)
55
56 public:
57 wxClientDC();
58
59 // Create a DC corresponding to the client area of the window
60 wxClientDC(wxWindow *win);
61
62 virtual ~wxClientDC();
63 };
64
65 class WXDLLEXPORT wxPaintDC : public wxWindowDC
66 {
67 DECLARE_DYNAMIC_CLASS(wxPaintDC)
68
69 public:
70 wxPaintDC();
71
72 // Create a DC corresponding for painting the window in OnPaint()
73 wxPaintDC(wxWindow *win);
74
75 virtual ~wxPaintDC();
76
77 protected:
78 static wxArrayDCInfo ms_cache;
79
80 // find the entry for this DC in the cache (keyed by the window)
81 wxPaintDCInfo *FindInCache(size_t *index = NULL) const;
82 };
83
84 #endif
85 // _WX_DCCLIENT_H_