Definition at line 197 of file ViewStrip.h. References mAspectRatio, mFitImages, mFixedPos, mFixedSize, mHorizontal, mNextViewPos, and mSpacing. Referenced by AddImage(), and LayoutViews(). 00198 { 00199 OGLIMAGE* im = oglView->im; 00200 int imW = (im ? im->w : mFixedSize*mAspectRatio); 00201 int imH = (im ? im->h : mFixedSize/mAspectRatio); 00202 int vX, vY, vW, vH; 00203 00204 vH = vW = mFixedSize; 00205 vX = vY = mFixedPos; 00206 00207 if (mHorizontal) 00208 { 00209 vW = mAspectRatio * mFixedSize; 00210 vX = mNextViewPos; 00211 mNextViewPos += vW + mSpacing; 00212 } 00213 else 00214 { 00215 vH = mFixedSize / mAspectRatio; 00216 vY = -mNextViewPos; 00217 mNextViewPos += vH + mSpacing; 00218 } 00219 viewSys.SetDimensions(oglView,vX,vY,vW,vH); 00220 if(oglView->im && mFitImages) 00221 viewSys.SetZoom(oglView, vW/(float)imW, vH/(float)imH); 00222 }
|