author | Jens Alfke <jens@mooseyard.com> |
Sun Mar 16 15:06:47 2008 -0700 (2008-03-16) | |
changeset 7 | 428a194e3e59 |
parent 4 | d781b00f3ed4 |
child 8 | 45c82a071aca |
permissions | -rw-r--r-- |
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@7 | 17 |
{ |
jens@7 | 18 |
CABasicAnimation *_curAnimation; |
jens@1 | 19 |
|
jens@7 | 20 |
#if ! TARGET_OS_ASPEN |
jens@7 | 21 |
} |
jens@7 | 22 |
#else |
jens@1 | 23 |
// For some reason, the CALayer class on iPhone OS doesn't have these! |
jens@1 | 24 |
CGFloat _cornerRadius, _borderWidth; |
jens@1 | 25 |
CGColorRef _borderColor, _realBGColor; |
jens@1 | 26 |
unsigned int _autoresizingMask; |
jens@1 | 27 |
} |
jens@7 | 28 |
|
jens@1 | 29 |
@property CGFloat cornerRadius, borderWidth; |
jens@1 | 30 |
@property CGColorRef borderColor; |
jens@1 | 31 |
#endif |
jens@1 | 32 |
|
jens@4 | 33 |
- (void) redisplayAll; |
jens@4 | 34 |
|
jens@7 | 35 |
- (void) animateAndBlock: (NSString*)keyPath from: (id)from to: (id)to duration: (NSTimeInterval)duration; |
jens@7 | 36 |
|
jens@1 | 37 |
@end |