1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 | using System.Windows.Forms;
|
---|
5 | namespace Netron.Diagramming.Core
|
---|
6 | {
|
---|
7 | // ----------------------------------------------------------------------
|
---|
8 | /// <summary>
|
---|
9 | /// Describes the three fundamental methods of a mouse handler object.
|
---|
10 | /// </summary>
|
---|
11 | // ----------------------------------------------------------------------
|
---|
12 | public interface IMouseListener : IInteraction
|
---|
13 | {
|
---|
14 | // ------------------------------------------------------------------
|
---|
15 | /// <summary>
|
---|
16 | /// Handles the mouse-down event.
|
---|
17 | /// </summary>
|
---|
18 | /// <param name="e">The <see cref=
|
---|
19 | /// "T:System.Windows.Forms.MouseEventArgs"/> instance containing the
|
---|
20 | /// event data.</param>
|
---|
21 | // ------------------------------------------------------------------
|
---|
22 | bool MouseDown(MouseEventArgs e);
|
---|
23 |
|
---|
24 | // ------------------------------------------------------------------
|
---|
25 | /// <summary>
|
---|
26 | /// Handles the mouse-move event.
|
---|
27 | /// </summary>
|
---|
28 | /// <param name="e">The <see cref=
|
---|
29 | /// "T:System.Windows.Forms.MouseEventArgs"/> instance containing the
|
---|
30 | /// event data.</param>
|
---|
31 | // ------------------------------------------------------------------
|
---|
32 | void MouseMove(MouseEventArgs e);
|
---|
33 |
|
---|
34 | // ------------------------------------------------------------------
|
---|
35 | /// <summary>
|
---|
36 | /// Handles the mouse-up event.
|
---|
37 | /// </summary>
|
---|
38 | /// <param name="e">The <see cref=
|
---|
39 | /// "T:System.Windows.Forms.MouseEventArgs"/> instance containing the
|
---|
40 | /// event data.</param>
|
---|
41 | // ------------------------------------------------------------------
|
---|
42 | void MouseUp(MouseEventArgs e);
|
---|
43 | }
|
---|
44 | }
|
---|