/third_party/skia/modules/skparagraph/src/ |
D | ParagraphStyle.cpp | 30 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()
|
D | TextWrapper.cpp | 228 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()
|
D | TextLine.cpp | 310 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()
|
D | ParagraphImpl.cpp | 966 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()
|
D | TextWrapper.h | 219 void trimEndSpaces(TextAlign align);
|
/third_party/skia/experimental/sktext/samples/ |
D | Text.cpp | 48 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/ |
D | paragraph_bindings_gen.cpp | 80 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/ |
D | Paint.cpp | 10 …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()
|
D | Paint.h | 77 TextDirection textDirection, TextAlign textAlign, 82 TextDirection textDirection, TextAlign textAlign, 89 TextDirection textDirection, TextAlign textAlign,
|
/third_party/skia/modules/skparagraph/include/ |
D | ParagraphStyle.h | 134 TextAlign getTextAlign() const { return fTextAlign; } in getTextAlign() 135 void setTextAlign(TextAlign align) { fTextAlign = align; } in setTextAlign() 155 TextAlign effective_align() const; 172 TextAlign fTextAlign;
|
D | DartTypes.h | 52 enum class TextAlign { enum
|
D | Paragraph.h | 89 virtual void updateTextAlign(TextAlign textAlign) = 0;
|
/third_party/skia/experimental/sktext/editor/ |
D | Defaults.h | 14 const TextAlign DEFAULT_TEXT_ALIGN = TextAlign::kLeft;
|
D | Texts.h | 27 …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/ |
D | text.d.ts | 31 declare enum TextAlign { enum 73 textAlign(value: TextAlign): TextAttribute;
|
/third_party/skia/modules/canvaskit/tests/ |
D | paragraph.spec.js | 67 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/ |
D | SampleParagraph.cpp | 310 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/ |
D | index.d.ts | 499 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/ |
D | FuzzSkParagraph.cpp | 237 TextAlign ta; in BuildParagraphStyle() 238 fuzz->nextEnum(&ta, TextAlign::kEnd); in BuildParagraphStyle()
|
/third_party/skia/experimental/sktext/include/ |
D | Text.h | 217 void format(TextAlign textAlign, TextDirection textDirection); 240 WrappedText() : fActualSize(SkSize::MakeEmpty()), fAligned(TextAlign::kNothing) { } in WrappedText() 245 TextAlign fAligned;
|
D | Interface.h | 110 void format(TextAlign textAlign, TextDirection textDirection);
|
D | Types.h | 15 enum class TextAlign { enum
|
/third_party/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 1083 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/ |
D | Text.cpp | 35 skia::text::TextDirection::kLtr, skia::text::TextAlign::kLeft, in Text_RenderText()
|
/third_party/skia/site/docs/user/modules/ |
D | quickstart.md | 274 textAlign: CanvasKit.TextAlign.Left, 304 textAlign: CanvasKit.TextAlign.Left, 331 textAlign: CanvasKit.TextAlign.Left,
|