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

void OglGui::SizableWindow::PerformAction ( int  x,
int  y 
) [inline, protected]

Definition at line 315 of file SizableWindow.h.

References CheckMinMax(), East, OglGui::OglWindow::GetDimensions(), mAction, mAllowMoveHor, mAllowMoveVert, mDx, mDy, Move, North, OglGui::OglWindow::SetDimensions(), South, and West.

Referenced by MouseFunc().

00316     {
00317         int nX, nY, nW, nH;
00318         GetDimensions(nX,nY,nW,nH);
00319 
00320         if (mAction == Move)
00321         {
00322             if (mAllowMoveHor)
00323                 nX = x + nX - mDx;
00324             if (mAllowMoveVert)
00325                 nY = y + nY - mDy;
00326         }
00327         if (mAction & West)
00328         {
00329             nX = nX + x;
00330             nW = nW - x;
00331         }
00332         if (mAction & East)
00333             nW = x;
00334         if (mAction & South)
00335         {
00336             nY = nY + y;
00337             nH = nH - y;
00338         }
00339         if (mAction & North)
00340             nH = y;
00341 
00342         CheckMinMax(mAction, nX, nY, nW, nH);
00343         SetDimensions(nX, nY, nW, nH);
00344     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:06:05 2010 for ImpalaSrc by  doxygen 1.5.1