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

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


Structures

  • HSWidgetPosition

    A structure that contains location in grid positions.

  • HSWidgetSize

    A structure that contains dimensions in grid positions.