Home
last modified time | relevance | path

Searched refs:fSelection (Results 1 – 4 of 4) sorted by relevance

/external/skia/experimental/sktext/editor/
DTexts.cpp36 if (fSelection->isEmpty()) { in paint()
54 merged.reserve_back(fDecorations.size() + fSelection->count()); in mergeSelectionIntoDecorations()
58 for (auto& selected : fSelection->fTextRanges) { in mergeSelectionIntoDecorations()
80 merged.emplace_back(selected.width(), fSelection->fForeground, fSelection->fBackground); in mergeSelectionIntoDecorations()
DTexts.h144 , fSelection(std::make_unique<Selection>(DEFAULT_SELECTION_COLOR)) { in EditableText()
198 fSelection->clear(); in update()
201 void select(TextRange text, SkRect boundaries) { fSelection->select(text, boundaries); } in select()
202 void clearSelection() { fSelection->clear(); } in clearSelection()
209 std::unique_ptr<Selection> fSelection;
/external/skia/tools/viewer/
DSkottieTextEditor.cpp95 return std::make_tuple(std::min(std::get<0>(fSelection), std::get<1>(fSelection)), in currentSelection()
96 std::max(std::get<0>(fSelection), std::get<1>(fSelection))); in currentSelection()
213 fSelection = {0,0}; in deleteSelection()
260 fSelection = {closest, closest}; in onMouseInput()
268 std::get<1>(fSelection) = closest < std::get<0>(fSelection) in onMouseInput()
DSkottieTextEditor.h53 std::tuple<size_t, size_t> fSelection = {0,0}; // Indices in the glyphs domain. variable