]>
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 | ||
df91131c WS |
27 | #include "wx/dcclient.h" |
28 | ||
29 | #ifndef WX_PRECOMP | |
30 | #include "wx/string.h" | |
e4db172a | 31 | #include "wx/log.h" |
df91131c WS |
32 | #endif |
33 | ||
ffecfa5a JS |
34 | #include "wx/window.h" |
35 | ||
ffecfa5a JS |
36 | // ---------------------------------------------------------------------------- |
37 | // array/list types | |
38 | // ---------------------------------------------------------------------------- | |
39 | ||
40 | struct WXDLLEXPORT wxPaintDCInfo | |
41 | { | |
42 | wxPaintDCInfo(wxWindow *win, wxDC *dc) | |
43 | { | |
324eeecb WS |
44 | handle = win->GetWinHandle(); |
45 | hdc = dc->GetHDC(); | |
46 | count = 1; | |
ffecfa5a JS |
47 | } |
48 | ||
324eeecb WS |
49 | WXWINHANDLE handle; // window for this DC |
50 | WXHDC hdc; // the DC handle | |
51 | size_t count; // usage count | |
ffecfa5a JS |
52 | }; |
53 | ||
54 | #include "wx/arrimpl.cpp" | |
55 | ||
56 | WX_DEFINE_OBJARRAY(wxArrayDCInfo); | |
57 | ||
58 | // ---------------------------------------------------------------------------- | |
59 | // macros | |
60 | // ---------------------------------------------------------------------------- | |
61 | ||
62 | IMPLEMENT_DYNAMIC_CLASS(wxWindowDC, wxDC) | |
63 | IMPLEMENT_DYNAMIC_CLASS(wxClientDC, wxWindowDC) | |
64 | IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxClientDC) | |
65 | IMPLEMENT_CLASS(wxPaintDCEx, wxPaintDC) | |
66 | ||
67 | // ---------------------------------------------------------------------------- | |
68 | // global variables | |
69 | // ---------------------------------------------------------------------------- | |
70 | ||
71 | #ifdef __WXDEBUG__ | |
72 | int g_isPainting = 0; | |
73 | #endif // __WXDEBUG__ | |
74 | ||
75 | // =========================================================================== | |
76 | // implementation | |
77 | // =========================================================================== | |
78 | ||
79 | // ---------------------------------------------------------------------------- | |
80 | // wxWindowDC | |
81 | // ---------------------------------------------------------------------------- | |
82 | ||
83 | wxWindowDC::wxWindowDC() | |
84 | { | |
85 | } | |
86 | ||
87 | wxWindowDC::wxWindowDC(wxWindow *canvas) | |
88 | { | |
89 | } | |
90 | ||
91 | void wxWindowDC::InitDC() | |
92 | { | |
93 | } | |
94 | ||
95 | void wxWindowDC::DoGetSize(int *width, int *height) const | |
96 | { | |
97 | } | |
98 | ||
99 | // ---------------------------------------------------------------------------- | |
100 | // wxClientDC | |
101 | // ---------------------------------------------------------------------------- | |
102 | ||
103 | wxClientDC::wxClientDC() | |
104 | { | |
105 | } | |
106 | ||
107 | wxClientDC::wxClientDC(wxWindow *canvas) | |
108 | { | |
109 | } | |
110 | ||
111 | void wxClientDC::InitDC() | |
112 | { | |
113 | } | |
114 | ||
115 | wxClientDC::~wxClientDC() | |
116 | { | |
117 | } | |
118 | ||
119 | void wxClientDC::DoGetSize(int *width, int *height) const | |
120 | { | |
121 | } | |
122 | ||
123 | // ---------------------------------------------------------------------------- | |
124 | // wxPaintDC | |
125 | // ---------------------------------------------------------------------------- | |
126 | ||
127 | wxArrayDCInfo wxPaintDC::ms_cache; | |
128 | ||
129 | wxPaintDC::wxPaintDC() | |
130 | { | |
131 | } | |
132 | ||
133 | wxPaintDC::wxPaintDC(wxWindow *canvas) | |
134 | { | |
135 | } | |
136 | ||
137 | wxPaintDC::~wxPaintDC() | |
138 | { | |
139 | } | |
140 | ||
141 | wxPaintDCInfo *wxPaintDC::FindInCache(size_t *index) const | |
142 | { | |
143 | return NULL; | |
144 | } | |
145 | ||
146 | WXHDC wxPaintDC::FindDCInCache(wxWindow* win) | |
147 | { | |
148 | return 0; | |
149 | } | |
150 | ||
151 | /* | |
152 | * wxPaintDCEx | |
153 | */ | |
e2731512 | 154 | |
ffecfa5a JS |
155 | wxPaintDCEx::wxPaintDCEx(wxWindow *canvas, WXHDC dc) : saveState(0) |
156 | { | |
157 | } | |
158 | ||
159 | wxPaintDCEx::~wxPaintDCEx() | |
160 | { | |
161 | } |