Instance Method
containsSpaceToExpandOrShrinkToWidgetSize:
Return whether there is enough available space to expand or shrink to specified size structure.
Declaration
-(BOOL)containsSpaceToExpandOrShrinkToWidgetSize:(HSWidgetSize)size;
Parameters
-
size
size used to check if enough space is available for expanding/shrinking.
Return Value
YES if there are directly adjacent positions available for widget to expand/shrink to given size; otherwise NO.
Related Links
Dynamic Sizing
- Adding Dynamic Size
-
- containsSpaceToExpandOrShrinkToGridPositions:
Return whether there is enough available space to expand or shrink to specified grid positions.
-
- updateForExpandOrShrinkToGridPositions:
Update the widget to the specfied grid positions.
-
- updateForExpandOrShrinkToWidgetSize:
Update the widget size to the specfied size structure (also updates grid positions).