Home
last modified time | relevance | path

Searched refs:PositionWithAffinity (Results 1 – 9 of 9) sorted by relevance

/third_party/skia/modules/skparagraph/include/
DDartTypes.h72 struct PositionWithAffinity { struct
76 PositionWithAffinity() : position(0), affinity(kDownstream) {} in PositionWithAffinity() argument
77 PositionWithAffinity(int32_t p, Affinity a) : position(p), affinity(a) {} in PositionWithAffinity() function
DParagraph.h66 virtual PositionWithAffinity getGlyphPositionAtCoordinate(SkScalar dx, SkScalar dy) = 0;
/third_party/skia/modules/canvaskit/
Dparagraph_bindings.cpp568 value_object<para::PositionWithAffinity>("PositionWithAffinity") in EMSCRIPTEN_BINDINGS()
569 .field("pos", &para::PositionWithAffinity::position) in EMSCRIPTEN_BINDINGS()
570 .field("affinity", &para::PositionWithAffinity::affinity); in EMSCRIPTEN_BINDINGS()
/third_party/skia/modules/skparagraph/src/
DTextLine.h126 PositionWithAffinity getGlyphPositionAtCoordinate(SkScalar dx);
DParagraphImpl.h122 PositionWithAffinity getGlyphPositionAtCoordinate(SkScalar dx, SkScalar dy) override;
DTextLine.cpp1507 PositionWithAffinity TextLine::getGlyphPositionAtCoordinate(SkScalar dx) { in getGlyphPositionAtCoordinate()
1516 PositionWithAffinity result(0, Affinity::kDownstream); in getGlyphPositionAtCoordinate()
DParagraphImpl.cpp1048 PositionWithAffinity ParagraphImpl::getGlyphPositionAtCoordinate(SkScalar dx, SkScalar dy) { in getGlyphPositionAtCoordinate()
/third_party/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp6254 std::vector<std::pair<SkScalar, PositionWithAffinity>> checks = { in UNIX_ONLY_TEST()
6255 std::make_pair(550, PositionWithAffinity(0, Affinity::kDownstream)), in UNIX_ONLY_TEST()
6256 std::make_pair(500, PositionWithAffinity(0, Affinity::kDownstream)), in UNIX_ONLY_TEST()
6257 std::make_pair(494, PositionWithAffinity(1, Affinity::kUpstream)), in UNIX_ONLY_TEST()
6258 std::make_pair(488, PositionWithAffinity(1, Affinity::kDownstream)), in UNIX_ONLY_TEST()
6259 std::make_pair(485, PositionWithAffinity(2, Affinity::kUpstream)), in UNIX_ONLY_TEST()
6260 std::make_pair(480, PositionWithAffinity(2, Affinity::kDownstream)), in UNIX_ONLY_TEST()
6261 std::make_pair(475, PositionWithAffinity(3, Affinity::kUpstream)), in UNIX_ONLY_TEST()
6262 std::make_pair(471, PositionWithAffinity(3, Affinity::kDownstream)), in UNIX_ONLY_TEST()
6263 std::make_pair(467, PositionWithAffinity(4, Affinity::kUpstream)), in UNIX_ONLY_TEST()
[all …]
/third_party/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts837 getGlyphPositionAtCoordinate(dx: number, dy: number): PositionWithAffinity;
935 export interface PositionWithAffinity { interface