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:
|