Created
April 12, 2009 17:54
-
-
Save kishikawakatsumi/94091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@class UIAnimation; | |
@interface UIAnimator : NSObject {} | |
+ (id)sharedAnimator; | |
+ (void)disableAnimation; | |
+ (void)enableAnimation; | |
- (void)addAnimation:(UIAnimation *)animation withDuration:(double)duration start:(BOOL)start; | |
- (void)addAnimations:(NSArray *)animations withDuration:(double)duration start:(BOOL)start; | |
- (void)removeAnimationsForTarget:(id)target; | |
- (void)removeAnimationsForTarget:(id)target ofKind:(Class)classOfTarget; | |
- (void)startAnimation:(UIAnimation *)animation; | |
- (void)stopAnimation:(UIAnimation *)animation; | |
- (float)fractionForAnimation:(UIAnimation *)animation; | |
@end | |
typedef enum { | |
kUIAnimationCurveEaseInEaseOut, | |
kUIAnimationCurveEaseIn, | |
kUIAnimationCurveEaseOut, | |
kUIAnimationCurveLinear | |
} UIAnimationCurve; | |
@interface UIAnimation : NSObject {} | |
- (id)initWithTarget:(id)target; | |
- (id)target; | |
- (void)setDelegate:(id)delegate; | |
- (id)delegate; | |
- (void)setAction:(SEL)action; | |
- (SEL)action; | |
- (void)setAnimationCurve:(UIAnimationCurve)animationCurve; | |
- (float)progressForFraction:(float)fraction; | |
- (void)setProgress:(float)progress; | |
- (void)stopAnimation; | |
@end | |
@interface UIAlphaAnimation : UIAnimation {} | |
- (void)setStartAlpha:(float)alpha; | |
- (void)setEndAlpha:(float)alpha; | |
- (float)alphaForFraction:(float)fraction; | |
@end | |
@interface UIFrameAnimation : UIAnimation {} | |
- (void)setStartFrame:(CGRect)frame; | |
- (void)setEndFrame:(CGRect)frame; | |
- (CGRect)endFrame; | |
@end | |
@interface UIRotationAnimation : UIAnimation {} | |
- (void)setStartRotationAngle:(float)angle; | |
- (void)setEndRotationAngle:(float)angle; | |
@end | |
@interface UIScrollAnimation : UIAnimation {} | |
- (void)setStartPoint:(CGPoint)startPoint; | |
- (void)setEndPoint:(CGPoint)endPoint; | |
@end | |
@interface UITransformAnimation : UIAnimation {} | |
- (void)setStartTransform:(CGAffineTransform)transform; | |
- (void)setEndTransform:(CGAffineTransform)transform; | |
- (CGAffineTransform)transformForFraction:(float)fraction; | |
@end | |
@interface UIZoomAnimation : UIAnimation {} | |
+ (float)defaultDuration; | |
+ (id)zoomAnimationForTarget:(id)target endScale:(float)scale endScrollPoint:(CGPoint)point; | |
+ (id)zoomAnimationForTarget:(id)target focusRect:(CGRect)focusRect deviceBoundaryRect:(CGRect)deviceBoundaryRect scale:(float)scale; | |
- (void)setEndScale:(float)scale; | |
- (void)setStartScale:(float)scale; | |
- (void)setEndScrollPoint:(CGPoint)point; | |
- (void)setStartScrollPoint:(CGPoint)point; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment