Source/GGBTextLayer.h
author Jens Alfke <jens@mooseyard.com>
Tue Mar 11 09:21:53 2008 -0700 (2008-03-11)
changeset 3 40d225cf9c43
child 4 d781b00f3ed4
permissions -rw-r--r--
Added support for clicking the board to place new pieces. Go and Tic-Tac-Toe now use this.
     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