Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / generic / scrolwin.h
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 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GENERIC_SCROLLWIN_H_
11 #define _WX_GENERIC_SCROLLWIN_H_
12
13 // ----------------------------------------------------------------------------
14 // generic wxScrollHelper implementation
15 // ----------------------------------------------------------------------------
16
17 class WXDLLIMPEXP_CORE wxScrollHelper : public wxScrollHelperBase
18 {
19 public:
20 wxScrollHelper(wxWindow *winToScroll);
21
22 // implement base class pure virtuals
23 virtual void AdjustScrollbars();
24
25 protected:
26 virtual void DoScroll(int x, int y);
27 virtual void DoShowScrollbars(wxScrollbarVisibility horz,
28 wxScrollbarVisibility vert);
29
30 private:
31 // helper of AdjustScrollbars(): does the work for the single scrollbar
32 //
33 // notice that the parameters passed by non-const references are modified
34 // by this function
35 void DoAdjustScrollbar(int orient,
36 int clientSize,
37 int virtSize,
38 int pixelsPerUnit,
39 int& scrollUnits,
40 int& scrollPosition,
41 int& scrollLinesPerPage,
42 wxScrollbarVisibility visibility);
43
44
45 wxScrollbarVisibility m_xVisibility,
46 m_yVisibility;
47
48 wxDECLARE_NO_COPY_CLASS(wxScrollHelper);
49 };
50
51 #endif // _WX_GENERIC_SCROLLWIN_H_
52