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

virtual void OglGui::LayoutShift::OnLayoutChange (  )  [inline, virtual]

Reimplemented from OglGui::LayoutConnect.

Definition at line 25 of file LayoutShift.h.

References OglGui::B2B, OglGui::B2T, OglGui::SetGetDimensions2dIntI::GetDimensions(), OglGui::L2L, OglGui::L2R, OglGui::LayoutListener::mFollower, OglGui::LayoutListener::mLeader, OglGui::LayoutConnect::mMode, OglGui::LayoutConnect::mOffB, OglGui::LayoutConnect::mOffL, OglGui::LayoutConnect::mOffR, OglGui::LayoutConnect::mOffT, OglGui::R2L, OglGui::R2R, OglGui::SetGetDimensions2dIntI::SetDimensions(), OglGui::T2B, OglGui::T2T, and OglGui::TPARENT.

00026     {
00027         int nL, nR, nT, nB, nW, nH;
00028         int lx, ly, lw, lh;
00029         int fx, fy, fw, fh;
00030         mLeader->GetDimensions(lx, ly, lw, lh);
00031         mFollower->GetDimensions(fx, fy, fw, fh);
00032 
00033         if(mMode & TPARENT){
00034             lx = 0; ly = 0;
00035         }
00036 
00037         nL = fx;
00038         nR = fx + fw;
00039         nB = fy;
00040         nT = fy + fh;
00041         nW = fw;
00042         nH = fh;
00043 
00044         if(mMode & L2L)
00045         {
00046             nL = lx + mOffL;
00047             nR = nL + fw;
00048         }
00049         if(mMode & L2R)
00050         {
00051             nL = (lx+lw) + mOffL;
00052             nR = nL + fw;
00053         }
00054         if(mMode & T2T)
00055         {
00056             nT = ly+lh + mOffT;
00057             nB = nT - fh;
00058         }
00059         if(mMode & T2B)
00060         {
00061             nT = ly + mOffT;
00062             nB = nT - fh;
00063         }
00064         if(mMode & R2L)
00065         {
00066             nR = lx + mOffR;
00067             nL = nR - fw;
00068         }
00069         if(mMode & R2R)
00070         {
00071             nR = lx+lw + mOffR;
00072             nL = nR - fw;
00073         }
00074         if(mMode & B2T)
00075         {
00076             nB = ly+lh + mOffB;
00077             nT = nB + fh;
00078         }
00079         if(mMode & B2B)
00080         {
00081             nB = ly + mOffB;
00082             nT = nB + fh;
00083         }
00084 
00085         mFollower->SetDimensions(nL, nB, nR-nL, nT-nB);
00086     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:02:31 2010 for ImpalaSrc by  doxygen 1.5.1