#ifndef INLINE_SCROLL_VIEW_H
#define INLINE_SCROLL_VIEW_H
#include <View.h>
class BLayout;
class BPoint;
class ScrollArrow;
class TInlineScrollView : public BView {
public:
TInlineScrollView(BView* target,
enum orientation orientation = B_VERTICAL);
virtual ~TInlineScrollView();
virtual void AttachedToWindow();
virtual void DetachedFromWindow();
virtual void Draw(BRect updateRect);
void AttachScrollers();
void DetachScrollers();
bool HasScrollers() const;
void SetSmallStep(float step);
void GetSteps(float* _smallStep,
float* _largeStep) const;
void ScrollBy(const float& step);
bool Orientation() const { return fOrientation; };
void SetOrientation(int32 orienation)
{ fOrientation = orienation; };
private:
BView* fTarget;
ScrollArrow* fBeginScrollArrow;
ScrollArrow* fEndScrollArrow;
float fScrollStep;
float fScrollValue;
float fScrollLimit;
int32 fOrientation;
};
#endif