]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/scrolwin.h
derive wxConfig classes from wxObject and add wxRTTI macros to them (patch 1587607)
[wxWidgets.git] / include / wx / gtk / scrolwin.h
index 92ecc160d7ff302fb2321239b8d385a225b108f6..909b6160974bab6cab95266aca92799406dac558 100644 (file)
@@ -31,7 +31,7 @@ public:
 
 protected:
     // this does (each) half of AdjustScrollbars() work
 
 protected:
     // this does (each) half of AdjustScrollbars() work
-    void DoAdjustScrollbar(GtkAdjustment *adj,
+    void DoAdjustScrollbar(GtkRange* range,
                            int pixelsPerLine,
                            int winSize,
                            int virtSize,
                            int pixelsPerLine,
                            int winSize,
                            int virtSize,
@@ -39,9 +39,28 @@ protected:
                            int *lines,
                            int *linesPerPage);
 
                            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,
     // and this does the same for Scroll()
     void DoScroll(int orient,
-                  GtkAdjustment *adj,
                   int pos,
                   int pixelsPerLine,
                   int *posOld);
                   int pos,
                   int pixelsPerLine,
                   int *posOld);