2 * Copyright 2006-2010, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Stephan Aßmus <superstippi@gmx.de>
8 #ifndef VOLUME_SLIDER_H
9 #define VOLUME_SLIDER_H
15 class VolumeSlider
: public BSlider
{
17 VolumeSlider(const char* name
,
18 int32 minValue
, int32 maxValue
,
19 int32 snapValue
, BMessage
* message
= NULL
);
21 virtual ~VolumeSlider();
24 virtual void MouseMoved(BPoint where
, uint32 transit
,
25 const BMessage
* dragMessage
);
27 virtual BRect
ThumbFrame() const;
28 virtual void DrawThumb();
30 virtual BSize
MinSize();
33 void SetMuted(bool mute
);
37 float PreferredBarThickness() const;
40 float _PointForValue(int32 value
) const;
51 #endif // VOLUME_SLIDER_H