Home
last modified time | relevance | path

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

12

/external/skia/modules/skparagraph/src/
DParagraphStyle.cpp24 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()
DTextLine.cpp242 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()
DTextLine.h86 void format(TextAlign align, SkScalar maxWidth);
DTextWrapper.h212 void trimEndSpaces(TextAlign align);
DParagraphImpl.h203 void updateTextAlign(TextAlign textAlign) override;
DTextWrapper.cpp195 void TextWrapper::trimEndSpaces(TextAlign align) { in trimEndSpaces()
DParagraphImpl.cpp550 if (!SkScalarIsFinite(maxWidth) && effectiveAlign != TextAlign::kLeft) { in formatLines()
976 void ParagraphImpl::updateTextAlign(TextAlign textAlign) { in updateTextAlign()
/external/skia/experimental/sktext/samples/
DText.cpp46 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/
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()
Dparagraph.js73 s['textAlign'] = s['textAlign'] || CanvasKit.TextAlign.Start;
/external/skia/modules/skparagraph/include/
DParagraphStyle.h98 TextAlign getTextAlign() const { return fTextAlign; } in getTextAlign()
99 void setTextAlign(TextAlign align) { fTextAlign = align; } in setTextAlign()
119 TextAlign effective_align() const;
128 TextAlign fTextAlign;
DParagraph.h70 virtual void updateTextAlign(TextAlign textAlign) = 0;
DDartTypes.h51 enum class TextAlign { enum
/external/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,
/external/skia/modules/skparagraph/samples/
DSampleParagraph.cpp311 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/
DFuzzSkParagraph.cpp235 TextAlign ta; in BuildParagraphStyle()
236 fuzz->nextEnum(&ta, TextAlign::kEnd); in BuildParagraphStyle()
/external/skia/experimental/sktext/include/
DProcessor.h66 TextFormatStyle(TextAlign textAlign, TextDirection defaultTextDirection) in TextFormatStyle()
68 TextAlign fTextAlign;
DTypes.h12 enum class TextAlign { enum
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts504 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/
DSkParagraphTest.cpp1026 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/
DProcessor.cpp74 …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/
Dcfx_css.h101 TextAlign, enumerator
Dcfx_cssstyleselector.cpp94 CFX_CSSData::GetPropertyByEnum(CFX_CSSProperty::TextAlign), in ComputeStyle()
206 case CFX_CSSProperty::TextAlign: in ApplyProperty()
Dcfx_cssdata.cpp95 {PROP(CFX_CSSProperty::TextAlign,
/external/skia/site/docs/user/modules/
Dquickstart.md274 textAlign: CanvasKit.TextAlign.Left,
304 textAlign: CanvasKit.TextAlign.Left,
331 textAlign: CanvasKit.TextAlign.Left,

12