jens@1: // jens@1: // GGBLayer.h jens@1: // GGB-iPhone jens@1: // jens@1: // Created by Jens Alfke on 3/7/08. jens@1: // Copyright 2008 __MyCompanyName__. All rights reserved. jens@1: // jens@1: jens@1: #if TARGET_OS_ASPEN jens@1: #import jens@1: #else jens@1: #import jens@1: #endif jens@1: jens@1: jens@1: @interface GGBLayer : CALayer jens@1: jens@1: #if TARGET_OS_ASPEN jens@1: // For some reason, the CALayer class on iPhone OS doesn't have these! jens@1: { jens@1: CGFloat _cornerRadius, _borderWidth; jens@1: CGColorRef _borderColor, _realBGColor; jens@1: unsigned int _autoresizingMask; jens@1: } jens@1: @property CGFloat cornerRadius, borderWidth; jens@1: @property CGColorRef borderColor; jens@1: @property unsigned int autoresizingMask; jens@1: #endif jens@1: jens@1: @end jens@1: jens@1: jens@1: #if TARGET_OS_ASPEN jens@1: /* Bit definitions for `autoresizingMask' property. */ jens@1: jens@1: enum CAAutoresizingMask jens@1: { jens@1: kCALayerNotSizable = 0, jens@1: kCALayerMinXMargin = 1U << 0, jens@1: kCALayerWidthSizable = 1U << 1, jens@1: kCALayerMaxXMargin = 1U << 2, jens@1: kCALayerMinYMargin = 1U << 3, jens@1: kCALayerHeightSizable = 1U << 4, jens@1: kCALayerMaxYMargin = 1U << 5 jens@1: }; jens@1: #endif