1 2 #ifndef DRAW_VIEW_H 3 #define DRAW_VIEW_H 4 5 #include <View.h> 6 7 class Desktop; 8 9 class DrawView : public BView { 10 public: 11 DrawView(BRect frame); 12 virtual ~DrawView(); 13 14 virtual void MouseDown(BPoint where); 15 virtual void MouseUp(BPoint where); 16 virtual void MouseMoved(BPoint where, uint32 code, 17 const BMessage* dragMessage); 18 19 void SetDesktop(Desktop* desktop); 20 21 private: 22 Desktop* fDesktop; 23 }; 24 25 #endif // DRAW_VIEW_H 26 27