1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/scrolwin.h
3 // Purpose: wxScrolledWindow class
4 // Author: Robert Roebling
5 // Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common
7 // Copyright: (c) Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_GTK_SCROLLWIN_H_
12 #define _WX_GTK_SCROLLWIN_H_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxScrollHelper
: public wxScrollHelperBase
21 wxScrollHelper(wxWindow
*win
) : wxScrollHelperBase(win
) { }
23 // implement base class pure virtuals
24 virtual void SetScrollbars(int pixelsPerUnitX
, int pixelsPerUnitY
,
25 int noUnitsX
, int noUnitsY
,
26 int xPos
= 0, int yPos
= 0,
27 bool noRefresh
= false);
28 virtual void AdjustScrollbars();
31 virtual void DoScroll(int x
, int y
);
32 virtual void DoShowScrollbars(wxScrollbarVisibility horz
,
33 wxScrollbarVisibility vert
);
35 // this does (each) half of AdjustScrollbars() work
36 void DoAdjustScrollbar(GtkAdjustment
*adj
,
44 // and this does the same for Scroll()
45 void DoScrollOneDir(int orient
,
52 wxDECLARE_NO_COPY_CLASS(wxScrollHelper
);
55 #endif // _WX_GTK_SCROLLWIN_H_