public class MouseState : EventArgs
Current mouse state when used in UserInterfaceObject virtual functions

Properties

Button

#Since v9.0
public MouseButton Button { get; }
Which button or buttons are currently pressed

DeviceLocation

#Since v9.0
public PointF DeviceLocation { get; }
Where the mouse is, in device pixels of the surface this event came from.

DpiScale

#Since v9.0
public float DpiScale { get; }
Device pixels per logical pixel for the surface this event came from. 1.0 when that is not known.

FrustumLine

#Since v9.0
public Line FrustumLine { get; }
Line in frustum that the active mouse position covers

Location

#Since v9.0
public PointF Location { get; }
Where the mouse is, in logical pixels of the surface this event came from. This is the coordinate system on screen controls are laid out in, so it is the one to hit test against.

View

#Since v9.0
public RhinoView View { get; }
View that is being used mouse tests

Methods

IsMouseOver

#Since v9.0
public bool IsMouseOver(Curve curve, out double t)
Test if the mouse is over a curve
curve (Curve)curve to test
t (out double)parameter along curve is returned here if the mouse is over the curve
true if mouse is over a curve

IsMouseOver

#Since v9.0
public bool IsMouseOver(Line line)
Test if the mouse is currently over a 3d line
line (Line)the line to test
true if the mouse is over line

IsMouseOver

#Since v9.0
public bool IsMouseOver(Point3d point)
Test if the mouse is currently over a 3d location
point (Point3d)Location to test
true if the mouse is over point