mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57: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.
84 lines
1.3 KiB
Plaintext
84 lines
1.3 KiB
Plaintext
@import <Foundation/CPObject.j>
|
|
|
|
@import "CAPropertyAnimation.j"
|
|
|
|
/*!
|
|
A CABasicAnimation is a simple animation that moves a
|
|
CALayer from one point to another over a specified
|
|
period of time.
|
|
*/
|
|
/*!
|
|
A CABasicAnimation is a simple animation that moves a
|
|
CALayer from one point to another over a specified
|
|
period of time.
|
|
*/
|
|
@implementation CABasicAnimation : CAPropertyAnimation
|
|
{
|
|
id _fromValue;
|
|
id _toValue;
|
|
id _byValue;
|
|
}
|
|
|
|
- (id)init
|
|
{
|
|
self = [super init];
|
|
|
|
_fromValue = nil;
|
|
_toValue = nil;
|
|
_byValue = nil;
|
|
|
|
return self;
|
|
}
|
|
|
|
/*!
|
|
Sets the starting position for the animation.
|
|
@param aValue the animation starting position
|
|
*/
|
|
- (void)setFromValue:(id)aValue
|
|
{
|
|
_fromValue = aValue;
|
|
}
|
|
|
|
/*!
|
|
Returns the animation's starting position.
|
|
*/
|
|
- (id)fromValue
|
|
{
|
|
return _fromValue;
|
|
}
|
|
|
|
/*!
|
|
Sets the ending position for the animation.
|
|
@param aValue the animation ending position
|
|
*/
|
|
- (void)setToValue:(id)aValue
|
|
{
|
|
_toValue = aValue;
|
|
}
|
|
|
|
/*!
|
|
Returns the animation's ending position.
|
|
*/
|
|
- (id)toValue
|
|
{
|
|
return _toValue;
|
|
}
|
|
|
|
/*!
|
|
Sets the optional byValue for animation interpolation.
|
|
@param aValue the byValue
|
|
*/
|
|
- (void)setByValue:(id)aValue
|
|
{
|
|
_byValue = aValue;
|
|
}
|
|
|
|
/*!
|
|
Returns the animation's byValue.
|
|
*/
|
|
- (id)byValue
|
|
{
|
|
return _byValue;
|
|
}
|
|
|
|
@end |