Source/GGBLayer.h
author Jens Alfke <jens@mooseyard.com>
Wed May 28 12:47:10 2008 -0700 (2008-05-28)
changeset 8 45c82a071aca
parent 7 428a194e3e59
child 9 a59acc683080
permissions -rw-r--r--
* Got it working with latest iPhone SDK.
* Fixed some text alignment issues that showed up on PlayingCards.
* Working on persistence and move-tracking for Game.
     1 //
     2 //  GGBLayer.h
     3 //  GGB-iPhone
     4 //
     5 //  Created by Jens Alfke on 3/7/08.
     6 //  Copyright 2008 __MyCompanyName__. All rights reserved.
     7 //
     8 
     9 
    10 #if TARGET_OS_IPHONE
    11 #import <QuartzCore/QuartzCore.h>
    12 #else
    13 #import <Quartz/Quartz.h>
    14 #endif
    15 
    16 
    17 @interface GGBLayer : CALayer <NSCopying>
    18 {
    19     CABasicAnimation *_curAnimation;
    20 
    21 #if ! TARGET_OS_IPHONE
    22 }
    23 #else
    24 // For some reason, the CALayer class on iPhone OS doesn't have these!
    25     CGFloat _cornerRadius, _borderWidth;
    26     CGColorRef _borderColor, _realBGColor;
    27     unsigned int _autoresizingMask;
    28 }
    29 
    30 @property CGFloat cornerRadius, borderWidth;
    31 @property CGColorRef borderColor;
    32 #endif
    33 
    34 - (void) redisplayAll;
    35 
    36 - (void) animateAndBlock: (NSString*)keyPath from: (id)from to: (id)to duration: (NSTimeInterval)duration;
    37 
    38 @end