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

virtual void OglGui::StaticText::AlignString ( int  offsetX = 0,
int  offsetY = 0 
) [inline, virtual]

Definition at line 61 of file StaticText.h.

References OglGui::Window::GetForeground(), OglGui::Window::GetState(), mAlignH, mAlignV, OglGui::OglWindow::mOglWnd, mShadowColor, mText, and mTextShadowed.

Referenced by DisplayFunc(), OglGui::CheckBox::DisplayFunc(), and OglGui::Button::DisplayFunc().

00062     {
00063         int     x, y;
00064         ULONG   fCol = GetState() ? GetForeground() : oglGREY;
00065 
00066         oglSys.AlignTextXY(mOglWnd, (char *) mText.c_str(), mAlignH, mAlignV,
00067                            mOglWnd->width, mOglWnd->height, &x, &y);
00068         y += 3 + offsetY;
00069         x += offsetX;
00070         glNormal3f(0,0,1);
00071         if (mTextShadowed)
00072             oglSys.ShadowPrintf(mOglWnd, x, y, mShadowColor, fCol,
00073                                 "%s", mText.c_str());
00074         else
00075             oglSys.PosColPrintf(mOglWnd, x, y, fCol, "%s", mText.c_str());
00076     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:06:37 2010 for ImpalaSrc by  doxygen 1.5.1