Source/GGBTextLayer.h
author Jens Alfke <jens@mooseyard.com>
Mon Mar 10 17:32:04 2008 -0700 (2008-03-10)
changeset 2 7b0441db81e5
child 4 d781b00f3ed4
permissions -rw-r--r--
Oops, needed to fix an #include
     1 //
     2 //  GGBTextLayer.h
     3 //  GGB-iPhone
     4 //
     5 //  Created by Jens Alfke on 3/10/08.
     6 //  Copyright 2008 __MyCompanyName__. All rights reserved.
     7 //
     8 
     9 #import "GGBLayer.h"
    10 
    11 
    12 #if TARGET_OS_ASPEN
    13 @interface GGBTextLayer : GGBLayer
    14 {
    15     NSString *_string;
    16     CGFloat _fontSize;
    17     CGColorRef _foregroundColor;
    18     NSString *_alignmentMode;
    19 }
    20 
    21 @property(copy) id string;
    22 @property CGFloat fontSize;
    23 @property CGColorRef foregroundColor;
    24 @property (copy) NSString *alignmentMode;
    25 
    26 #else
    27 @interface GGBTextLayer : CATextLayer
    28 #endif
    29 
    30 + (GGBTextLayer*) textLayerInSuperlayer: (CALayer*)superlayer
    31                                withText: (NSString*)text
    32                                fontSize: (float) fontSize
    33                               alignment: (enum CAAutoresizingMask) align;
    34 
    35 @end
    36 
    37