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