1 // BitmapView.h 2 3 #ifndef BITMAP_VIEW_H 4 #define BITMAP_VIEW_H 5 6 #include <View.h> 7 8 class BBitmap; 9 10 class BitmapView : public BView { 11 public: 12 BitmapView(BRect frame, 13 const char* name, 14 BBitmap* bitmap); 15 virtual ~BitmapView(); 16 17 virtual void Draw(BRect updateRect); 18 19 virtual void MouseDown(BPoint where); 20 virtual void MouseUp(BPoint where); 21 virtual void MouseMoved(BPoint where, uint32 transit, 22 const BMessage* dragMessage); 23 24 private: 25 BBitmap* fBitmap; 26 }; 27 28 29 #endif // BITMAP_VIEW_H 30