headers/bsd: Add sys/queue.h.
[haiku.git] / src / tests / servers / app / painter / BitmapView.h
blobeb7b003f15c261ff8d4050ef5bac2d7e102f351d
1 // BitmapView.h
3 #ifndef BITMAP_VIEW_H
4 #define BITMAP_VIEW_H
6 #include <View.h>
8 class BBitmap;
10 class BitmapView : public BView {
11 public:
12 BitmapView(BRect frame,
13 const char* name,
14 BBitmap* bitmap);
15 virtual ~BitmapView();
17 virtual void Draw(BRect updateRect);
19 virtual void MouseDown(BPoint where);
20 virtual void MouseUp(BPoint where);
21 virtual void MouseMoved(BPoint where, uint32 transit,
22 const BMessage* dragMessage);
24 private:
25 BBitmap* fBitmap;
29 #endif // BITMAP_VIEW_H