Reimplemented from OglGui::LayoutListener. Reimplemented in OglGui::LayoutShift. Definition at line 56 of file LayoutConnect.h. References OglGui::B2B, OglGui::B2T, OglGui::SetGetDimensions2dIntI::GetDimensions(), OglGui::H2H, OglGui::L2L, OglGui::L2R, OglGui::LayoutListener::mFollower, OglGui::LayoutListener::mLeader, mMode, mOffB, mOffH, mOffL, mOffR, mOffT, mOffW, OglGui::R2L, OglGui::R2R, OglGui::SetGetDimensions2dIntI::SetDimensions(), OglGui::T2B, OglGui::T2T, OglGui::TPARENT, and OglGui::W2W. 00057 { 00058 int nL, nR, nT, nB, nW, nH; 00059 int lx, ly, lw, lh; 00060 int fx, fy, fw, fh; 00061 mLeader->GetDimensions(lx, ly, lw, lh); 00062 mFollower->GetDimensions(fx, fy, fw, fh); 00063 00064 if(mMode & TPARENT){ 00065 lx = 0; ly = 0; 00066 } 00067 00068 nL = fx; 00069 nR = fx + fw; 00070 nB = fy; 00071 nT = fy + fh; 00072 nW = fw; 00073 nH = fh; 00074 00075 if(mMode & L2L) 00076 nL = lx + mOffL; 00077 if(mMode & L2R) 00078 nL = (lx+lw) + mOffL; 00079 if(mMode & T2T) 00080 nT = ly+lh + mOffT; 00081 if(mMode & T2B) 00082 nT = ly + mOffT; 00083 if(mMode & R2L) 00084 nR = lx + mOffR; 00085 if(mMode & R2R) 00086 nR = lx+lw + mOffR; 00087 if(mMode & B2T) 00088 nB = ly+lh + mOffB; 00089 if(mMode & B2B) 00090 nB = ly + mOffB; 00091 if(mMode & W2W){ 00092 nW = lw + mOffW; 00093 nR = nL + nW; 00094 } 00095 if(mMode & H2H){ 00096 nH = lh + mOffH; 00097 nB = nT - nH; 00098 } 00099 00100 mFollower->SetDimensions(nL, nB, nR-nL, nT-nB); 00101 }
Here is the call graph for this function:
|