LCOV - code coverage report
Current view: top level - lib/src/gestures - detectors.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 46 0.0 %
Date: 2021-08-10 15:50:53 Functions: 0 0 -

          Line data    Source code
       1             : import '../game/game.dart';
       2             : import 'events.dart';
       3             : 
       4             : mixin MultiTouchTapDetector on Game {
       5           0 :   void onTap(int pointerId) {}
       6           0 :   void onTapCancel(int pointerId) {}
       7           0 :   void onTapDown(int pointerId, TapDownInfo info) {}
       8           0 :   void onTapUp(int pointerId, TapUpInfo info) {}
       9           0 :   void onLongTapDown(int pointerId, TapDownInfo info) {}
      10             : }
      11             : 
      12             : mixin MultiTouchDragDetector on Game {
      13           0 :   void onDragStart(int pointerId, DragStartInfo info) {}
      14           0 :   void onDragUpdate(int pointerId, DragUpdateInfo info) {}
      15           0 :   void onDragEnd(int pointerId, DragEndInfo info) {}
      16           0 :   void onDragCancel(int pointerId) {}
      17             : }
      18             : 
      19             : // Basic touch detectors
      20             : mixin TapDetector on Game {
      21           0 :   void onTap() {}
      22           0 :   void onTapCancel() {}
      23           0 :   void onTapDown(TapDownInfo info) {}
      24           0 :   void onTapUp(TapUpInfo info) {}
      25             : }
      26             : 
      27             : mixin SecondaryTapDetector on Game {
      28           0 :   void onSecondaryTapDown(TapDownInfo info) {}
      29           0 :   void onSecondaryTapUp(TapUpInfo info) {}
      30           0 :   void onSecondaryTapCancel() {}
      31             : }
      32             : 
      33             : mixin DoubleTapDetector on Game {
      34           0 :   void onDoubleTap() {}
      35             : }
      36             : 
      37             : mixin LongPressDetector on Game {
      38           0 :   void onLongPress() {}
      39           0 :   void onLongPressStart(LongPressStartInfo info) {}
      40           0 :   void onLongPressMoveUpdate(LongPressMoveUpdateInfo info) {}
      41           0 :   void onLongPressUp() {}
      42           0 :   void onLongPressEnd(LongPressEndInfo info) {}
      43             : }
      44             : 
      45             : mixin VerticalDragDetector on Game {
      46           0 :   void onVerticalDragDown(DragDownInfo info) {}
      47           0 :   void onVerticalDragStart(DragStartInfo info) {}
      48           0 :   void onVerticalDragUpdate(DragUpdateInfo info) {}
      49           0 :   void onVerticalDragEnd(DragEndInfo info) {}
      50           0 :   void onVerticalDragCancel() {}
      51             : }
      52             : 
      53             : mixin HorizontalDragDetector on Game {
      54           0 :   void onHorizontalDragDown(DragDownInfo info) {}
      55           0 :   void onHorizontalDragStart(DragStartInfo info) {}
      56           0 :   void onHorizontalDragUpdate(DragUpdateInfo info) {}
      57           0 :   void onHorizontalDragEnd(DragEndInfo info) {}
      58           0 :   void onHorizontalDragCancel() {}
      59             : }
      60             : 
      61             : mixin ForcePressDetector on Game {
      62           0 :   void onForcePressStart(ForcePressInfo info) {}
      63           0 :   void onForcePressPeak(ForcePressInfo info) {}
      64           0 :   void onForcePressUpdate(ForcePressInfo info) {}
      65           0 :   void onForcePressEnd(ForcePressInfo info) {}
      66             : }
      67             : 
      68             : mixin PanDetector on Game {
      69           0 :   void onPanDown(DragDownInfo info) {}
      70           0 :   void onPanStart(DragStartInfo info) {}
      71           0 :   void onPanUpdate(DragUpdateInfo info) {}
      72           0 :   void onPanEnd(DragEndInfo info) {}
      73           0 :   void onPanCancel() {}
      74             : }
      75             : 
      76             : mixin ScaleDetector on Game {
      77           0 :   void onScaleStart(ScaleStartInfo info) {}
      78           0 :   void onScaleUpdate(ScaleUpdateInfo info) {}
      79           0 :   void onScaleEnd(ScaleEndInfo info) {}
      80             : }
      81             : 
      82             : mixin MouseMovementDetector on Game {
      83           0 :   void onMouseMove(PointerHoverInfo info) {}
      84             : }
      85             : 
      86             : mixin ScrollDetector on Game {
      87           0 :   void onScroll(PointerScrollInfo info) {}
      88             : }

Generated by: LCOV version 1.15