Reimplemented from OglGui::Window. Definition at line 270 of file ScrollBar.h. References cSbW, OglGui::OglWindow::GetOGLWND(), mButDecr, mButIncr, mButThumb, mFixedWide, mHorizontal, OglGui::OglWindow::mOglWnd, mPixelPage, mPixelPos, mWide, and Impala::Application::DemoCamera2d::oglWnd. Referenced by InitDisplayFunc(). 00271 { 00272 OGLWND *oglWnd = GetOGLWND(); 00273 00274 if (mHorizontal) 00275 { // normally adjust to wideness of scrollbar 00276 int h = oglWnd->height; 00277 if (mFixedWide) // If fixedWide, refuse a different wideness 00278 h = oglWnd->height = mWide; 00279 oglSys.SetDimensions(mButDecr->GetOGLWND(), 0, 0, cSbW, h); 00280 oglSys.SetDimensions(mButThumb->GetOGLWND(), mPixelPos + cSbW, 00281 0, mPixelPage, h); 00282 oglSys.SetDimensions(mButIncr->GetOGLWND(), mOglWnd->width - cSbW, 00283 0, cSbW, h); 00284 } 00285 else 00286 { // normally adjust to wideness of scrollbar 00287 int w = oglWnd->width; 00288 if (mFixedWide)// If fixedWide, refuse a different wideness 00289 w = oglWnd->width = mWide; 00290 // please note that y is reversed 00291 oglSys.SetDimensions(mButDecr->GetOGLWND(), 0, 00292 mOglWnd->height - cSbW, w, cSbW); 00293 oglSys.SetDimensions(mButThumb->GetOGLWND(), 0, 00294 mOglWnd->height - cSbW - mPixelPos - mPixelPage, 00295 w, mPixelPage); 00296 oglSys.SetDimensions(mButIncr->GetOGLWND(), 0, 0, w, cSbW); 00297 } 00298 }
Here is the call graph for this function:
|