Lines Matching refs:TextPosition
70 Editor::TextPosition Editor::getPosition(SkIPoint xy) { in getPosition()
71 Editor::TextPosition approximatePosition; in getPosition()
91 return Editor::TextPosition{i, j}; in getPosition()
124 SkRect Editor::getLocation(Editor::TextPosition cursor) { in getLocation()
146 Editor::TextPosition Editor::insert(TextPosition pos, const char* utf8Text, size_t byteLen) { in insert()
160 pos = Editor::TextPosition{pos.fTextByteIndex + byteLen, pos.fParagraphIndex}; in insert()
174 Editor::TextPosition Editor::remove(TextPosition pos1, TextPosition pos2) { in remove()
177 auto cmp = [](const Editor::TextPosition& u, const Editor::TextPosition& v) { return u < v; }; in remove()
178 Editor::TextPosition start = std::min(pos1, pos2, cmp); in remove()
179 Editor::TextPosition end = std::max(pos1, pos2, cmp); in remove()
212 size_t Editor::copy(TextPosition pos1, TextPosition pos2, char* dst) const { in copy()
216 auto cmp = [](const Editor::TextPosition& u, const Editor::TextPosition& v) { return u < v; }; in copy()
217 Editor::TextPosition start = std::min(pos1, pos2, cmp); in copy()
218 Editor::TextPosition end = std::max(pos1, pos2, cmp); in copy()
280 Editor::TextPosition Editor::move(Editor::Movement move, Editor::TextPosition pos) const { in move()
437 auto cmp = [](const Editor::TextPosition& u, const Editor::TextPosition& v) { return u < v; }; in paint()
438 for (TextPosition pos = std::min(options.fSelectionBegin, options.fSelectionEnd, cmp), in paint()