Definition at line 55 of file qtimeline.h.
#include <qtimeline.h>

Public Types |
|
| enum | State { NotRunning, Paused, Running } |
| enum | Direction { Forward, Backward } |
| enum | CurveShape
{ EaseInCurve, EaseOutCurve, EaseInOutCurve, LinearCurve, SineCurve, CosineCurve } |
Public Slots |
|
| void | start () |
| void | resume () |
| void | stop () |
| void | setPaused (bool paused) |
| void | setCurrentTime (int msec) |
| void | toggleDirection () |
Signals |
|
| void | valueChanged (qreal x) |
| void | frameChanged (int) |
| void | stateChanged (QTimeLine::State newState) |
| void | finished () |
Public Member Functions |
|
| QTimeLine (int duration=1000, QObject *parent=0) | |
| virtual | ~QTimeLine () |
| State | state () const |
| int | loopCount () const |
| void | setLoopCount (int count) |
| Direction | direction () const |
| void | setDirection (Direction direction) |
| int | duration () const |
| void | setDuration (int duration) |
| int | startFrame () const |
| void | setStartFrame (int frame) |
| int | endFrame () const |
| void | setEndFrame (int frame) |
| void | setFrameRange (int startFrame, int endFrame) |
| int | updateInterval () const |
| void | setUpdateInterval (int interval) |
| CurveShape | curveShape () const |
| void | setCurveShape (CurveShape shape) |
| QEasingCurve | easingCurve () const |
| void | setEasingCurve (const QEasingCurve &curve) |
| int | currentTime () const |
| int | currentFrame () const |
| qreal | currentValue () const |
| int | frameForTime (int msec) const |
| virtual qreal | valueForTime (int msec) const |
Protected Member Functions |
|
| void | timerEvent (QTimerEvent *event) |
Properties |
|
| int | duration |
| int | updateInterval |
| int | currentTime |
| Direction | direction |
| int | loopCount |
| CurveShape | curveShape |
| QEasingCurve | easingCurve |
| enum State |
Definition at line 66 of file qtimeline.h.
{
NotRunning,
Paused,
Running
};
| enum Direction |
Definition at line 71 of file qtimeline.h.
| enum CurveShape |
Definition at line 75 of file qtimeline.h.
| virtual ~QTimeLine | ( | ) | [virtual] |
| State state | ( | ) | const |
| int loopCount | ( | ) | const |
| void setLoopCount | ( | int | count | ) |
| Direction direction | ( | ) | const |
| void setDirection | ( | Direction | direction | ) |
| int duration | ( | ) | const |
| void setDuration | ( | int | duration | ) |
| int startFrame | ( | ) | const |
| void setStartFrame | ( | int | frame | ) |
| int endFrame | ( | ) | const |
| void setEndFrame | ( | int | frame | ) |
| void setFrameRange | ( | int | startFrame, |
| int | endFrame | ||
| ) |
| int updateInterval | ( | ) | const |
| void setUpdateInterval | ( | int | interval | ) |
| CurveShape curveShape | ( | ) | const |
| void setCurveShape | ( | CurveShape | shape | ) |
| QEasingCurve easingCurve | ( | ) | const |
| void setEasingCurve | ( | const QEasingCurve & | curve | ) |
| int currentTime | ( | ) | const |
| int currentFrame | ( | ) | const |
| qreal currentValue | ( | ) | const |
| int frameForTime | ( | int | msec | ) | const |
| virtual qreal valueForTime | ( | int | msec | ) | const [virtual] |
| void start | ( | ) | [slot] |
| void resume | ( | ) | [slot] |
| void stop | ( | ) | [slot] |
| void setPaused | ( | bool | paused | ) | [slot] |
| void setCurrentTime | ( | int | msec | ) | [slot] |
| void toggleDirection | ( | ) | [slot] |
| void valueChanged | ( | qreal | x | ) | [signal] |
| void frameChanged | ( | int | ) | [signal] |
| void stateChanged | ( | QTimeLine::State | newState | ) | [signal] |
| void finished | ( | ) | [signal] |
| void timerEvent | ( | QTimerEvent * | event | ) | [protected, virtual] |
Reimplemented from QObject.
int duration [read, write] |
Definition at line 58 of file qtimeline.h.
int updateInterval [read,
write] |
Definition at line 59 of file qtimeline.h.
int currentTime [read, write] |
Definition at line 60 of file qtimeline.h.
Direction
direction [read, write] |
Definition at line 61 of file qtimeline.h.
int loopCount [read, write] |
Definition at line 62 of file qtimeline.h.
CurveShape
curveShape [read, write] |
Definition at line 63 of file qtimeline.h.
QEasingCurve easingCurve
[read, write] |
Definition at line 64 of file qtimeline.h.