/third_party/flutter/skia/modules/skparagraph/src/ |
D | ParagraphCache.cpp | 10 ParagraphCacheKey(const ParagraphImpl* paragraph) in ParagraphCacheKey() argument 11 : fText(paragraph->fText.c_str(), paragraph->fText.size()) in ParagraphCacheKey() 12 , fFontSwitches(paragraph->switches()) in ParagraphCacheKey() 13 , fTextStyles(paragraph->fTextStyles) in ParagraphCacheKey() 14 , fParagraphStyle(paragraph->paragraphStyle()) { } in ParagraphCacheKey() 24 ParagraphCacheValue(const ParagraphImpl* paragraph) in ParagraphCacheValue() argument 25 : fKey(ParagraphCacheKey(paragraph)) in ParagraphCacheValue() 26 , fInternalState(paragraph->state()) in ParagraphCacheValue() 27 , fRuns(paragraph->fRuns) in ParagraphCacheValue() 28 , fClusters(paragraph->fClusters) { } in ParagraphCacheValue() [all …]
|
/third_party/flutter/engine/flutter/third_party/txt/tests/ |
D | paragraph_unittests.cc | 58 auto paragraph = BuildParagraph(builder); in TEST_F() local 59 paragraph->Layout(GetTestCanvasWidth()); in TEST_F() 61 paragraph->Paint(GetCanvas(), 10.0, 15.0); in TEST_F() 63 ASSERT_EQ(paragraph->text_.size(), std::string{text}.length()); in TEST_F() 65 ASSERT_EQ(paragraph->text_[i], u16_text[i]); in TEST_F() 67 ASSERT_EQ(paragraph->runs_.runs_.size(), 1ull); in TEST_F() 68 ASSERT_EQ(paragraph->runs_.styles_.size(), 2ull); in TEST_F() 69 ASSERT_TRUE(paragraph->runs_.styles_[1].equals(text_style)); in TEST_F() 70 ASSERT_EQ(paragraph->records_[0].style().color, text_style.color); in TEST_F() 132 auto paragraph = BuildParagraph(builder); in TEST_F() local [all …]
|
/third_party/skia/modules/canvaskit/tests/ |
D | paragraph.spec.js | 88 const paragraph = builder.build(); 90 paragraph.layout(wrapTo); 92 expect(paragraph.didExceedMaxLines()).toBeTruthy(); 93 expect(paragraph.getAlphabeticBaseline()).toBeCloseTo(21.377, 3); 94 expect(paragraph.getHeight()).toEqual(240); 95 expect(paragraph.getIdeographicBaseline()).toBeCloseTo(27.236, 3); 96 expect(paragraph.getLongestLine()).toBeCloseTo(193.820, 3); 97 expect(paragraph.getMaxIntrinsicWidth()).toBeCloseTo(1444.250, 3); 98 expect(paragraph.getMaxWidth()).toEqual(200); 99 expect(paragraph.getMinIntrinsicWidth()).toBeCloseTo(172.360, 3); [all …]
|
/third_party/flutter/engine/flutter/testing/dart/ |
D | paragraph_test.dart | 13 test('predictably lays out a single-line paragraph', () { 22 final Paragraph paragraph = builder.build(); 23 paragraph.layout(const ParagraphConstraints(width: 400.0)); 25 expect(paragraph.height, closeTo(fontSize, 0.001)); 26 expect(paragraph.width, closeTo(400.0, 0.001)); 27 expect(paragraph.minIntrinsicWidth, closeTo(fontSize * 4.0, 0.001)); 28 expect(paragraph.maxIntrinsicWidth, closeTo(fontSize * 4.0, 0.001)); 29 expect(paragraph.alphabeticBaseline, closeTo(fontSize * .8, 0.001)); 31 paragraph.ideographicBaseline, 32 closeTo(paragraph.alphabeticBaseline * kAhemBaselineRatio, 0.001), [all …]
|
/third_party/flutter/flutter/packages/flutter/test/rendering/ |
D | paragraph_test.dart | 18 final RenderParagraph paragraph = RenderParagraph( 22 layout(paragraph); 26 final Offset offset5 = paragraph.getOffsetForCaret(const TextPosition(offset: 5), caret); 29 final Offset offset25 = paragraph.getOffsetForCaret(const TextPosition(offset: 25), caret); 32 final Offset offset50 = paragraph.getOffsetForCaret(const TextPosition(offset: 50), caret); 37 final RenderParagraph paragraph = RenderParagraph( 41 layout(paragraph); 43 final TextPosition position20 = paragraph.getPositionForOffset(const Offset(20.0, 5.0)); 46 final TextPosition position40 = paragraph.getPositionForOffset(const Offset(40.0, 5.0)); 49 final TextPosition positionBelow = paragraph.getPositionForOffset(const Offset(5.0, 20.0)); [all …]
|
D | paragraph_intrinsics_test.dart | 9 test('list body and paragraph intrinsics', () { 10 final RenderParagraph paragraph = RenderParagraph( 19 paragraph, 23 final double textWidth = paragraph.getMaxIntrinsicWidth(double.infinity); 24 final double oneLineTextHeight = paragraph.getMinIntrinsicHeight(double.infinity); 26 final double wrappedTextWidth = paragraph.getMinIntrinsicWidth(double.infinity); 27 final double twoLinesTextHeight = paragraph.getMinIntrinsicHeight(constrainedWidth); 28 final double manyLinesTextHeight = paragraph.getMinIntrinsicHeight(0.0); 30 // paragraph 36 expect(paragraph.getMaxIntrinsicHeight(double.infinity), equals(oneLineTextHeight)); [all …]
|
/third_party/boost/tools/quickbook/test/ |
D | para_test-1_5.quickbook | 13 single paragraph. 15 Single paragraph. 18 Single paragraph. 21 Single paragraph. 23 Single paragraph.[/ Trailing comment] 30 Lots of newlines round this paragraph. 39 Last paragraph.[endsect] 53 single paragraph. 55 Single paragraph. 58 Single paragraph. [all …]
|
/third_party/skia/modules/skparagraph/src/ |
D | ParagraphCache.cpp | 28 ParagraphCacheKey(const ParagraphImpl* paragraph) in ParagraphCacheKey() argument 29 : fText(paragraph->fText.c_str(), paragraph->fText.size()) in ParagraphCacheKey() 30 , fPlaceholders(paragraph->fPlaceholders) in ParagraphCacheKey() 31 , fTextStyles(paragraph->fTextStyles) in ParagraphCacheKey() 32 , fParagraphStyle(paragraph->paragraphStyle()) { } in ParagraphCacheKey() 42 ParagraphCacheValue(const ParagraphImpl* paragraph) in ParagraphCacheValue() argument 43 : fKey(ParagraphCacheKey(paragraph)) in ParagraphCacheValue() 44 , fRuns(paragraph->fRuns) in ParagraphCacheValue() 45 , fCodeUnitProperties(paragraph->fCodeUnitProperties) in ParagraphCacheValue() 46 , fWords(paragraph->fWords) in ParagraphCacheValue() [all …]
|
/third_party/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 215 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local 216 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST() 217 REPORTER_ASSERT(reporter, paragraph->unresolvedGlyphs() == 0); in UNIX_ONLY_TEST() 219 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in UNIX_ONLY_TEST() 291 auto paragraph = builder.Build(); in UNIX_ONLY_TEST() local 292 paragraph->layout(TestCanvasWidth); in UNIX_ONLY_TEST() 293 paragraph->paint(canvas.get(), 0, 0); in UNIX_ONLY_TEST() 298 auto boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() 302 boxes = paragraph->getRectsForRange(0, 3, rect_height_style, rect_width_style); in UNIX_ONLY_TEST() 306 boxes = paragraph->getRectsForPlaceholders(); in UNIX_ONLY_TEST() [all …]
|
/third_party/flutter/skia/tests/ |
D | SkParagraphTest.cpp | 155 auto paragraph = builder.Build(); in DEF_TEST() local 156 paragraph->layout(TestCanvasWidth); in DEF_TEST() 158 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in DEF_TEST() 221 auto paragraph = builder.Build(); in DEF_TEST() local 222 paragraph->layout(TestCanvasWidth); in DEF_TEST() 224 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in DEF_TEST() 304 auto paragraph = builder.Build(); in DEF_TEST() local 305 paragraph->layout(1000); in DEF_TEST() 306 paragraph->paint(canvas.get(), 0, 0); in DEF_TEST() 308 auto impl = static_cast<ParagraphImpl*>(paragraph.get()); in DEF_TEST() [all …]
|
/third_party/skia/modules/skparagraph/samples/ |
D | SampleParagraph.cpp | 157 auto paragraph = builder.Build(); in drawTest() local 158 paragraph->layout(w - margin * 2); in drawTest() 159 paragraph->paint(canvas, margin, margin); in drawTest() 161 canvas->translate(0, paragraph->getHeight()); in drawTest() 235 auto paragraph = builder.Build(); in drawCode() local 236 paragraph->layout(w - 20); in drawCode() 238 paragraph->paint(canvas, 20, 20); in drawCode() 302 auto paragraph = builder.Build(); in drawText() local 303 paragraph->layout(w - margin * 2); in drawText() 304 paragraph->paint(canvas, margin, margin); in drawText() [all …]
|
/third_party/icu/icu4c/source/layoutex/ |
D | playout.cpp | 46 pl_close(pl_paragraph *paragraph) in pl_close() argument 48 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_close() 61 pl_getParagraphLevel(pl_paragraph *paragraph) in pl_getParagraphLevel() argument 63 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getParagraphLevel() 73 pl_getTextDirection(pl_paragraph *paragraph) in pl_getTextDirection() argument 75 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getTextDirection() 85 pl_getAscent(const pl_paragraph *paragraph) in pl_getAscent() argument 87 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getAscent() 97 pl_getDescent(const pl_paragraph *paragraph) in pl_getDescent() argument 99 ParagraphLayout *pl = (ParagraphLayout *) paragraph; in pl_getDescent() [all …]
|
/third_party/flutter/engine/flutter/third_party/txt/benchmarks/ |
D | paragraph_benchmarks.cc | 53 auto paragraph = BuildParagraph(builder); in BM_ParagraphShortLayout() local 55 paragraph->SetDirty(); in BM_ParagraphShortLayout() 56 paragraph->Layout(300); in BM_ParagraphShortLayout() 95 auto paragraph = BuildParagraph(builder); in BM_ParagraphLongLayout() local 97 paragraph->SetDirty(); in BM_ParagraphLongLayout() 98 paragraph->Layout(300); in BM_ParagraphLongLayout() 138 auto paragraph = BuildParagraph(builder); in BM_ParagraphJustifyLayout() local 140 paragraph->SetDirty(); in BM_ParagraphJustifyLayout() 141 paragraph->Layout(300); in BM_ParagraphJustifyLayout() 162 auto paragraph = BuildParagraph(builder); in BM_ParagraphManyStylesLayout() local [all …]
|
/third_party/icu/icu4c/source/samples/layout/ |
D | clayout.c | 37 pf_flow *paragraph; member 61 if (context->paragraph != NULL) { in InitParagraph() 65 pf_breakLines(context->paragraph, context->width, context->height); in InitParagraph() 71 si.nMax = pf_getLineCount(context->paragraph) - 1; in InitParagraph() 72 si.nPage = context->height / pf_getLineHeight(context->paragraph); in InitParagraph() 156 context->paragraph = pf_factory("Sample.txt", font, guiSupport); in WndProc() 227 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc() 228 … ScrollWindow(hwnd, 0, pf_getLineHeight(context->paragraph) * (vertPos - si.nPos), NULL, NULL); in WndProc() 252 if (context->paragraph != NULL) { in WndProc() 258 … lastLine = min (si.nPos + (le_int32) si.nPage, pf_getLineCount(context->paragraph) - 1); in WndProc() [all …]
|
D | layout.cpp | 38 Paragraph *paragraph; member 60 if (context->paragraph != NULL) { in InitParagraph() 64 context->paragraph->breakLines(context->width, context->height); in InitParagraph() 70 si.nMax = context->paragraph->getLineCount() - 1; in InitParagraph() 71 si.nPage = context->height / context->paragraph->getLineHeight(); in InitParagraph() 154 context->paragraph = Paragraph::paragraphFactory("Sample.txt", font, guiSupport); in WndProc() 225 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc() 226 … ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL); in WndProc() 250 if (context->paragraph != NULL) { in WndProc() 256 lastLine = min (si.nPos + (le_int32) si.nPage, context->paragraph->getLineCount() - 1); in WndProc() [all …]
|
D | gnomelayout.cpp | 43 Paragraph *paragraph; member 106 if (context->paragraph != NULL) { in openOK() 107 delete context->paragraph; in openOK() 110 context->paragraph = newPara; in openOK() 114 context->paragraph->breakLines(context->width, context->height); in openOK() 211 if (context->paragraph != NULL) { in eventConfigure() 216 context->paragraph->breakLines(context->width, context->height); in eventConfigure() 225 if (context->paragraph != NULL) { in eventExpose() 226 gint maxLines = context->paragraph->getLineCount() - 1; in eventExpose() 227 gint firstLine = 0, lastLine = context->height / context->paragraph->getLineHeight(); in eventExpose() [all …]
|
/third_party/skia/third_party/externals/icu/source/samples/layout/ |
D | clayout.c | 37 pf_flow *paragraph; member 61 if (context->paragraph != NULL) { in InitParagraph() 65 pf_breakLines(context->paragraph, context->width, context->height); in InitParagraph() 71 si.nMax = pf_getLineCount(context->paragraph) - 1; in InitParagraph() 72 si.nPage = context->height / pf_getLineHeight(context->paragraph); in InitParagraph() 156 context->paragraph = pf_factory("Sample.txt", font, guiSupport); in WndProc() 227 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc() 228 … ScrollWindow(hwnd, 0, pf_getLineHeight(context->paragraph) * (vertPos - si.nPos), NULL, NULL); in WndProc() 252 if (context->paragraph != NULL) { in WndProc() 258 … lastLine = min (si.nPos + (le_int32) si.nPage, pf_getLineCount(context->paragraph) - 1); in WndProc() [all …]
|
D | layout.cpp | 38 Paragraph *paragraph; member 60 if (context->paragraph != NULL) { in InitParagraph() 64 context->paragraph->breakLines(context->width, context->height); in InitParagraph() 70 si.nMax = context->paragraph->getLineCount() - 1; in InitParagraph() 71 si.nPage = context->height / context->paragraph->getLineHeight(); in InitParagraph() 154 context->paragraph = Paragraph::paragraphFactory("Sample.txt", font, guiSupport); in WndProc() 225 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc() 226 … ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL); in WndProc() 250 if (context->paragraph != NULL) { in WndProc() 256 lastLine = min (si.nPos + (le_int32) si.nPage, context->paragraph->getLineCount() - 1); in WndProc() [all …]
|
D | gnomelayout.cpp | 43 Paragraph *paragraph; member 106 if (context->paragraph != NULL) { in openOK() 107 delete context->paragraph; in openOK() 110 context->paragraph = newPara; in openOK() 114 context->paragraph->breakLines(context->width, context->height); in openOK() 211 if (context->paragraph != NULL) { in eventConfigure() 216 context->paragraph->breakLines(context->width, context->height); in eventConfigure() 225 if (context->paragraph != NULL) { in eventExpose() 226 gint maxLines = context->paragraph->getLineCount() - 1; in eventExpose() 227 gint firstLine = 0, lastLine = context->height / context->paragraph->getLineHeight(); in eventExpose() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/samples/layout/ |
D | clayout.c | 37 pf_flow *paragraph; member 61 if (context->paragraph != NULL) { in InitParagraph() 65 pf_breakLines(context->paragraph, context->width, context->height); in InitParagraph() 71 si.nMax = pf_getLineCount(context->paragraph) - 1; in InitParagraph() 72 si.nPage = context->height / pf_getLineHeight(context->paragraph); in InitParagraph() 156 context->paragraph = pf_factory("Sample.txt", font, guiSupport); in WndProc() 227 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc() 228 … ScrollWindow(hwnd, 0, pf_getLineHeight(context->paragraph) * (vertPos - si.nPos), NULL, NULL); in WndProc() 252 if (context->paragraph != NULL) { in WndProc() 258 … lastLine = min (si.nPos + (le_int32) si.nPage, pf_getLineCount(context->paragraph) - 1); in WndProc() [all …]
|
D | layout.cpp | 38 Paragraph *paragraph; member 60 if (context->paragraph != NULL) { in InitParagraph() 64 context->paragraph->breakLines(context->width, context->height); in InitParagraph() 70 si.nMax = context->paragraph->getLineCount() - 1; in InitParagraph() 71 si.nPage = context->height / context->paragraph->getLineHeight(); in InitParagraph() 154 context->paragraph = Paragraph::paragraphFactory("Sample.txt", font, guiSupport); in WndProc() 225 if (context->paragraph != NULL && si.nPos != vertPos) { in WndProc() 226 … ScrollWindow(hwnd, 0, context->paragraph->getLineHeight() * (vertPos - si.nPos), NULL, NULL); in WndProc() 250 if (context->paragraph != NULL) { in WndProc() 256 lastLine = min (si.nPos + (le_int32) si.nPage, context->paragraph->getLineCount() - 1); in WndProc() [all …]
|
D | gnomelayout.cpp | 43 Paragraph *paragraph; member 106 if (context->paragraph != NULL) { in openOK() 107 delete context->paragraph; in openOK() 110 context->paragraph = newPara; in openOK() 114 context->paragraph->breakLines(context->width, context->height); in openOK() 211 if (context->paragraph != NULL) { in eventConfigure() 216 context->paragraph->breakLines(context->width, context->height); in eventConfigure() 225 if (context->paragraph != NULL) { in eventExpose() 226 gint maxLines = context->paragraph->getLineCount() - 1; in eventExpose() 227 gint firstLine = 0, lastLine = context->height / context->paragraph->getLineHeight(); in eventExpose() [all …]
|
/third_party/node/tools/ |
D | license2rtf.js | 62 this.paragraph = { property 76 if (this.paragraph.lines.length || this.paragraph.li) { 77 this.emit('data', this.paragraph); 141 this.paragraph.li = lineLi; 152 if (this.paragraph.level === undefined) 153 this.paragraph.level = level; 159 this.paragraph.lines.push(line); 175 write(paragraph) { argument 176 const lines = paragraph.lines; 209 this.emit('data', paragraph);
|
/third_party/flutter/engine/flutter/lib/web_ui/test/ |
D | canvas_test.dart | 15 ui.Paragraph paragraph; 32 testCanvas('draws laid out paragraph', (EngineCanvas canvas) { 38 paragraph = builder.build(); 39 paragraph.layout(ui.ParagraphConstraints(width: 100)); 40 recordingCanvas.drawParagraph(paragraph, const ui.Offset(10, 10)); 51 expect(call.arguments['paragraph'], paragraph); 62 final ui.Paragraph paragraph = builder.build(); 63 recordingCanvas.drawParagraph(paragraph, const ui.Offset(10, 10));
|
/third_party/icu/icu4c/source/layoutex/layout/ |
D | playout.h | 119 pl_close(pl_paragraph *paragraph); 150 pl_getParagraphLevel(pl_paragraph *paragraph); 164 pl_getTextDirection(pl_paragraph *paragraph); 177 pl_getAscent(const pl_paragraph *paragraph); 190 pl_getDescent(const pl_paragraph *paragraph); 203 pl_getLeading(const pl_paragraph *paragraph); 213 pl_reflow(pl_paragraph *paragraph); 234 pl_nextLine(pl_paragraph *paragraph, float width);
|