xref: /haiku/src/tests/kits/interface/bpolygon/DummyPolygon.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
1 /*
2 	$Id: DummyPolygon.h 2067 2002-11-23 04:42:57Z jrand $
3 
4 	This file contains the definition of a dummy BPolygon class.
5 	It is used in order to get access to the private points of the
6 	BPolygon.  The BPolygon class itself does not allow you to extract
7 	these points.
8 
9 	This is a hack in order to properly test BPolygon.  It is highly
10 	dependent on the private structure of BPolygon and is likely to break
11 	if this structure is changed substantially in the future.  However,
12 	it is the only effective way to test BPolygon.
13 
14 	*/
15 
16 #ifndef DUMMYPOLYGON_H
17 #define DUMMYPOLYGON_H
18 
19 
20 #include <Rect.h>
21 
22 
23 class BPoint;
24 
25 
26 class DummyPolygon {
27 
28 public:
29 	DummyPolygon();
30 	virtual ~DummyPolygon();
31 
32 	const BPoint *GetPoints(void);
33 
34 /*----- Private or reserved -----------------------------------------*/
35 private:
36                 BRect   fBounds;
37                 int32   fCount;
38                 BPoint  *fPts;
39 };
40 
41 #endif	// DUMMYPOLYGON_H
42 
43 
44 
45 
46 
47 
48