mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
CPAnimatablePropertyContainer protocol (CPView) CPAnimationContext _CPObjectAnimator CPViewAnimator CSS Animations wrapper CPAnimatablePropertyContainerTest : animations of views with custom Layout / Regular Layout / Custom DrawRect: / No DrawRect: / Subviews / No Subviews and combinations of these situations. controls animation (text field, button, popup, slider ...). They animate their size via their action.
75 lines
944 B
Plaintext
75 lines
944 B
Plaintext
|
|
@import <Foundation/CPObject.j>
|
|
|
|
@import "CAAnimation.j"
|
|
|
|
@implementation CAPropertyAnimation : CAAnimation
|
|
{
|
|
CPString _keyPath;
|
|
|
|
BOOL _isCumulative;
|
|
BOOL _isAdditive;
|
|
}
|
|
|
|
- (id)init
|
|
{
|
|
self = [super init];
|
|
|
|
_keyPath = nil;
|
|
_isCumulative = NO;
|
|
_isAdditive = NO;
|
|
|
|
return self;
|
|
}
|
|
|
|
+ (id)animationWithKeyPath:(CPString)aKeyPath
|
|
{
|
|
var animation = [self animation];
|
|
|
|
[animation setKeyPath:aKeyPath];
|
|
|
|
return animation;
|
|
}
|
|
|
|
- (void)setKeyPath:(CPString)aKeyPath
|
|
{
|
|
_keyPath = aKeyPath;
|
|
}
|
|
|
|
- (CPString)keyPath
|
|
{
|
|
return _keyPath;
|
|
}
|
|
|
|
- (void)setCumulative:(BOOL)isCumulative
|
|
{
|
|
_isCumulative = isCumulative;
|
|
}
|
|
|
|
- (BOOL)cumulative
|
|
{
|
|
return _isCumulative;
|
|
}
|
|
|
|
- (BOOL)isCumulative
|
|
{
|
|
return _isCumulative;
|
|
}
|
|
|
|
- (void)setAdditive:(BOOL)isAdditive
|
|
{
|
|
_isAdditive = isAdditive;
|
|
}
|
|
|
|
- (BOOL)additive
|
|
{
|
|
return _isAdditive;
|
|
}
|
|
|
|
- (BOOL)isAdditive
|
|
{
|
|
return _isAdditive;
|
|
}
|
|
|
|
@end
|