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

int OglGui::TextEdit::ComputeMaxWidth (  )  [inline]

Definition at line 382 of file TextEdit.h.

References FindWidthAtIndex(), and GetLineAtIndex().

Referenced by OglGui::TextEditLineScroller::DisplayFunc().

00383     {
00384         string  str;
00385         int     nChar;
00386         int     lineInd = 0;
00387         int     x, maxX = 0;
00388 
00389         while ((nChar = GetLineAtIndex(&str, lineInd) + 1))
00390         {
00391             x = FindWidthAtIndex(&str, str.length());
00392             if (x > maxX)
00393                 maxX = x;
00394             lineInd += nChar;
00395         }
00396         return maxX;
00397     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:07:59 2010 for ImpalaSrc by  doxygen 1.5.1