Source/GGBLayer.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 //  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 @property unsigned int autoresizingMask;
    28 #endif
    29 
    30 @end
    31 
    32 
    33 #if TARGET_OS_ASPEN
    34 /* Bit definitions for `autoresizingMask' property. */
    35 
    36 enum CAAutoresizingMask
    37 {
    38     kCALayerNotSizable	= 0,
    39     kCALayerMinXMargin	= 1U << 0,
    40     kCALayerWidthSizable	= 1U << 1,
    41     kCALayerMaxXMargin	= 1U << 2,
    42     kCALayerMinYMargin	= 1U << 3,
    43     kCALayerHeightSizable	= 1U << 4,
    44     kCALayerMaxYMargin	= 1U << 5
    45 };
    46 #endif