Animation timing information and animated values.
More...
#import <CPTAnimationPeriod.h>
Animation timing information and animated values.
The starting and ending values of the animation can be any of the following types wrapped in an NSValue instance:
◆ canStartWithValueFromObject:propertyGetter:
- (BOOL) canStartWithValueFromObject: |
|
(nonnull id __unused) |
boundObject |
propertyGetter: |
|
(nonnull SEL __unused) |
boundGetter |
|
|
| |
|
implementation |
Determines if the current value of the bound property is between the start and end value.
- Parameters
-
boundObject | The object to update for each animation frame. |
boundGetter | The getter method for the property to update. |
- Returns
- YES if the current value of the bound property is between the start and end value.
Provided by category CPTAnimationPeriod(AbstractMethods).
◆ initWithStart:end:duration:withDelay:
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end values and duration.
- Parameters
-
aStart | The starting value. If NaN , the animation starts from the current value of the animated property. |
anEnd | The ending value. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ initWithStartDecimal:endDecimal:duration:withDelay:
- (nonnull instancetype) initWithStartDecimal: |
|
(NSDecimal) |
aStartDecimal |
endDecimal: |
|
(NSDecimal) |
anEndDecimal |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end values and duration.
- Parameters
-
aStartDecimal | The starting value. If NaN , the animation starts from the current value of the animated property. |
anEndDecimal | The ending value. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ initWithStartNumber:endNumber:duration:withDelay:
- (nonnull instancetype) initWithStartNumber: |
|
(nullable NSNumber *) |
aStartNumber |
endNumber: |
|
(nonnull NSNumber *) |
anEndNumber |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end values and duration.
- Parameters
-
aStartNumber | The starting value. If NaN or nil, the animation starts from the current value of the animated property. |
anEndNumber | The ending value. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ initWithStartPlotRange:endPlotRange:duration:withDelay:
- (nonnull instancetype) initWithStartPlotRange: |
|
(nonnull CPTPlotRange *) |
aStartPlotRange |
endPlotRange: |
|
(nonnull CPTPlotRange *) |
anEndPlotRange |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end plot ranges and duration.
- Parameters
-
aStartPlotRange | The starting plot range. If nil or any component of the range is NaN , the animation starts from the current value of the animated property. |
anEndPlotRange | The ending plot range. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ initWithStartPoint:endPoint:duration:withDelay:
- (nonnull instancetype) initWithStartPoint: |
|
(CGPoint) |
aStartPoint |
endPoint: |
|
(CGPoint) |
anEndPoint |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end points and duration.
- Parameters
-
aStartPoint | The starting point. If either coordinate is NaN , the animation starts from the current value of the animated property. |
anEndPoint | The ending point. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ initWithStartRect:endRect:duration:withDelay:
- (nonnull instancetype) initWithStartRect: |
|
(CGRect) |
aStartRect |
endRect: |
|
(CGRect) |
anEndRect |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end rectangles and duration.
- Parameters
-
aStartRect | The starting rectangle. If CGRectNull or any field is NaN , the animation starts from the current value of the animated property. |
anEndRect | The ending rectangle. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ initWithStartSize:endSize:duration:withDelay:
- (nonnull instancetype) initWithStartSize: |
|
(CGSize) |
aStartSize |
endSize: |
|
(CGSize) |
anEndSize |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Initializes a newly allocated CPTAnimationPeriod object with the provided start and end sizes and duration.
- Parameters
-
aStartSize | The starting size. If either coordinate is NaN , the animation starts from the current value of the animated property. |
anEndSize | The ending size. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStart:end:duration:withDelay:
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end values and duration.
- Parameters
-
aStart | The starting value. If NaN , the animation starts from the current value of the animated property. |
anEnd | The ending value. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStartDecimal:endDecimal:duration:withDelay:
+ (nonnull instancetype) periodWithStartDecimal: |
|
(NSDecimal) |
aStartDecimal |
endDecimal: |
|
(NSDecimal) |
anEndDecimal |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end values and duration.
- Parameters
-
aStartDecimal | The starting value. If NaN , the animation starts from the current value of the animated property. |
anEndDecimal | The ending value. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStartNumber:endNumber:duration:withDelay:
+ (nonnull instancetype) periodWithStartNumber: |
|
(nullable NSNumber *) |
aStartNumber |
endNumber: |
|
(nonnull NSNumber *) |
anEndNumber |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end values and duration.
- Parameters
-
aStartNumber | The starting value. If NaN or nil, the animation starts from the current value of the animated property. |
anEndNumber | The ending value. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStartPlotRange:endPlotRange:duration:withDelay:
+ (nonnull instancetype) periodWithStartPlotRange: |
|
(nonnull CPTPlotRange *) |
aStartPlotRange |
endPlotRange: |
|
(nonnull CPTPlotRange *) |
anEndPlotRange |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end plot ranges and duration.
- Parameters
-
aStartPlotRange | The starting plot range. If nil or any component of the range is NaN , the animation starts from the current value of the animated property. |
anEndPlotRange | The ending plot range. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStartPoint:endPoint:duration:withDelay:
+ (nonnull instancetype) periodWithStartPoint: |
|
(CGPoint) |
aStartPoint |
endPoint: |
|
(CGPoint) |
anEndPoint |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end points and duration.
- Parameters
-
aStartPoint | The starting point. If either coordinate is NaN , the animation starts from the current value of the animated property. |
anEndPoint | The ending point. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStartRect:endRect:duration:withDelay:
+ (nonnull instancetype) periodWithStartRect: |
|
(CGRect) |
aStartRect |
endRect: |
|
(CGRect) |
anEndRect |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end rectangles and duration.
- Parameters
-
aStartRect | The starting rectangle. If CGRectNull or any field is NaN , the animation starts from the current value of the animated property. |
anEndRect | The ending rectangle. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ periodWithStartSize:endSize:duration:withDelay:
+ (nonnull instancetype) periodWithStartSize: |
|
(CGSize) |
aStartSize |
endSize: |
|
(CGSize) |
anEndSize |
duration: |
|
(CGFloat) |
aDuration |
withDelay: |
|
(CGFloat) |
aDelay |
|
|
| |
Creates and returns a new CPTAnimationPeriod instance initialized with the provided start and end sizes and duration.
- Parameters
-
aStartSize | The starting size. If either coordinate is NaN , the animation starts from the current value of the animated property. |
anEndSize | The ending size. |
aDuration | The animation duration in seconds. |
aDelay | The starting delay in seconds. |
- Returns
- The initialized object.
◆ setStartValueFromObject:propertyGetter:
- (void) setStartValueFromObject: |
|
(nonnull id __unused) |
boundObject |
propertyGetter: |
|
(nonnull SEL __unused) |
boundGetter |
|
|
| |
|
implementation |
Initialize the start value from the property getter.
- Parameters
-
boundObject | The object to update for each animation frame. |
boundGetter | The getter method for the property to update. |
Provided by category CPTAnimationPeriod(AbstractMethods).
◆ tweenedValueForProgress:
- (nonnull NSValue *) tweenedValueForProgress: |
|
(CGFloat __unused) |
progress |
|
|
implementation |
◆ delay
The delay in seconds between the startOffset and the time the animation will start. If NaN
, the animation will not start until the current value of the bound property is between startValue and endValue.
◆ duration
The duration of the animation, in seconds.
◆ endValue
The ending value of the animation.
◆ startOffset
The animation time clock offset when the receiver was created.
◆ startValue
The starting value of the animation.
If nil or the encoded value is NaN
, the animation starts from the current value of the animated property.
◆ valueClass
The Objective-C class of the animated object. If nil, the value is a scalar or struct wrapped in an NSValue object.
The documentation for this class was generated from the following files: