]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/gtk/scrolwin.h
Applied [ 1555974 ] small wxURL improvements
[wxWidgets.git] / include / wx / gtk / scrolwin.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gtk/scrolwin.h
3// Purpose: wxScrolledWindow class
4// Author: Robert Roebling
5// Modified by: Vadim Zeitlin (2005-10-10): wxScrolledWindow is now common
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Robert Roebling
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GTK_SCROLLWIN_H_
13#define _WX_GTK_SCROLLWIN_H_
14
15// ----------------------------------------------------------------------------
16// wxScrolledWindow
17// ----------------------------------------------------------------------------
18
19class WXDLLEXPORT wxScrollHelperNative : public wxScrollHelper
20{
21public:
22 // default ctor doesn't do anything
23 wxScrollHelperNative(wxWindow *win) : wxScrollHelper(win) { }
24
25 virtual void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY,
26 int noUnitsX, int noUnitsY,
27 int xPos = 0, int yPos = 0,
28 bool noRefresh = false);
29 virtual void AdjustScrollbars();
30 virtual void Scroll(int x, int y);
31
32protected:
33 // this does (each) half of AdjustScrollbars() work
34 void DoAdjustScrollbar(GtkRange* range,
35 int pixelsPerLine,
36 int winSize,
37 int virtSize,
38 int *lines,
39 int *linesPerPage);
40
41 // and this does the same for Scroll()
42 void DoScroll(int orient,
43 int pos,
44 int pixelsPerLine,
45 int *posOld);
46
47private:
48 DECLARE_NO_COPY_CLASS(wxScrollHelperNative)
49};
50
51#endif // _WX_GTK_SCROLLWIN_H_
52