Struct MouseScroll
Represents the state of a mouse wheel.
Implements
Inherited Members
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 |
|
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 |
|
Overrides
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
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
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 |