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