topical media & game development
#mobile-application-10-DerbyApp-build-iphone-Classes-TiAnimation.h / h
Appcelerator Titanium Mobile
Copyright (c) 2009-2011 by Appcelerator, Inc. All Rights Reserved.
Licensed under the terms of the Apache Public License
Please see the LICENSE included with this distribution for details.
WARNING: This is generated code. Modify at your own risk and without support.
#import <TiProxy.h>
#import <TiPoint.h>
#import <TiColor.h>
#import <ListenerEntry.h>
#import <LayoutConstraint.h>
#import <QuartzCore/QuartzCore.h>
@protocol TiAnimationDelegate
@optional
-(BOOL)animationShouldTransition:(id)sender;
-(void)animationWillStart:(id)sender;
-(void)animationDidStart:(id)sender;
-(void)animationWillComplete:(id)sender;
-(void)animationDidComplete:(id)sender;
@end
@interface TiAnimation : TiProxy {
@private
NSNumber *zIndex;
NSNumber *left;
NSNumber *right;
NSNumber *top;
NSNumber *bottom;
NSNumber *width;
NSNumber *height;
NSNumber *duration;
TiPoint *center;
TiColor *backgroundColor;
TiColor *color;
NSNumber *opacity;
NSNumber *opaque;
NSNumber *visible;
NSNumber *curve;
NSNumber *repeat;
NSNumber *autoreverse;
NSNumber *delay;
TiProxy *transform;
NSNumber *transition;
TiViewProxy *view;
// this is a temporary function passed in
ListenerEntry *callback;
NSObject<TiAnimationDelegate> *delegate;
// for animation delegate
UIView* animatedView;
// for autoreverse
LayoutConstraint autoreverseLayout;
UIView *autoreverseView;
id transformMatrix;
}
@property(nonatomic,assign,readwrite) NSObject<TiAnimationDelegate> *delegate;
@property(nonatomic,readwrite,assign) UIView* animatedView;
@property(nonatomic,readwrite,assign) UIView* autoreverseView;
@property(nonatomic,readwrite,assign) id transformMatrix;
@property(nonatomic,readonly) LayoutConstraint autoreverseLayout;
@property(nonatomic,readonly) ListenerEntry* callback;
// animatable properties against what is being animated
@property(nonatomic,retain,readwrite) NSNumber *zIndex;
@property(nonatomic,retain,readwrite) NSNumber *left;
@property(nonatomic,retain,readwrite) NSNumber *right;
@property(nonatomic,retain,readwrite) NSNumber *top;
@property(nonatomic,retain,readwrite) NSNumber *bottom;
@property(nonatomic,retain,readwrite) NSNumber *width;
@property(nonatomic,retain,readwrite) NSNumber *height;
@property(nonatomic,retain,readwrite) NSNumber *duration;
@property(nonatomic,retain,readwrite) TiPoint *center;
@property(nonatomic,retain,readwrite) TiColor *color;
@property(nonatomic,retain,readwrite) TiColor *backgroundColor;
@property(nonatomic,retain,readwrite) NSNumber *opacity;
@property(nonatomic,retain,readwrite) NSNumber *opaque;
@property(nonatomic,retain,readwrite) NSNumber *visible;
// properties that control the animation
@property(nonatomic,retain,readwrite) NSNumber *curve;
@property(nonatomic,retain,readwrite) NSNumber *repeat;
@property(nonatomic,retain,readwrite) NSNumber *autoreverse;
@property(nonatomic,retain,readwrite) NSNumber *delay;
@property(nonatomic,retain,readwrite) TiProxy *transform;
@property(nonatomic,retain,readwrite) NSNumber *transition;
@property(nonatomic,retain,readwrite) TiProxy *view;
+(TiAnimation*)animationFromArg:(id)args context:(id<TiEvaluator>)context create:(BOOL)yn;
-(id)initWithDictionary:(NSDictionary*)properties context:(id<TiEvaluator>)context;
-(id)initWithDictionary:(NSDictionary*)properties context:(id<TiEvaluator>)context callback:(KrollCallback*)callback;
-(void)animate:(id)args;
-(BOOL)isTransitionAnimation;
@end
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.