1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/scrolwin.h
3 // Purpose: generic wxScrollHelper
4 // Author: Vadim Zeitlin
5 // Created: 2008-12-24 (replacing old file with the same name)
7 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GENERIC_SCROLLWIN_H_
12 #define _WX_GENERIC_SCROLLWIN_H_
14 // ----------------------------------------------------------------------------
15 // generic wxScrollHelper implementation
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxScrollHelper
: public wxScrollHelperBase
21 wxScrollHelper(wxWindow
*winToScroll
);
23 // implement base class pure virtuals
24 virtual void AdjustScrollbars();
27 virtual void DoScroll(int x
, int y
);
28 virtual void DoShowScrollbars(wxScrollbarVisibility horz
,
29 wxScrollbarVisibility vert
);
32 // helper of AdjustScrollbars(): does the work for the single scrollbar
34 // notice that the parameters passed by non-const references are modified
36 void DoAdjustScrollbar(int orient
,
42 int& scrollLinesPerPage
,
43 wxScrollbarVisibility visibility
);
46 wxScrollbarVisibility m_xVisibility
,
49 DECLARE_NO_COPY_CLASS(wxScrollHelper
)
52 #endif // _WX_GENERIC_SCROLLWIN_H_