xref: /haiku/src/apps/mediaplayer/interface/SymbolButton.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef SYMBOL_BUTTON_H
6 #define SYMBOL_BUTTON_H
7 
8 
9 #include <Button.h>
10 #include <ControlLook.h>
11 
12 class BShape;
13 
14 
15 class SymbolButton : public BButton {
16 public:
17 								SymbolButton(const char* name,
18 									BShape* symbolShape,
19 									BMessage* message = NULL,
20 									uint32 borders
21 										= BControlLook::B_ALL_BORDERS);
22 
23 	virtual						~SymbolButton();
24 
25 	// BButton interface
26 	virtual	void				Draw(BRect updateRect);
27 	virtual	BSize				MinSize();
28 	virtual	BSize				MaxSize();
29 
30 	// SymbolButton
31 			void				SetSymbol(BShape* symbolShape);
32 
33 private:
34 			BShape*				fSymbol;
35 			uint32				fBorders;
36 };
37 
38 
39 #endif	// SYMBOL_BUTTON_H
40