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