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

Properties

Button

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

DeviceLocation

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

DpiScale

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

FrustumLine

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

Location

#Since v9.0
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.
public PointF Location { get; }

View

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

Methods

IsMouseOver

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

IsMouseOver

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

IsMouseOver

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