Reimplemented in OglGui::DocScroller. Definition at line 143 of file ScrollWnd.h. References OglGui::OglWindow::GetDimensions(), OglGui::ScrollBar::GetValue(), mContent, mHolder, mHorizontalScrollBar, mVerticalScrollBar, OglGui::OglWindow::SetDimensions(), and OglGui::ScrollBar::SetRange(). Referenced by DisplayFunc(), and ReshapeFunc(). 00144 { 00145 int cX, cY, cW, cH; 00146 int hX, hY, hW, hH; 00147 00148 mContent->GetDimensions(cX, cY, cW, cH); 00149 mHolder->GetDimensions(hX, hY, hW, hH); 00150 00151 if (mHorizontalScrollBar) 00152 { 00153 mHorizontalScrollBar->SetRange(cW, hW); 00154 cX = -mHorizontalScrollBar->GetValue(); 00155 } 00156 if (mVerticalScrollBar) 00157 { 00158 mVerticalScrollBar->SetRange(cH, hH); 00159 cY = mVerticalScrollBar->GetValue() + hH - cH; 00160 } 00161 else 00162 cY = hH - cH; 00163 mContent->SetDimensions(cX, cY, cW, cH); 00164 }
Here is the call graph for this function:
|