Show / Hide Table of Contents

Struct MouseScroll

Represents the state of a mouse wheel.

Implements
System.IEquatable<MouseScroll>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: OpenTK.Input
Assembly: cs.temp.dll.dll
Syntax
public struct MouseScroll : IEquatable<MouseScroll>

Properties

X

Gets the absolute horizontal offset of the wheel, or 0 if no horizontal scroll wheel exists.

Declaration
public float X { get; }
Property Value
Type Description
System.Single

The x.

Y

Gets the absolute vertical offset of the wheel, or 0 if no vertical scroll wheel exists.

Declaration
public float Y { get; }
Property Value
Type Description
System.Single

The y.

Methods

Equals(MouseScroll)

Determines whether the specified MouseScroll is equal to the current MouseScroll.

Declaration
public bool Equals(MouseScroll other)
Parameters
Type Name Description
MouseScroll other

The MouseScroll to compare with the current MouseScroll.

Returns
Type Description
System.Boolean

true if the specified MouseScroll is equal to the current MouseScroll; otherwise, false.

Equals(Object)

Determines whether the specified System.Object is equal to the current MouseScroll.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with the current MouseScroll.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to the current MouseScroll; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

GetHashCode()

Serves as a hash function for a MouseScroll object.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.

Overrides
System.ValueType.GetHashCode()

ToString()

Returns a System.String that represents the current MouseScroll.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current MouseScroll.

Overrides
System.ValueType.ToString()

Operators

Equality(MouseScroll, MouseScroll)

Declaration
public static bool operator ==(MouseScroll left, MouseScroll right)
Parameters
Type Name Description
MouseScroll left

A MouseScroll instance to test for equality.

MouseScroll right

A MouseScroll instance to test for equality.

Returns
Type Description
System.Boolean

Inequality(MouseScroll, MouseScroll)

Declaration
public static bool operator !=(MouseScroll left, MouseScroll right)
Parameters
Type Name Description
MouseScroll left

A MouseScroll instance to test for inequality.

MouseScroll right

A MouseScroll instance to test for inequality.

Returns
Type Description
System.Boolean

Implements

System.IEquatable<T>
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX