]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/region.cpp
I don't understand what the original author
[wxWidgets.git] / src / cocoa / region.cpp
CommitLineData
a24aff65
DE
1/////////////////////////////////////////////////////////////////////////////
2// File: region.cpp
3// Purpose: Region class
4// Author: Markus Holzem, Julian Smart, Robert Roebling
5// Created: Fri Oct 24 10:46:34 MET 1997
6// RCS-ID: $Id$
7// Copyright: (c) 1997 Markus Holzem, Julian Smart, Robert Roebling
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifdef __GNUG__
12#pragma implementation "region.h"
13#endif
14
15#include "wx/region.h"
16#include "wx/gdicmn.h"
17#include "wx/log.h"
18
19// ----------------------------------------------------------------------------
20// macros
21// ----------------------------------------------------------------------------
22
23IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject);
24IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
25
26// ----------------------------------------------------------------------------
27// wxRegion construction
28// ----------------------------------------------------------------------------
29
30wxRegion::~wxRegion()
31{
32 // m_refData unrefed in ~wxObject
33}
34
35// ----------------------------------------------------------------------------
36// wxRegion comparison
37// ----------------------------------------------------------------------------
38
39// ----------------------------------------------------------------------------
40// wxRegion operations
41// ----------------------------------------------------------------------------
42
43void wxRegion::Clear()
44{
45 UnRef();
46}
47
cf774b67
DE
48bool wxRegion::Offset(wxCoord x, wxCoord y)
49{
50 return false;
51}
52
a24aff65
DE
53bool wxRegion::Combine(long x, long y, long width, long height, wxRegionOp op)
54{
55 return false;
56}
57bool wxRegion::Combine(const wxRegion& region, wxRegionOp op)
58{
59 return false;
60}
61bool wxRegion::Combine(const wxRect& rect, wxRegionOp op)
62{
63 return false;
64}
65
66
67// Does the region contain the point (x,y)?
68wxRegionContain wxRegion::Contains(long x, long y) const
69{
70return wxOutRegion;
71}
72
73// Does the region contain the point pt?
74wxRegionContain wxRegion::Contains(const wxPoint& pt) const
75{
76return wxOutRegion;
77}
78
79// Does the region contain the rectangle (x, y, w, h)?
80wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const
81{
82return wxOutRegion;
83}
84
85// Does the region contain the rectangle rect?
86wxRegionContain wxRegion::Contains(const wxRect& rect) const
87{
88return wxOutRegion;
89}
90
91void wxRegion::GetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
92{
93}
94
95wxRect wxRegion::GetBox() const
96{
97 return wxRect();
98}
99
100wxRegion::wxRegion()
101{
102}
103
d318df4b
DE
104wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
105{
106}
107
cf6e135c
DE
108wxRegion::wxRegion(const wxRect& rect)
109{
110}
111
d318df4b
DE
112wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
113{
114}
115
cbcf084b
VZ
116// ----------------------------------------------------------------------------
117// wxRegionIterator
118// ----------------------------------------------------------------------------
119
a24aff65
DE
120wxRegionIterator::wxRegionIterator()
121{
cbcf084b
VZ
122 m_current =
123 m_numRects = 0;
124 m_rects = NULL;
125}
126
127wxRegionIterator::wxRegionIterator(const wxRegion& region)
128{
129 m_current =
130 m_numRects = 0;
131
132 m_rects = NULL;
133}
134
135wxRegionIterator::wxRegionIterator(const wxRegionIterator& iterator)
136{
137 m_current = iterator.m_current;
138 m_numRects = iterator.m_numRects;
139
140 // TODO: copy m_rects
141 m_rects = NULL;
142}
143
144wxRegionIterator wxRegionIterator::operator++(int)
145{
146 return wxRegionIterator(*this);
147}
148
149long wxRegionIterator::GetX() const
150{
151 return 0;
152}
153
154long wxRegionIterator::GetY() const
155{
156 return 0;
157}
158
159long wxRegionIterator::GetW() const
160{
161 return 0;
162}
163
164long wxRegionIterator::GetH() const
165{
166 return 0;
a24aff65
DE
167}
168
169wxRegionIterator::~wxRegionIterator()
170{
cbcf084b 171 // delete [] m_rects;
a24aff65
DE
172}
173