Inline Function

HSWidgetPositionIsValid

Returns whether the specified position is valid in given max range.


Declaration


static inline BOOL HSWidgetPositionIsValid(HSWidgetPosition position, NSUInteger maxRows, NSUInteger maxCols);

Parameters

Return Value

YES if the position's row is inside [0, maxRows] (both inclusive) range and position's column is inside [0, maxCols] (both inclusive) range; otherwise, NO.

Related Links


Checking Characteristics