Class DirectionExtensions
Definition
Namespace: StardewUI
Assembly: StardewUI.dll
Helpers for working with Direction.
Inheritance
Object ⇦ DirectionExtensions
Members
Methods
| Name | Description |
|---|---|
| GetOrientation(Direction) | Gets the orientation axis associated with a given direction, i.e. whether it flows horizontally or vertically. |
| IsHorizontal(Direction) | Returns true if the specified direction is along the horizontal (width) axis, otherwise false. |
| IsVertical(Direction) | Returns true if the specified direction is along the vertical (height) axis, otherwise false. |
Details
Methods
GetOrientation(Direction)
Gets the orientation axis associated with a given direction, i.e. whether it flows horizontally or vertically.
Parameters
direction Direction
Returns
IsHorizontal(Direction)
Returns true if the specified direction is along the horizontal (width) axis, otherwise false.
Parameters
direction Direction
Returns
IsVertical(Direction)
Returns true if the specified direction is along the vertical (height) axis, otherwise false.
Parameters
direction Direction