Reimplemented in OglGui::DocScroller. Definition at line 122 of file ScrollWnd.h. References OglGui::OglWindow::GetDimensions(), mContent, mHolder, mHorizontalScrollBar, mVerticalScrollBar, OglGui::ScrollBar::SetNewPos(), and OglGui::ScrollBar::SetRange(). Referenced by DisplayFunc(), and ReshapeFunc(). 00123 { 00124 int cX, cY, cW, cH; 00125 int hX, hY, hW, hH; 00126 00127 mContent->GetDimensions(cX, cY, cW, cH); 00128 mHolder->GetDimensions(hX, hY, hW, hH); 00129 00130 if (mHorizontalScrollBar) 00131 { 00132 mHorizontalScrollBar->SetRange(cW, hW); 00133 mHorizontalScrollBar->SetNewPos(-cX); 00134 } 00135 if (mVerticalScrollBar) 00136 { 00137 int nPos = cH - hH + cY; 00138 mVerticalScrollBar->SetRange(cH, hH); 00139 mVerticalScrollBar->SetNewPos(nPos); 00140 } 00141 }
Here is the call graph for this function:
|