2 * Copyright 2012, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
6 * Marc Flerackers (mflerackers@androme.be)
7 * Stefano Ceccherini (stefano.ceccherini@gmail.com)
8 * John Scipione (jscipione@gmail.com)
10 #ifndef INLINE_SCROLL_VIEW_H
11 #define INLINE_SCROLL_VIEW_H
21 class TInlineScrollView
: public BView
{
23 TInlineScrollView(BView
* target
,
24 enum orientation orientation
= B_VERTICAL
);
25 virtual ~TInlineScrollView();
27 virtual void AttachedToWindow();
28 virtual void DetachedFromWindow();
30 virtual void Draw(BRect updateRect
);
32 void AttachScrollers();
33 void DetachScrollers();
34 bool HasScrollers() const;
36 void SetSmallStep(float step
);
37 void GetSteps(float* _smallStep
,
38 float* _largeStep
) const;
39 void ScrollBy(const float& step
);
41 bool Orientation() const { return fOrientation
; };
42 void SetOrientation(int32 orienation
)
43 { fOrientation
= orienation
; };
47 ScrollArrow
* fBeginScrollArrow
;
48 ScrollArrow
* fEndScrollArrow
;
58 #endif // INLINE_SCROLL_VIEW_H