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