Nimbus
0.9.3 - Nimbus is proudly hosted on Github
An iOS framework whose growth is bounded by O(documentation).
|
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) |
CGRect NIRectContract | ( | CGRect | rect, |
CGFloat | dx, | ||
CGFloat | dy | ||
) |
Modifies only the right and bottom edges of a CGRect.
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.
Example result: CGRectMake(x + dx, y + dy, w - dx, h - dy)
Definition at line 35 of file NIFoundationMethods.m.