1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Source/GGBTextLayer.h Mon Mar 10 17:32:04 2008 -0700
1.3 @@ -0,0 +1,37 @@
1.4 +//
1.5 +// GGBTextLayer.h
1.6 +// GGB-iPhone
1.7 +//
1.8 +// Created by Jens Alfke on 3/10/08.
1.9 +// Copyright 2008 __MyCompanyName__. All rights reserved.
1.10 +//
1.11 +
1.12 +#import "GGBLayer.h"
1.13 +
1.14 +
1.15 +#if TARGET_OS_ASPEN
1.16 +@interface GGBTextLayer : GGBLayer
1.17 +{
1.18 + NSString *_string;
1.19 + CGFloat _fontSize;
1.20 + CGColorRef _foregroundColor;
1.21 + NSString *_alignmentMode;
1.22 +}
1.23 +
1.24 +@property(copy) id string;
1.25 +@property CGFloat fontSize;
1.26 +@property CGColorRef foregroundColor;
1.27 +@property (copy) NSString *alignmentMode;
1.28 +
1.29 +#else
1.30 +@interface GGBTextLayer : CATextLayer
1.31 +#endif
1.32 +
1.33 ++ (GGBTextLayer*) textLayerInSuperlayer: (CALayer*)superlayer
1.34 + withText: (NSString*)text
1.35 + fontSize: (float) fontSize
1.36 + alignment: (enum CAAutoresizingMask) align;
1.37 +
1.38 +@end
1.39 +
1.40 +