2 * Copyright 2010-2012 Haiku, Inc. All rights reserved.
3 * Distributed under the terms of the MIT license.
6 * DarkWyrm <bpmagic@columbus.rr.com>
7 * John Scipione <jscipione@gmail.com>
9 #ifndef FAKE_SCROLL_BAR_H
10 #define FAKE_SCROLL_BAR_H
16 class FakeScrollBar
: public BControl
{
18 FakeScrollBar(bool drawArrows
, bool doubleArrows
,
22 virtual void MouseDown(BPoint point
);
23 virtual void MouseMoved(BPoint point
, uint32 transit
,
24 const BMessage
*message
);
25 virtual void MouseUp(BPoint point
);
27 virtual void Draw(BRect updateRect
);
29 virtual void SetValue(int32 value
);
31 void SetDoubleArrows(bool doubleArrows
);
32 void SetKnobStyle(uint32 knobStyle
);
34 void SetFromScrollBarInfo(const scroll_bar_info
&info
);
37 void _DrawArrowButton(int32 direction
, BRect r
,
38 const BRect
& updateRect
);
45 #endif // FAKE_SCROLL_BAR_H