]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/scrolwin.h
No real changes, just make wxWindow::CanScroll() virtual.
[wxWidgets.git] / include / wx / gtk1 / scrolwin.h
CommitLineData
30954328 1/////////////////////////////////////////////////////////////////////////////
8ef94bfc 2// Name: wx/gtk1/scrolwin.h
30954328
RR
3// Purpose: wxScrolledWindow class
4// Author: Robert Roebling
d32e78bd 5// Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common
30954328 6// Created: 01/02/97
30954328 7// Copyright: (c) Robert Roebling
65571936 8// Licence: wxWindows licence
30954328
RR
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_GTK_SCROLLWIN_H_
12#define _WX_GTK_SCROLLWIN_H_
13
30954328
RR
14// ----------------------------------------------------------------------------
15// wxScrolledWindow
16// ----------------------------------------------------------------------------
17
29e1398f 18class WXDLLIMPEXP_CORE wxScrollHelper : public wxScrollHelperBase
30954328
RR
19{
20public:
29e1398f 21 wxScrollHelper(wxWindow *win) : wxScrollHelperBase(win) { }
30954328 22
29e1398f 23 // implement base class pure virtuals
30954328 24 virtual void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY,
d32e78bd
VZ
25 int noUnitsX, int noUnitsY,
26 int xPos = 0, int yPos = 0,
27 bool noRefresh = false);
30954328 28 virtual void AdjustScrollbars();
5de9f492 29
30954328 30protected:
29e1398f
VZ
31 virtual void DoScroll(int x, int y);
32 virtual void DoShowScrollbars(wxScrollbarVisibility horz,
33 wxScrollbarVisibility vert);
34
d32e78bd
VZ
35 // this does (each) half of AdjustScrollbars() work
36 void DoAdjustScrollbar(GtkAdjustment *adj,
37 int pixelsPerLine,
38 int winSize,
39 int virtSize,
40 int *pos,
41 int *lines,
42 int *linesPerPage);
43
44 // and this does the same for Scroll()
29e1398f
VZ
45 void DoScrollOneDir(int orient,
46 GtkAdjustment *adj,
47 int pos,
48 int pixelsPerLine,
49 int *posOld);
30954328
RR
50
51private:
c0c133e1 52 wxDECLARE_NO_COPY_CLASS(wxScrollHelper);
30954328
RR
53};
54
d32e78bd 55#endif // _WX_GTK_SCROLLWIN_H_
566d84a7 56