Class Method
canFitWidget:inGridPositions:
Return whether the given widget positions can fit inside the specified grid positions.
Declaration
+(BOOL)canFitWidget:(NSArray *)widgetPositions inGridPositions:(NSArray *)positions;
Parameters
-
widgetPositions
array of widget positions to check placement of
-
positions
array of grid positions to check placement in
Return Value
YES if widget positions can be added in the specified grid positions; otherwise NO. In other words, this method checks if intersect of widget positions and grid positions equals widget positions.
Related Links
Checking Placement
-
+ canFitWidgetOfSize:inGridPositions:
Return whether the given size can fit inside the specified grid positions.
Positions
-
HSWidgetPositionObject
An object wrapper for widget position structure.