Show / Hide Table of Contents

Struct MouseWheelEventArgs

Defines the event data for events.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenTK.Windowing.Common
Assembly: OpenTK.Windowing.Common.dll
Syntax
public readonly struct MouseWheelEventArgs

Constructors

MouseWheelEventArgs(Vector2)

Initializes a new instance of the MouseWheelEventArgs struct.

Declaration
public MouseWheelEventArgs(Vector2 offset)
Parameters
Type Name Description
Vector2 offset

The offset the mouse wheel was moved.

MouseWheelEventArgs(float, float)

Initializes a new instance of the MouseWheelEventArgs struct.

Declaration
public MouseWheelEventArgs(float offsetX, float offsetY)
Parameters
Type Name Description
float offsetX

The offset on the X axis.

float offsetY

The offset on the Y axis.

Properties

Offset

Gets the offset the mouse wheel was moved.

Declaration
public Vector2 Offset { get; }
Property Value
Type Description
Vector2

OffsetX

Gets the offset on the X axis.

Declaration
public float OffsetX { get; }
Property Value
Type Description
float

OffsetY

Gets the offset on the Y axis.

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