Class Method
originForWidgetOfSize:inGridPositions:
Get the origin position where the given size could be added within the specified grid positions.
Declaration
+(HSWidgetPosition)originForWidgetOfSize:(HSWidgetSize)size inGridPositions:(NSArray *)positions;
Parameters
-
size
size structure to get the origin of
-
positions
array of grid positions to get the origin from
Return Value
If the widget size can be added in the specified grid positions, this method returns the first location where it can be added. Otherwise, an invalid position of (0, 0) is returned.
Related Links
Positions
-
HSWidgetPositionObject
An object wrapper for widget position structure.
Structures
-
HSWidgetPosition
A structure that contains location in grid positions.
-
HSWidgetSize
A structure that contains dimensions in grid positions.