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