Click or drag to resize

MouseState Class

Current mouse state when used in UserInterfaceObject virtual functions
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Rhino.UIMouseState

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public class MouseState : EventArgs

The MouseState type exposes the following members.

Properties
  NameDescription
Public propertyButton
Which button or buttons are currently pressed
Public propertyDeviceLocation
Where the mouse is, in device pixels of the surface this event came from.
Public propertyDpiScale
Device pixels per logical pixel for the surface this event came from. 1.0 when that is not known.
Public propertyFrustumLine
Line in frustum that the active mouse position covers
Public propertyLocation
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 propertyView
View that is being used mouse tests
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsMouseOver(Line)
Test if the mouse is currently over a 3d line
Public methodIsMouseOver(Point3d)
Test if the mouse is currently over a 3d location
Public methodIsMouseOver(Curve, Double)
Test if the mouse is over a curve
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also