Home
last modified time | relevance | path

Searched refs:TextAlign (Results 1 – 25 of 35) sorted by relevance

12

/third_party/skia/modules/skparagraph/src/
DParagraphStyle.cpp30 fTextAlign = TextAlign::kStart; in ParagraphStyle()
39 TextAlign ParagraphStyle::effective_align() const { in effective_align()
40 if (fTextAlign == TextAlign::kStart) { in effective_align()
41 return (fTextDirection == TextDirection::kLtr) ? TextAlign::kLeft : TextAlign::kRight; in effective_align()
42 } else if (fTextAlign == TextAlign::kEnd) { in effective_align()
43 return (fTextDirection == TextDirection::kLtr) ? TextAlign::kRight : TextAlign::kLeft; in effective_align()
DTextWrapper.cpp228 void TextWrapper::trimEndSpaces(TextAlign align) { in moveForward()
719 TextAlign align = parent->paragraphStyle().effective_align(); in moveForward()
720 if (align == TextAlign::kLeft || align == TextAlign::kJustify) { in moveForward()
DTextLine.cpp310 this->iterateThroughVisualRuns(fOwner->paragraphStyle().getTextAlign() == TextAlign::kEnd, in prepareRoundRect()
392 void TextLine::format(TextAlign align, SkScalar maxWidth, EllipsisModal ellipsisModal) { in format()
402 if (align == TextAlign::kJustify) { in format()
409 } else if (align == TextAlign::kRight) { in format()
411 } else if (align == TextAlign::kCenter) { in format()
552 skRRect.offset(x + (fOwner->paragraphStyle().getTextAlign() == TextAlign::kEnd ? in paintRoundRect()
1079 result.clip.fRight = fOwner->paragraphStyle().getTextAlign() == TextAlign::kEnd ? in shapeEllipsis()
1483 if (paragraphStyle.getTextAlign() == TextAlign::kJustify && isLastLine()) in shapeEllipsis()
DParagraphImpl.cpp966 TextAlign align = fParagraphStyle.effective_align(); in GetLineFontMetrics()
967 SkScalar offsetX = (align == TextAlign::kLeft || align == TextAlign::kJustify) ? in GetLineFontMetrics()
1022 const bool isLeftAligned = effectiveAlign == TextAlign::kLeft in GetLineFontMetrics()
1023 …|| (effectiveAlign == TextAlign::kJustify && fParagraphStyle.getTextDirection() == TextDirection::… in GetLineFontMetrics()
1445 void ParagraphImpl::updateTextAlign(TextAlign textAlign) { in GetLineFontMetrics()
DTextWrapper.h219 void trimEndSpaces(TextAlign align);
/third_party/skia/experimental/sktext/samples/
DText.cpp48 TextAlign align, in drawLine()
99 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kLtr); in onDrawContent()
101 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kLtr); in onDrawContent()
103 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kLtr); in onDrawContent()
105 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kLtr); in onDrawContent()
108 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kRtl); in onDrawContent()
110 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kRtl); in onDrawContent()
112 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kRtl); in onDrawContent()
114 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kRtl); in onDrawContent()
177 TextDirection::kRtl, TextAlign::kRight, in onDrawContent()
/third_party/skia/modules/canvaskit/
Dparagraph_bindings_gen.cpp80 enum_<para::TextAlign>("TextAlign") in EMSCRIPTEN_BINDINGS()
81 .value("Left", para::TextAlign::kLeft) in EMSCRIPTEN_BINDINGS()
82 .value("Right", para::TextAlign::kRight) in EMSCRIPTEN_BINDINGS()
83 .value("Center", para::TextAlign::kCenter) in EMSCRIPTEN_BINDINGS()
84 .value("Justify", para::TextAlign::kJustify) in EMSCRIPTEN_BINDINGS()
85 .value("Start", para::TextAlign::kStart) in EMSCRIPTEN_BINDINGS()
86 .value("End", para::TextAlign::kEnd); in EMSCRIPTEN_BINDINGS()
/third_party/skia/experimental/sktext/src/
DPaint.cpp10 …return drawText(std::move(text), canvas, TextDirection::kLtr, TextAlign::kLeft, foregroundPaint, b… in drawText()
17 …TextDirection::kLtr, TextAlign::kLeft, foregroundPaint, backgroundPaint, SkString("Roboto"), 14, S… in drawText()
22 TextDirection textDirection, TextAlign textAlign, in drawText()
31 TextDirection textDirection, TextAlign textAlign, in drawText()
78 TextDirection textDirection, TextAlign textAlign, in layout()
DPaint.h77 TextDirection textDirection, TextAlign textAlign,
82 TextDirection textDirection, TextAlign textAlign,
89 TextDirection textDirection, TextAlign textAlign,
/third_party/skia/modules/skparagraph/include/
DParagraphStyle.h134 TextAlign getTextAlign() const { return fTextAlign; } in getTextAlign()
135 void setTextAlign(TextAlign align) { fTextAlign = align; } in setTextAlign()
155 TextAlign effective_align() const;
172 TextAlign fTextAlign;
DDartTypes.h52 enum class TextAlign { enum
DParagraph.h89 virtual void updateTextAlign(TextAlign textAlign) = 0;
/third_party/skia/experimental/sktext/editor/
DDefaults.h14 const TextAlign DEFAULT_TEXT_ALIGN = TextAlign::kLeft;
DTexts.h27 …set, SkSize size, SkSpan<FontBlock> fontBlocks, TextDirection textDirection, TextAlign textAlign) { in StaticText()
62 TextDirection textDirection, TextAlign textAlign) { in DynamicText()
135 TextAlign fTextAlign;
142 …> fontBlocks, SkSpan<DecoratedBlock> decorations, TextDirection textDirection, TextAlign textAlign) in EditableText()
/third_party/typescript/tests/cases/fourslash/etslib/
Dtext.d.ts31 declare enum TextAlign { enum
73 textAlign(value: TextAlign): TextAttribute;
/third_party/skia/modules/canvaskit/tests/
Dparagraph.spec.js67 textAlign: CanvasKit.TextAlign.Center,
152 textAlign: CanvasKit.TextAlign.Center,
181 textAlign: CanvasKit.TextAlign.Center,
226 textAlign: CanvasKit.TextAlign.Center,
258 textAlign: CanvasKit.TextAlign.Center,
359 textAlign: CanvasKit.TextAlign.Center,
386 textAlign: CanvasKit.TextAlign.Center,
443 textAlign: CanvasKit.TextAlign.Left,
531 textAlign: CanvasKit.TextAlign.Left,
579 textAlign: CanvasKit.TextAlign.Left,
/third_party/skia/modules/skparagraph/samples/
DSampleParagraph.cpp310 TextAlign align) { in drawLine()
425 TextAlign align, size_t lineLimit = std::numeric_limits<size_t>::max(), in drawLine()
520 drawLine(canvas, width, height, line, TextAlign::kLeft, 1, false, SK_ColorLTGRAY); in onDrawContent()
522 drawLine(canvas, width, height, line, TextAlign::kRight, 2, false, SK_ColorLTGRAY); in onDrawContent()
524 drawLine(canvas, width, height, line, TextAlign::kCenter, 3, false, SK_ColorLTGRAY); in onDrawContent()
526 drawLine(canvas, width, height, line, TextAlign::kJustify, 4, false, SK_ColorLTGRAY); in onDrawContent()
529 drawLine(canvas, width, height, line, TextAlign::kLeft, 1, true, SK_ColorLTGRAY); in onDrawContent()
531 drawLine(canvas, width, height, line, TextAlign::kRight, 2, true, SK_ColorLTGRAY); in onDrawContent()
533 drawLine(canvas, width, height, line, TextAlign::kCenter, 3, true, SK_ColorLTGRAY); in onDrawContent()
535 drawLine(canvas, width, height, line, TextAlign::kJustify, 4, true, SK_ColorLTGRAY); in onDrawContent()
[all …]
/third_party/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts499 readonly TextAlign: TextAlignEnumValues; property
929 textAlign?: TextAlign;
3826 export type TextAlign = EmbindEnumEntity; alias
4054 Left: TextAlign;
4055 Right: TextAlign;
4056 Center: TextAlign;
4057 Justify: TextAlign;
4058 Start: TextAlign;
4059 End: TextAlign;
/third_party/skia/fuzz/
DFuzzSkParagraph.cpp237 TextAlign ta; in BuildParagraphStyle()
238 fuzz->nextEnum(&ta, TextAlign::kEnd); in BuildParagraphStyle()
/third_party/skia/experimental/sktext/include/
DText.h217 void format(TextAlign textAlign, TextDirection textDirection);
240 WrappedText() : fActualSize(SkSize::MakeEmpty()), fAligned(TextAlign::kNothing) { } in WrappedText()
245 TextAlign fAligned;
DInterface.h110 void format(TextAlign textAlign, TextDirection textDirection);
DTypes.h15 enum class TextAlign { enum
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp1083 paragraph_style.setTextAlign(TextAlign::kLeft); in UNIX_ONLY_TEST()
1641 paragraph_style.setTextAlign(TextAlign::kLeft); in UNIX_ONLY_TEST()
1725 paragraph_style.setTextAlign(TextAlign::kRight); in UNIX_ONLY_TEST()
1812 paragraph_style.setTextAlign(TextAlign::kCenter); in UNIX_ONLY_TEST()
1897 paragraph_style.setTextAlign(TextAlign::kJustify); in UNIX_ONLY_TEST()
1973 paragraph_style.setTextAlign(TextAlign::kJustify); in UNIX_ONLY_TEST()
2037 paragraph_style.setTextAlign(TextAlign::kJustify); in UNIX_ONLY_TEST()
2110 paragraph_style.setTextAlign(TextAlign::kJustify); in UNIX_ONLY_TEST()
2155 paragraph_style.setTextAlign(TextAlign::kLeft); in UNIX_ONLY_TEST()
2342 paragraph_style.setTextAlign(TextAlign::kJustify); in UNIX_ONLY_TEST()
[all …]
/third_party/skia/modules/androidkit/src/
DText.cpp35 skia::text::TextDirection::kLtr, skia::text::TextAlign::kLeft, in Text_RenderText()
/third_party/skia/site/docs/user/modules/
Dquickstart.md274 textAlign: CanvasKit.TextAlign.Left,
304 textAlign: CanvasKit.TextAlign.Left,
331 textAlign: CanvasKit.TextAlign.Left,

12