Definition at line 553 of file ScrollBar.h. References mListener, mListenerData, mPixelPage, mPixelPos, mPixelRange, mScrollPage, mScrollPos, mScrollRange, and OglGui::ScrollBarListener::OnScroll(). Referenced by OglGui::ScrollBar::ScrollThumb::MouseFunc(). 00554 { 00555 mPixelPos = pos; 00556 // RvB: Provisorische oplossing. Met Michiel bespreken 00557 if (mPixelRange == mPixelPage){ 00558 //oglSys.ErrorBox("Error", "Division by zero"); 00559 mPixelPage--; 00560 } 00561 double p = (double)pos/(double)(mPixelRange-mPixelPage); 00562 mScrollPos = (int) (p * (mScrollRange-mScrollPage)); 00563 if(mListener) 00564 mListener->OnScroll(this, mScrollPos, mListenerData); 00565 }
Here is the call graph for this function:
|