2 * Copyright 2010 Stephan Aßmus <superstippi@gmx.de>. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 #ifndef BITMAP_BUTTON_H
6 #define BITMAP_BUTTON_H
14 class BitmapButton
: public BButton
{
17 BUTTON_BACKGROUND
= 0,
21 BitmapButton(const char* resourceName
,
24 BitmapButton(const uint8
* bits
, uint32 width
,
25 uint32 height
, color_space format
,
28 virtual ~BitmapButton();
30 virtual BSize
MinSize();
31 virtual BSize
MaxSize();
32 virtual BSize
PreferredSize();
34 virtual void Draw(BRect updateRect
);
36 void SetBackgroundMode(uint32 mode
);
40 uint32 fBackgroundMode
;
44 #endif // BITMAP_BUTTON_H