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