]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/region.cpp
fixed TLWs resizing to invalidate the DFB surface used for painting
[wxWidgets.git] / src / palmos / region.cpp
... / ...
CommitLineData
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
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
68wxRegion::wxRegion(size_t n, const wxPoint *points, int fillStyle)
69{
70}
71
72wxRegion::~wxRegion()
73{
74}
75
76wxObjectRefData *wxRegion::CreateRefData() const
77{
78 return NULL;
79}
80
81wxObjectRefData *wxRegion::CloneRefData(const wxObjectRefData *data) const
82{
83 return NULL;
84}
85
86// ----------------------------------------------------------------------------
87// wxRegion operations
88// ----------------------------------------------------------------------------
89
90// Clear current region
91void wxRegion::Clear()
92{
93}
94
95bool wxRegion::Offset(wxCoord x, wxCoord y)
96{
97 return false;
98}
99
100// combine another region with this one
101bool wxRegion::Combine(const wxRegion& rgn, wxRegionOp op)
102{
103 return false;
104}
105
106// Combine rectangle (x, y, w, h) with this.
107bool wxRegion::Combine(wxCoord x, wxCoord y,
108 wxCoord width, wxCoord height,
109 wxRegionOp op)
110{
111 return false;
112}
113
114bool wxRegion::Combine(const wxRect& rect, wxRegionOp op)
115{
116 return false;
117}
118
119// ----------------------------------------------------------------------------
120// wxRegion bounding box
121// ----------------------------------------------------------------------------
122
123// Outer bounds of region
124void wxRegion::GetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
125{
126}
127
128wxRect wxRegion::GetBox() const
129{
130 return wxRect(0, 0, 0, 0);
131}
132
133// Is region empty?
134bool wxRegion::Empty() const
135{
136 return true;
137}
138
139// ----------------------------------------------------------------------------
140// wxRegion hit testing
141// ----------------------------------------------------------------------------
142
143// Does the region contain the point (x,y)?
144wxRegionContain wxRegion::Contains(wxCoord x, wxCoord y) const
145{
146 return wxOutRegion;
147}
148
149// Does the region contain the point pt?
150wxRegionContain wxRegion::Contains(const wxPoint& pt) const
151{
152 return wxOutRegion;
153}
154
155// Does the region contain the rectangle (x, y, w, h)?
156wxRegionContain wxRegion::Contains(wxCoord x, wxCoord y,
157 wxCoord w, wxCoord h) const
158{
159 return wxOutRegion;
160}
161
162// Does the region contain the rectangle rect
163wxRegionContain wxRegion::Contains(const wxRect& rect) const
164{
165 return wxOutRegion;
166}
167
168// Get internal region handle
169WXHRGN wxRegion::GetHRGN() const
170{
171 return 0;
172}
173
174// ============================================================================
175// wxRegionIterator implementation
176// ============================================================================
177
178// ----------------------------------------------------------------------------
179// wxRegionIterator ctors/dtor
180// ----------------------------------------------------------------------------
181
182void wxRegionIterator::Init()
183{
184}
185
186wxRegionIterator::~wxRegionIterator()
187{
188}
189
190// Initialize iterator for region
191wxRegionIterator::wxRegionIterator(const wxRegion& region)
192{
193}
194
195wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
196{
197 return *this;
198}
199
200// ----------------------------------------------------------------------------
201// wxRegionIterator operations
202// ----------------------------------------------------------------------------
203
204// Reset iterator for a new region.
205void wxRegionIterator::Reset(const wxRegion& region)
206{
207}
208
209wxRegionIterator& wxRegionIterator::operator++()
210{
211 return *this;
212}
213
214wxRegionIterator wxRegionIterator::operator ++ (int)
215{
216 return *this;
217}
218
219// ----------------------------------------------------------------------------
220// wxRegionIterator accessors
221// ----------------------------------------------------------------------------
222
223wxCoord wxRegionIterator::GetX() const
224{
225 return 0;
226}
227
228wxCoord wxRegionIterator::GetY() const
229{
230 return 0;
231}
232
233wxCoord wxRegionIterator::GetW() const
234{
235 return 0;
236}
237
238wxCoord wxRegionIterator::GetH() const
239{
240 return 0;
241}