diff options
author | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2011-03-24 21:00:24 +0000 |
---|---|---|
committer | gtm.daemon <gtm.daemon@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3> | 2011-03-24 21:00:24 +0000 |
commit | 49488762da466f2515d55e0547a8e15aa7560ebe (patch) | |
tree | fe08746c40a9abb6b3a2c93cd125c876d2759db5 /iPhone | |
parent | fb696efd169db17e8169d0d0cfd1caf0728c0722 (diff) |
[Author: thomasvl]
Wrap the header so it compiles right if included in a C++ file.
R=dmaclach
DELTA=6 (6 added, 0 deleted, 0 changed)
Diffstat (limited to 'iPhone')
-rw-r--r-- | iPhone/GTMRoundedRectPath.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/iPhone/GTMRoundedRectPath.h b/iPhone/GTMRoundedRectPath.h index 2b20fec..88bf4cc 100644 --- a/iPhone/GTMRoundedRectPath.h +++ b/iPhone/GTMRoundedRectPath.h @@ -18,18 +18,22 @@ #import <CoreGraphics/CoreGraphics.h> -// Inscribe a round rectangle inside of rectangle |rect| with a corner radius +#include "GTMDefines.h" + +GTM_EXTERN_C_BEGIN + +// Inscribe a round rectangle inside of rectangle |rect| with a corner radius // of |radius| // // Args: // rect: outer rectangle to inscribe into // radius: radius of the corners. |radius| is clamped internally // to be no larger than the smaller of half |rect|'s width or height -void GTMCGContextAddRoundRect(CGContextRef context, - CGRect rect, +void GTMCGContextAddRoundRect(CGContextRef context, + CGRect rect, CGFloat radius); -// Adds a path which is a round rectangle inscribed inside of rectangle |rect| +// Adds a path which is a round rectangle inscribed inside of rectangle |rect| // with a corner radius of |radius| // // Args: @@ -38,11 +42,13 @@ void GTMCGContextAddRoundRect(CGContextRef context, // rect: outer rectangle to inscribe into // radius: radius of the corners. |radius| is clamped internally // to be no larger than the smaller of half |rect|'s width or height -void GTMCGPathAddRoundRect(CGMutablePathRef path, - const CGAffineTransform *m, - CGRect rect, +void GTMCGPathAddRoundRect(CGMutablePathRef path, + const CGAffineTransform *m, + CGRect rect, CGFloat radius); // Allocates a new rounded corner rectangle path. // DEPRECATED. Please use one of the above. CGPathRef GTMCreateRoundedRectPath(CGRect rect, CGFloat radius); + +GTM_EXTERN_C_END |