Source/GGBLayer.h
changeset 2 7b0441db81e5
child 4 d781b00f3ed4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Source/GGBLayer.h	Mon Mar 10 17:32:04 2008 -0700
     1.3 @@ -0,0 +1,46 @@
     1.4 +//
     1.5 +//  GGBLayer.h
     1.6 +//  GGB-iPhone
     1.7 +//
     1.8 +//  Created by Jens Alfke on 3/7/08.
     1.9 +//  Copyright 2008 __MyCompanyName__. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#if TARGET_OS_ASPEN
    1.13 +#import <QuartzCore/QuartzCore.h>
    1.14 +#else
    1.15 +#import <Quartz/Quartz.h>
    1.16 +#endif
    1.17 +
    1.18 +
    1.19 +@interface GGBLayer : CALayer <NSCopying>
    1.20 +
    1.21 +#if TARGET_OS_ASPEN
    1.22 +// For some reason, the CALayer class on iPhone OS doesn't have these!
    1.23 +{
    1.24 +    CGFloat _cornerRadius, _borderWidth;
    1.25 +    CGColorRef _borderColor, _realBGColor;
    1.26 +    unsigned int _autoresizingMask;
    1.27 +}
    1.28 +@property CGFloat cornerRadius, borderWidth;
    1.29 +@property CGColorRef borderColor;
    1.30 +@property unsigned int autoresizingMask;
    1.31 +#endif
    1.32 +
    1.33 +@end
    1.34 +
    1.35 +
    1.36 +#if TARGET_OS_ASPEN
    1.37 +/* Bit definitions for `autoresizingMask' property. */
    1.38 +
    1.39 +enum CAAutoresizingMask
    1.40 +{
    1.41 +    kCALayerNotSizable	= 0,
    1.42 +    kCALayerMinXMargin	= 1U << 0,
    1.43 +    kCALayerWidthSizable	= 1U << 1,
    1.44 +    kCALayerMaxXMargin	= 1U << 2,
    1.45 +    kCALayerMinYMargin	= 1U << 3,
    1.46 +    kCALayerHeightSizable	= 1U << 4,
    1.47 +    kCALayerMaxYMargin	= 1U << 5
    1.48 +};
    1.49 +#endif