Inline Function

HSWidgetPositionInDirection

Returns a adjacent position in given direction.


Declaration


static inline HSWidgetPosition HSWidgetPositionInDirection(HSWidgetPosition position, HSWidgetDirection direction);

Parameters

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