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

virtual void OglGui::TextArea::DisplayFunc (  )  [inline, virtual]

Reimplemented from OglGui::Window.

Definition at line 95 of file TextArea.h.

References CheckTextFormat(), cLineHeight, OglGui::Window::DisplayFunc(), mDoTextShadow, mFirstVisible, OglGui::OglWindow::mOglWnd, mScrollBar, mShadowColor, mStrings, and mTextColor.

00096     {
00097         Window::DisplayFunc();
00098 
00099         OGC oldOGC;
00100         OGCSave(&oldOGC);
00101 
00102                 if (this == NULL) 
00103                 {
00104                         //std::cout << "WARNING: trying to TextArea::DisplayFunc() on a NULL TextArea." << std::endl;
00105                         return;
00106                 }
00107 
00108         // draw the string content
00109         CheckTextFormat();
00110         int startPos = (mScrollBar) ? cLineHeight : 0;
00111         for (int i=mFirstVisible ; i<mStrings.size() ; i++)
00112         {
00113             int n = i - mFirstVisible;
00114             int y = mOglWnd->height - (n+1) * cLineHeight + cLineHeight/2 - 7;
00115             if (mDoTextShadow)
00116                 oglSys.ShadowPrintf(mOglWnd, startPos + 2, y, mShadowColor,
00117                                     mTextColor, "%s", mStrings[i].c_str());
00118             else
00119                 oglSys.PosColPrintf(mOglWnd, startPos + 2, y, mTextColor,
00120                                     "%s", mStrings[i].c_str());
00121        }
00122 
00123         OGCRestore(&oldOGC);
00124     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:27:02 2011 for ImpalaSrc by  doxygen 1.5.1