repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / webpositive / support / BitmapButton.h
blob432adcb34eb31a7184ec19f0ce2149b1427dadbd
1 /*
2 * Copyright 2010 Stephan Aßmus <superstippi@gmx.de>. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef BITMAP_BUTTON_H
6 #define BITMAP_BUTTON_H
8 #include <Button.h>
11 class BBitmap;
14 class BitmapButton : public BButton {
15 public:
16 enum {
17 BUTTON_BACKGROUND = 0,
18 MENUBAR_BACKGROUND,
21 BitmapButton(const char* resourceName,
22 BMessage* message);
24 BitmapButton(const uint8* bits, uint32 width,
25 uint32 height, color_space format,
26 BMessage* message);
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);
38 private:
39 BBitmap* fBitmap;
40 uint32 fBackgroundMode;
44 #endif // BITMAP_BUTTON_H