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