]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/dcclient.cpp
wxSYS_COLOUR_WINDOW is better for window backgrounds on PPC/Smartphone
[wxWidgets.git] / src / palmos / dcclient.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/dcclient.cpp
3 // Purpose: wxClientDC class
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ===========================================================================
13 // declarations
14 // ===========================================================================
15
16 // ----------------------------------------------------------------------------
17 // headers
18 // ----------------------------------------------------------------------------
19
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
21 #pragma implementation "dcclient.h"
22 #endif
23
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
26
27 #ifdef __BORLANDC__
28 #pragma hdrstop
29 #endif
30
31 #include "wx/string.h"
32 #include "wx/log.h"
33 #include "wx/window.h"
34
35 #include "wx/dcclient.h"
36
37 // ----------------------------------------------------------------------------
38 // array/list types
39 // ----------------------------------------------------------------------------
40
41 struct WXDLLEXPORT wxPaintDCInfo
42 {
43 wxPaintDCInfo(wxWindow *win, wxDC *dc)
44 {
45 handle = win->GetWinHandle();
46 hdc = dc->GetHDC();
47 count = 1;
48 }
49
50 WXWINHANDLE handle; // window for this DC
51 WXHDC hdc; // the DC handle
52 size_t count; // usage count
53 };
54
55 #include "wx/arrimpl.cpp"
56
57 WX_DEFINE_OBJARRAY(wxArrayDCInfo);
58
59 // ----------------------------------------------------------------------------
60 // macros
61 // ----------------------------------------------------------------------------
62
63 IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC)
64 IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC)
65 IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxClientDC)
66 IMPLEMENT_CLASS(wxPaintDCEx, wxPaintDC)
67
68 // ----------------------------------------------------------------------------
69 // global variables
70 // ----------------------------------------------------------------------------
71
72 #ifdef __WXDEBUG__
73 int g_isPainting = 0;
74 #endif // __WXDEBUG__
75
76 // ===========================================================================
77 // implementation
78 // ===========================================================================
79
80 // ----------------------------------------------------------------------------
81 // wxWindowDC
82 // ----------------------------------------------------------------------------
83
84 wxWindowDC::wxWindowDC()
85 {
86 }
87
88 wxWindowDC::wxWindowDC(wxWindow *canvas)
89 {
90 }
91
92 void wxWindowDC::InitDC()
93 {
94 }
95
96 void wxWindowDC::DoGetSize(int *width, int *height) const
97 {
98 }
99
100 // ----------------------------------------------------------------------------
101 // wxClientDC
102 // ----------------------------------------------------------------------------
103
104 wxClientDC::wxClientDC()
105 {
106 }
107
108 wxClientDC::wxClientDC(wxWindow *canvas)
109 {
110 }
111
112 void wxClientDC::InitDC()
113 {
114 }
115
116 wxClientDC::~wxClientDC()
117 {
118 }
119
120 void wxClientDC::DoGetSize(int *width, int *height) const
121 {
122 }
123
124 // ----------------------------------------------------------------------------
125 // wxPaintDC
126 // ----------------------------------------------------------------------------
127
128 wxArrayDCInfo wxPaintDC::ms_cache;
129
130 wxPaintDC::wxPaintDC()
131 {
132 }
133
134 wxPaintDC::wxPaintDC(wxWindow *canvas)
135 {
136 }
137
138 wxPaintDC::~wxPaintDC()
139 {
140 }
141
142 wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const
143 {
144 return NULL;
145 }
146
147 WXHDC wxPaintDC::FindDCInCache(wxWindow* win)
148 {
149 return 0;
150 }
151
152 /*
153 * wxPaintDCEx
154 */
155
156 wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0)
157 {
158 }
159
160 wxPaintDCEx::~wxPaintDCEx()
161 {
162 }
163