Class Method
gridPositionsForWidgetFrame:
Get the grid positions that specified widget frame would occupy.
Declaration
+(NSMutableArray *)gridPositionsForWidgetFrame:(HSWidgetFrame)frame;
Parameters
-
frame
frame structure that will be converted to grid positions
Return Value
A mutable array of grid positions (HSWidgetPositionObjects) that specified frame occupies.
Example
For example if a frame with the origin of (2, 1) and size of (3, 2) was supplied then we would get all the positions that would be part of the frame. This means we would have (2, 1), (2, 2), (3, 2), etc.
Positions can be assumed to be sorted from top left to bottom right order.
Related Links
Positions
-
HSWidgetPositionObject
An object wrapper for widget position structure.
Structure
-
HSWidgetFrame
A structure that contains location and dimensions of widget in grid positions.