Definition at line 282 of file SizableWindow.h. References OglGui::OglWindow::GetDimensions(), mMaxH, mMaxW, mMaxX, mMaxY, mMinH, mMinW, mMinX, mMinY, South, and West. Referenced by PerformAction(). 00283 { 00284 int oX, oY, oW, oH; 00285 00286 GetDimensions(oX, oY, oW, oH); 00287 00288 if (nX < mMinX) nX = mMinX; 00289 if (nY < mMinY) nY = mMinY; 00290 if (nX > mMaxX) nX = mMaxX; 00291 if (nY > mMaxY) nY = mMaxY; 00292 00293 if (nW < mMinW) 00294 if (action & West) 00295 nX = oX, nW = oW; 00296 else 00297 nW = mMinW; 00298 if (nH < mMinH) 00299 if (action & South) 00300 nY = oY, nH = oH; 00301 else 00302 nH = mMinH; 00303 if (nW > mMaxW) 00304 if (action & West) 00305 nX = oX, nW = oW; 00306 else 00307 nW = mMaxW; 00308 if (nH > mMaxH) 00309 if (action & South) 00310 nY = oY, nH = oH; 00311 else 00312 nH = mMaxH; 00313 }
Here is the call graph for this function:
|