X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d32e78bd428286561c0db32afda4dea7e262cb84..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/include/wx/gtk/scrolwin.h?ds=inline diff --git a/include/wx/gtk/scrolwin.h b/include/wx/gtk/scrolwin.h index 92ecc160d7..909b616097 100644 --- a/include/wx/gtk/scrolwin.h +++ b/include/wx/gtk/scrolwin.h @@ -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);