Definition at line 954 of file TextEdit.h.
References ClampDocX(), ClampDocY(), OglGui::OglWindow::H(), OglGui::DocDimensions::mDocH, OglGui::DocDimensions::mDocW, OglGui::DocDimensions::mDocX, OglGui::DocDimensions::mDocY, mHorizontalScrollBar, mLastMouseX, mLastMouseY, mLineH, MouseFunc(), mPropagateScrollingX, mPropagateScrollingY, mVerticalScrollBar, OglGui::RepeatTimer::RepeatTime(), OglGui::ScrollBar::SetNewPos(), OglGui::ScrollBar::SetRange(), and OglGui::OglWindow::W().
Referenced by DisplayFunc().
00955 {
00956 if (mVerticalScrollBar)
00957 {
00958 int extra = mHorizontalScrollBar ? mHorizontalScrollBar->H() : 0;
00959 mVerticalScrollBar->SetRange(mDocH+4 + extra, H() - extra - mLineH);
00960 int nPos = mDocH - H() + mDocY;
00961 mVerticalScrollBar->SetNewPos(nPos);
00962 }
00963
00964 if (mHorizontalScrollBar)
00965 {
00966 mHorizontalScrollBar->SetRange(mDocW, W()-20);
00967 mHorizontalScrollBar->SetNewPos(-mDocX);
00968 }
00969
00970 if (mPropagateScrollingY && RepeatTime())
00971 {
00972 mDocY += mPropagateScrollingY;
00973 ClampDocY();
00974 MouseFunc(oglMouseMove, 0, oglLeftButton, mLastMouseX, mLastMouseY);
00975 }
00976
00977 if (mPropagateScrollingX && RepeatTime())
00978 {
00979 mDocX += mPropagateScrollingX;
00980 ClampDocX();
00981 MouseFunc(oglMouseMove, 0, oglLeftButton, mLastMouseX, mLastMouseY);
00982 }
00983 }
Here is the call graph for this function: