#import <CPAnimation.h>
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
Manages an animation. Contains timing and progress information.
-(BOOL)animationShouldStart:(CPAnimation)animation; Called at the beginning of -startAnimation
.
animation | the animation that will start |
YES
allows the animation to start. NO
stops the animation.-(void)animationDidEnd:(CPAnimation)animation; Called when an animation has completed.
animation | the animation that completed |
-(void)animationDidStop:(CPAnimation)animation; Called when the animation was stopped (before completing).
animation | the animation that was stopped |
- (float)animation:(CPAnimation)animation valueForProgress:(float)progress; The value from this method will be returned when CPAnimation's currentValue
method is called.
animation | the animation to obtain the curve value for |
progress | the current animation progress |
Definition at line 2 of file CPAnimation.h.
|
implementation |
Returns the animation's pace
Definition at line 156 of file CPAnimation.j.
|
implementation |
Definition at line 261 of file CPAnimation.j.
|
implementation |
Returns the animation's progress
Definition at line 316 of file CPAnimation.j.
|
implementation |
Returns the animation's timing progress.
Definition at line 324 of file CPAnimation.j.
|
implementation |
Returns the animation's delegate
Definition at line 206 of file CPAnimation.j.
|
implementation |
Returns the length of the animation.
Definition at line 177 of file CPAnimation.j.
|
implementation |
Returns the desired frame rate.
Definition at line 198 of file CPAnimation.j.
|
implementation |
Initializes the animation with a duration and animation curve.
aDuration | the length of the animation |
anAnimationCurve | defines the animation's pace |
CPInvalidArgumentException | if an invalid animation curve is specified |
Definition at line 100 of file CPAnimation.j.
|
implementation |
Returns YES
if the animation is running.
Definition at line 299 of file CPAnimation.j.
|
implementation |
Sets the animation's pace.
anAnimationCurve | the animation's pace |
CPInvalidArgumentException | if an invalid animation curve is specified |
Definition at line 121 of file CPAnimation.j.
|
implementation |
Sets the animation's progress.
aProgress | the animation's progress |
Reimplemented in CPViewAnimation.
Definition at line 308 of file CPAnimation.j.
|
implementation |
Sets the animation's delegate.
aDelegate | the new delegate |
Definition at line 215 of file CPAnimation.j.
|
implementation |
Sets the animation's length.
aDuration | the new animation length |
CPInvalidArgumentException | if aDuration is negative |
Definition at line 166 of file CPAnimation.j.
|
implementation |
Sets the animation frame rate. This is not a guaranteed frame rate. 0 means to go as fast as possible.
frameRate | the new desired frame rate |
CPInvalidArgumentException | if frameRate is negative |
Definition at line 187 of file CPAnimation.j.
|
implementation |
Starts the animation. The method calls -animationShouldStart
: on the delegate (if it implements it) to see if the animation should begin.
Reimplemented in CPViewAnimation.
Definition at line 241 of file CPAnimation.j.
|
implementation |
Stops the animation before it has completed.
Reimplemented in CPViewAnimation.
Definition at line 284 of file CPAnimation.j.