5 // Created by Jens Alfke on 3/7/08.
6 // Copyright 2008 __MyCompanyName__. All rights reserved.
10 #import <QuartzCore/QuartzCore.h>
12 #import <Quartz/Quartz.h>
16 @interface GGBLayer : CALayer <NSCopying>
19 // For some reason, the CALayer class on iPhone OS doesn't have these!
21 CGFloat _cornerRadius, _borderWidth;
22 CGColorRef _borderColor, _realBGColor;
23 unsigned int _autoresizingMask;
25 @property CGFloat cornerRadius, borderWidth;
26 @property CGColorRef borderColor;
27 @property unsigned int autoresizingMask;
34 /* Bit definitions for `autoresizingMask' property. */
36 enum CAAutoresizingMask
38 kCALayerNotSizable = 0,
39 kCALayerMinXMargin = 1U << 0,
40 kCALayerWidthSizable = 1U << 1,
41 kCALayerMaxXMargin = 1U << 2,
42 kCALayerMinYMargin = 1U << 3,
43 kCALayerHeightSizable = 1U << 4,
44 kCALayerMaxYMargin = 1U << 5