Show / Hide Table of Contents

Class MouseWheelEventArgs

Defines the event data for WheelChanged events.

Inheritance
Object
EventArgs
MouseEventArgs
MouseWheelEventArgs
Inherited Members
MouseEventArgs.X
MouseEventArgs.Y
MouseEventArgs.Position
MouseEventArgs.Mouse
EventArgs.Empty
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: OpenTK.Input
Assembly: OpenTK.dll
Syntax
public class MouseWheelEventArgs : MouseEventArgs
Remarks

Do not cache instances of this type outside their event handler. If necessary, you can clone an instance using the MouseWheelEventArgs(MouseWheelEventArgs) constructor.

Constructors

MouseWheelEventArgs()

Constructs a new MouseWheelEventArgs instance.

Declaration
public MouseWheelEventArgs()

MouseWheelEventArgs(MouseWheelEventArgs)

Constructs a new MouseWheelEventArgs instance.

Declaration
public MouseWheelEventArgs(MouseWheelEventArgs args)
Parameters
Type Name Description
MouseWheelEventArgs args

The MouseWheelEventArgs instance to clone.

MouseWheelEventArgs(Int32, Int32, Int32, Int32)

Constructs a new MouseWheelEventArgs instance.

Declaration
public MouseWheelEventArgs(int x, int y, int value, int delta)
Parameters
Type Name Description
Int32 x

The X position.

Int32 y

The Y position.

Int32 value

The value of the wheel.

Int32 delta

The change in value of the wheel for this event.

Properties

Delta

Gets the change in value of the wheel for this event in integer units. To support high-precision mice, it is recommended to use DeltaPrecise instead.

Declaration
public int Delta { get; }
Property Value
Type Description
Int32

DeltaPrecise

Gets the precise change in value of the wheel for this event in floating-point units.

Declaration
public float DeltaPrecise { get; }
Property Value
Type Description
Single

Value

Gets the value of the wheel in integer units. To support high-precision mice, it is recommended to use ValuePrecise instead.

Declaration
public int Value { get; }
Property Value
Type Description
Int32

ValuePrecise

Gets the precise value of the wheel in floating-point units.

Declaration
public float ValuePrecise { get; }
Property Value
Type Description
Single
In This Article
Back to top Generated by DocFX