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