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