]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/region.cpp
fixed wxRadioBox positioning to take the client area origin into account; also simpli...
[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, wxPolygonFillMode fillStyle)
69{
70}
71
72wxRegion::~wxRegion()
73{
74}
75
76wxGDIRefData *wxRegion::CreateGDIRefData() const
77{
78 return NULL;
79}
80
81wxGDIRefData *wxRegion::CloneGDIRefData(const wxGDIRefData *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::DoOffset(wxCoord x, wxCoord y)
96{
97 return false;
98}
99
100// combine another region with this one
101bool wxRegion::DoCombine(const wxRegion& rgn, wxRegionOp op)
102{
103 return false;
104}
105
106// ----------------------------------------------------------------------------
107// wxRegion bounding box
108// ----------------------------------------------------------------------------
109
110// Outer bounds of region
111bool wxRegion::DoGetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
112{
113 return false;
114}
115
116// Is region empty?
117bool wxRegion::IsEmpty() const
118{
119 return true;
120}
121
122bool wxRegion::DoIsEqual(const wxRegion& region) const
123{
124 return false;
125}
126
127// ----------------------------------------------------------------------------
128// wxRegion hit testing
129// ----------------------------------------------------------------------------
130
131// Does the region contain the point (x,y)?
132wxRegionContain wxRegion::DoContainsPoint(wxCoord x, wxCoord y) const
133{
134 return wxOutRegion;
135}
136
137// Does the region contain the rectangle rect
138wxRegionContain wxRegion::DoContainsRect(const wxRect& rect) const
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}