Reimplemented from OglGui::Window. Definition at line 110 of file TwoPanesWindow.h. References OglGui::OglWindow::GetDimensions(), mIsHor, mLockToOther, mOldHeight, mOldWidth, mSizeBar, OglGui::Window::ReshapeFunc(), and OglGui::OglWindow::SetDimensions(). 00111 { 00112 Window::ReshapeFunc(width, height); 00113 if (mLockToOther) { 00114 // window is reshaping and the slider wants to be locked to the 00115 // other side: move it with the difference. 00116 int oldpos,na,nb,nc; 00117 if (mIsHor) 00118 { 00119 mSizeBar->GetDimensions(na ,oldpos, nb, nc); 00120 mSizeBar->SetDimensions(0,oldpos+height-mOldHeight, width, 8 ); 00121 } 00122 else 00123 { 00124 mSizeBar->GetDimensions(oldpos,na , nb, nc); 00125 mSizeBar->SetDimensions(oldpos+width-mOldWidth, 0, 8, height ); 00126 } 00127 00128 } 00129 mOldHeight = height; 00130 mOldWidth = width; 00131 }
Here is the call graph for this function:
|