Structure
HSWidgetPosition
A structure that contains location in grid positions.
Declaration
typedef struct HSWidgetPosition {
...
} HSWidgetPosition;
Overview
Positions are grid positions that follow iOS coordinate space where the origin is upper-left corner and positive extends towards the lower-right corner. These positions are represented using (row, column) format.
Topics
Constants
-
HSWidgetPositionZero
A position constant with location (0, 0).
Creating Position
-
HSWidgetPositionMake
Make a widget position using the specified row and column.
Arithmetic
-
HSWidgetPositionAdd
Add the given row and column to the specified position.
Checking Characteristics
-
HSWidgetPositionIsValid
Returns whether the specified position is valid in given max range.
-
HSWidgetPositionEqualsPosition
Return whether two positions are equal.