Definition at line 257 of file ImageSetIdxGrid.h. References OglGui::Window::GetForeground(), mIdxs, mImSets, OglGui::OglWindow::mOglWnd, mShowDims, and mShowNames. Referenced by HandleViewSettings(). 00258 { 00259 if (!(mShowNames || mShowDims)) 00260 return; 00261 00262 OGLIMAGE* oglIm = oglView->im; 00263 int idx = (int)(long long)oglView->UserData1; 00264 int txtX = oglView->x; 00265 int txtY = oglView->y-14; 00266 std::string txt = ""; 00267 00268 if (mShowNames) 00269 txt = mImSets[idx]->GetFile(mIdxs[idx]) + " "; 00270 if (mShowDims) 00271 { 00272 char buf[20]; 00273 sprintf(buf, "[%dx%d]", oglIm->w, oglIm->h); 00274 txt += buf; 00275 } 00276 oglSys.StartScissor(mOglWnd,txtX,txtY-4,oglView->w,20); 00277 oglSys.PosColPrintf(mOglWnd,txtX,txtY,GetForeground(),"%s",txt.c_str()); 00278 oglSys.EndScissor(); 00279 }
Here is the call graph for this function:
|