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)
6 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GENERIC_SCROLLWIN_H_
11 #define _WX_GENERIC_SCROLLWIN_H_
13 // ----------------------------------------------------------------------------
14 // generic wxScrollHelper implementation
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxScrollHelper
: public wxScrollHelperBase
20 wxScrollHelper(wxWindow
*winToScroll
);
22 // implement base class pure virtuals
23 virtual void AdjustScrollbars();
26 virtual void DoScroll(int x
, int y
);
27 virtual void DoShowScrollbars(wxScrollbarVisibility horz
,
28 wxScrollbarVisibility vert
);
31 // helper of AdjustScrollbars(): does the work for the single scrollbar
33 // notice that the parameters passed by non-const references are modified
35 void DoAdjustScrollbar(int orient
,
41 int& scrollLinesPerPage
,
42 wxScrollbarVisibility visibility
);
45 wxScrollbarVisibility m_xVisibility
,
48 wxDECLARE_NO_COPY_CLASS(wxScrollHelper
);
51 #endif // _WX_GENERIC_SCROLLWIN_H_