Home || Architecture || Video Search || Visual Search || Scripts || Applications || 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(), 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         GetDimensions(pX, pY, pW, pH);
00100         mSizeKnob->GetDimensions(x, y, w, h);
00101 
00102         x +=8; y +=8;
00103         if (pW != mOldWidth || pH != mOldHeight)
00104         {
00105             if (mScaleOnReshape)
00106             {
00107                 float   scaleX, scaleY;
00108                 scaleX = x / (float) mOldWidth;
00109                 scaleY = y / (float) mOldHeight;
00110                 x = (int) (scaleX * pW);
00111                 y = (int) (scaleY * pH);
00112                 adjust = true;
00113             }
00114             mOldWidth = pW;
00115             mOldHeight = pH;
00116         }
00117 
00118         if (x > pW - mMinimumWidth)
00119             x = pW - mMinimumWidth, adjust = true;
00120         if (x < mMinimumWidth)
00121             x = mMinimumWidth, adjust = true;
00122         if (y > pH - mMinimumHeight)
00123             y = pH - mMinimumHeight, adjust = true;
00124         if (y < mMinimumHeight)
00125             y = mMinimumHeight, adjust = true;
00126         x -=8; y -= 8;
00127 
00128         if (adjust)
00129         {
00130             mSizeKnob->SetDimensions(x, y, w, h);
00131             OnLayoutChange();
00132         }
00133         Window::DisplayFunc();
00134     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:01:26 2010 for ImpalaSrc by  doxygen 1.5.1