Lines Matching refs:offset
251 TextEditor::Insert(int32 offset, const BString& string)
256 status_t ret = fDocument->Insert(offset, string, fStyleAtCaret);
259 _SetCaretOffset(offset + string.CountChars(), true, false, true);
267 TextEditor::Remove(int32 offset, int32 length)
272 status_t ret = fDocument->Remove(offset, length);
275 _SetCaretOffset(offset, true, false, true);
283 TextEditor::Replace(int32 offset, int32 length, const BString& string)
288 status_t ret = fDocument->Replace(offset, length, string);
291 _SetCaretOffset(offset + string.CountChars(), true, false, true);
389 // return to the previous horizonal offset when moving back down from
418 TextEditor::_SetCaretOffset(int32 offset, bool updateAnchor,
424 if (offset < 0)
425 offset = 0;
427 if (offset > textLength)
428 offset = textLength;
430 int32 caret = offset;
431 int32 anchor = lockSelectionAnchor ? fSelection.Anchor() : offset;
470 int32 offset = fSelection.Caret() - 1;
471 if (offset < 0)
472 offset = 0;
473 SetCharacterStyle(fDocument->CharacterStyleAt(offset));