Table of Contents

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

flags MouseState.MouseFlags

the kind of mouse event

button MouseState.MouseButton

the button the event refers to

x int

the x coordinate of the cursor

y int

the y coordinate of the cursor

wheelDiff int

the movement of the mouse wheel

Fields

button

The button the event refers to.

public MouseState.MouseButton button

Field Value

MouseState.MouseButton

flags

The kind of mouse event.

public MouseState.MouseFlags flags

Field Value

MouseState.MouseFlags

wheelDiff

The movement of the mouse wheel (the delta of the wheel event), 0 for other events.

public int wheelDiff

Field Value

int

x

The position of the cursor, in pixels relative to the entry.

public int x

Field Value

int

y

The position of the cursor, in pixels relative to the entry.

public int y

Field Value

int