Definition at line 385 of file ScrollBar.h. References mHorizontal, mMouseDownPos, mPixelPage, mPixelPos, mPixelRange, mScrollPage, mScrollPos, and SetNewPos(). Referenced by DisplayFunc(), and MouseFunc(). 00386 { 00387 if (mHorizontal) 00388 { 00389 if (mMouseDownPos - mPixelPos < 0) 00390 SetNewPos(mScrollPos - mScrollPage); 00391 else 00392 if(mMouseDownPos - mPixelPos > mPixelPage) 00393 SetNewPos(mScrollPos + mScrollPage); 00394 } 00395 else 00396 { 00397 if (mMouseDownPos - mPixelRange + mPixelPos < -mPixelPage) 00398 SetNewPos(mScrollPos + mScrollPage); 00399 else 00400 if (mMouseDownPos - mPixelRange + mPixelPos > 0) 00401 SetNewPos(mScrollPos - mScrollPage); 00402 } 00403 }
Here is the call graph for this function:
|