Lines Matching defs:toOffset

3045 BTextView::DeleteText(int32 fromOffset, int32 toOffset)
3054 if (toOffset < 0)
3055 toOffset = 0;
3056 else if (toOffset > fText->Length())
3057 toOffset = fText->Length();
3059 if (fromOffset >= toOffset)
3067 fText->RemoveRange(fromOffset, toOffset);
3070 fLines->RemoveLineRange(fromOffset, toOffset);
3073 fStyles->RemoveStyleRange(fromOffset, toOffset);
3076 int32 range = toOffset - fromOffset;
3077 if (fSelStart >= toOffset) {
3081 } else if (fSelStart >= fromOffset && fSelEnd <= toOffset) {
3084 } else if (fSelStart >= fromOffset && fSelEnd > toOffset) {
3088 fSelEnd = fromOffset + fSelEnd - toOffset;
3089 } else if (fSelStart < fromOffset && fSelEnd < toOffset) {
3092 } else if (fSelStart < fromOffset && fSelEnd >= toOffset) {
3779 \param toOffset The offset where to refresh to.
3783 BTextView::_Refresh(int32 fromOffset, int32 toOffset, int32 scrollTo)
3789 int32 toLine = _LineAt(toOffset);
3876 int32 toOffset = _FindLineBreak(fromOffset, &ascent, &descent, &width);
3883 if (toOffset < nextOffset && fromOffset < textLength)
3884 toOffset = nextOffset;
3888 if (lineIndex > fLines->NumLines() || toOffset < nextLine->offset) {
3891 newLine.offset = toOffset;
3897 nextLine->offset = toOffset;
3902 && toOffset >= ((*fLines)[lineIndex] + 1)->offset) {
4018 int32 toOffset = (offset < limit) ? offset : limit;
4020 *inOutWidth = _TabExpandedStyledWidth(fromOffset, toOffset - fromOffset,
4390 BTextView::_DoDeleteText(int32 fromOffset, int32 toOffset)
5453 int32 toOffset = endOffset;
5455 toOffset = (theRun + 1)->offset + startOffset;
5456 toOffset = (toOffset > endOffset) ? endOffset : toOffset;
5459 _ApplyStyleRange(fromOffset, toOffset, B_FONT_ALL, &theRun->font,
5880 BTextView::_ApplyStyleRange(int32 fromOffset, int32 toOffset, uint32 mode,
5896 toOffset = fText->Length();
5902 fStyles->SetStyleRange(fromOffset, toOffset, fText->Length(), mode,