Reimplemented from OglGui::LayoutListener. Definition at line 36 of file LayoutScale.h. References OglGui::SetGetDimensions2dIntI::GetDimensions(), OglGui::LayoutListener::mFollower, OglGui::LayoutListener::mLeader, mMode, mScaleH, mScaleW, mScaleX, mScaleY, OglGui::NoHeight, OglGui::NoHorizontal, OglGui::NoVertical, OglGui::NoWidth, and OglGui::SetGetDimensions2dIntI::SetDimensions(). 00037 { 00038 int lx, ly, lw, lh; 00039 int fx, fy, fw, fh; 00040 mLeader->GetDimensions(lx, ly, lw, lh); 00041 mFollower->GetDimensions(fx, fy, fw, fh); 00042 00043 if(!(mMode & NoHorizontal)) 00044 { 00045 fx = (int)(lw * mScaleX); 00046 if(!(mMode & NoWidth)) 00047 fw = (int)(lw * mScaleW); 00048 } 00049 if(!(mMode & NoVertical)) 00050 { 00051 fy = (int)(lh * mScaleY); 00052 if(!(mMode & NoHeight)) 00053 fh = (int)(lh * mScaleH); 00054 } 00055 00056 mFollower->SetDimensions(fx, fy, fw, fh); 00057 }
Here is the call graph for this function:
|