Reimplemented from OglGui::ScrollWnd. Definition at line 135 of file DocScroller.h. References OglGui::DocDimensions::DocX(), OglGui::DocDimensions::DocY(), OglGui::OglWindow::GetDimensions(), OglGui::DocDimensions::GetDocDimensions(), OglGui::ScrollBar::GetValue(), mDoc, OglGui::ScrollWnd::mHolder, OglGui::ScrollWnd::mHorizontalScrollBar, mHorPageDelta, mVerPageDelta, OglGui::ScrollWnd::mVerticalScrollBar, and OglGui::ScrollBar::SetRange(). 00136 { 00137 if (!mDoc) return; 00138 00139 int cX, cY, cW, cH; 00140 int hX, hY, hW, hH; 00141 mDoc->GetDocDimensions(cX, cY, cW, cH); 00142 mHolder->GetDimensions(hX, hY, hW, hH); 00143 00144 if (mHorizontalScrollBar) 00145 { 00146 mHorizontalScrollBar->SetRange(cW, hW - mHorPageDelta); 00147 cX = -mHorizontalScrollBar->GetValue(); 00148 } 00149 if (mVerticalScrollBar) 00150 { 00151 mVerticalScrollBar->SetRange(cH, hH - mVerPageDelta); 00152 cY = mVerticalScrollBar->GetValue() + hH - cH; 00153 } 00154 else 00155 cY = hH - cH; 00156 mDoc->DocX(cX); 00157 mDoc->DocY(cY); 00158 }
Here is the call graph for this function:
|