2 * Copyright 2013, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef BITMAP_BUTTON_H
6 #define BITMAP_BUTTON_H
11 #include "BitmapView.h"
14 class BitmapButton
: public BitmapView
, public BInvoker
{
16 BitmapButton(const char* name
,
17 BMessage
* message
= NULL
);
18 virtual ~BitmapButton();
20 virtual void AttachedToWindow();
22 virtual void MouseMoved(BPoint where
, uint32 transit
,
23 const BMessage
* dragMessage
);
24 virtual void MouseDown(BPoint where
);
25 virtual void MouseUp(BPoint where
);
27 virtual BSize
MinSize();
28 virtual BSize
PreferredSize();
29 virtual BSize
MaxSize();
32 virtual void DrawBackground(BRect
& bounds
,
36 void _SetMouseInside(bool inside
);
37 void _SetMouseDown(bool down
);
44 #endif // BITMAP_VIEW_H