2 * Copyright 2010, Stephan Aßmus <superstippi@gmx.de>.
3 * Distributed under the terms of the MIT License.
5 #ifndef PLAY_PAUSE_BUTTON_H
6 #define PLAY_PAUSE_BUTTON_H
9 #include "SymbolButton.h"
12 class PlayPauseButton
: public SymbolButton
{
14 PlayPauseButton(const char* name
,
15 BShape
* playSymbolShape
,
16 BShape
* pauseSymbolShape
,
17 BMessage
* message
= NULL
,
19 = BControlLook::B_ALL_BORDERS
);
21 virtual ~PlayPauseButton();
24 virtual void Draw(BRect updateRect
);
25 virtual BSize
MinSize();
26 virtual BSize
MaxSize();
33 void SetSymbols(BShape
* playSymbolShape
,
34 BShape
* pauseSymbolShape
);
37 void _SetPlaybackState(uint32 state
);
47 uint32 fPlaybackState
;
51 #endif // PLAY_PAUSE_BUTTON_H