Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

int Impala::Visualization::Window::SuggestWidth ( std::string  str  )  [inline]

Definition at line 349 of file Window.h.

References OglGui::OglWindow::mOglWnd, and SuggestWidth().

Referenced by SuggestWidth().

00350     {
00351         if (! mOglWnd)
00352         {
00353             std::cout << "suggestWndWidth : no mOglwnd" << std::endl;
00354             return str.size() * 10;
00355         }
00356         OGLWND* top = oglSys.GetTopOGLWND(mOglWnd);
00357         if (! top->hFont)
00358         {
00359             std::cout << "suggestWidth : no hFont" << std::endl;
00360             return str.size() * 10;
00361         }
00362         int w;
00363         int h;
00364         oglSys.AbstFontTextSize(top, top->hFont, (char *) str.c_str(), &w, &h);
00365         return w;
00366     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:51:35 2010 for ImpalaSrc by  doxygen 1.5.1