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