mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Text_Display.cxx
void Fl_Text_Display::draw_vline(int visLineNum, int leftClip, int rightClip,
                                 int leftCharIndex, int rightCharIndex) {
  int Y, lineStartPos, lineLen, fontHeight;
  
  //  printf("draw_vline(visLineNum=%d, leftClip=%d, rightClip=%d, leftCharIndex=%d, rightCharIndex=%d)\n",
  //         visLineNum, leftClip, rightClip, leftCharIndex, rightCharIndex);
  //  printf("nNVisibleLines=%d\n", mNVisibleLines);
  
  /* If line is not displayed, skip it */
  if ( visLineNum < 0 || visLineNum >= mNVisibleLines )
    return;
  
  /* Calculate Y coordinate of the string to draw */
  fontHeight = mMaxsize;
  Y = text_area.y + visLineNum * fontHeight;
  
  /* Get the text, length, and  buffer position of the line to display */
  lineStartPos = mLineStarts[ visLineNum ];
  if ( lineStartPos == -1 ) {
    lineLen = 0;
  } else {
    lineLen = vline_length( visLineNum );
  }
  
  /* Shrink the clipping range to the active display area */
  leftClip = max( text_area.x, leftClip );
  rightClip = min( rightClip, text_area.x + text_area.w );
  
  handle_vline(DRAW_LINE, 
               lineStartPos, lineLen, leftCharIndex, rightCharIndex,
               Y, Y+fontHeight, leftClip, rightClip);
  return;
}
/**
 \brief Draw a single line of text.
 
 Draw the text on a single line represented by "visLineNum" (the
 number of lines down from the top of the display), limited by
 "leftClip" and "rightClip" window coordinates and "leftCharIndex" and
 "rightCharIndex" character positions (not including the character at
 position "rightCharIndex").
 
 \param visLineNum index of line in the visible line number lookup
 \param leftClip, rightClip pixel position of clipped area
 \param leftCharIndex, rightCharIndex index into line of segment that we want to draw
 */
\brief Draw a single line of text.

\param visLineNum index of line in the visible line number lookup
\param leftClip, rightClip pixel position of clipped area
\param leftCharIndex, rightCharIndex index into line of segment that we want to draw
\ brief Draw a single line of text . \ param visLineNum index of line in the visible line number lookup \ param leftClip rightClip pixel position of clipped area \ param leftCharIndex rightCharIndex index into line of segment that we want to draw
void Fl_Text_Display::draw_vline(int visLineNum, int leftClip, int rightClip,
                                 int leftCharIndex, int rightCharIndex) {
  int Y, lineStartPos, lineLen, fontHeight;
  if ( visLineNum < 0 || visLineNum >= mNVisibleLines )
    return;
  fontHeight = mMaxsize;
  Y = text_area.y + visLineNum * fontHeight;
  lineStartPos = mLineStarts[ visLineNum ];
  if ( lineStartPos == -1 ) {
    lineLen = 0;
  } else {
    lineLen = vline_length( visLineNum );
  }
  leftClip = max( text_area.x, leftClip );
  rightClip = min( rightClip, text_area.x + text_area.w );
  handle_vline(DRAW_LINE, 
               lineStartPos, lineLen, leftCharIndex, rightCharIndex,
               Y, Y+fontHeight, leftClip, rightClip);
  return;
}
void Fl_Text_Display :: draw_vline ( int visLineNum , int leftClip , int rightClip , int leftCharIndex , int rightCharIndex ) { int Y , lineStartPos , lineLen , fontHeight ; if ( visLineNum < 0 || visLineNum >= mNVisibleLines ) return ; fontHeight = mMaxsize ; Y = text_area . y + visLineNum * fontHeight ; lineStartPos = mLineStarts [ visLineNum ] ; if ( lineStartPos == -1 ) { lineLen = 0 ; } else { lineLen = vline_length ( visLineNum ) ; } leftClip = max ( text_area . x , leftClip ) ; rightClip = min ( rightClip , text_area . x + text_area . w ) ; handle_vline ( DRAW_LINE , lineStartPos , lineLen , leftCharIndex , rightCharIndex , Y , Y + fontHeight , leftClip , rightClip ) ; return ; }
\brief Draw a single line of text.
\ brief Draw a single line of text .
//  printf("draw_vline(visLineNum=%d, leftClip=%d, rightClip=%d, leftCharIndex=%d, rightCharIndex=%d)\n", //         visLineNum, leftClip, rightClip, leftCharIndex, rightCharIndex); //  printf("nNVisibleLines=%d\n", mNVisibleLines); /* If line is not displayed, skip it */ /* Calculate Y coordinate of the string to draw */ /* Get the text, length, and  buffer position of the line to display */ /* Shrink the clipping range to the active display area */