btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / mediaplayer / interface / SymbolButton.h
blob35aa35f8038c9e487ce5fc4a4ab0d4300064f6cd
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
9 #include <Button.h>
10 #include <ControlLook.h>
12 class BShape;
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);
23 virtual ~SymbolButton();
25 // BButton interface
26 virtual void Draw(BRect updateRect);
27 virtual BSize MinSize();
28 virtual BSize MaxSize();
30 // SymbolButton
31 void SetSymbol(BShape* symbolShape);
33 private:
34 BShape* fSymbol;
35 uint32 fBorders;
39 #endif // SYMBOL_BUTTON_H