GH_CanvasMouseEvent

EventArgsReferences
Class used in Canvas UI events.

Constructors

GH_CanvasMouseEvent

#
Blank constructor.
public GH_CanvasMouseEvent()

GH_CanvasMouseEvent

#
Constructor.
public GH_CanvasMouseEvent(
vp,
The current canvas viewport state.
e_args
Original mouse event args.
)

GH_CanvasMouseEvent

#
Constructor.
public GH_CanvasMouseEvent(
Point
pt_control,
Cursor location in control pixel coordinates.
PointF
pt_canvas,
Cursor location in canvas unit coordinates.
mButton,
Currently pressed mouse buttons.
iClicks = 0,
Number of times the buttons were pressed and released.
iDelta = 0
A signed count of the number of detents the mouse wheel has rotated.
)

Properties

Button

#
Gets which mouse button was pressed.
public MouseButtons Button { get; }

CanvasLocation

#
Gets the location of the cursor in canvas unit coordinates.
public PointF CanvasLocation { get; }

CanvasX

#
Gets the x-coordinate of the cursor location in canvas unit coordinates.
public float CanvasX { get; }

CanvasY

#
Gets the y-coordinate of the cursor location in canvas unit coordinates.
public float CanvasY { get; }

Clicks

#
Gets the number of times the mouse button was pressed and released.
public int Clicks { get; }

ControlLocation

#
Gets the location of the cursor in control pixel coordinates.
public Point ControlLocation { get; }

ControlX

#
Gets the x-coordinate of the cursor location in control pixel coordinates.
public int ControlX { get; }

ControlY

#
Gets the y-coordinate of the cursor location in control pixel coordinates.
public int ControlY { get; }

Delta

#
Gets a signed count of the number of detents the mouse wheel has rotated. A detent is one notch of the mouse wheel.
public int Delta { get; }

WinFormsEventArgs

#
Downcast this data into a Windows.Forms.MouseEventArgs instance.
public MouseEventArgs WinFormsEventArgs { get; }