2 * Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
9 #include "SharedBitmap.h"
14 class BitmapView
: public BView
{
16 BitmapView(const char* name
);
18 virtual ~BitmapView();
20 virtual void AllAttached();
21 virtual void Draw(BRect updateRect
);
23 virtual BSize
MinSize();
24 virtual BSize
PreferredSize();
25 virtual BSize
MaxSize();
27 void SetBitmap(SharedBitmap
* bitmap
,
28 SharedBitmap::Size bitmapSize
29 = SharedBitmap::SIZE_ANY
);
31 void SetScaleBitmap(bool scaleBitmap
);
34 virtual void DrawBackground(BRect
& bounds
,
39 SharedBitmap::Size fBitmapSize
;
40 const BBitmap
* fBitmap
;
45 #endif // BITMAP_VIEW_H