Click here to support Nimbus development and make a donation at www.pledgie.com !
An iOS framework whose growth is bounded by O(documentation).

Overview

For manipulating CGRects.

These methods provide additional means of modifying the edges of CGRects beyond the basics included in CoreGraphics.

Functions

CGRect NIRectContract (CGRect rect, CGFloat dx, CGFloat dy)
CGRect NIRectShift (CGRect rect, CGFloat dx, CGFloat dy)

Function Documentation

CGRect NIRectContract ( CGRect  rect,
CGFloat  dx,
CGFloat  dy 
)

Modifies only the right and bottom edges of a CGRect.

Returns:
a CGRect with dx and dy subtracted from the width and height.

Example result: CGRectMake(x, y, w - dx, h - dy)

Definition at line 29 of file NIFoundationMethods.m.

CGRect NIRectShift ( CGRect  rect,
CGFloat  dx,
CGFloat  dy 
)

Modifies only the top and left edges of a CGRect.

Returns:
a CGRect whose origin has been offset by dx, dy, and whose size has been contracted by dx, dy.

Example result: CGRectMake(x + dx, y + dy, w - dx, h - dy)

Definition at line 35 of file NIFoundationMethods.m.

Generated for Nimbus by doxygen 1.7.4-20110629