Enumeration

HSWidgetDirection

These constants are mask bits for specifying a direction from a widget position.


Declaration


typedef enum HSWidgetDirection : NSUInteger {
	...
} HSWidgetDirection;

Overview

Directions follow natural coordinate space while positions continue to use iOS coordinate space where the origin is upper-left corner and positive extends towards the lower-right corner.

(1, 1)
Up
(1, 3)
Left
None (position)
Right
(3, 1)
Down
(3, 3)

These constants are masks so bitwise operations can be performed to select multiple directions. However, selecting opposite directions such as HSWidgetDirectionUp and HSWidgetDirectionDown will cancel each other out when used in certain functions.

Topics


Directions


Using Relative Directions

Related Links


Position