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
12class BShape;
13
14
15class SymbolButton : public BButton {
16public:
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
33private:
34			BShape*				fSymbol;
35			uint32				fBorders;
36};
37
38
39#endif	// SYMBOL_BUTTON_H
40