Inline Function
HSWidgetPositionInDirection
Returns a adjacent position in given direction.
Declaration
static inline HSWidgetPosition HSWidgetPositionInDirection(HSWidgetPosition position, HSWidgetDirection direction);
Parameters
-
position
starting position to get adjacent position from
-
direction
direction of adjacency
Return Value
If a valid direction is specified then a new position that is directly adjacent in the given direction from the starting position is returned; otherwise the starting position is returned. For instance, starting position would be returned for HSWidgetDirectionNone.
Related Links
Using Relative Directions
-
HSWidgetPositionIsAdjacent
Returns whether position is directly adjacent in given direction from first specified position.
-
HSWidgetReverseDirection
Returns a direction that is directly opposite of specified direction.