Inline Function

HSWidgetPositionAdd

Add the given row and column to the specified position.


Declaration


static inline HSWidgetPosition HSWidgetPositionAdd(HSWidgetPosition position, NSInteger rows, NSInteger cols);

Parameters

Return Value

A new widget position with the specified number of rows and columns added.

Notes

The arguments passed in are signed so negative values can be passed in for subtraction. However, this function does not do any bounds checking so it'll underflow if too big of negative value is supplied.