diff -r 000000000000 -r 40d225cf9c43 Source/GGBLayer.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Source/GGBLayer.h Tue Mar 11 09:21:53 2008 -0700 @@ -0,0 +1,46 @@ +// +// GGBLayer.h +// GGB-iPhone +// +// Created by Jens Alfke on 3/7/08. +// Copyright 2008 __MyCompanyName__. All rights reserved. +// + +#if TARGET_OS_ASPEN +#import +#else +#import +#endif + + +@interface GGBLayer : CALayer + +#if TARGET_OS_ASPEN +// For some reason, the CALayer class on iPhone OS doesn't have these! +{ + CGFloat _cornerRadius, _borderWidth; + CGColorRef _borderColor, _realBGColor; + unsigned int _autoresizingMask; +} +@property CGFloat cornerRadius, borderWidth; +@property CGColorRef borderColor; +@property unsigned int autoresizingMask; +#endif + +@end + + +#if TARGET_OS_ASPEN +/* Bit definitions for `autoresizingMask' property. */ + +enum CAAutoresizingMask +{ + kCALayerNotSizable = 0, + kCALayerMinXMargin = 1U << 0, + kCALayerWidthSizable = 1U << 1, + kCALayerMaxXMargin = 1U << 2, + kCALayerMinYMargin = 1U << 3, + kCALayerHeightSizable = 1U << 4, + kCALayerMaxYMargin = 1U << 5 +}; +#endif