Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

virtual void OglGui::FourPanesWindow::DisplayFunc (  )  [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 93 of file FourPanesWindow.h.

References OglGui::Window::DisplayFunc(), OglGui::OglWindow::GetDimensions(), LayoutPanes(), mLayedOut, mMinimumHeight, mMinimumWidth, mOldHeight, mOldWidth, mScaleOnReshape, mSizeKnob, OglGui::OglWindow::OnLayoutChange(), and OglGui::OglWindow::SetDimensions().

00094     {
00095         int     pX,pY,pW,pH;
00096         int     x,y,w,h;
00097         bool    adjust = false;
00098 
00099         if (!mLayedOut)
00100             LayoutPanes();
00101 
00102         GetDimensions(pX, pY, pW, pH);
00103         mSizeKnob->GetDimensions(x, y, w, h);
00104 
00105         x +=8; y +=8;
00106         if (pW != mOldWidth || pH != mOldHeight)
00107         {
00108             if (mScaleOnReshape)
00109             {
00110                 float   scaleX, scaleY;
00111                 scaleX = x / (float) mOldWidth;
00112                 scaleY = y / (float) mOldHeight;
00113                 x = (int) (scaleX * pW);
00114                 y = (int) (scaleY * pH);
00115                 adjust = true;
00116             }
00117             mOldWidth = pW;
00118             mOldHeight = pH;
00119         }
00120 
00121         if (x > pW - mMinimumWidth)
00122             x = pW - mMinimumWidth, adjust = true;
00123         if (x < mMinimumWidth)
00124             x = mMinimumWidth, adjust = true;
00125         if (y > pH - mMinimumHeight)
00126             y = pH - mMinimumHeight, adjust = true;
00127         if (y < mMinimumHeight)
00128             y = mMinimumHeight, adjust = true;
00129         x -=8; y -= 8;
00130 
00131         if (adjust)
00132         {
00133             mSizeKnob->SetDimensions(x, y, w, h);
00134             OnLayoutChange();
00135         }
00136         Window::DisplayFunc();
00137     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:26:27 2011 for ImpalaSrc by  doxygen 1.5.1