Table of Contents

Class MouseDevice

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

The MouseDevice class represents the mouse device to the members of a context.

public abstract class MouseDevice : InputDevice, IBaseObject, IDisposableObject, IDisposable
Inheritance
MouseDevice
Implements

Properties

LeftButton

The state of the left button.

MiddleButton

The state of the middle button.

RightButton

The state of the right button.

XButton1

The state of the first extended button.

XButton2

The state of the second extended button.

Methods

GetButtonState(MouseButton)

Gets the current state of the specified button from the device from either the underlying system or the StylusDevice

GetPosition(Control)

Calculates the position of the mouse relative to a particular element.

GetScreenPosition()

Gets the current position of the mouse in screen co-ords from either the underlying system or the StylusDevice