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

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

Definition at line 19 of file LayoutScale.h.

References OglGui::SetGetDimensions2dIntI::GetDimensions(), OglGui::LayoutListener::mFollower, OglGui::LayoutListener::mLeader, mMode, mScaleH, mScaleW, mScaleX, and mScaleY.

00019                                                                               :
00020         LayoutListener(leader, follower)
00021     {
00022         mMode = mode;
00023 
00024         int lx, ly, lw, lh;
00025         int fx, fy, fw, fh;
00026         mLeader->GetDimensions(lx, ly, lw, lh);
00027         mFollower->GetDimensions(fx, fy, fw, fh);
00028         
00029         mScaleX = (float)fx / lw;
00030         mScaleW = (float)fw / lw;
00031         mScaleY = (float)fy / lh;
00032         mScaleH = (float)fh / lh;
00033     }

Here is the call graph for this function:


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