Source/GGBLayer.h
author Jens Alfke <jens@mooseyard.com>
Tue Mar 11 17:09:50 2008 -0700 (2008-03-11)
changeset 4 d781b00f3ed4
parent 1 3eb7be1dd7b6
child 7 428a194e3e59
permissions -rw-r--r--
Text, playing cards, and Klondike solitaire all work on iPhone now. (Regression: Klondike UI layout has changed, and is awkward on Mac now. Need to special case that.)
     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 #if TARGET_OS_ASPEN
    10 #import <QuartzCore/QuartzCore.h>
    11 #else
    12 #import <Quartz/Quartz.h>
    13 #endif
    14 
    15 
    16 @interface GGBLayer : CALayer <NSCopying>
    17 
    18 #if TARGET_OS_ASPEN
    19 // For some reason, the CALayer class on iPhone OS doesn't have these!
    20 {
    21     CGFloat _cornerRadius, _borderWidth;
    22     CGColorRef _borderColor, _realBGColor;
    23     unsigned int _autoresizingMask;
    24 }
    25 @property CGFloat cornerRadius, borderWidth;
    26 @property CGColorRef borderColor;
    27 #endif
    28 
    29 - (void) redisplayAll;
    30 
    31 @end