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
-
position
position to check validity of
-
maxRows
max number of rows that is considered valid (inclusive).
-
maxCols
max number of columns that is considered valid (inclusive).
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
-
HSWidgetPositionEqualsPosition
Return whether two positions are equal.