]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/scrolwin.h
Minor corrections to make dist after reports
[wxWidgets.git] / include / wx / gtk / scrolwin.h
index 92ecc160d7ff302fb2321239b8d385a225b108f6..f99fb60c6203821d41c8b2689a59e6782e43a365 100644 (file)
@@ -16,7 +16,7 @@
 // wxScrolledWindow
 // ----------------------------------------------------------------------------
 
-class WXDLLEXPORT wxScrollHelperNative : public wxScrollHelper
+class WXDLLIMPEXP_CORE wxScrollHelperNative : public wxScrollHelper
 {
 public:
     // default ctor doesn't do anything
@@ -31,7 +31,7 @@ public:
 
 protected:
     // this does (each) half of AdjustScrollbars() work
-    void DoAdjustScrollbar(GtkAdjustment *adj,
+    void DoAdjustScrollbar(GtkRange* range,
                            int pixelsPerLine,
                            int winSize,
                            int virtSize,
@@ -39,9 +39,28 @@ protected:
                            int *lines,
                            int *linesPerPage);
 
+    void DoAdjustHScrollbar(int winSize, int virtSize)
+    {
+        DoAdjustScrollbar
+        (
+            m_win->m_scrollBar[wxWindow::ScrollDir_Horz],
+            m_xScrollPixelsPerLine, winSize, virtSize,
+            &m_xScrollPosition, &m_xScrollLines, &m_xScrollLinesPerPage
+        );
+    }
+
+    void DoAdjustVScrollbar(int winSize, int virtSize)
+    {
+        DoAdjustScrollbar
+        (
+            m_win->m_scrollBar[wxWindow::ScrollDir_Vert],
+            m_yScrollPixelsPerLine, winSize, virtSize,
+            &m_yScrollPosition, &m_yScrollLines, &m_yScrollLinesPerPage
+        );
+    }
+
     // and this does the same for Scroll()
     void DoScroll(int orient,
-                  GtkAdjustment *adj,
                   int pos,
                   int pixelsPerLine,
                   int *posOld);