Home | History | Annotate | Download | only in gfx

Lines Matching refs:caret

160     size_t caret = selection.caret_pos();
162 if (caret < LayoutIndexToTextIndex(item->offset + item->length)) {
163 caret = IndexOfAdjacentGrapheme(caret, CURSOR_FORWARD);
164 return SelectionModel(caret, CURSOR_BACKWARD);
167 if (caret > LayoutIndexToTextIndex(item->offset)) {
168 caret = IndexOfAdjacentGrapheme(caret, CURSOR_BACKWARD);
169 return SelectionModel(caret, CURSOR_FORWARD);
490 const SelectionModel& caret) const {
491 size_t position = TextIndexToLayoutIndex(caret.caret_pos());
492 LogicalCursorDirection affinity = caret.caret_affinity();
506 size_t caret = IndexOfAdjacentGrapheme(
508 return SelectionModel(caret, CURSOR_BACKWARD);
513 size_t caret = IndexOfAdjacentGrapheme(
515 return SelectionModel(caret, CURSOR_FORWARD);