]> git.saurik.com Git - wxWidgets.git/blob - src/qt/region.cpp
Added wxDC:DrawPolygone
[wxWidgets.git] / src / qt / region.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: region.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/98
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifdef __GNUG__
13 #pragma implementation "region.h"
14 #endif
15
16 #include "wx/region.h"
17
18 //-----------------------------------------------------------------------------
19 // wxRegion
20 //-----------------------------------------------------------------------------
21
22 class wxRegionRefData: public wxObjectRefData
23 {
24 public:
25
26 wxRegionRefData(void);
27 ~wxRegionRefData(void);
28
29 public:
30
31 };
32
33 wxRegionRefData::wxRegionRefData(void)
34 {
35 };
36
37 wxRegionRefData::~wxRegionRefData(void)
38 {
39 };
40
41 //-----------------------------------------------------------------------------
42
43 #define M_REGIONDATA ((wxRegionRefData *)m_refData)
44
45 IMPLEMENT_DYNAMIC_CLASS(wxRegion,wxGDIObject);
46
47 wxRegion::wxRegion( long x, long y, long w, long h )
48 {
49 m_refData = new wxRegionRefData();
50 };
51
52 wxRegion::wxRegion( const wxPoint& topLeft, const wxPoint& bottomRight )
53 {
54 m_refData = new wxRegionRefData();
55 };
56
57 wxRegion::wxRegion( const wxRect& rect )
58 {
59 m_refData = new wxRegionRefData();
60 };
61
62 wxRegion::wxRegion(void)
63 {
64 m_refData = new wxRegionRefData();
65 };
66
67 wxRegion::~wxRegion(void)
68 {
69 };
70
71 void wxRegion::Clear(void)
72 {
73 UnRef();
74 m_refData = new wxRegionRefData();
75 };
76
77 bool wxRegion::Union( long x, long y, long width, long height )
78 {
79 return TRUE;
80 };
81
82 bool wxRegion::Union( const wxRect& rect )
83 {
84 return TRUE;
85 };
86
87 bool wxRegion::Union( const wxRegion& region )
88 {
89 return TRUE;
90 };
91
92 bool wxRegion::Intersect( long x, long y, long width, long height )
93 {
94 return TRUE;
95 };
96
97 bool wxRegion::Intersect( const wxRect& rect )
98 {
99 return TRUE;
100 };
101
102 bool wxRegion::Intersect( const wxRegion& region )
103 {
104 return TRUE;
105 };
106
107 bool wxRegion::Subtract( long x, long y, long width, long height )
108 {
109 return TRUE;
110 };
111
112 bool wxRegion::Subtract( const wxRect& rect )
113 {
114 return TRUE;
115 };
116
117 bool wxRegion::Subtract( const wxRegion& region )
118 {
119 return TRUE;
120 };
121
122 bool wxRegion::Xor( long x, long y, long width, long height )
123 {
124 return TRUE;
125 };
126
127 bool wxRegion::Xor( const wxRect& rect )
128 {
129 return TRUE;
130 };
131
132 bool wxRegion::Xor( const wxRegion& region )
133 {
134 return TRUE;
135 };
136
137 void wxRegion::GetBox( long& x, long& y, long&w, long &h ) const
138 {
139 x = 0;
140 y = 0;
141 w = -1;
142 h = -1;
143 };
144
145 wxRect wxRegion::GetBox(void) const
146 {
147 return wxRect( 0, 0, -1, -1 );
148 };
149
150 bool wxRegion::Empty(void) const
151 {
152 };
153
154 wxRegionContain wxRegion::Contains( long x, long y ) const
155 {
156 return wxOutRegion;
157 };
158
159 wxRegionContain wxRegion::Contains( long x, long y, long w, long h ) const
160 {
161 return wxOutRegion;
162 };
163