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

int OglGui::TextEdit::FindLineAtY ( int  wndY,
int &  lineY 
) [inline]

Definition at line 550 of file TextEdit.h.

References GetLineAtIndex(), OglGui::DocDimensions::mDocH, OglGui::DocDimensions::mDocY, mLineH, and mText.

Referenced by FindFirstVisibleLine(), HandleMoveKey(), and MouseFunc().

00551     {
00552         int ind = 0, nChar = 0;
00553         int y = mDocH + mDocY - mLineH;
00554 
00555         while (y > wndY && (nChar = GetLineAtIndex(0, ind))!=-1)
00556         {
00557             ind += nChar+1;
00558             y -= mLineH;
00559         }
00560         if (ind > mText.length())
00561             ind = mText.length();
00562         lineY = y;
00563         return ind;
00564     }

Here is the call graph for this function:


Generated on Fri Mar 19 12:08:01 2010 for ImpalaSrc by  doxygen 1.5.1