Lines Matching refs:fromOffset

3045 BTextView::DeleteText(int32 fromOffset, int32 toOffset)
3049 if (fromOffset < 0)
3050 fromOffset = 0;
3051 else if (fromOffset > fText->Length())
3052 fromOffset = fText->Length();
3059 if (fromOffset >= toOffset)
3064 fStyles->SyncNullStyle(fromOffset);
3067 fText->RemoveRange(fromOffset, toOffset);
3070 fLines->RemoveLineRange(fromOffset, toOffset);
3073 fStyles->RemoveStyleRange(fromOffset, toOffset);
3076 int32 range = toOffset - fromOffset;
3081 } else if (fSelStart >= fromOffset && fSelEnd <= toOffset) {
3083 fSelStart = fSelEnd = fromOffset;
3084 } else if (fSelStart >= fromOffset && fSelEnd > toOffset) {
3087 fSelStart = fromOffset;
3088 fSelEnd = fromOffset + fSelEnd - toOffset;
3089 } else if (fSelStart < fromOffset && fSelEnd < toOffset) {
3091 fSelEnd = fromOffset;
3092 } else if (fSelStart < fromOffset && fSelEnd >= toOffset) {
3778 \param fromOffset The offset from where to refresh.
3783 BTextView::_Refresh(int32 fromOffset, int32 toOffset, int32 scrollTo)
3788 int32 fromLine = _LineAt(fromOffset);
3805 fromOffset = -1;
3875 int32 fromOffset = curLine->offset;
3876 int32 toOffset = _FindLineBreak(fromOffset, &ascent, &descent, &width);
3882 int32 nextOffset = _NextInitialByte(fromOffset);
3883 if (toOffset < nextOffset && fromOffset < textLength)
3980 BTextView::_FindLineBreak(int32 fromOffset, float* _ascent, float* _descent,
3988 // is fromOffset at the end?
3989 if (fromOffset >= limit) {
3992 fStyles->Iterate(fromOffset, 1, fInline, NULL, NULL, _ascent,
4010 int32 offset = fromOffset;
4015 offset = limit - fromOffset;
4016 fText->FindChar(B_ENTER, fromOffset, &offset);
4017 offset += fromOffset;
4020 *inOutWidth = _TabExpandedStyledWidth(fromOffset, toOffset - fromOffset,
4104 if (offset - fromOffset < 1) {
4111 int32 current = fromOffset;
4294 \param fromOffset The offset where to start.
4302 BTextView::_StyledWidth(int32 fromOffset, int32 length, float* _ascent,
4307 fStyles->Iterate(fromOffset, 1, fInline, NULL, NULL, _ascent,
4321 while ((numBytes = fStyles->Iterate(fromOffset, length, fInline, &font,
4329 result += BPrivate::gWidthBuffer->StringWidth(*fText, fromOffset,
4333 const char* text = fText->GetString(fromOffset, &numBytes);
4340 fromOffset += numBytes;
4390 BTextView::_DoDeleteText(int32 fromOffset, int32 toOffset)
5452 int32 fromOffset = theRun->offset + startOffset;
5459 _ApplyStyleRange(fromOffset, toOffset, B_FONT_ALL, &theRun->font,
5880 BTextView::_ApplyStyleRange(int32 fromOffset, int32 toOffset, uint32 mode,
5895 fromOffset = 0;
5900 fStyles->SyncNullStyle(fromOffset);
5902 fStyles->SetStyleRange(fromOffset, toOffset, fText->Length(), mode,