/external/skia/modules/skparagraph/src/ |
D | ParagraphStyle.cpp | 24 fTextAlign = TextAlign::kStart; in ParagraphStyle() 32 TextAlign ParagraphStyle::effective_align() const { in effective_align() 33 if (fTextAlign == TextAlign::kStart) { in effective_align() 34 return (fTextDirection == TextDirection::kLtr) ? TextAlign::kLeft : TextAlign::kRight; in effective_align() 35 } else if (fTextAlign == TextAlign::kEnd) { in effective_align() 36 return (fTextDirection == TextDirection::kLtr) ? TextAlign::kRight : TextAlign::kLeft; in effective_align()
|
D | TextLine.cpp | 242 void TextLine::format(TextAlign align, SkScalar maxWidth) { in format() 249 if (align == TextAlign::kJustify) { in format() 256 } else if (align == TextAlign::kRight) { in format() 258 } else if (align == TextAlign::kCenter) { in format() 1045 if (paragraphStyle.getTextAlign() == TextAlign::kJustify && isLastLine()) in getRectsForRange()
|
D | TextLine.h | 86 void format(TextAlign align, SkScalar maxWidth);
|
D | TextWrapper.h | 212 void trimEndSpaces(TextAlign align);
|
D | ParagraphImpl.h | 203 void updateTextAlign(TextAlign textAlign) override;
|
D | TextWrapper.cpp | 195 void TextWrapper::trimEndSpaces(TextAlign align) { in trimEndSpaces()
|
D | ParagraphImpl.cpp | 550 if (!SkScalarIsFinite(maxWidth) && effectiveAlign != TextAlign::kLeft) { in formatLines() 976 void ParagraphImpl::updateTextAlign(TextAlign textAlign) { in updateTextAlign()
|
/external/skia/experimental/sktext/samples/ |
D | Text.cpp | 46 TextAlign align, in drawLine() 96 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kLtr); in onDrawContent() 98 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kLtr); in onDrawContent() 100 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kLtr); in onDrawContent() 102 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kLtr); in onDrawContent() 105 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kRtl); in onDrawContent() 107 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kRtl); in onDrawContent() 109 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kRtl); in onDrawContent() 111 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kRtl); in onDrawContent()
|
/external/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()
|
D | paragraph.js | 73 s['textAlign'] = s['textAlign'] || CanvasKit.TextAlign.Start;
|
/external/skia/modules/skparagraph/include/ |
D | ParagraphStyle.h | 98 TextAlign getTextAlign() const { return fTextAlign; } in getTextAlign() 99 void setTextAlign(TextAlign align) { fTextAlign = align; } in setTextAlign() 119 TextAlign effective_align() const; 128 TextAlign fTextAlign;
|
D | Paragraph.h | 70 virtual void updateTextAlign(TextAlign textAlign) = 0;
|
D | DartTypes.h | 51 enum class TextAlign { enum
|
/external/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,
|
/external/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 311 TextAlign align) { in drawLine() 426 TextAlign align, size_t lineLimit = std::numeric_limits<size_t>::max(), in drawLine() 521 drawLine(canvas, width, height, line, TextAlign::kLeft, 1, false, SK_ColorLTGRAY); in onDrawContent() 523 drawLine(canvas, width, height, line, TextAlign::kRight, 2, false, SK_ColorLTGRAY); in onDrawContent() 525 drawLine(canvas, width, height, line, TextAlign::kCenter, 3, false, SK_ColorLTGRAY); in onDrawContent() 527 drawLine(canvas, width, height, line, TextAlign::kJustify, 4, false, SK_ColorLTGRAY); in onDrawContent() 530 drawLine(canvas, width, height, line, TextAlign::kLeft, 1, true, SK_ColorLTGRAY); in onDrawContent() 532 drawLine(canvas, width, height, line, TextAlign::kRight, 2, true, SK_ColorLTGRAY); in onDrawContent() 534 drawLine(canvas, width, height, line, TextAlign::kCenter, 3, true, SK_ColorLTGRAY); in onDrawContent() 536 drawLine(canvas, width, height, line, TextAlign::kJustify, 4, true, SK_ColorLTGRAY); in onDrawContent() [all …]
|
/external/skia/fuzz/ |
D | FuzzSkParagraph.cpp | 235 TextAlign ta; in BuildParagraphStyle() 236 fuzz->nextEnum(&ta, TextAlign::kEnd); in BuildParagraphStyle()
|
/external/skia/experimental/sktext/include/ |
D | Processor.h | 66 TextFormatStyle(TextAlign textAlign, TextDirection defaultTextDirection) in TextFormatStyle() 68 TextAlign fTextAlign;
|
D | Types.h | 12 enum class TextAlign { enum
|
/external/skia/modules/canvaskit/npm_build/types/ |
D | index.d.ts | 504 readonly TextAlign: TextAlignEnumValues; property 925 textAlign?: TextAlign; 3758 export type TextAlign = EmbindEnumEntity; alias 3993 Left: TextAlign; 3994 Right: TextAlign; 3995 Center: TextAlign; 3996 Justify: TextAlign; 3997 Start: TextAlign; 3998 End: TextAlign;
|
/external/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 1026 paragraph_style.setTextAlign(TextAlign::kLeft); in DEF_TEST() 1583 paragraph_style.setTextAlign(TextAlign::kLeft); in DEF_TEST() 1667 paragraph_style.setTextAlign(TextAlign::kRight); in DEF_TEST() 1754 paragraph_style.setTextAlign(TextAlign::kCenter); in DEF_TEST() 1839 paragraph_style.setTextAlign(TextAlign::kJustify); in DEF_TEST() 1915 paragraph_style.setTextAlign(TextAlign::kJustify); in DEF_TEST() 1979 paragraph_style.setTextAlign(TextAlign::kJustify); in DEF_TEST_DISABLED() 2046 paragraph_style.setTextAlign(TextAlign::kJustify); in DEF_TEST_DISABLED() 2091 paragraph_style.setTextAlign(TextAlign::kLeft); in DEF_TEST() 2278 paragraph_style.setTextAlign(TextAlign::kJustify); in DEF_TEST() [all …]
|
/external/skia/experimental/sktext/src/ |
D | Processor.cpp | 74 …return drawText(text, canvas, TextFormatStyle(TextAlign::kLeft, TextDirection::kLtr), SK_ColorBLAC… in drawText() 79 …TextFormatStyle(TextAlign::kLeft, TextDirection::kLtr), SK_ColorBLACK, SK_ColorWHITE, SkString("Ro… in drawText()
|
/external/pdfium/core/fxcrt/css/ |
D | cfx_css.h | 101 TextAlign, enumerator
|
D | cfx_cssstyleselector.cpp | 94 CFX_CSSData::GetPropertyByEnum(CFX_CSSProperty::TextAlign), in ComputeStyle() 206 case CFX_CSSProperty::TextAlign: in ApplyProperty()
|
D | cfx_cssdata.cpp | 95 {PROP(CFX_CSSProperty::TextAlign,
|
/external/skia/site/docs/user/modules/ |
D | quickstart.md | 274 textAlign: CanvasKit.TextAlign.Left, 304 textAlign: CanvasKit.TextAlign.Left, 331 textAlign: CanvasKit.TextAlign.Left,
|