jens@1: // jens@1: // GGBTextLayer.h jens@1: // GGB-iPhone jens@1: // jens@1: // Created by Jens Alfke on 3/10/08. jens@1: // Copyright 2008 __MyCompanyName__. All rights reserved. jens@1: // jens@1: jens@1: #import "GGBLayer.h" jens@1: jens@1: jens@1: #if TARGET_OS_ASPEN jens@1: @interface GGBTextLayer : GGBLayer jens@1: { jens@1: NSString *_string; jens@1: CGFloat _fontSize; jens@1: CGColorRef _foregroundColor; jens@1: NSString *_alignmentMode; jens@1: } jens@1: jens@1: @property(copy) id string; jens@1: @property CGFloat fontSize; jens@1: @property CGColorRef foregroundColor; jens@1: @property (copy) NSString *alignmentMode; jens@1: jens@1: #else jens@1: @interface GGBTextLayer : CATextLayer jens@1: #endif jens@1: jens@1: + (GGBTextLayer*) textLayerInSuperlayer: (CALayer*)superlayer jens@1: withText: (NSString*)text jens@1: fontSize: (float) fontSize jens@1: alignment: (enum CAAutoresizingMask) align; jens@1: jens@1: @end jens@1: jens@1: