]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/region.cpp
fixed all the other ports broken by controls labels in wxToolBar patch commit
[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::DoOffset(wxCoord x, wxCoord y)
96 {
97 return false;
98 }
99
100 // combine another region with this one
101 bool wxRegion::DoCombine(const wxRegion& rgn, wxRegionOp op)
102 {
103 return false;
104 }
105
106 // ----------------------------------------------------------------------------
107 // wxRegion bounding box
108 // ----------------------------------------------------------------------------
109
110 // Outer bounds of region
111 bool wxRegion::DoGetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
112 {
113 return false;
114 }
115
116 // Is region empty?
117 bool wxRegion::IsEmpty() const
118 {
119 return true;
120 }
121
122 bool wxRegion::DoIsEqual(const wxRegion& region) const
123 {
124 return false;
125 }
126
127 // ----------------------------------------------------------------------------
128 // wxRegion hit testing
129 // ----------------------------------------------------------------------------
130
131 // Does the region contain the point (x,y)?
132 wxRegionContain wxRegion::DoContainsPoint(wxCoord x, wxCoord y) const
133 {
134 return wxOutRegion;
135 }
136
137 // Does the region contain the rectangle rect
138 wxRegionContain wxRegion::DoContainsRect(const wxRect& rect) const
139 {
140 return wxOutRegion;
141 }
142
143 // Get internal region handle
144 WXHRGN wxRegion::GetHRGN() const
145 {
146 return 0;
147 }
148
149 // ============================================================================
150 // wxRegionIterator implementation
151 // ============================================================================
152
153 // ----------------------------------------------------------------------------
154 // wxRegionIterator ctors/dtor
155 // ----------------------------------------------------------------------------
156
157 void wxRegionIterator::Init()
158 {
159 }
160
161 wxRegionIterator::~wxRegionIterator()
162 {
163 }
164
165 // Initialize iterator for region
166 wxRegionIterator::wxRegionIterator(const wxRegion& region)
167 {
168 }
169
170 wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
171 {
172 return *this;
173 }
174
175 // ----------------------------------------------------------------------------
176 // wxRegionIterator operations
177 // ----------------------------------------------------------------------------
178
179 // Reset iterator for a new region.
180 void wxRegionIterator::Reset(const wxRegion& region)
181 {
182 }
183
184 wxRegionIterator& wxRegionIterator::operator++()
185 {
186 return *this;
187 }
188
189 wxRegionIterator wxRegionIterator::operator ++ (int)
190 {
191 return *this;
192 }
193
194 // ----------------------------------------------------------------------------
195 // wxRegionIterator accessors
196 // ----------------------------------------------------------------------------
197
198 wxCoord wxRegionIterator::GetX() const
199 {
200 return 0;
201 }
202
203 wxCoord wxRegionIterator::GetY() const
204 {
205 return 0;
206 }
207
208 wxCoord wxRegionIterator::GetW() const
209 {
210 return 0;
211 }
212
213 wxCoord wxRegionIterator::GetH() const
214 {
215 return 0;
216 }