Struct MouseState
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
The state of the mouse as a property page would pass it to an entry that draws and handles itself: the kind of event, the button, the cursor position and the wheel movement. Not used by the current property page.
public struct MouseState
- Inherited Members
Constructors
MouseState(MouseFlags, MouseButton, int, int, int)
Creates the mouse state from its parts.
public MouseState(MouseState.MouseFlags flags, MouseState.MouseButton button, int x, int y, int wheelDiff)
Parameters
flagsMouseState.MouseFlagsthe kind of mouse event
buttonMouseState.MouseButtonthe button the event refers to
xintthe x coordinate of the cursor
yintthe y coordinate of the cursor
wheelDiffintthe movement of the mouse wheel
Fields
button
The button the event refers to.
public MouseState.MouseButton button
Field Value
flags
The kind of mouse event.
public MouseState.MouseFlags flags
Field Value
wheelDiff
The movement of the mouse wheel (the delta of the wheel event), 0 for other events.
public int wheelDiff
Field Value
x
The position of the cursor, in pixels relative to the entry.
public int x
Field Value
y
The position of the cursor, in pixels relative to the entry.
public int y