Class used in Canvas UI events.
Constructors
GH_CanvasMouseEvent
#Constructor.
Parameters:
| vp (GH_Viewport) | The current canvas viewport state. |
| e_args (MouseEventArgs) | Original mouse event args. |
GH_CanvasMouseEvent
#public GH_CanvasMouseEvent(Point pt_control, PointF pt_canvas, MouseButtons mButton, int iClicks = 0, int iDelta = 0)
Constructor.
Parameters:
| pt_control (Point) | Cursor location in control pixel coordinates. |
| pt_canvas (PointF) | Cursor location in canvas unit coordinates. |
| mButton (MouseButtons) | Currently pressed mouse buttons. |
| iClicks (int = 0) | Number of times the buttons were pressed and released. |
| iDelta (int = 0) | A signed count of the number of detents the mouse wheel has rotated. |
Properties
CanvasLocation
#public PointF CanvasLocation { get; }
Gets the location of the cursor in canvas unit coordinates.
ControlLocation
#public Point ControlLocation { get; }
Gets the location of the cursor in control pixel coordinates.
Delta
#Gets a signed count of the number of detents the mouse wheel has rotated. A detent is one notch of the mouse wheel.