Home
last modified time | relevance | path

Searched refs:hitTest (Results 1 – 25 of 63) sorted by relevance

123

/third_party/flutter/flutter/packages/flutter/test/painting/
Dbox_decoration_test.dart29 …expect(decoration.hitTest(size, const Offset(10.0, 10.0), textDirection: TextDirection.rtl), isTru…
30 …expect(decoration.hitTest(size, const Offset(990.0, 10.0), textDirection: TextDirection.rtl), isFa…
42 …expect(decoration.hitTest(size, const Offset(10.0, 10.0), textDirection: TextDirection.ltr), isFal…
43 …expect(decoration.hitTest(size, const Offset(990.0, 10.0), textDirection: TextDirection.ltr), isTr…
Dshape_decoration_test.dart54 expect(a.hitTest(size, const Offset(20.0, 50.0)), isFalse);
55 expect(Decoration.lerp(a, b, 0.1).hitTest(size, const Offset(20.0, 50.0)), isFalse);
56 expect(Decoration.lerp(a, b, 0.5).hitTest(size, const Offset(20.0, 50.0)), isFalse);
57 expect(Decoration.lerp(a, b, 0.9).hitTest(size, const Offset(20.0, 50.0)), isTrue);
58 expect(b.hitTest(size, const Offset(20.0, 50.0)), isTrue);
/third_party/flutter/skia/samplecode/
DSampleXfer.cpp60 bool hitTest(SkScalar x, SkScalar y) { in hitTest() function
72 bool hitTest(SkScalar x, SkScalar y) { in hitTest() function in ModeDrawable
166 if (fModeButtons[i].hitTest(x, y)) { in onFindClickHandler()
174 if (fDrs[i]->hitTest(x, y)) { in onFindClickHandler()
DSampleHT.cpp80 bool hitTest(SkScalar x, SkScalar y) { in hitTest() function in HTDrawable
162 if (fArray[i].fDrawable->hitTest(x, y)) { in onFindClickHandler()
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dbox_test.dart702 hitTest: (BoxHitTestResult result, Offset position) {
715 hitTest: (BoxHitTestResult result, Offset position) {
729 hitTest: (BoxHitTestResult result, Offset position) {
742 hitTest: (BoxHitTestResult result, Offset position) {
755 hitTest: (BoxHitTestResult result, Offset position) {
768 hitTest: (BoxHitTestResult result, Offset position) {
786 hitTest: (BoxHitTestResult result, Offset position) {
799 hitTest: (BoxHitTestResult result, Offset position) {
813 hitTest: (BoxHitTestResult result, Offset position) {
826 hitTest: (BoxHitTestResult result, Offset position) {
[all …]
Dslivers_test.dart208 root.hitTest(result, position: const Offset(130.0, 150.0));
262 root.hitTest(result, position: const Offset(150.0, 350.0));
351 root.hitTest(result, position: const Offset(150.0, 450.0));
405 root.hitTest(result, position: const Offset(550.0, 150.0));
479 root.hitTest(result, position: const Offset(130.0, 150.0));
533 root.hitTest(result, position: const Offset(150.0, 350.0));
587 root.hitTest(result, position: const Offset(150.0, 450.0));
641 root.hitTest(result, position: const Offset(550.0, 150.0));
872hitTest: (SliverHitTestResult result, { double mainAxisPosition, double crossAxisPosition }) {
891hitTest: (SliverHitTestResult result, { double mainAxisPosition, double crossAxisPosition }) {
[all …]
/third_party/skia/samplecode/
DSampleXfer.cpp60 bool hitTest(SkScalar x, SkScalar y) { in hitTest() function
72 bool hitTest(SkScalar x, SkScalar y) { in hitTest() function in ModeDrawable
166 if (fModeButtons[i].hitTest(x, y)) { in onFindClickHandler()
174 if (fDrs[i]->hitTest(x, y)) { in onFindClickHandler()
/third_party/flutter/skia/third_party/externals/sdl/test/
Dtesthittesting.c18 hitTest(SDL_Window *window, const SDL_Point *pt, void *data) in hitTest() function
71 if (SDL_SetWindowHitTest(window, hitTest, NULL) == -1) { in main()
/third_party/flutter/flutter/packages/flutter/lib/src/rendering/
Dbox.dart620 /// * [RenderBox.hitTest], which documents more details around hit testing
626 /// An instance of this class is provided to [RenderBox.hitTest] to record the
655 /// provided `hitTest` callback, which is invoked with the transformed
666 /// `position` is provided to the `hitTest` callback as-is. If `transform`
667 /// cannot be inverted, the `hitTest` callback is not invoked and false is
668 /// returned. Otherwise, the return value of the `hitTest` callback is
672 /// `hitTest` callback as-is. Using null as the position can be useful if
695 /// hitTest: (BoxHitTestResult result, Offset position) {
713 @required BoxHitTest hitTest,
715 assert(hitTest != null);
[all …]
Drotated_box.dart100 hitTest: (BoxHitTestResult result, Offset position) {
101 return child.hitTest(result, position: position);
Dsliver.dart779 /// * [RenderSliver.hitTest], which documents more details around hit testing
785 /// An instance of this class is provided to [RenderSliver.hitTest] to record
815 /// provided `hitTest` callback, which is invoked with the transformed
830 /// The function returns the return value of `hitTest`.
837 @required SliverHitTest hitTest,
843 assert(hitTest != null);
847 final bool isHit = hitTest(
1080 /// [hitTest] method directly.
1246 /// having been called in [hitTest] but cannot rely upon [paint] having been
1248 /// object, which calls [hitTest] on its children when its opacity is zero
[all …]
Dbinding.dart362 void hitTest(HitTestResult result, Offset position) {
364 renderView.hitTest(result, position: position);
365 super.hitTest(result, position);
Dproxy_box.dart114 return child?.hitTest(result, position: position) ?? false;
158 bool hitTest(BoxHitTestResult result, { Offset position }) {
1299 bool hitTest(BoxHitTestResult result, { Offset position }) {
1306 return super.hitTest(result, position: position);
1377 bool hitTest(BoxHitTestResult result, { Offset position }) {
1384 return super.hitTest(result, position: position);
1444 bool hitTest(BoxHitTestResult result, { Offset position }) {
1454 return super.hitTest(result, position: position);
1511 bool hitTest(BoxHitTestResult result, { Offset position }) {
1518 return super.hitTest(result, position: position);
[all …]
Dview.dart170 bool hitTest(HitTestResult result, { Offset position }) {
172 child.hitTest(BoxHitTestResult.wrap(result), position: position);
Dsliver_padding.dart272 hitTest: child.hitTest,
Dcustom_paint.dart33 /// implement the [hitTest] and [shouldRebuildSemantics] methods, and the
57 /// The [hitTest] method is called when the user interacts with the underlying
268 bool hitTest(Offset position) => null;
506 if (_foregroundPainter != null && (_foregroundPainter.hitTest(position) ?? false))
513 return _painter != null && (_painter.hitTest(position) ?? true);
/third_party/flutter/flutter/packages/flutter/lib/src/gestures/
Dbinding.dart27 /// [PointerEventConverter]), a [hitTest] is performed to determine which
29 /// implement [hitTest] to defer to [HitTestable] objects. For example, the
128 hitTest(hitTestResult, event.position);
162 void hitTest(HitTestResult result, Offset position) {
/third_party/flutter/flutter/dev/manual_tests/lib/
Dmaterial_arc.dart96 bool hitTest(Offset position) {
208 // fail _PointDemoPainter.hitTest() will still be recognized because
264 bool hitTest(Offset position) {
381 // fail _RectDemoPainter.hitTest() will still be recognized because
/third_party/flutter/flutter/packages/flutter_driver/lib/src/extension/
Dextension.dart474 final HitTestResult hitTest = HitTestResult();
476 _prober.binding.hitTest(hitTest, startLocation);
477 _prober.binding.dispatchEvent(pointer.down(startLocation), hitTest);
481 _prober.binding.dispatchEvent(pointer.move(currentLocation), hitTest);
484 _prober.binding.dispatchEvent(pointer.up(), hitTest);
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dbutton.dart471 bool hitTest(BoxHitTestResult result, { Offset position }) {
472 if (super.hitTest(result, position: position)) {
479 hitTest: (BoxHitTestResult result, Offset position) {
481 return child.hitTest(result, position: center);
/third_party/flutter/flutter/examples/layers/rendering/src/
Dsector_layout.dart146 bool hitTest(SectorHitTestResult result, { double radius, double theta }) {
209 if (child.hitTest(result, radius: radius, theta: theta))
547 bool hitTest(BoxHitTestResult result, { Offset position }) {
564 child.hitTest(SectorHitTestResult.wrap(result), radius: radius, theta: theta);
/third_party/flutter/flutter/packages/flutter/lib/src/widgets/
Dsliver_layout_builder.dart78 …&& child.hitTest(result, mainAxisPosition: mainAxisPosition, crossAxisPosition: crossAxisPosition);
Dplaceholder.dart40 bool hitTest(Offset position) => false;
Dgrid_paper.dart47 bool hitTest(Offset position) => false;
/third_party/flutter/skia/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/app/
DHelloCanvasAR.java413 for (HitResult hit : frame.hitTest(tap)) { in handleSingleTaps()
445 for (HitResult hit : frame.hitTest(holdTap.event)) { in handleHoldTaps()

123