Home
last modified time | relevance | path

Searched refs:firstPosition (Results 1 – 7 of 7) sorted by relevance

/third_party/skia/experimental/sktext/tests/
DSelectableText.cpp162 auto firstPosition = selectableText->firstPosition(PositionType::kGraphemeCluster); in UNIX_ONLY_TEST() local
163 REPORTER_ASSERT(reporter, firstPosition.fLineIndex == 0); in UNIX_ONLY_TEST()
164 REPORTER_ASSERT(reporter, firstPosition.fTextRange == TextRange(0, 0)); in UNIX_ONLY_TEST()
165 REPORTER_ASSERT(reporter, firstPosition.fGlyphRange == GlyphRange(0, 0)); in UNIX_ONLY_TEST()
166 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(firstPosition.fBoundaries.fLeft, 0.0f)); in UNIX_ONLY_TEST()
167 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(firstPosition.fBoundaries.fTop, 0.0f)); in UNIX_ONLY_TEST()
168 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(firstPosition.fBoundaries.width(), 0.0f)); in UNIX_ONLY_TEST()
169 …REPORTER_ASSERT(reporter, SkScalarNearlyEqual(firstPosition.fBoundaries.height(), firstLine.bounds… in UNIX_ONLY_TEST()
201 auto firstPosition = selectableText->firstPosition(PositionType::kGraphemeCluster); in UNIX_ONLY_TEST() local
204 auto position = firstPosition; in UNIX_ONLY_TEST()
[all …]
/third_party/flutter/flutter/packages/flutter/test/gestures/
Dpointer_router_test.dart169 const Offset firstPosition = Offset(16, 36);
170 router.route(pointer1.down(firstPosition));
173 expect(events.single.position, firstPosition);
179 expect(globalEvents.single.position, firstPosition);
192 expect(events.single.delta, newPosition - firstPosition);
198 expect(globalEvents.single.delta, newPosition - firstPosition);
/third_party/skia/experimental/sktext/include/
DInterface.h177 Position firstPosition(PositionType positionType) const;
DText.h324 Position firstPosition(PositionType positionType) const;
/third_party/skia/experimental/sktext/editor/
DTexts.h159 …Position firstElement(PositionType positionType) const { return fSelectableText->firstPosition(pos… in firstElement()
/third_party/skia/experimental/sktext/src/
DText.cpp803 return this->firstPosition(current.fPositionType); in upPosition()
833 Position SelectableText::firstPosition(PositionType positionType) const { in firstPosition() function in skia::text::SelectableText
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Deditable.dart1510 …final TextPosition firstPosition = _textPainter.getPositionForOffset(globalToLocal(from - _paintOf…
1511 final TextSelection firstWord = _selectWordAtOffset(firstPosition);