]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | ||
cf774b67 DE |
48 | bool wxRegion::Offset(wxCoord x, wxCoord y) |
49 | { | |
50 | return false; | |
51 | } | |
52 | ||
a24aff65 DE |
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 | ||
d318df4b DE |
104 | wxRegion::wxRegion(wxCoord x, wxCoord y, wxCoord w, wxCoord h) |
105 | { | |
106 | } | |
107 | ||
cf6e135c DE |
108 | wxRegion::wxRegion(const wxRect& rect) |
109 | { | |
110 | } | |
111 | ||
d318df4b DE |
112 | wxRegion::wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight) |
113 | { | |
114 | } | |
115 | ||
a24aff65 DE |
116 | wxRegionIterator::wxRegionIterator() |
117 | { | |
118 | } | |
119 | ||
120 | wxRegionIterator::~wxRegionIterator() | |
121 | { | |
122 | } | |
123 | ||
124 | // vi:sts=4:sw=4:et |