Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

124 righe
4.6 KiB

  1. // This code is distributed under MIT license.
  2. // Copyright (c) 2015 George Mamaladze
  3. // See license.txt or https://mit-license.org/
  4. using System;
  5. using System.Windows.Forms;
  6. namespace Gma.System.MouseKeyHook
  7. {
  8. /// <summary>
  9. /// Provides all mouse events.
  10. /// </summary>
  11. public interface IMouseEvents
  12. {
  13. /// <summary>
  14. /// Occurs when the mouse pointer is moved.
  15. /// </summary>
  16. event MouseEventHandler MouseMove;
  17. /// <summary>
  18. /// Occurs when the mouse pointer is moved.
  19. /// </summary>
  20. /// <remarks>
  21. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  22. /// suppress further processing of mouse movement in other applications.
  23. /// </remarks>
  24. event EventHandler<MouseEventExtArgs> MouseMoveExt;
  25. /// <summary>
  26. /// Occurs when a click was performed by the mouse.
  27. /// </summary>
  28. event MouseEventHandler MouseClick;
  29. /// <summary>
  30. /// Occurs when the mouse a mouse button is pressed.
  31. /// </summary>
  32. event MouseEventHandler MouseDown;
  33. /// <summary>
  34. /// Occurs when the mouse a mouse button is pressed.
  35. /// </summary>
  36. /// <remarks>
  37. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  38. /// suppress further processing of mouse click in other applications.
  39. /// </remarks>
  40. event EventHandler<MouseEventExtArgs> MouseDownExt;
  41. /// <summary>
  42. /// Occurs when a mouse button is released.
  43. /// </summary>
  44. event MouseEventHandler MouseUp;
  45. /// <summary>
  46. /// Occurs when a mouse button is released.
  47. /// </summary>
  48. /// <remarks>
  49. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  50. /// suppress further processing of mouse click in other applications.
  51. /// </remarks>
  52. event EventHandler<MouseEventExtArgs> MouseUpExt;
  53. /// <summary>
  54. /// Occurs when the mouse wheel moves.
  55. /// </summary>
  56. event MouseEventHandler MouseWheel;
  57. /// <summary>
  58. /// Occurs when the mouse wheel moves horizontally.
  59. /// </summary>
  60. event MouseEventHandler MouseHWheel;
  61. /// <summary>
  62. /// Occurs when the mouse wheel moves.
  63. /// </summary>
  64. /// <remarks>
  65. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  66. /// suppress further processing of mouse wheel moves in other applications.
  67. /// </remarks>
  68. event EventHandler<MouseEventExtArgs> MouseWheelExt;
  69. /// <summary>
  70. /// Occurs when the mouse wheel moves.
  71. /// </summary>
  72. /// <remarks>
  73. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  74. /// suppress further processing of horizontal mouse wheel moves in other applications.
  75. /// </remarks>
  76. event EventHandler<MouseEventExtArgs> MouseHWheelExt;
  77. /// <summary>
  78. /// Occurs when a mouse button is double-clicked.
  79. /// </summary>
  80. event MouseEventHandler MouseDoubleClick;
  81. /// <summary>
  82. /// Occurs when a drag event has started (left button held down whilst moving more than the system drag threshold).
  83. /// </summary>
  84. event MouseEventHandler MouseDragStarted;
  85. /// <summary>
  86. /// Occurs when a drag event has started (left button held down whilst moving more than the system drag threshold).
  87. /// </summary>
  88. /// <remarks>
  89. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  90. /// suppress further processing of mouse movement in other applications.
  91. /// </remarks>
  92. event EventHandler<MouseEventExtArgs> MouseDragStartedExt;
  93. /// <summary>
  94. /// Occurs when a drag event has completed.
  95. /// </summary>
  96. event MouseEventHandler MouseDragFinished;
  97. /// <summary>
  98. /// Occurs when a drag event has completed.
  99. /// </summary>
  100. /// <remarks>
  101. /// This event provides extended arguments of type <see cref="MouseEventArgs" /> enabling you to
  102. /// suppress further processing of mouse movement in other applications.
  103. /// </remarks>
  104. event EventHandler<MouseEventExtArgs> MouseDragFinishedExt;
  105. }
  106. }