Lines Matching refs:fEditableText
27 fEditableText = std::make_unique<EditableText>(
49 auto endOfText = fEditableText->lastElement(fDefaultPositionType);
50 //fEditableText->recalculateBoundaries(endOfText);
56 if (fEditableText->isValid()) {
61 auto position = fEditableText->adjustedPosition(fDefaultPositionType, fCursor->getCenterPosition());
62 //fEditableText->recalculateBoundaries(position);
73 auto position = fEditableText->adjustedPosition(PositionType::kGraphemeCluster, cursorPosition);
76 position = fEditableText->previousElement(position);
78 position = fEditableText->nextElement(position);
80 position = fEditableText->firstElement(PositionType::kGraphemeCluster);
82 position = fEditableText->lastElement(PositionType::kGraphemeCluster);
88 auto prevLine = fEditableText->getLine(position.fLineIndex - 1);
90 position = fEditableText->adjustedPosition(PositionType::kGraphemeCluster, cursorPosition);
93 if (position.fLineIndex == fEditableText->lineCount() - 1) {
96 auto nextLine = fEditableText->getLine(position.fLineIndex + 1);
98 position = fEditableText->adjustedPosition(PositionType::kGraphemeCluster, cursorPosition);
102 //fEditableText->recalculateBoundaries(position);
149 if (fEditableText->isEmpty()) {
154 auto position = fEditableText->adjustedPosition(fDefaultPositionType, cursorPosition);
161 position = fEditableText->previousElement(position);
168 fEditableText->removeElement(textRange);
171 position = fEditableText->adjustedPosition(fDefaultPositionType, SkPoint::Make(position.fBoundaries.fLeft, position.fBoundaries.fTop));
180 auto position = fEditableText->adjustedPosition(fDefaultPositionType, cursorPosition);
183 fEditableText->insertElement(unichar, position.fTextRange.fStart);
185 fEditableText->replaceElement(unichar, position.fTextRange);
191 position = fEditableText->adjustedPosition(fDefaultPositionType, cursorPosition);
194 position = fEditableText->nextElement(position);
195 //fEditableText->recalculateBoundaries(position);
239 if (!fEditableText->contains(x, y)) {
243 auto position = fEditableText->adjustedPosition(fDefaultPositionType, SkPoint::Make(x, y));
246 fEditableText->select(position.fTextRange, position.fBoundaries);
253 fEditableText->clearSelection();
266 fEditableText->paint(canvas);