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
jens@1
     1
//
jens@1
     2
//  GGBTextLayer.h
jens@1
     3
//  GGB-iPhone
jens@1
     4
//
jens@1
     5
//  Created by Jens Alfke on 3/10/08.
jens@1
     6
//  Copyright 2008 __MyCompanyName__. All rights reserved.
jens@1
     7
//
jens@1
     8
jens@1
     9
#import "GGBLayer.h"
jens@1
    10
jens@1
    11
jens@1
    12
#if TARGET_OS_ASPEN
jens@1
    13
@interface GGBTextLayer : GGBLayer
jens@1
    14
{
jens@1
    15
    NSString *_string;
jens@1
    16
    CGFloat _fontSize;
jens@1
    17
    CGColorRef _foregroundColor;
jens@1
    18
    NSString *_alignmentMode;
jens@1
    19
}
jens@1
    20
jens@1
    21
@property(copy) id string;
jens@1
    22
@property CGFloat fontSize;
jens@1
    23
@property CGColorRef foregroundColor;
jens@1
    24
@property (copy) NSString *alignmentMode;
jens@1
    25
jens@1
    26
#else
jens@1
    27
@interface GGBTextLayer : CATextLayer
jens@1
    28
#endif
jens@1
    29
jens@1
    30
+ (GGBTextLayer*) textLayerInSuperlayer: (CALayer*)superlayer
jens@1
    31
                               withText: (NSString*)text
jens@1
    32
                               fontSize: (float) fontSize
jens@1
    33
                              alignment: (enum CAAutoresizingMask) align;
jens@1
    34
jens@1
    35
@end
jens@1
    36
jens@1
    37