Lines Matching defs:end

976 TermView::_InvalidateTextRange(TermPos start, TermPos end)
978 if (end < start)
979 std::swap(start, end);
981 if (start.y == end.y) {
982 _InvalidateTextRect(start.x, start.y, end.x, end.y);
986 if (end.y - start.y > 0)
987 _InvalidateTextRect(0, start.y + 1, fColumns, end.y - 1);
989 _InvalidateTextRect(0, end.y, end.x, end.y);
1410 // This will clip lastColumn to the selection start or end
2634 TermView::_Select(TermPos start, TermPos end, bool inclusive,
2641 if (end < start)
2642 std::swap(start, end);
2645 end.x++;
2648 //start.y, end.x, end.y);
2652 if (end.x >= fColumns)
2653 end.x = fColumns;
2658 end = restrict_value(end, minPos, maxPos);
2660 // if the end is past the end of the line, select the line break, too
2661 if (fTextBuffer->LineLength(end.y) < end.x
2662 && end.y < fTextBuffer->Height()) {
2663 end.y++;
2664 end.x = 0;
2673 if (fTextBuffer->IsFullWidthChar(end.y, end.x)) {
2674 end.x++;
2675 if (end.x >= fColumns)
2676 end.x = fColumns;
2682 fSelection.SetRange(start, end);
2702 TermPos end = fSelection.End();
2706 end = fInitialSelectionEnd;
2710 if (pos >= start && pos >= end)
2715 _Select(pos, end, false, !useInitialSelection);
2716 else if (pos > end)
2719 _Select(start, end, false, false);
2748 TermPos start, end;
2749 if (!fTextBuffer->FindWord(pos, fCharClassifier, true, start, end))
2757 } else if (end
2760 _ExtendSelection(end, false, useInitialSelection);
2762 _Select(start, end, false, false);
2764 _Select(start, end, false, !useInitialSelection);
2772 TermPos end = TermPos(0, start.y + 1);
2779 } else if (end
2782 _ExtendSelection(end, false, useInitialSelection);
2784 _Select(start, end, false, false);
2786 _Select(start, end, false, !useInitialSelection);
2857 // region starts in the highlight, but exceeds the end
2905 // search from the very beginning/end
2962 BPoint end = _ConvertFromTerminal(fSelection.End());
2966 rect.Set(start.x, start.y, end.x + fFontWidth, end.y + fFontHeight);
2968 rect.Set(0, start.y, fColumns * fFontWidth, end.y + fFontHeight);
2990 TermView::_ScrollToRange(TermPos start, TermPos end)
2992 if (start > end)
2993 std::swap(start, end);
2996 float endY = _LineOffset(end.y) + fFontHeight - 1;
3010 // scroll up to align the end with the bottom of the view
3024 // scroll down to make the end visible