Lines Matching refs:line

812 		// recalculate line breaks
816 // don't recalculate line breaks,
1172 // recalculate line breaks and draw the text
1198 // update the start offsets of each line below offset
1211 // recalculate line breaks and draw the text
1298 // recalculate line breaks and draw what's left
1635 // recalc the line breaks and redraw with new style
1638 // the line breaks wont change, simply redraw
1776 STELine* line = (*fLines)[lineNum];
1781 result.y = line->origin + fTextRect.top;
1786 // Handle the case where there is only one line (no text inserted)
1790 height = (line + 1)->origin - line->origin;
1793 // special case: go down one line if offset is at the newline
1796 // ... and return the height of that (empty) line
1800 int32 length = offset - line->offset;
1801 result.x += _TabExpandedStyledWidth(line->offset, length);
1838 STELine* line = (*fLines)[lineNum];
1844 // tells us that it's on the last line, but if point is actually
1845 // lower than the bottom of the last line, return the last offset
1848 if (point.y >= ((line + 1)->origin + fTextRect.top))
1867 int32 offset = line->offset;
1868 const int32 limit = (line + 1)->offset;
1888 if (offset == (line + 1)->offset) {
1905 BTextView::OffsetAt(int32 line) const
1907 if (line < 0)
1910 if (line > fLines->NumLines())
1913 return (*fLines)[line]->offset;
2015 STELine* line = (*fLines)[lineNumber];
2016 int32 length = (line + 1)->offset - line->offset;
2018 // skip newline at the end of the line, if any, as it does no contribute
2020 if (ByteAt((line + 1)->offset - 1) == B_ENTER)
2023 return _TabExpandedStyledWidth(line->offset, length);
2110 // this is a one-line region
2117 // more than one line in the specified offset range
2119 // include first line from start of selection to end of window
2139 // include last line start of window to end of selection
2802 TRACE("line height: %.2f\n", lineHeight);
3022 // update the start offsets of each line below offset
3412 // line by gently stepping onto this line
3562 STELine* line = NULL;
3578 // get the start of the last line if caret is on it
3579 line = (*fLines)[_LineAt(lastClickOffset)];
3580 fCaretOffset = line->offset;
3611 // If we are on the last line, just go to the last
3613 // offset of the next line, and go to the previous character
3616 line = (*fLines)[currentLine + 1];
3617 fCaretOffset = _PreviousInitialByte(line->offset);
3620 // when the cursor is on the last line, and that line
3775 /*! Redraw the text between the two given offsets, recalculating line-breaks
3802 // if the line breaks have changed, force an erase
3846 /*! Recalculate line breaks between two lines.
3848 \param startLine The line number to start recalculating line breaks.
3849 \param endLine The line number to stop recalculating line breaks.
3889 // the new line comes before the old line start, add a line
3896 // update the existing line
3900 // remove any lines that start before the current line
3924 // make sure that the sentinel line (which starts at the end of the buffer)
4036 // find the next line break candidate
4044 // the line, here
4074 // we've found where the line will wrap
4091 // width of visible characters exceeds line, we need to wrap
4105 // there weren't any words that fit entirely in this line
4384 // recalc line breaks and draw the text
4401 STELine* line = (*fLines)[lineNum];
4406 startLeft = PointAt(line->offset).x;
4416 int32 length = (line + 1)->offset;
4420 length -= line->offset;
4423 if (ByteAt((line + 1)->offset - 1) == B_ENTER)
4427 line->origin + line->ascent + fTextRect.top + 1);
4430 eraseRect.top = line->origin + fTextRect.top;
4431 eraseRect.bottom = (line + 1)->origin + fTextRect.top;
4442 int32 offset = startOffset != -1 ? startOffset : line->offset;
4447 // iterate through each style on this line
4515 // subtract distance from left to line
4520 // subtract half distance from left to line
4592 STELine* line = (*fLines)[startLine];
4602 eraseRect.bottom = (line + 1)->origin + fTextRect.top;
4615 //BPoint leftTop(startLeft, line->origin);
4621 // Set this to -1 so the next iteration will use the line offset
5836 /*! Returns the line number of the character at the given \a offset.
5838 \note This will never return the last line (use LineAt() if you
5843 \return The line number of the character at the given \a offset as an int32.
5852 /*! Returns the line number that the given \a point is on.
5854 \note This will never return the last line (use LineAt() if you
5857 \param point The \a point the get the line number of.
5859 \return The line number of the given \a point as an int32.
5868 /*! Returns whether or not the given \a offset is on the empty line at the end