Definition at line 34 of file DynamicList.h. References OglGui::OglWindow::H(), mChildWindows, mMinH, mMinW, mSpacing, OglGui::OglWindow::SetDimensions(), and OglGui::OglWindow::Y(). Referenced by AddWindow(), DisplayFunc(), and RemoveWindow(). 00035 { 00036 int curY = H(); 00037 int nY = curY; 00038 int nW = 0, nH = 0; 00039 00040 for (int i=0 ; i < mChildWindows.size() ; i++) 00041 { 00042 Window* child = mChildWindows[i]; 00043 if (!HasTags((TAGABLE*)child->GetOGLWND(), visibleTag)) 00044 continue; 00045 00046 int cX, cY, cW, cH; 00047 child->GetDimensions(cX,cY,cW,cH); 00048 nH += cH + mSpacing; 00049 curY -= cH + mSpacing; 00050 child->SetDimensions(RETAIN, curY, RETAIN, RETAIN); 00051 if (nW < cX+cW) 00052 nW = cX+cW; 00053 } 00054 00055 if (nH < mMinH) 00056 nH = mMinH; 00057 if (nW < mMinW) 00058 nW = mMinW; 00059 nY = Y() + H() - nH; 00060 SetDimensions(RETAIN, nY, nW, nH); 00061 }
Here is the call graph for this function:
|