Reimplemented from OglGui::Window. Definition at line 169 of file TwoPanesWindow.h. References OglGui::Window::DisplayFunc(), OglGui::OglWindow::GetDimensions(), mIsHor, mMinSize, mSizeBar, OglGui::OglWindow::OnLayoutChange(), and OglGui::OglWindow::SetDimensions(). 00170 { 00171 int pX,pY,pW,pH; 00172 int x,y,w,h; 00173 bool adjust = false; 00174 00175 GetDimensions(pX, pY, pW, pH); 00176 mSizeBar->GetDimensions(x, y, w, h); 00177 00178 x +=4; y +=4; 00179 00180 if (mIsHor) 00181 { 00182 if( y > pH - mMinSize ) 00183 y = pH - mMinSize, adjust = true; 00184 if( y < mMinSize ) 00185 y = mMinSize, adjust = true; 00186 } 00187 else 00188 { 00189 if( x > pW - mMinSize ) 00190 x = pW - mMinSize, adjust = true; 00191 if( x < mMinSize ) 00192 x = mMinSize, adjust = true; 00193 } 00194 x -=4; y -= 4; 00195 00196 if( adjust ) 00197 { 00198 mSizeBar->SetDimensions( x, y, w, h ); 00199 OnLayoutChange(); 00200 } 00201 Window::DisplayFunc(); 00202 }
Here is the call graph for this function:
|