Class used in Canvas UI events.
Constructors
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
CanvasLocation
#Gets the location of the cursor in canvas unit coordinates.
public PointF CanvasLocation { get; }
ControlLocation
#Gets the location of the cursor in control pixel coordinates.
public Point ControlLocation { 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.