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

OglGui::LayoutConnect::LayoutConnect ( LayoutComponent leader,
LayoutComponent follower,
int  mode 
) [inline]

Definition at line 13 of file LayoutConnect.h.

References OglGui::B2B, OglGui::B2T, OglGui::SetGetDimensions2dIntI::GetDimensions(), OglGui::H2H, OglGui::L2L, OglGui::L2R, mMode, mOffB, mOffH, mOffL, mOffR, mOffT, mOffW, OglGui::R2L, OglGui::R2R, OglGui::T2B, OglGui::T2T, OglGui::TPARENT, and OglGui::W2W.

00013                                                                                :
00014         LayoutListener(leader, follower)
00015     {
00016         mMode = mode;
00017         mOffL = 0;
00018         mOffR = 0;
00019         mOffT = 0;
00020         mOffB = 0;
00021         mOffW = 0;
00022         mOffH = 0;
00023         int lx,ly,lw,lh;
00024         leader->GetDimensions(lx,ly,lw,lh);
00025         int fx,fy,fw,fh;
00026         follower->GetDimensions(fx,fy,fw,fh);
00027 
00028         if(mMode & TPARENT){
00029             lx = 0; ly = 0;
00030         }
00031 
00032         if(mode & L2L)
00033             mOffL = (fx)-(lx);
00034         if(mode & L2R)
00035             mOffL = (fx)-(lx+lw);
00036         if(mode & T2T)
00037             mOffT = (fy+fh)-(ly+lh);
00038         if(mode & T2B)
00039             mOffT = (fy+fh)-(ly);
00040         if(mode & R2L)
00041             mOffR = (fx+fw)-(lx);
00042         if(mode & R2R)
00043             mOffR = (fx+fw)-(lx+lw);
00044         if(mode & B2T)
00045             mOffB = (fy)-(ly+lh);
00046         if(mode & B2B)
00047             mOffB = (fy)-(ly);
00048         if(mode & W2W)
00049             mOffW = (fw)-(lw);
00050         if(mode & H2H)
00051             mOffH = (fh)-(lh);
00052         
00053     }

Here is the call graph for this function:


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