]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/region.cpp
wxGetOsVersion() compilation andl inking fixes for wxMac
[wxWidgets.git] / src / palmos / region.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/region.cpp
3 // Purpose: wxRegion implementation
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 // 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/region.h"
28
29 #ifndef WX_PRECOMP
30 #include "wx/gdicmn.h"
31 #endif
32
33 IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject)
34 IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator, wxObject)
35
36 // ----------------------------------------------------------------------------
37 // wxRegionRefData implementation
38 // ----------------------------------------------------------------------------
39
40 // ============================================================================
41 // wxRegion implementation
42 // ============================================================================
43
44 // ----------------------------------------------------------------------------
45 // ctors and dtor
46 // ----------------------------------------------------------------------------
47
48 wxRegion::wxRegion()
49 {
50 }
51
52 wxRegion::wxRegion(WXHRGN hRegion)
53 {
54 }
55
56 wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
57 {
58 }
59
60 wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
61 {
62 }
63
64 wxRegion::wxRegion(const wxRect& rect)
65 {
66 }
67
68 wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle)
69 {
70 }
71
72 wxRegion::~wxRegion()
73 {
74 }
75
76 wxObjectRefData *wxRegion::CreateRefData() const
77 {
78 return NULL;
79 }
80
81 wxObjectRefData *wxRegion::CloneRefData(const wxObjectRefData *data) const
82 {
83 return NULL;
84 }
85
86 // ----------------------------------------------------------------------------
87 // wxRegion operations
88 // ----------------------------------------------------------------------------
89
90 // Clear current region
91 void wxRegion::Clear()
92 {
93 }
94
95 bool wxRegion::Offset(wxCoord x, wxCoord y)
96 {
97 return false;
98 }
99
100 // combine another region with this one
101 bool wxRegion::Combine(const wxRegion& rgn, wxRegionOp op)
102 {
103 return false;
104 }
105
106 // Combine rectangle (x, y, w, h) with this.
107 bool wxRegion::Combine(wxCoord x, wxCoord y,
108 wxCoord width, wxCoord height,
109 wxRegionOp op)
110 {
111 return false;
112 }
113
114 bool wxRegion::Combine(const wxRect& rect, wxRegionOp op)
115 {
116 return false;
117 }
118
119 // ----------------------------------------------------------------------------
120 // wxRegion bounding box
121 // ----------------------------------------------------------------------------
122
123 // Outer bounds of region
124 void wxRegion::GetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
125 {
126 }
127
128 wxRect wxRegion::GetBox() const
129 {
130 return wxRect(0, 0, 0, 0);
131 }
132
133 // Is region empty?
134 bool wxRegion::Empty() const
135 {
136 return true;
137 }
138
139 // ----------------------------------------------------------------------------
140 // wxRegion hit testing
141 // ----------------------------------------------------------------------------
142
143 // Does the region contain the point (x,y)?
144 wxRegionContain wxRegion::Contains(wxCoord x, wxCoord y) const
145 {
146 return wxOutRegion;
147 }
148
149 // Does the region contain the point pt?
150 wxRegionContain wxRegion::Contains(const wxPoint& pt) const
151 {
152 return wxOutRegion;
153 }
154
155 // Does the region contain the rectangle (x, y, w, h)?
156 wxRegionContain wxRegion::Contains(wxCoord x, wxCoord y,
157 wxCoord w, wxCoord h) const
158 {
159 return wxOutRegion;
160 }
161
162 // Does the region contain the rectangle rect
163 wxRegionContain wxRegion::Contains(const wxRect& rect) const
164 {
165 return wxOutRegion;
166 }
167
168 // Get internal region handle
169 WXHRGN wxRegion::GetHRGN() const
170 {
171 return 0;
172 }
173
174 // ============================================================================
175 // wxRegionIterator implementation
176 // ============================================================================
177
178 // ----------------------------------------------------------------------------
179 // wxRegionIterator ctors/dtor
180 // ----------------------------------------------------------------------------
181
182 void wxRegionIterator::Init()
183 {
184 }
185
186 wxRegionIterator::~wxRegionIterator()
187 {
188 }
189
190 // Initialize iterator for region
191 wxRegionIterator::wxRegionIterator(const wxRegion& region)
192 {
193 }
194
195 wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
196 {
197 return *this;
198 }
199
200 // ----------------------------------------------------------------------------
201 // wxRegionIterator operations
202 // ----------------------------------------------------------------------------
203
204 // Reset iterator for a new region.
205 void wxRegionIterator::Reset(const wxRegion& region)
206 {
207 }
208
209 wxRegionIterator& wxRegionIterator::operator++()
210 {
211 return *this;
212 }
213
214 wxRegionIterator wxRegionIterator::operator ++ (int)
215 {
216 return *this;
217 }
218
219 // ----------------------------------------------------------------------------
220 // wxRegionIterator accessors
221 // ----------------------------------------------------------------------------
222
223 wxCoord wxRegionIterator::GetX() const
224 {
225 return 0;
226 }
227
228 wxCoord wxRegionIterator::GetY() const
229 {
230 return 0;
231 }
232
233 wxCoord wxRegionIterator::GetW() const
234 {
235 return 0;
236 }
237
238 wxCoord wxRegionIterator::GetH() const
239 {
240 return 0;
241 }