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