]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/region.cpp
Added UpdateSize to wxSplitterWindow, to allow an app
[wxWidgets.git] / src / cocoa / region.cpp
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
23 IMPLEMENT_DYNAMIC_CLASS(wxRegion, wxGDIObject);
24 IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject);
25
26 // ----------------------------------------------------------------------------
27 // wxRegion construction
28 // ----------------------------------------------------------------------------
29
30 wxRegion::~wxRegion()
31 {
32 // m_refData unrefed in ~wxObject
33 }
34
35 // ----------------------------------------------------------------------------
36 // wxRegion comparison
37 // ----------------------------------------------------------------------------
38
39 // ----------------------------------------------------------------------------
40 // wxRegion operations
41 // ----------------------------------------------------------------------------
42
43 void wxRegion::Clear()
44 {
45 UnRef();
46 }
47
48 bool wxRegion::Offset(wxCoord x, wxCoord y)
49 {
50 return false;
51 }
52
53 bool wxRegion::Combine(long x, long y, long width, long height, wxRegionOp op)
54 {
55 return false;
56 }
57 bool wxRegion::Combine(const wxRegion& region, wxRegionOp op)
58 {
59 return false;
60 }
61 bool wxRegion::Combine(const wxRect& rect, wxRegionOp op)
62 {
63 return false;
64 }
65
66
67 // Does the region contain the point (x,y)?
68 wxRegionContain wxRegion::Contains(long x, long y) const
69 {
70 return wxOutRegion;
71 }
72
73 // Does the region contain the point pt?
74 wxRegionContain wxRegion::Contains(const wxPoint& pt) const
75 {
76 return wxOutRegion;
77 }
78
79 // Does the region contain the rectangle (x, y, w, h)?
80 wxRegionContain wxRegion::Contains(long x, long y, long w, long h) const
81 {
82 return wxOutRegion;
83 }
84
85 // Does the region contain the rectangle rect?
86 wxRegionContain wxRegion::Contains(const wxRect& rect) const
87 {
88 return wxOutRegion;
89 }
90
91 void wxRegion::GetBox(wxCoord& x, wxCoord& y, wxCoord&w, wxCoord &h) const
92 {
93 }
94
95 wxRect wxRegion::GetBox() const
96 {
97 return wxRect();
98 }
99
100 wxRegion::wxRegion()
101 {
102 }
103
104 wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
105 {
106 }
107
108 wxRegion::wxRegion(const wxRect& rect)
109 {
110 }
111
112 wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight)
113 {
114 }
115
116 // ----------------------------------------------------------------------------
117 // wxRegionIterator
118 // ----------------------------------------------------------------------------
119
120 wxRegionIterator::wxRegionIterator()
121 {
122 m_current =
123 m_numRects = 0;
124 m_rects = NULL;
125 }
126
127 wxRegionIterator::wxRegionIterator(const wxRegion& region)
128 {
129 m_current =
130 m_numRects = 0;
131
132 m_rects = NULL;
133 }
134
135 wxRegionIterator::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
144 wxRegionIterator wxRegionIterator::operator++(int)
145 {
146 return wxRegionIterator(*this);
147 }
148
149 long wxRegionIterator::GetX() const
150 {
151 return 0;
152 }
153
154 long wxRegionIterator::GetY() const
155 {
156 return 0;
157 }
158
159 long wxRegionIterator::GetW() const
160 {
161 return 0;
162 }
163
164 long wxRegionIterator::GetH() const
165 {
166 return 0;
167 }
168
169 wxRegionIterator::~wxRegionIterator()
170 {
171 // delete [] m_rects;
172 }
173