Home
last modified time | relevance | path

Searched refs:TextLine (Results 1 - 13 of 13) sorted by relevance

/third_party/skia/modules/skplaintexteditor/include/
H A Deditor.h25 struct TextLine;
38 const std::vector<TextLine>& fLines;
40 std::vector<TextLine>::const_iterator fPtr;
103 struct TextLine { struct in SkPlainTextEditor::Editor
113 TextLine(StringSlice t) : fText(std::move(t)) {} in TextLine() function
114 TextLine() {} in TextLine() function
116 std::vector<TextLine> fLines;
123 void markDirty(TextLine*);
/third_party/skia/modules/skparagraph/src/
H A DTextLine.h37 class TextLine { class
71 TextLine() = default;
72 TextLine(const TextLine&) = delete;
73 TextLine& operator=(const TextLine&) = delete;
74 TextLine(TextLine&&) = default;
75 TextLine& operator=(TextLine
[all...]
H A DTextLineBaseImpl.h20 #include "modules/skparagraph/src/TextLine.h"
27 TextLineBaseImpl(std::unique_ptr<TextLine> visitorTextLine);
29 TextLineBaseImpl(TextLine* visitorTextLine);
50 std::unique_ptr<TextLine> fVisitorTextLine;
52 TextLine* fVisitorTextLine;
H A DTextLine.cpp23 #include "modules/skparagraph/src/TextLine.h"
112 TextLine::TextLine(ParagraphImpl* owner, function in skia::textlayout::TextLine
210 void TextLine::paint(ParagraphPainter* painter, const RSPath* path, SkScalar hOffset, SkScalar vOffset) {
225 void TextLine::paint(ParagraphPainter* painter, SkScalar x, SkScalar y) {
312 bool TextLine::hasBackgroundRect(const RoundRectAttr& attr) {
316 void TextLine::computeRoundRect(int& index, int& preIndex, std::vector<Run*>& groupRuns, Run* run) {
370 void TextLine::prepareRoundRect() {
396 void TextLine::ensureTextBlobCachePopulated() {
465 void TextLine
[all...]
H A DDecorations.h8 #include "modules/skparagraph/src/TextLine.h"
15 void paint(ParagraphPainter* painter, const TextStyle& textStyle, const TextLine::ClipContext& context, SkScalar baseline);
16 SkScalar calculateThickness(const TextStyle& textStyle, const TextLine::ClipContext& context);
39 void calculateGaps(const TextLine::ClipContext& context, const SkRect& rect, SkScalar baseline,
H A DTextLineBaseImpl.cpp21 TextLineBaseImpl::TextLineBaseImpl(std::unique_ptr<TextLine> visitorTextLine) in TextLineBaseImpl()
24 TextLineBaseImpl::TextLineBaseImpl(TextLine* visitorTextLine) : fVisitorTextLine(visitorTextLine) in TextLineBaseImpl()
H A DParagraphImpl.h28 #include "modules/skparagraph/src/TextLine.h"
42 class TextLine;
139 TextLine& addLine(SkVector offset, SkVector advance,
174 SkSpan<TextLine> lines() { return SkSpan<TextLine>(fLines.data(), fLines.size()); } in lines()
421 SkTArray<TextLine, false> fLines; // kFormatted (cached: width, max lines, ellipsis, text align)
H A DDecorations.cpp27 SkScalar Decorations::calculateThickness(const TextStyle& textStyle, const TextLine::ClipContext& context) { in calculateThickness()
32 void Decorations::paint(ParagraphPainter* painter, const TextStyle& textStyle, const TextLine::ClipContext& context, SkScalar baseline) { in paint()
155 void Decorations::calculateGaps(const TextLine::ClipContext& context, const SkRect& rect, in calculateGaps()
H A DRun.h235 friend class TextLine;
629 friend class TextLine; in InternalLineMetrics()
H A DParagraphCache.cpp103 SkTArray<TextLine, false> fLines;
H A DParagraphImpl.cpp20 #include "modules/skparagraph/src/TextLine.h"
358 TextLine textLine; in GetLineFontMetrics()
1437 TextLine& ParagraphImpl::addLine(SkVector offset, in GetLineFontMetrics()
1463 // calculate text box(reference to TextLine::getRectsForRange(), switch(rectHeightStyle)) in GetLineFontMetrics()
2208 std::make_unique<TextLineBaseImpl>(std::make_unique<TextLine>(std::move(line))); in GetLineFontMetrics()
/third_party/skia/modules/skplaintexteditor/src/
H A Deditor.cpp47 void Editor::markDirty(TextLine* line) { in markDirty()
74 const TextLine& line = fLines[j]; in getPosition()
128 const TextLine& cLine = fLines[cursor.fParagraphIndex]; in getLocation()
158 fLines.push_back(Editor::TextLine(StringSlice(utf8Text, byteLen))); in insert()
164 std::vector<TextLine>::const_iterator next = fLines.begin() + pos.fParagraphIndex + 1; in insert()
165 fLines.insert(next, newlinecount, TextLine()); in insert()
166 TextLine* line = &fLines[pos.fParagraphIndex]; in insert()
230 const std::vector<TextLine>::const_iterator firstP = fLines.begin() + start.fParagraphIndex; in copy()
231 const std::vector<TextLine>::const_iterator lastP = fLines.begin() + end.fParagraphIndex; in copy()
444 const TextLine in paint()
[all...]
/third_party/skia/modules/skparagraph/tests/
H A DSkParagraphTest.cpp34 #include "modules/skparagraph/src/TextLine.h"
234 (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in UNIX_ONLY_TEST()
1054 [reporter, &index](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in UNIX_ONLY_TEST()
1144 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in UNIX_ONLY_TEST()
1171 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in UNIX_ONLY_TEST()
1218 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in UNIX_ONLY_TEST()
1264 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in UNIX_ONLY_TEST()
1772 auto calculate = [](const TextLine& line) -> SkScalar { in UNIX_ONLY_TEST()
1859 auto calculate = [](const TextLine& line) -> SkScalar { in UNIX_ONLY_TEST()
1947 auto calculate = [](const TextLine in UNIX_ONLY_TEST()
[all...]

Completed in 20 milliseconds