#include <Tween.h>
Inherits cinder::TimelineItem.
Inherited by cinder::Tween< T >.
|
typedef std::function< void()> | StartFn |
|
typedef std::function< void()> | FinishFn |
|
typedef std::function< void()> | UpdateFn |
|
cinder::TweenBase::TweenBase |
( |
void * |
target, |
|
|
bool |
copyStartValue, |
|
|
float |
startTime, |
|
|
float |
duration, |
|
|
EaseFn |
easeFunction = easeNone |
|
) |
| |
virtual cinder::TweenBase::~TweenBase |
( |
| ) |
|
|
virtual |
void cinder::TweenBase::setEaseFn |
( |
EaseFn |
easeFunction | ) |
|
change how the tween moves through time
EaseFn cinder::TweenBase::getEaseFn |
( |
| ) |
const |
void cinder::TweenBase::setStartFn |
( |
StartFn |
startFunction | ) |
|
StartFn cinder::TweenBase::getStartFn |
( |
| ) |
const |
void cinder::TweenBase::setReverseStartFn |
( |
StartFn |
reverseStartFunction | ) |
|
StartFn cinder::TweenBase::getReverseStartFn |
( |
| ) |
const |
void cinder::TweenBase::setUpdateFn |
( |
UpdateFn |
updateFunction | ) |
|
UpdateFn cinder::TweenBase::getUpdateFn |
( |
| ) |
const |
void cinder::TweenBase::setFinishFn |
( |
FinishFn |
finishFn | ) |
|
FinishFn cinder::TweenBase::getFinishFn |
( |
| ) |
const |
void cinder::TweenBase::setReverseFinishFn |
( |
FinishFn |
reverseFinishFn | ) |
|
FinishFn cinder::TweenBase::getReverseFinishFn |
( |
| ) |
const |
virtual void cinder::TweenBase::reset |
( |
bool |
unsetStarted | ) |
|
|
protectedvirtual |
Marks the item as not completed, and if unsetStarted, marks the item as not started.
Reimplemented from cinder::TimelineItem.
virtual void cinder::TweenBase::complete |
( |
bool |
reverse | ) |
|
|
protectedvirtual |
void* cinder::TimelineItem::getTarget |
( |
| ) |
const |
|
inherited |
Returns the item's target pointer.
float cinder::TimelineItem::getStartTime |
( |
| ) |
const |
|
inherited |
Returns the item's start time.
void cinder::TimelineItem::setStartTime |
( |
float |
newTime | ) |
|
|
inherited |
Set the items's start time to newTime.
float cinder::TimelineItem::getDuration |
( |
| ) |
const |
|
inherited |
Returns the item's duration.
void cinder::TimelineItem::setDuration |
( |
float |
newDuration | ) |
|
|
inherited |
Sets the item's duration to newDuration.
bool cinder::TimelineItem::getLoop |
( |
| ) |
const |
|
inherited |
Returns whether the item starts over when it is complete.
void cinder::TimelineItem::setLoop |
( |
bool |
doLoop = true | ) |
|
|
inherited |
Sets whether the item starts over when it is complete.
bool cinder::TimelineItem::getPingPong |
( |
| ) |
const |
|
inherited |
Returns whether the item alternates between forward and reverse. Overrides loop when true.
void cinder::TimelineItem::setPingPong |
( |
bool |
pingPong = true | ) |
|
|
inherited |
Sets whether the item alternates between forward and reverse. Overrides loop when true.
bool cinder::TimelineItem::getInfinite |
( |
| ) |
const |
|
inherited |
Returns whether the item ever is marked as complete.
void cinder::TimelineItem::setInfinite |
( |
bool |
infinite = true | ) |
|
|
inherited |
Sets whether the item ever is marked as complete.
float cinder::TimelineItem::getEndTime |
( |
| ) |
const |
|
inherited |
class Timeline* cinder::TimelineItem::getParent |
( |
| ) |
const |
|
inherited |
Returns a pointer to the item's parent Timeline.
void cinder::TimelineItem::removeSelf |
( |
| ) |
|
|
inherited |
Removes the item from its parent Timeline.
bool cinder::TimelineItem::hasStarted |
( |
| ) |
const |
|
inherited |
Returns whether the item has started.
bool cinder::TimelineItem::isComplete |
( |
| ) |
|
|
inherited |
Returns whether the item has completed.
bool cinder::TimelineItem::getAutoRemove |
( |
| ) |
const |
|
inherited |
Should the item remove itself from the Timeline when it is complete.
void cinder::TimelineItem::setAutoRemove |
( |
bool |
autoRemove = true | ) |
|
|
inherited |
Sets whether the item will remove itself from the Timeline when it is complete.
virtual void cinder::TimelineItem::start |
( |
bool |
reverse | ) |
|
|
pure virtualinherited |
virtual void cinder::TimelineItem::loopStart |
( |
| ) |
|
|
virtualinherited |
virtual void cinder::TimelineItem::update |
( |
float |
relativeTime | ) |
|
|
pure virtualinherited |
virtual bool cinder::TimelineItem::updateAtLoopStart |
( |
| ) |
|
|
virtualinherited |
Call update() only at the beginning of each loop (for example Cues exhibit require this behavior)
Reimplemented in cinder::Cue.
virtual float cinder::TimelineItem::calcDuration |
( |
| ) |
const |
|
virtualinherited |
virtual void cinder::TimelineItem::reverse |
( |
| ) |
|
|
pure virtualinherited |
void cinder::TimelineItem::stepTo |
( |
float |
time, |
|
|
bool |
reverse |
|
) |
| |
|
inherited |
go to a specific time, generally called by the parent Timeline only. If reverse then playhead is interpreted as retreating rather than advancing.
void cinder::TimelineItem::setDurationDirty |
( |
| ) |
|
|
protectedinherited |
void cinder::TimelineItem::updateDuration |
( |
| ) |
const |
|
protectedinherited |
float cinder::TimelineItem::loopTime |
( |
float |
absTime | ) |
|
|
protectedinherited |
Converts time from absolute to absolute based on item's looping attributes.
void cinder::TimelineItem::setTarget |
( |
void * |
target | ) |
|
|
protectedinherited |
StartFn cinder::TweenBase::mStartFunction |
|
protected |
StartFn cinder::TweenBase::mReverseStartFunction |
|
protected |
UpdateFn cinder::TweenBase::mUpdateFunction |
|
protected |
FinishFn cinder::TweenBase::mFinishFunction |
|
protected |
FinishFn cinder::TweenBase::mReverseFinishFunction |
|
protected |
EaseFn cinder::TweenBase::mEaseFunction |
|
protected |
float cinder::TweenBase::mDuration |
|
protected |
bool cinder::TweenBase::mCopyStartValue |
|
protected |
class Timeline* cinder::TimelineItem::mParent |
|
protectedinherited |
void* cinder::TimelineItem::mTarget |
|
protectedinherited |
float cinder::TimelineItem::mStartTime |
|
protectedinherited |
bool cinder::TimelineItem::mHasStarted |
|
protectedinherited |
bool cinder::TimelineItem::mHasReverseStarted |
|
protectedinherited |
bool cinder::TimelineItem::mComplete |
|
protectedinherited |
bool cinder::TimelineItem::mReverseComplete |
|
protectedinherited |
bool cinder::TimelineItem::mMarkedForRemoval |
|
protectedinherited |
bool cinder::TimelineItem::mInfinite |
|
protectedinherited |
bool cinder::TimelineItem::mLoop |
|
protectedinherited |
bool cinder::TimelineItem::mPingPong |
|
protectedinherited |
bool cinder::TimelineItem::mUseAbsoluteTime |
|
protectedinherited |
bool cinder::TimelineItem::mAutoRemove |
|
protectedinherited |
int32_t cinder::TimelineItem::mLastLoopIteration |
|
protectedinherited |
The documentation for this class was generated from the following files: