jens@1
|
1 |
//
|
jens@1
|
2 |
// GGBLayer.h
|
jens@1
|
3 |
// GGB-iPhone
|
jens@1
|
4 |
//
|
jens@1
|
5 |
// Created by Jens Alfke on 3/7/08.
|
jens@1
|
6 |
// Copyright 2008 __MyCompanyName__. All rights reserved.
|
jens@1
|
7 |
//
|
jens@1
|
8 |
|
jens@1
|
9 |
#if TARGET_OS_ASPEN
|
jens@1
|
10 |
#import <QuartzCore/QuartzCore.h>
|
jens@1
|
11 |
#else
|
jens@1
|
12 |
#import <Quartz/Quartz.h>
|
jens@1
|
13 |
#endif
|
jens@1
|
14 |
|
jens@1
|
15 |
|
jens@1
|
16 |
@interface GGBLayer : CALayer <NSCopying>
|
jens@1
|
17 |
|
jens@1
|
18 |
#if TARGET_OS_ASPEN
|
jens@1
|
19 |
// For some reason, the CALayer class on iPhone OS doesn't have these!
|
jens@1
|
20 |
{
|
jens@1
|
21 |
CGFloat _cornerRadius, _borderWidth;
|
jens@1
|
22 |
CGColorRef _borderColor, _realBGColor;
|
jens@1
|
23 |
unsigned int _autoresizingMask;
|
jens@1
|
24 |
}
|
jens@1
|
25 |
@property CGFloat cornerRadius, borderWidth;
|
jens@1
|
26 |
@property CGColorRef borderColor;
|
jens@1
|
27 |
@property unsigned int autoresizingMask;
|
jens@1
|
28 |
#endif
|
jens@1
|
29 |
|
jens@1
|
30 |
@end
|
jens@1
|
31 |
|
jens@1
|
32 |
|
jens@1
|
33 |
#if TARGET_OS_ASPEN
|
jens@1
|
34 |
/* Bit definitions for `autoresizingMask' property. */
|
jens@1
|
35 |
|
jens@1
|
36 |
enum CAAutoresizingMask
|
jens@1
|
37 |
{
|
jens@1
|
38 |
kCALayerNotSizable = 0,
|
jens@1
|
39 |
kCALayerMinXMargin = 1U << 0,
|
jens@1
|
40 |
kCALayerWidthSizable = 1U << 1,
|
jens@1
|
41 |
kCALayerMaxXMargin = 1U << 2,
|
jens@1
|
42 |
kCALayerMinYMargin = 1U << 3,
|
jens@1
|
43 |
kCALayerHeightSizable = 1U << 4,
|
jens@1
|
44 |
kCALayerMaxYMargin = 1U << 5
|
jens@1
|
45 |
};
|
jens@1
|
46 |
#endif
|