Home
last modified time | relevance | path

Searched refs:getGlyphPositionAtCoordinate (Results 1 - 9 of 9) sorted by relevance

/third_party/skia/modules/skparagraph/tests/
H A DSkParagraphTest.cpp1692 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(0, 0).position == 0); in UNIX_ONLY_TEST()
1693 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(1, 1).position == 0); in UNIX_ONLY_TEST()
1694 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(1, 35).position == 68); in UNIX_ONLY_TEST()
1695 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(1, 70).position == 134); in UNIX_ONLY_TEST()
1696 REPORTER_ASSERT(reporter, impl->getGlyphPositionAtCoordinate(2000, 35).position == 134); in UNIX_ONLY_TEST()
2600 // Tests for getGlyphPositionAtCoordinate() in UNIX_ONLY_TEST()
2606 paragraph->getGlyphPositionAtCoordinate(-10000, -10000).position == 0); in UNIX_ONLY_TEST()
2607 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(-1, -1).position == 0); in UNIX_ONLY_TEST()
2608 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate(0, 0).position == 0); in UNIX_ONLY_TEST()
2609 REPORTER_ASSERT(reporter, paragraph->getGlyphPositionAtCoordinate( in UNIX_ONLY_TEST()
[all...]
/third_party/skia/modules/skparagraph/include/
H A DParagraph.h79 virtual PositionWithAffinity getGlyphPositionAtCoordinate(SkScalar dx, SkScalar dy) = 0;
/third_party/skia/modules/canvaskit/
H A Dexterns.js132 getGlyphPositionAtCoordinate: function() {},
H A Dparagraph_bindings.cpp418 .function("getGlyphPositionAtCoordinate", &para::Paragraph::getGlyphPositionAtCoordinate) in EMSCRIPTEN_BINDINGS()
/third_party/skia/modules/skparagraph/src/
H A DTextLine.h175 PositionWithAffinity getGlyphPositionAtCoordinate(SkScalar dx);
H A DParagraphImpl.h128 PositionWithAffinity getGlyphPositionAtCoordinate(SkScalar dx, SkScalar dy) override;
411 // These two arrays are used in measuring methods (getRectsForRange, getGlyphPositionAtCoordinate)
H A DParagraphImpl.cpp1601 PositionWithAffinity ParagraphImpl::getGlyphPositionAtCoordinate(SkScalar dx, SkScalar dy) { in GetLineFontMetrics() function in skia::textlayout::ParagraphImpl
1620 auto result = line.getGlyphPositionAtCoordinate(dx); in GetLineFontMetrics()
1621 //SkDebugf("getGlyphPositionAtCoordinate(%f, %f): %d %s\n", dx, dy, result.position, in GetLineFontMetrics()
2081 auto res = this->getGlyphPositionAtCoordinate(dx, dy); in GetLineFontMetrics()
H A DTextLine.cpp2032 PositionWithAffinity TextLine::getGlyphPositionAtCoordinate(SkScalar dx) { function in skia::textlayout::TextLine
/third_party/skia/modules/skparagraph/samples/
H A DSampleParagraph.cpp2187 auto f1Pos = paragraph->getGlyphPositionAtCoordinate(width/6, height/2);
2188 auto f2Pos = paragraph->getGlyphPositionAtCoordinate(width/2, height/2);
2189 auto iPos = paragraph->getGlyphPositionAtCoordinate(width*5/6, height/2);
2488 //auto res1 = paragraph->getGlyphPositionAtCoordinate(line.width() + line.spacesWidth() / 2, line.offset().fY + 10);
3414 auto res1 = paragraph->getGlyphPositionAtCoordinate(0,0);
3415 auto res2 = paragraph->getGlyphPositionAtCoordinate(0,height / 2);
3416 auto res3 = paragraph->getGlyphPositionAtCoordinate(0,height);
3524 auto result = paragraph->getGlyphPositionAtCoordinate(20, 2); // "hello " 60,2
3525 SkDebugf("getGlyphPositionAtCoordinate(20,2)=%d %s\n", result.position, result.affinity == Affinity::kDownstream ? "D" : "U");
3594 auto pos = paragraph->getGlyphPositionAtCoordinate(
[all...]

Completed in 30 milliseconds