ITouchAble.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Uni_Trend.MSO7000X.Touch
  7. {
  8. public interface ITouchAble
  9. {
  10. /// <summary>
  11. /// 参数1:触点的X坐标;
  12. /// 参数2:触点的Y坐标;
  13. /// </summary>
  14. event Action<int, int> TouchDown;
  15. /// <summary>
  16. /// 参数1:触点当前的X坐标;
  17. /// 参数2:触点当前的Y坐标;
  18. /// 参数3:触点此刻移动的X距离;
  19. /// 参数4:触点此刻移动的Y距离;
  20. /// </summary>
  21. public event Action<int, int, int, int> TouchMove;
  22. /// <summary>
  23. /// 参数1:触点的X坐标;
  24. /// 参数2:触点的Y坐标;
  25. /// </summary>
  26. event Action<int, int> TouchUp;
  27. /// <summary>
  28. /// 参数:旋转的角度;
  29. /// </summary>
  30. event Action<float> TouchRotation;
  31. /// <summary>
  32. /// 参数:缩放的倍率;
  33. /// </summary>
  34. event Action<float, ScaleDirection> TouchScale;
  35. }
  36. }