Reimplemented from OglGui::ScrollWnd. Definition at line 111 of file DocScroller.h. References OglGui::OglWindow::GetDimensions(), OglGui::DocDimensions::GetDocDimensions(), OglGui::ScrollBar::LineIncrement(), mDoc, OglGui::ScrollWnd::mHolder, OglGui::ScrollWnd::mHorizontalScrollBar, mHorPageDelta, mPartial, mVerPageDelta, OglGui::ScrollWnd::mVerticalScrollBar, OglGui::ScrollBar::SetNewPos(), and OglGui::ScrollBar::SetRange(). 00112 { 00113 int docX, docY, docW, docH; 00114 int hX, hY, hW, hH; 00115 int totalRange; 00116 00117 mDoc->GetDocDimensions(docX, docY, docW, docH); 00118 mHolder->GetDimensions(hX, hY, hW, hH); 00119 00120 if (mHorizontalScrollBar){ 00121 int lineIncr = mHorizontalScrollBar->LineIncrement(); 00122 totalRange = docW - ((mPartial&1) ? hW-2*lineIncr : 0); 00123 mHorizontalScrollBar->SetRange(totalRange, hW - mHorPageDelta); 00124 mHorizontalScrollBar->SetNewPos(-docX); 00125 } 00126 if (mVerticalScrollBar){ 00127 int nPos = docH - hH + docY; 00128 int lineIncr = mVerticalScrollBar->LineIncrement(); 00129 totalRange = docH + ((mPartial&2) ? hH-2*lineIncr: 0); 00130 mVerticalScrollBar->SetRange(totalRange, hH - mVerPageDelta); 00131 mVerticalScrollBar->SetNewPos(nPos); 00132 } 00133 }
Here is the call graph for this function:
|