xref: /haiku/src/tests/add-ons/print/pdf/bezierbounds/BBView.h (revision 3e216965baa8d58a67bf7372e2bfa13d999f5a9d)
1 #ifndef VIEW_H
2 #define VIEW_H
3 
4 #include "SubPath.h"
5 #include <View.h>
6 
7 class BBView : public BView {
8 	SubPath fPath;
9 	enum {
10 		kDrawOutline,
11 		kStroke
12 	} fMode;
13 	int fCurPoint;
14 	float fWidth;
15 
16 public:
17 	BBView(BRect rect);
18 	void Draw(BRect updateRect);
19 	void MouseDown(BPoint point);
20 	void MouseUp(BPoint point);
21 	void MouseMoved(BPoint point, uint32 transit, const BMessage *message);
22 	void SetClose(bool close);
23 };
24 #endif
25